* [PATCH] Fix i386 sysconf at -O3
@ 2006-11-09 23:29 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2006-11-09 23:29 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
Hi!
At least with GCC 4.1.x and -O3 the register pressure on i?86 is too
high with all the inline asm for cpuid.
The following patch cures it and is IMHO desirable anyway, intel_check_word
is quite big and it is wasteful to replicate it 3 times.
2006-11-10 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
noinline attribute.
--- libc/sysdeps/unix/sysv/linux/i386/sysconf.c 2006-11-09 23:07:15.000000000 +0100
+++ libc/sysdeps/unix/sysv/linux/i386/sysconf.c 2006-11-09 23:07:15.000000000 +0100
@@ -139,7 +139,7 @@ intel_02_known_compare (const void *p1,
}
-static long int
+static long int __attribute__ ((noinline))
intel_check_word (int name, unsigned int value, bool *has_level_2,
bool *no_level_2_or_3)
{
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-09 23:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-09 23:29 [PATCH] Fix i386 sysconf at -O3 Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).