bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] gawk 4.1.4 is not 100% ANSI


From: REIX, Tony
Subject: [bug-gawk] gawk 4.1.4 is not 100% ANSI
Date: Tue, 25 Oct 2016 07:48:32 +0000

Hi,

We compile gawk on AIX, with the IBM xlc compiler, with -O2.
Something like:

DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ./depcomp \
/usr/vac/bin/xlc_r -DDEFPATH='".:/opt/freeware/share/awk"' -DHAVE_CONFIG_H -DGAWK \
   -DLOCALEDIR='"/opt/freeware/share/locale"' -I.   -I/opt/freeware/include \
   -O2  -D_LARGE_FILES -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1 -c array.c


With version 4.0.0, all tests but 4 are OK.

With version 4.1.4, all tests fail due to a core dump.


By default, the /usr/vac/bin/xlc compiler makes use of: -qalias=ansi .
That means that the compiler expects the code to be 100% ANSI, and thus it does optimizations that rely on this.

When adding: -qalias=noansi to the xlc command, all tests but 6 do succeed.


So, it seems to us that the changes from version 4.0.0 to 4.1.4 has added some not-ANSI code, preventing optimizations to be used.


Regards,

Tony


reply via email to

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