[Bug target/57536] Inconsistent behavior of strlen inline and unroll

2016-08-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57536 --- Comment #4 from Martin Sebor --- *** Bug 77276 has been marked as a duplicate of this bug. ***

[Bug target/57536] Inconsistent behavior of strlen inline and unroll

2016-08-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57536 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/57536] Inconsistent behavior of strlen inline and unroll

2013-06-05 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57536 --- Comment #2 from H.J. Lu --- Something like this: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8b28b61..6d11323 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -23101,21 +23101,32 @@ bool ix86_expand_

[Bug target/57536] Inconsistent behavior of strlen inline and unroll

2013-06-05 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57536 --- Comment #1 from H.J. Lu --- Also -Os generates larger code: [hjl@gnu-6 gcc]$ gcc -S -Os -m32 x.i [hjl@gnu-6 gcc]$ cat x.s .file"x.i" .text .globlfoo .typefoo, @function foo: .LFB0: .cfi_startproc pushl%