You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Bojan Smojver <bo...@rexursive.com> on 2008/03/02 23:03:03 UTC
Re: Forcing -fno-strict-aliasing to all compiles breaks compiles
with xlc/xlc_r
On Fri, 2008-02-29 at 12:54 -0500, Chris Dukes wrote:
> xlc_r -qcpluscmt
Yeah, we should only use -fno-strict-aliasing with GCC.
--
Bojan
Re: Forcing -fno-strict-aliasing to all compiles breaks
compiles with xlc/xlc_r
Posted by Bojan Smojver <bo...@rexursive.com>.
On Fri, 2008-03-07 at 12:22 -0700, Chris Dukes wrote:
> Your test is including the '-c', allowing it to pass.
OK. After I sent the patch, I realised that you toolchain only had a
problem with the whole thing during the link phase. Sorry :-(
Can you try replacing AC_COMPILE_IFELSE in my patch with AC_LINK_IFELSE?
I just want to see if the test will produce the correct result. If it
does, I think the whole thing should be reworked to use both tests and
only if both pass use -fno-strict-aliasing.
--
Bojan
Re: Forcing -fno-strict-aliasing to all compiles breaks compiles with xlc/xlc_r
Posted by Chris Dukes <cd...@us.ibm.com>.
No joy.
xlc -fno-strict-aliasing -c -o conftest.o confest.c
will work
Follow that with
xlc -fno-strict-aliasing -c -o conftest conftest.o
and it'll error with
ld: 0706-005 Cannot find or open file: no-strict-aliasing
ld:fopen(): A file or directory in the path name does not exist.
This is because '-f' supposed to be passed to 'ld' by xlc on AIX.
Your test is including the '-c', allowing it to pass.
I think the root problem is being introduced with placing $CFLAGS in the
link invocation of libtool.
Unfortunately, this solution would lead to other problems if someone is
also making use of '-qipa' in optimization (Not that it makes much sense
for this package).
Thanks,
Chris Dukes
Bojan Smojver <bo...@rexursive.com>
03/02/2008 05:32 PM
To
Chris Dukes/Durham/Contr/IBM@IBMUS
cc
apreq-dev@httpd.apache.org
Subject
Re: Forcing -fno-strict-aliasing to all compiles breaks compiles with
xlc/xlc_r
On Mon, 2008-03-03 at 09:03 +1100, Bojan Smojver wrote:
> Yeah, we should only use -fno-strict-aliasing with GCC.
Can you let me know if this helps? You'll need to run buildconf, of
course...
--
Bojan
Re: Forcing -fno-strict-aliasing to all compiles breaks compiles
with xlc/xlc_r
Posted by Bojan Smojver <bo...@rexursive.com>.
On Mon, 2008-03-03 at 09:03 +1100, Bojan Smojver wrote:
> Yeah, we should only use -fno-strict-aliasing with GCC.
Can you let me know if this helps? You'll need to run buildconf, of
course...
--
Bojan