diff options
author | Richard Guenther <rguenther@suse.de> | 2009-02-17 15:20:18 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-02-17 15:20:18 +0000 |
commit | 91ab2c868e9570a958c4884415d580c7bcd933f3 (patch) | |
tree | bc564ed457189bf0e55e90ce34003db7c7d8cc26 /gcc/langhooks.c | |
parent | 73a63870d5b36819f06ac187feed2185761a6d15 (diff) | |
download | gcc-91ab2c868e9570a958c4884415d580c7bcd933f3.zip gcc-91ab2c868e9570a958c4884415d580c7bcd933f3.tar.gz gcc-91ab2c868e9570a958c4884415d580c7bcd933f3.tar.bz2 |
re PR middle-end/39214 (internal compiler error: Segmentation fault)
2009-02-17 Richard Guenther <rguenther@suse.de>
PR middle-end/39214
* langhooks.c (lhd_print_error_function): Check for NULL block.
From-SVN: r144234
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index ebbec95..ba03ff4 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -437,7 +437,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file, while (block && TREE_CODE (block) == BLOCK) block = BLOCK_SUPERCONTEXT (block); - if (TREE_CODE (block) == FUNCTION_DECL) + if (block && TREE_CODE (block) == FUNCTION_DECL) fndecl = block; abstract_origin = NULL; } |