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 middle-end/37154] static inline function problem



------- 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


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