aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d21e5da..93fa743 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 4458014..501e26f 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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;