This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37154] static inline function problem
- From: "wrobell at pld-linux dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2008 22:40:56 -0000
- Subject: [Bug middle-end/37154] static inline function problem
- References: <bug-37154-16609@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from wrobell at pld-linux dot org 2008-08-18 22:40 -------
(In reply to comment #4)
> >gdb claims that problem is at line 2285, variable "accumulator" is 0x0,
>
> well with optimization, debugging info is not always fully correct.
>
i've changed function declaration again to 'static inline'
and inserted
printf('acc %d\n', accumulator);
just before line 2285.
i've got 'acc 0'. so it is really 0x0 and the condition at line 2282
is not evaluated properly (or was optimized out/whatever :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37154