Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-21 Thread Julian H. Stacey
Hi, Alexander Kabaev wrote: On Wed, Jul 20, 2011 at 2:04 PM, Julian H. Stacey j...@berklix.com wrote: Hi John all, SKIP It is not just the crt files that matter, but every library.  You would need CPU-specific versions of every static library on the build system, Would be

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-21 Thread Julian H. Stacey
Hi freebsd-toolch...@freebsd.org, freebsd-i...@freebsd.org cc: freebsd-hackers@freebsd.org Sun Jul 17 01:19:37 UTC 2011 I wrote to freebsd-hackers@ with Subject: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586 Summary: I found a problem with CFLAGS += -march=i586 on an i686

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-21 Thread Dimitry Andric
On 2011-07-21 14:17, Julian H. Stacey wrote: Summary: I found a problem with CFLAGS += -march=i586 on an i686 linking a crt.o for an i686, then not running on an i586, IMHO this is a bit of a PEBKAC issue. If you change CPUFLAGS to target a specific CPU, you should really rebuild all of

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-21 Thread Warner Losh
On Jul 20, 2011, at 9:13 AM, John Baldwin wrote: I think this is a harder problem than you expect. It is not just the crt files that matter, but every library. You would need CPU-specific versions of every static library on the build system, and possibly you would want to do this for all

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread Julian H. Stacey
Hi Dan cc list Dan Nelson wrote: In the last episode (Jul 17), Julian H. Stacey said: Hi all, ENVIRONMENT: Standard gcc version 4.2.1 20070719 [FreeBSD] that comes with FreeBSD 7.4-RELEASE on my 686 host with CFLAGS += -march=i586 in

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread John Baldwin
On Wednesday, July 20, 2011 7:33:26 am Julian H. Stacey wrote: What should FreeBSD do ? Add a comment to man gcc ... that -march=i586 is not enough, feed the comment back to gcc project see how they want to handle it ? No, this is not a GCC bug. If you want to use a

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread Julian H. Stacey
Hi, Reference: From: John Baldwin j...@freebsd.org Date: Wed, 20 Jul 2011 07:48:05 -0400 Message-id: 201107200748.05786@freebsd.org John Baldwin wrote: On Wednesday, July 20, 2011 7:33:26 am Julian H. Stacey wrote: What should FreeBSD do ? Add a comment to

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread Julian H. Stacey
Even if we're too lazy to do anything more, we should at least document it as a patch to man gcc. PS Please no one take offense at word Lazy I'm as lazy as the next man. A good engineer can be a lazy engineer, - if he works to max efficiency :-) Cheers, Julian -- Julian Stacey, BSD Unix Linux

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread Andriy Gapon
on 20/07/2011 15:34 Julian H. Stacey said the following: Even if we're too lazy to do anything more, we should at least document it as a patch to man gcc. Talk to GCC people now? -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread John Baldwin
On Wednesday, July 20, 2011 8:34:57 am Julian H. Stacey wrote: Hi, Reference: From: John Baldwin j...@freebsd.org Date: Wed, 20 Jul 2011 07:48:05 -0400 Message-id: 201107200748.05786@freebsd.org John Baldwin wrote: On Wednesday, July 20, 2011 7:33:26

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-20 Thread Julian H. Stacey
Hi John all, On Wednesday, July 20, 2011 8:34:57 am Julian H. Stacey wrote: Hi, Reference: From: John Baldwin j...@freebsd.org Date: Wed, 20 Jul 2011 07:48:05 -0400 Message-id: 201107200748.05786@freebsd.org John Baldwin wrote: On

Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-16 Thread Julian H. Stacey
Hi all, ENVIRONMENT: Standard gcc version 4.2.1 20070719 [FreeBSD] that comes with FreeBSD 7.4-RELEASE on my 686 host with CFLAGS += -march=i586 in /etc/make.conf used with cd /usr/src/bin/who ; make clean ; make cleandir ; make clean ;

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-16 Thread Dan Nelson
In the last episode (Jul 17), Julian H. Stacey said: Hi all, ENVIRONMENT: Standard gcc version 4.2.1 20070719 [FreeBSD] that comes with FreeBSD 7.4-RELEASE on my 686 host with CFLAGS += -march=i586 in /etc/make.conf used with cd