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 | |
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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/langhooks.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef11604..d4be347 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2009-02-17 Richard Guenther <rguenther@suse.de> + PR middle-end/39214 + * langhooks.c (lhd_print_error_function): Check for NULL block. + +2009-02-17 Richard Guenther <rguenther@suse.de> + PR tree-optimization/39204 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number of the PHI arg. 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; } |