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 middle-end/24932] GCC segfault's on strcmp in tree.c:annotate_with_file_line



------- Comment #3 from barbieri at gmail dot com  2005-11-18 18:36 -------
Created an attachment (id=10276)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10276&action=view)
gcc-lower_function_body.patch

Alternative patch that also fix seg fault, but earlier.

It's uglier than the previous, and is more restricted, since it just protect
the behaviour from gimple-low.c:lower_function_body(), while the previous patch
does the check for every use of annotate_with_file_line, used by
SET_EXPR_LOCATION.

I cannot know if this is a bug in the middle-end, since there is no
documentation on when I need to set this value. If so, probably we can use
gcc_assert() to confirm this?


-- 


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


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