diff options
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: |