Compiling the code in the attachment using -O2 -march=i686 4.1 produces bigger
code than 4.0.
4.0 produces:
movl xtermWidgetClass, %eax
cmpl %eax, 4(%edx)
4.1 produces:
movl 4(%edx), %eax
cmpl xtermWidgetClass, %eax
the 4.1 version is 1 byte bigger.
This is one of the reasons for the code size increase in PR23153.
--
Summary: bigger version of mov + cmp produced
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23524