gcc 3.3 fix for 2.4

Hollis Blanchard hollisb at us.ibm.com
Fri Sep 12 05:26:46 EST 2003

On Thursday, Sep 11, 2003, at 08:22 US/Central, Dave Engebretsen wrote:

> I put this change into 2.4 BK.  Thanks Hollis.

Thanks Dave. :)

I forgot to mention I had to backport some of the 2.5 unistd.h to 2.4,
because gcc 3.3.1 didn't like it. Specifially the error was:
	/home/hollis/source/linuxppc64-2.4/include/asm/unistd.h:442: error:
asm-specifier for
	variable `__sc_4' conflicts with asm clobber list
[varied maybe 50 times]

This patch (which I hadn't really tested yesterday, which is why I
didn't send it then) backports the gcc3-friendly inline asm from 2.5's
unistd.h, apparently originally from Franz Sirl.

With this patch applied, I can build with gcc 3.3.1 (and the resulting
kernel seems to work, though I didn't do anything like run LTP), so if
it's acceptable please apply.

Hollis Blanchard
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc3-syscalls.diff
Type: application/octet-stream
Size: 8579 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20030911/9db30acb/attachment.obj 

More information about the Linuxppc64-dev mailing list