Bug 41522 - gcc.c-torture/compile/pr38789.c fails on Solaris/SPARC with native assembler
Summary: gcc.c-torture/compile/pr38789.c fails on Solaris/SPARC with native assembler
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Rainer Orth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 17:09 UTC by Rainer Orth
Modified: 2010-01-25 14:56 UTC (History)
1 user (show)

See Also:
Host: sparc-sun-solaris2.11
Target: sparc-sun-solaris2.11
Build: sparc-sun-solaris2.11
Known to work:
Known to fail:
Last reconfirmed: 2010-01-25 14:55:01


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2009-09-30 17:09:04 UTC
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)
Comment 1 Andrew Pinski 2009-09-30 17:18:46 UTC
The easy fix is to change the inline-asm strings to "".
Comment 2 Rainer Orth 2010-01-25 14:54:26 UTC
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

Comment 3 Rainer Orth 2010-01-25 14:55:01 UTC
Mine.
Comment 4 Rainer Orth 2010-01-25 14:56:08 UTC
Fixed for 4.5.0:

  http://gcc.gnu.org/ml/gcc-patches/2010-01/msg01255.html