Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: akruppa at gmail dot com
The following test cases produce sub-optimal assembly output.
This was verified with these three versions of gcc:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5
-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: akruppa at gmail dot com
The following code, when compiled with the gcc 4.9.0 release or with SVN branch
gcc-4_9-branch r210719, via
gcc -O2 -Wall -c bug.c
produces the warning
bug.c: In function ‘foo’:
bug.c:13
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60641
--- Comment #2 from Alex Kruppa akruppa at gmail dot com ---
With gcc-4.9.0, compiled from the official tarball, the foo() function does NOT
produce the double movzwl instruction any more, but the bar() function still
does.
Dump of assembler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67792
Alex Kruppa changed:
What|Removed |Added
CC||akruppa at gmail dot com
--- Comment #4