[PATCH] Re: Glibc broken for ia64
Roland McGrath
roland@redhat.com
Wed Jan 15 01:36:00 GMT 2003
> Ok, testing revealed a problem.
> With
> #ifdef USE_TLS
> MULTIPLE_THREADS_OFFSET offsetof (struct _pthread_descr_struct, p_header.data.multiple_threads) - sizeof (struct _pthread_descr_struct)
> #else
> MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
> #endif
> in the .sym file we try to compile
> #ifdef USE_TLS
> void dummy(void) {
> asm ("@@@name@@@MULTIPLE_THREADS_OFFSET@@@value@@@%0@@@end@@@" : : "i" (something));
> #else
> asm ("@@@name@@@MULTIPLE_THREADS_OFFSET@@@value@@@%0@@@end@@@" : : "i" (somethingelse));
> #endif
> }
Yeah, I noticed that at the start and never did anything about it. I think
having an explicit non-kludge separator between the includes and the
expressions is fine, either your patch or just something like:
$1 == "--" { next }
There is no reason to pass anything like comments through, it's just an
intermediate file.
More information about the Libc-hacker
mailing list