This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29913] argument width changes from inlined method definition with -O2



------- Comment #1 from timj at gtk dot org  2006-11-20 13:07 -------
Created an attachment (id=12652)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12652&action=view)
testcase, demonstrating argument width changes

compiling and executing the attached testcase with -Wall -O2 produces:
i++ = 7
i++ = 7
i++ = 7
i++ = 7
i++ = 7

changing optimization to -O1 or defining INLINED_METHOD to 1 produces the
expected:
i++ = 7
i++ = 8
i++ = 9
i++ = 10
i++ = 11


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29913


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]