This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/85430] [7/8 Regression] ICE: SIGSEGV in memory_operand at recog.c:1358 with -O2 -fno-tree-ccp -fno-tree-fre
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Apr 2018 18:46:25 +0000
- Subject: [Bug target/85430] [7/8 Regression] ICE: SIGSEGV in memory_operand at recog.c:1358 with -O2 -fno-tree-ccp -fno-tree-fre
- Auto-submitted: auto-generated
- References: <bug-85430-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85430
--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> ---
Observation about generated code:
$ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-ccp -fno-tree-fre testcase.c -S -o-
...
foo:
movl %edi, %eax
addb %al, %al
ret
...
which looks superior to code generated by -O1/-O2/-O3/-Os/-Og :
...
foo:
movsbl %dil, %edx
addl %edx, %edx
movl %edi, %eax
movb %dl, %al
ret
...