Re: Small change in NSObject.m ASM needed for PowerPC build
Sorry, no idea, why this fails for me. "uname -a" give this result: Linux hugo 2.6.27.21-0.1-pae #1 SMP 2009-03-31 14:50:44 +0200 i686 i686 i386 GNU/Linux But I don't know what gcc relies on. I also read somewhere that you have to use the link flag "-lgcc" to use the new build in functions, but this may be for the not so well supported platforms. Really no idea, Fred David Chisnall wrote: > Checking the ISA reference, it appears that the required atomic > instructions appeared in the 486, so -march=486 should work. I have an > almost identical patch applied locally and it builds correctly with no > modifications to the GNUmakefile, so I'm slightly confused as to why > this fails for Fred. > > David > > On 3 May 2009, at 02:53, Stefan Bidigaray wrote: > >> On Sat, May 2, 2009 at 4:10 PM, David Chisnall wrote: >> On i386, you need -march=i586 or higher for this to work. The >> existing code will break at runtime, rather than link time, on an >> 80486 and earlier, and so I assume (from the fact no one has >> complained) that no one is using GNUstep on a 386/486. >> >> Are you sure about that? Cause I've built GNUstep multiple time with >> the script here: >> http://slackbuilds.org/slackbuilds/12.2/libraries/gnustep-base/gnustep-base.SlackBuild >> >> And have never had a problem. (Note that the default will build with >> -march=486) >> >> Stefan > ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Small change in NSObject.m ASM needed for PowerPC build
On 3 May 2009, at 17:26, Riccardo Mottola wrote: David Chisnall wrote: On i386, you need -march=i586 or higher for this to work. The existing code will break at runtime, rather than link time, on an 80486 and earlier, and so I assume (from the fact no one has complained) that no one is using GNUstep on a 386/486. Well, how old is that code? Up to about a year ago I built and used GNUstep on a 486-class machine, although the CPU was not genuine intel but a compatible processor which was based on 488 ISA, it did work... As I said in my other email, I was mistaken about when the atomic ops were introduced. They should work with -march=486, not just - march=586 - it works for me with no manually-set CFLAGS or modified GNUmakefile, on GCC 4.2. David ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Small change in NSObject.m ASM needed for PowerPC build
David Chisnall wrote: On i386, you need -march=i586 or higher for this to work. The existing code will break at runtime, rather than link time, on an 80486 and earlier, and so I assume (from the fact no one has complained) that no one is using GNUstep on a 386/486. Well, how old is that code? Up to about a year ago I built and used GNUstep on a 486-class machine, although the CPU was not genuine intel but a compatible processor which was based on 488 ISA, it did work... Riccardo ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Small change in NSObject.m ASM needed for PowerPC build
Checking the ISA reference, it appears that the required atomic instructions appeared in the 486, so -march=486 should work. I have an almost identical patch applied locally and it builds correctly with no modifications to the GNUmakefile, so I'm slightly confused as to why this fails for Fred. David On 3 May 2009, at 02:53, Stefan Bidigaray wrote: On Sat, May 2, 2009 at 4:10 PM, David Chisnall wrote: On i386, you need -march=i586 or higher for this to work. The existing code will break at runtime, rather than link time, on an 80486 and earlier, and so I assume (from the fact no one has complained) that no one is using GNUstep on a 386/486. Are you sure about that? Cause I've built GNUstep multiple time with the script here: http://slackbuilds.org/slackbuilds/12.2/libraries/gnustep-base/gnustep-base.SlackBuild And have never had a problem. (Note that the default will build with -march=486) Stefan ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev