This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]