On 06/11/2012 12:30 PM, Steve Ellcey wrote:
This patch is to fix MIPS failures that occcur when configuring GCC with the
-with-synci option.  In this case GCC will generate the synci instruction
by default if on a MIPS architecture that supports it .  When on an
architecture that does not support synci, GCC will not generate it by default
but it does generate a warning saying that it is not doing so and that
warning is causing tests that explicitly specify a MIPS architecture that
does not support synci but do not explicitly turn off synci to fail with an
extra, unexpected warning.

I initially looked at changing GCC to remove the warning but that did
not look workable, see http://gcc.gnu.org/ml/gcc/2012-06/msg00100.html
for more details.

This patch addes the -mno-synci flag to MIPS tests that specify an
architecture that does not support synci, thus getting rid of the
warning message and making the tests pass.  Tested with the mips-linux-gnu
and mips-sde-elf targets both with and without --with-synci on the
GCC configuration.

OK to checkin?

I wonder if it would make more sense to modify the testsuite driver to take care of this. It seems like the set of files with the -mno-synci annotation could easily become different than the set that requires it.

David Daney


Steve Ellcey
sell...@mips.com

2012-06-11  Steve Ellcey<sell...@mips.com>

        * gcc.target/mips/call-saved-1.c: Add -mno-synci flag.
        * gcc.target/mips/call-saved-2.c: Ditto.
        * gcc.target/mips/call-saved-3.c: Ditto.
        * gcc.target/mips/clear-cache-2.c: Ditto.
        * gcc.target/mips/ext-8.c: Ditto.
        * gcc.target/mips/extend-2.c: Ditto.
        * gcc.target/mips/fix-r4000-1.c: Ditto.
        * gcc.target/mips/fix-r4000-10.c: Ditto.
        * gcc.target/mips/fix-r4000-11.c: Ditto.
        * gcc.target/mips/fix-r4000-12.c: Ditto.
        * gcc.target/mips/fix-r4000-2.c: Ditto.
        * gcc.target/mips/fix-r4000-3.c: Ditto.
        * gcc.target/mips/fix-r4000-4.c: Ditto.
        * gcc.target/mips/fix-r4000-5.c: Ditto.
        * gcc.target/mips/fix-r4000-6.c: Ditto.
        * gcc.target/mips/fix-r4000-7.c: Ditto.
        * gcc.target/mips/fix-r4000-8.c: Ditto.
        * gcc.target/mips/fix-r4000-9.c: Ditto.
        * gcc.target/mips/fix-vr4130-1.c: Ditto.
        * gcc.target/mips/fix-vr4130-2.c: Ditto.
        * gcc.target/mips/fix-vr4130-3.c: Ditto.
        * gcc.target/mips/fix-vr4130-4.c: Ditto.
        * gcc.target/mips/fpr-moves-1.c: Ditto.
        * gcc.target/mips/fpr-moves-2.c: Ditto.
        * gcc.target/mips/loongson-muldiv-1.c: Ditto.
        * gcc.target/mips/loongson-muldiv-2.c: Ditto.
        * gcc.target/mips/loongson-shift-count-truncated-1.c: Ditto.
        * gcc.target/mips/loongson-simd.c: Ditto.
        * gcc.target/mips/loongson3a-muldiv-1.c: Ditto.
        * gcc.target/mips/loongson3a-muldiv-2.c: Ditto.
        * gcc.target/mips/madd-1.c: Ditto.
        * gcc.target/mips/madd-2.c: Ditto.
        * gcc.target/mips/madd-5.c: Ditto.
        * gcc.target/mips/madd-6.c: Ditto.
        * gcc.target/mips/madd-7.c: Ditto.
        * gcc.target/mips/madd-8.c: Ditto.
        * gcc.target/mips/maddu-1.c: Ditto.
        * gcc.target/mips/maddu-2.c: Ditto.
        * gcc.target/mips/msub-1.c: Ditto.
        * gcc.target/mips/msub-2.c: Ditto.
        * gcc.target/mips/msub-5.c: Ditto.
        * gcc.target/mips/msub-6.c: Ditto.
        * gcc.target/mips/msub-7.c: Ditto.
        * gcc.target/mips/msub-8.c: Ditto.
        * gcc.target/mips/msubu-1.c: Ditto.
        * gcc.target/mips/msubu-2.c: Ditto.
        * gcc.target/mips/nmadd-1.c: Ditto.
        * gcc.target/mips/nmadd-2.c: Ditto.
        * gcc.target/mips/nmadd-3.c: Ditto.
        * gcc.target/mips/no-smartmips-ror-1.c: Ditto.
        * gcc.target/mips/pr34831.c: Ditto.
        * gcc.target/mips/r10k-cache-barrier-10.c: Ditto.
        * gcc.target/mips/r3900-mult.c: Ditto.
        * gcc.target/mips/rsqrt-1.c: Ditto.
        * gcc.target/mips/rsqrt-2.c: Ditto.
        * gcc.target/mips/rsqrt-3.c: Ditto.
        * gcc.target/mips/rsqrt-4.c: Ditto.
        * gcc.target/mips/sb1-1.c: Ditto.
        * gcc.target/mips/vr-mult-1.c: Ditto.
        * gcc.target/mips/vr-mult-2.c: Ditto.


[...]

Reply via email to