Commit 44cb09ea by Rainer Orth Committed by Rainer Orth

Fix SEGV in ix86_in_large_data_p (PR target/71080)

	PR target/71080
	* config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.

From-SVN: r236196
parent ee516de9
2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/71080
* config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
* builtins.c (expand_builtin_memcmp): Do not emit the call here.
......
......@@ -6823,6 +6823,9 @@ ix86_in_large_data_p (tree exp)
if (ix86_cmodel != CM_MEDIUM && ix86_cmodel != CM_MEDIUM_PIC)
return false;
if (exp == NULL_TREE)
return false;
/* Functions are never large data. */
if (TREE_CODE (exp) == FUNCTION_DECL)
return false;
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