Commit 91ab2c86 by Richard Guenther Committed by Richard Biener

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
parent 73a63870
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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment