This is the mail archive of the archer@sourceware.org mailing list for the Archer 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]

FYI the `register' gcc-4.4 change (GCC PR debug/39485)


Hi,

as I made a note about it in the confcall:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39485

Summary: Explicit `register' keyword started working even during -O0 for
g++-4.4.  It makes methods of objects marked by `register' not debuggable.
(gdb) p v.method()
Address requested for identifier "v" which is in register $rbx
It turned for GDB:
-PASS: gdb.cp/classes.exp: calling method for small class
+XFAIL: gdb.cp/classes.exp: calling method for small class (PRMS 2972)

Jakub already checked-in to GCC a fix although one could (less well)
workaround it by some:
#ifdef __OPTIMIZE__
# define register
#endif

Anyway Jakub already did code it and it should have no disadvantages so
probably there is nothing left to decide about some compromise.


Regards,
Jan


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