Skip to content

Commit

Permalink
Avoid compiler complaints from Transmeta Crusoe detection on x86 builds
Browse files Browse the repository at this point in the history
Multi-character character constants are implementation defined, and
while it MAY be reliable enough on i386 gcc, even that produces a
warning. I don't have a test-Robinson here so rather than risk a
conversion to string comparison like the other is_arch() tests are,
just write out the integer and leave the character constant as a
reference comment.
  • Loading branch information
pmatilai committed Nov 27, 2023
1 parent c90a7e1 commit a5af04b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpmrc.c
Expand Up @@ -908,8 +908,8 @@ static inline int RPMClass(void)
cpu = (tfms>>8)&15;

if (cpu == 5
&& cpuid_ecx(0) == '68xM'
&& cpuid_edx(0) == 'Teni'
&& cpuid_ecx(0) == 0x3638784d /* '68xM' */
&& cpuid_edx(0) == 0x54656e69 /* 'Teni' */
&& (cpuid_edx(1) & ((1<<8)|(1<<15))) == ((1<<8)|(1<<15))) {
sigaction(SIGILL, &oldsa, NULL);
return 6; /* has CX8 and CMOV */
Expand Down

0 comments on commit a5af04b

Please sign in to comment.