From 999a099ca26479095d3372f46d0824dd8f45d404 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Mar 2012 12:18:06 +0100 Subject: [PATCH] i386.c (ix86_decompose_address): If operand isn't UNSPEC, return 0. * config/i386/i386.c (ix86_decompose_address) : If operand isn't UNSPEC, return 0. From-SVN: r185568 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 2 ++ 2 files changed, 7 insertions(+) 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 + + * config/i386/i386.c (ix86_decompose_address) : + If operand isn't UNSPEC, return 0. + 2012-03-20 Richard Guenther * 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: