https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96866

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jiu Fu Guo <guoji...@gcc.gnu.org>:

https://gcc.gnu.org/g:472eab9ab1fdfd0ba3a555ea9eb50e20307c7052

commit r15-2225-g472eab9ab1fdfd0ba3a555ea9eb50e20307c7052
Author: Jiufu Guo <guoji...@linux.ibm.com>
Date:   Tue Jul 23 13:34:20 2024 +0800

    report message for operator %a on unaddressible operand

    Hi,

    For PR96866, when printing asm code for modifier "%a", an addressable
    operand is required.  While the constraint "X" allow any kind of
    operand even which is hard to get the address directly. e.g. extern
    symbol whose address is in TOC.
    An error message would be reported to indicate the invalid asm operand.

    Compare with previous version, test case is updated with -mno-pcrel.

    Bootstrap&regtest pass on ppc64{,le}.
    Is this ok for trunk?

    BR,
    Jeff(Jiufu Guo)

            PR target/96866

    gcc/ChangeLog:

            * config/rs6000/rs6000.cc (print_operand_address): Emit message for
            unsupported operand.

    gcc/testsuite/ChangeLog:

            * gcc.target/powerpc/pr96866-1.c: New test.
            * gcc.target/powerpc/pr96866-2.c: New test.

Reply via email to