RE: -fno-strict-aliasing problem in the latest 2.3

2 messages, 2 authors, 2000-02-17 · open the first message on its own page

RE: -fno-strict-aliasing problem in the latest 2.3

From: Harald Koerfgen <hidden>
Date: 2000-02-16 18:20:42

Hi,

On 15-Feb-00 Gleb O. Raiko wrote:
There is a problem with the way main Makefile determines whether the
compiler suports -fno-strict-aliasing. Namely, Makefile blindly gets $CC
and tries to feed this option to it. Unfortunately, we set CC to proper
mips[el]-linux-gcc later in arch/mips/Makefile, so the main Makefile
just checks against native gcc. On RH6.1 with latest cross tool rpms
installed, I get cc1: Invalid option `-fno-strict-aliasing' during
comppilation, obviously.
I am not exactly shure if it has ill side effects or if this may not be wanted
for some reason, but the attached patch fixes that for me.

OK to commit?
---
Regards,
Harald

Re: -fno-strict-aliasing problem in the latest 2.3

From: Ralf Baechle <hidden>
Date: 2000-02-17 16:38:08

On Wed, Feb 16, 2000 at 07:03:19PM +0100, Harald Koerfgen wrote:
On 15-Feb-00 Gleb O. Raiko wrote:
quoted
There is a problem with the way main Makefile determines whether the
compiler suports -fno-strict-aliasing. Namely, Makefile blindly gets $CC
and tries to feed this option to it. Unfortunately, we set CC to proper
mips[el]-linux-gcc later in arch/mips/Makefile, so the main Makefile
just checks against native gcc. On RH6.1 with latest cross tool rpms
installed, I get cc1: Invalid option `-fno-strict-aliasing' during
comppilation, obviously.
I am not exactly shure if it has ill side effects or if this may not be wanted
for some reason, but the attached patch fixes that for me.

OK to commit?
Yes, my solution is identical, so who commits first commits first :)

  Ralf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help