Commit 329e1d01 by Jeffrey A Law Committed by Jeff Law

i386.c (ix86_decompose_address): Verify the base is a REG before trying to…

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
parent aff555c5
Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com) 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 * basic-block.h: Remove all #defines and prototypes related to
integer lists. integer lists.
(free_bb_mem, compute_preds_succs): Remove prototype. (free_bb_mem, compute_preds_succs): Remove prototype.
......
...@@ -1828,6 +1828,7 @@ ix86_decompose_address (addr, out) ...@@ -1828,6 +1828,7 @@ ix86_decompose_address (addr, out)
Avoid this by transforming to [%esi+0]. */ Avoid this by transforming to [%esi+0]. */
if (ix86_cpu == PROCESSOR_K6 && !optimize_size if (ix86_cpu == PROCESSOR_K6 && !optimize_size
&& base && !index && !disp && base && !index && !disp
&& REG_P (base)
&& REGNO_REG_CLASS (REGNO (base)) == SIREG) && REGNO_REG_CLASS (REGNO (base)) == SIREG)
disp = const0_rtx; disp = const0_rtx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment