diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2016-05-13 09:08:15 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2016-05-13 09:08:15 +0000 |
commit | 44cb09ea6b2164e8392e3001b0ba5b93093bfa07 (patch) | |
tree | 2b7e8514dce86435e1359c9bd10d4eda7e0a0326 /gcc | |
parent | ee516de9b3b1aab35e4b21e9058c6176ee30901b (diff) | |
download | gcc-44cb09ea6b2164e8392e3001b0ba5b93093bfa07.zip gcc-44cb09ea6b2164e8392e3001b0ba5b93093bfa07.tar.gz gcc-44cb09ea6b2164e8392e3001b0ba5b93093bfa07.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 3 |
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; |