[PATCH] Fix PR target/31568 ICE with invalid %y operand (inline-asm)

Andrew Pinski Andrew_Pinski@playstation.sony.com
Mon Jul 14 22:48:00 GMT 2008


Hi,
  The problem here is that we use gcc_assert instead of calling
output_operand_lossage if the user tries to use %yN invalidly.  This
fixes the ICE and adds a testcase so we don't regress.

OK?  Bootstrapped and tested on powerpc64-linux-gnu with no
regressions and it has been in the PS3 compiler for about a year now.

Thanks,
Andrew Pinski

ChangeLog:
* config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
gcc_assert, instead call output_operand_lossage.



* gcc.target/powerpc/asm-y.c: New testcase.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080714/f91902d0/attachment.txt>


More information about the Gcc-patches mailing list