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] |
On Tuesday, January 14, 2003, at 04:59 PM, Josef Zlomek wrote:
It's actually buggy, but the goal is was to determine the label for the end of the code for this function (so we can say where the last part of the range is valid to).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.It should at least avoid the segfault :-) I was not sure what does the code mean so I did not want to write such a fix myself.
Thank you! Josef
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |