re PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 8 Oct 2003 17:55:41 +0000 (17:55 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 8 Oct 2003 17:55:41 +0000 (17:55 +0000)
commit9ab81df26115cdf383adc130c78074aa48a45ae2
tree04d2ab8aacf304e21a4ca41a910c138798e74708
parent85aa13b28714657d91baabd5862c92008071706b
re PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)

PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC.  Remove unnecessary argument.
* pa.c (legitimize_pic_address): Before reload, use a scratch register
for the intermediate result in loading the address of a SYMBOL_REF.
Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
which loads the SYMBOL_REF address.

From-SVN: r72234
gcc/ChangeLog
gcc/config/pa/pa.c
gcc/cse.c