[Top][All Lists]

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

Bug in ax_cflags_warn_all on DEC/Compaq Tru64

From: Jeffrey Armstrong
Subject: Bug in ax_cflags_warn_all on DEC/Compaq Tru64
Date: Sun, 26 Jun 2016 13:29:45 +0000 (UTC)

I've run across a bug in the script ax_cflags_warn_all.m4 when testing on Tru64 (OSF/1) when using the Compaq C (previously Digital C) compiler. The script is meant to determine which flags to use to enable all warnings. On the platform described, it always selects the Intel flags for a very odd reason.

Compaq C, when it encounters an unknown flag starting with either "W" or "w," passes the flag to the linker when linking is requested. If the user is just compiling, no action is taken. Therefore, the C compiler will accept the flags "-warn all" which is Intel-specific. However, if linking were requested, an error is raised correctly.

In order to properly test the Compaq C compiler's accepted flag, linking has to be tested as well. Based on the most up-to-date version of ax_cflags_warn_all.m4, changing lines 81-82 from:

                     [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])


                     [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])

fixes the problem for Compaq C without actually causing any further problems on other compilers. A simple patch is included.

I realize Compaq C is a niche and obsolete system at this point, but the fix is neccesary to support the compiler.

I appreciate your time, and please let me know if I can provide any further information.

Jeff Armstrong - address@hidden
SDF Public Access UNIX System - http://sdf.lonestar.org

Attachment: ax_cflags_warn_all.ccc.patch
Description: Patch 1/1 for ax_cflags_warn_all.m4

reply via email to

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