lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 7 Jan 2007 16:10:53 +0100
From:	Segher Boessenkool <segher@...nel.crashing.org>
To:	Denis Vlasenko <vda.linux@...glemail.com>
Cc:	akpm@...l.org, Albert Cahalan <acahalan@...il.com>,
	linux-kernel@...r.kernel.org, s0348365@....ed.ac.uk,
	Linus Torvalds <torvalds@...l.org>, bunk@...sta.de,
	mikpe@...uu.se
Subject: Re: kernel + gcc 4.1 = several problems

> I want this:
>
> char v[4];
> ...
> 	memcmp(v, "abcd", 4) == 0
>
> compile to single cmpl on i386. This (gcc 4.1.1) is ridiculous:

>         call    memcmp

i686-linux-gcc (GCC) 4.2.0 20060410 (experimental)

         movl    $4, %ecx        #, tmp65
         cld
         movl    $v, %esi        #, tmp63
         movl    $.LC0, %edi     #, tmp64
         repz
         cmpsb
         sete    %al     #, tmp68

Still not perfect, but better already.  If you have any
specific examples that you'd like to have compiled to
better code, please report them in GCC bugzilla (with a
self-contained testcase, please).


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ