re PR target/55712 (cpuinfo.c doesn't compile for x86-64 with medium memory model)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 3 Jan 2013 17:16:08 +0000 (18:16 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 3 Jan 2013 17:16:08 +0000 (18:16 +0100)
commitbb664f09f774164415abc2eccd6e1052e6ddb3c0
treed62b57e5e7741281f539bb6486428f328cc1f7b6
parent49c01f87ba0b28fa7021d75bfd4b68a75f15ab48
re PR target/55712 (cpuinfo.c doesn't compile for x86-64 with medium memory model)

PR target/55712
* config/i386/i386-c.c (ix86_target_macros_internal): Depending on
selected code model, define __code_mode_small__, __code_model_medium__,
__code_model_large__, __code_model_32__ or __code_model_kernel__.
* config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
xchg temporary register with %k.  Declare temporary register as
early clobbered.
[__x86_64__]: For medium and large code models, preserve %rbx register.

From-SVN: r194862
gcc/ChangeLog
gcc/config/i386/cpuid.h
gcc/config/i386/i386-c.c