gcc 3.3 fix for 2.4

Hollis Blanchard hollisb at us.ibm.com
Wed Sep 17 01:46:31 EST 2003


On Thursday, Sep 11, 2003, at 14:26 US/Central, Hollis Blanchard wrote:
>
> 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.

Hi Paul, I haven't seen you comment on this patch. Without it, one
cannot build ameslab 2.4 with gcc 3.3.1, and I've been told you're the
person to review it. I know Anton has something similar. Could the 2.4
tree be fixed for gcc 3.3.1?

--
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/20030916/8988e664/attachment.obj 


More information about the Linuxppc64-dev mailing list