[PATCH] fix sparc build with current gcc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] fix sparc build with current gcc

Jakub Bogusz

Recent versions of gcc have a limit of 30 (not 10) arguments to asm
statement, so there is no need to "fool" gcc using register variables
and clobber lists in order to pass 12 arguments, as it's done in
Current gcc (from 4.2.0 branch) even don't accept clobbering of register
reserved for variable, refusing to compile this code.

With attached patch glibc builds with gcc 4.2.0 snapshot and
math/test-ldouble is passed on sparc.

Jakub Bogusz    http://qboosh.pl/

glibc-sparc-softfp-gcc.patch (2K) Download Attachment