The test above fails on Solaris/SPARC when the native assembler is in use: output is: /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 23: error: invalid character (0x72) /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 23: error: unknown opcode "register" /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 23: error: statement syntax /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 29: error: invalid character (0x72) /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 29: error: unknown opcode "register" /usr/bin/as: "/var/tmp//cc83aiQ4.s", line 29: error: statement syntax FAIL: gcc.c-torture/compile/pr38789.c -O0 (test for excess errors)
The easy fix is to change the inline-asm strings to "".
Subject: Bug 41522 Author: ro Date: Mon Jan 25 14:54:15 2010 New Revision: 156213 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156213 Log: PR testsuite/41522 * gcc.c-torture/compile/pr38789.c: Change to dg-do compile. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.c-torture/compile/pr38789.c
Mine.
Fixed for 4.5.0: http://gcc.gnu.org/ml/gcc-patches/2010-01/msg01255.html