This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
FYI the `register' gcc-4.4 change (GCC PR debug/39485)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Wed, 18 Mar 2009 19:08:12 +0100
- Subject: 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