]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/39214 (internal compiler error: Segmentation fault)
authorRichard Guenther <rguenther@suse.de>
Tue, 17 Feb 2009 15:20:18 +0000 (15:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 17 Feb 2009 15:20:18 +0000 (15:20 +0000)
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

gcc/ChangeLog
gcc/langhooks.c

index ef1160461a74182ea854f791a2562b44d8e15a43..d4be34763d0825cf198c8c3e1cc4457b96ce1196 100644 (file)
@@ -1,3 +1,8 @@
+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
index ebbec951aefa5822bec45da7f22f62c9cd820068..ba03ff42ce55eb40f66be5a08b326bebab39de97 100644 (file)
@@ -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;
                }