This is the mail archive of the gcc-patches@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]

Re: [rtlopt] "variable tracking" pass


The file which fails is from libstdc++-v3/libsupc++/
(it is being compiled after the final compiler is built).
I think it is eh_globals.cc but I'm not sure.

Yeah, i reproduced it.
Thanks.
It's a fun bug exposed by the interaction of -ffunction-sections and global variables.

Simple fix, however:
change

+ if (separate_line_info_table_in_use == 0)
+ endname = text_end_label;
+ else
to

+ if (separate_line_info_table_in_use == 0 || !current_function_decl)
+ endname = text_end_label;
+ else

in the patch.

I'm bootstrapping now to see if there are any further problems.


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