diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-03-20 12:18:06 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-03-20 12:18:06 +0100 |
commit | 999a099ca26479095d3372f46d0824dd8f45d404 (patch) | |
tree | 6485f224348773f33b56ece934546d54a8a3e750 /gcc | |
parent | 3419a445f13438e896a43dabaec0cdb63ce6473e (diff) | |
download | gcc-999a099ca26479095d3372f46d0824dd8f45d404.tar.gz |
i386.c (ix86_decompose_address): If operand isn't UNSPEC, return 0.
* config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
If operand isn't UNSPEC, return 0.
From-SVN: r185568
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9378eab93d..d2dcbe51257 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-20 Jakub Jelinek <jakub@redhat.com> + + * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>: + If operand isn't UNSPEC, return 0. + 2012-03-20 Richard Guenther <rguenther@suse.de> * tree-pass.h (pass_rtl_eh): Remove. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index cf673fd25d4..2410236b93b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -11516,6 +11516,8 @@ ix86_decompose_address (rtx addr, struct ix86_address *out) case ZERO_EXTEND: op = XEXP (op, 0); + if (GET_CODE (op) != UNSPEC) + return 0; /* FALLTHRU */ case UNSPEC: |