i386.c (ix86_decompose_address): Verify the base is a REG before trying to examine its register number.

* i386.c (ix86_decompose_address): Verify the base is a REG
        before trying to examine its register number.

From-SVN: r30536
This commit is contained in:
Jeffrey A Law 1999-11-15 09:06:12 +00:00 committed by Jeff Law
parent aff555c5de
commit 329e1d019a
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
* i386.c (ix86_decompose_address): Verify the base is a REG
before trying to examine its register number.
* basic-block.h: Remove all #defines and prototypes related to
integer lists.
(free_bb_mem, compute_preds_succs): Remove prototype.

View File

@ -1828,6 +1828,7 @@ ix86_decompose_address (addr, out)
Avoid this by transforming to [%esi+0]. */
if (ix86_cpu == PROCESSOR_K6 && !optimize_size
&& base && !index && !disp
&& REG_P (base)
&& REGNO_REG_CLASS (REGNO (base)) == SIREG)
disp = const0_rtx;