This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/55712] New: cpuinfo.c doesn't compile for x86-64 with medium memory model
- From: "leif at rdos dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Dec 2012 09:29:50 +0000
- Subject: [Bug libgcc/55712] New: cpuinfo.c doesn't compile for x86-64 with medium memory model
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55712
Bug #: 55712
Summary: cpuinfo.c doesn't compile for x86-64 with medium
memory model
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: leif@rdos.net
Building libgcc with a cross-compiler for x86-64, with -fpic and
-mcmodel=medium switches fails.
Error messages:
../../gcc-work/libgcc/. -I../../../gcc-work/libgcc/../gcc
-I../../../gcc-work/libgcc/../include
-DHAVE_CC_TLS -o cpuinfo.o -MT cpuinfo.o -MD -MP -MF cpuinfo.dep -c
../../../gcc-work/libgcc/config/i386/cpuinfo.c -fvisibility=hidden
-DHIDE_EXPORTS
In file included from ../../../gcc-work/libgcc/config/i386/cpuinfo.c:21:0:
../../../gcc-work/libgcc/config/i386/cpuinfo.c: In function
'get_available_features':
../../../gcc-work/libgcc/config/i386/cpuinfo.c:236:7: error: inconsistent
operand constraints in an 'asm'
__cpuid_count (7, 0, eax, ebx, ecx, edx);
^
../../../gcc-work/libgcc/static-object.mk:17: recipe for target `cpuinfo.o'
failed
make[1]: *** [cpuinfo.o] Error 1
make[1]: LÃmnar katalogen "/usr/src/build-gcc-noheader/rdos/libgcc"
Makefile:10619: recipe for target `all-target-libgcc' failed
make: *** [all-target-libgcc] Error 2