Bug 35239 - [4.3 Regression] Build failure when host cc is GCC-2.95.3 or earlier
Summary: [4.3 Regression] Build failure when host cc is GCC-2.95.3 or earlier
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P1 normal
Target Milestone: 4.3.0
Assignee: Jakub Jelinek
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build
Depends on:
Blocks:
 
Reported: 2008-02-17 21:44 UTC by gschafer
Modified: 2008-02-19 13:41 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2008-02-19 13:27:30


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gschafer 2008-02-17 21:44:17 UTC
The build/bootstrap fails in driver-1386.c due to cpuid changes:

/tmp/ccWPtRYo.s: Assembler messages:
/tmp/ccWPtRYo.s:1895: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1896: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1897: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1898: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1899: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1900: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1901: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1902: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1903: Error: invalid character '{' in mnemonic
/tmp/ccWPtRYo.s:1904: Error: invalid character '{' in mnemonic

The older GCC apparently doesn't grok the asm syntax. More information in the thread starting here:

http://gcc.gnu.org/ml/gcc/2008-02/msg00315.html

Failing to build from 2.95.3 is quite serious so I suggest a high priority for this one. Thanks.
Comment 1 Richard Biener 2008-02-17 21:55:16 UTC
Confirmed.
Comment 2 Richard Biener 2008-02-17 22:32:37 UTC
Intel assembler syntax was introduced with GCC 3.0.
Comment 3 Jakub Jelinek 2008-02-19 13:35:15 UTC
Subject: Bug 35239

Author: jakub
Date: Tue Feb 19 13:34:29 2008
New Revision: 132430

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132430
Log:
	PR target/35239
	* config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
	32-bit inline asm without asm alternatives for host GCC < 3.0.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/cpuid.h

Comment 4 Jakub Jelinek 2008-02-19 13:36:00 UTC
Subject: Bug 35239

Author: jakub
Date: Tue Feb 19 13:35:11 2008
New Revision: 132431

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132431
Log:
	PR target/35239
	* config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
	32-bit inline asm without asm alternatives for host GCC < 3.0.

Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/config/i386/cpuid.h

Comment 5 Jakub Jelinek 2008-02-19 13:41:45 UTC
Fixed on the trunk and 4.3.