This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29913] argument width changes from inlined method definition with -O2
- From: "timj at gtk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2006 13:07:53 -0000
- Subject: [Bug c++/29913] argument width changes from inlined method definition with -O2
- References: <bug-29913-12577@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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