bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bug report: sort.c or AIX compiler


From: Lemley James - jlemle
Subject: RE: Bug report: sort.c or AIX compiler
Date: Mon, 21 Nov 2005 11:57:35 -0600

Paul Eggert writes:
> The basic idea
> here is that coreutils will attempt to detect the problem, and pass
> the -qlanglvl=extc89 option to IBM's compiler.  (It will pass
> -qlanglvl=ansi to older versions of IBM's compilers.)  I assume this
> will work around the problem; if not, please let me know.

It does work the way you expect; this test is with _Bool as the datatype
for b. 

% cc -qlanglvl=extc89 test.c -o test
% ./test
d is ffffffffffff669
-2 + b is -1 (should be -1)
&d[-1] is ffffffffffff668
&c[4] is ffffffffffff668
&d[-2 + b] is ffffffffffff668
&d[-2 + b] == &c[4] (OK)


Thanks! 
*************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.

If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank you.
*************************************************************************




reply via email to

[Prev in Thread] Current Thread [Next in Thread]