glibc problems with snapshot

Tamás Gergely gertom@rgai.hu
Mon Mar 17 16:27:00 GMT 2003



Andreas Schwab wrote:
> Fergus Henderson <fjh@cs.mu.OZ.AU> writes:
> 
> |> > - How can I get the snapshot to compile glibc?
> |> 
> |> Change the glibc sources to use a different identifier, e.g.
> |> "__thread_param", instead of "__thread".
> 
> That has already been fixed in the current glibc release.
> 
> Andreas.
> 

Thanks!

I have another problem, now with glibc-2.3.2: the gcc snapshot fails:

In file included from ../linuxthreads/sysdeps/pthread/sigaction.c:53,
                  from ../linuxthreads/sysdeps/pthread/sigaction.c:53,
                  from ../linuxthreads/sysdeps/pthread/sigaction.c:29:
../sysdeps/unix/sysv/linux/arm/sigaction.c: In function `__libc_sigaction':
../sysdeps/unix/sysv/linux/arm/sigaction.c:100: error: asm-specifier for 
variable `_a1' conflicts with asm clobber list
../sysdeps/unix/sysv/linux/arm/sigaction.c:139: error: asm-specifier for 
variable `_a1' conflicts with asm clobber list

The preprocessed input is:

result = ({ unsigned int _sys_result = ({ unsigned int _sys_result; { 
register int _a1 asm ("a1"); register int _a4 asm ("a4") = (int) (64 / 8); 
register int _a3 asm ("a3") = (int) (oact ? (&koact) : ((void *)0)); 
register int _a2 asm ("a2") = (int) (act ? (&kact) : ((void *)0)); _a1 = 
(int) (sig); asm volatile ("swi	%1	@ syscall " "rt_sigaction" : "=r" (_a1) : 
"i" (((0x900000 +174))) , "r" (_a1), "r" (_a2), "r" (_a3), "r" (_a4) : "a1", 
"memory"); _sys_result = _a1; } (int) _sys_result; }); if (__builtin_expect 
(((unsigned int) (_sys_result) >= 0xfffff001u), 0)) { ((*__errno_location 
()) = ((-(_sys_result)))); _sys_result = (unsigned int) -1; } (int) 
_sys_result; });

I found the error message in gcc-20030310/gcc/stmt.c. It's comment is:

/* Conflicts between asm-declared register variables and the clobber
    list are not allowed.  */

gcc-3.2 does not have this check, and it passes this source. Could anyone 
tell me how to correct the problem (or explain what is the problem exactly)?

gertom

-- 
**************************************************************************
* Gergely TamĂĄs                                    e-mail:gertom@rgai.hu *
* ICQ:104783919                                    http://gertom.rgai.hu *
**************************************************************************



More information about the Gcc-help mailing list