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 c++/23205] [4.0/4.1 Regression] [C++/unit-at-a-time] stabs debug info omitted for global const variables


------- Additional Comments From wilson at gcc dot gnu dot org  2005-08-13 00:33 -------
The problem here is the DECL_RTL_SET_P tests in dbxout_global_decl and
dbxout_symbol.  Constants have a NULL DECL_RTL, and hence fail this test.  This
is OK, because we don't use the DECL_RTL when emitting debug info for a
constant.  However, everything else does need to have a valid DECL_RTL.  It
looks like deleting the redundant test in dbxout_global_decl and repositioning
the test after the check for constants in dbxout_symbol case VAR_DECL would work.

Writing and testing the patch is left as an exercise for the reader.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23205


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