On Thu, 25 Nov 2004, Adriaan van Os wrote:
......
So, it seems that -Wno-underscore is broken when used with --gnu-pascal.
I can't seem to reproduce it. Did you perhaps try the options the other way around (`-Wno-underscore --gnu-pascal')? Then it would be expected behaviour since options are generally processed from left to right, and `--gnu-pascal', among other things (cf. p/gpc-options.h), sets `-Wunderscore'.
No, I thought of that. I tried various orderings and various compiler builds, all with the same result. Would somebody be so kind to try it on another platform ?
Results on SuSE 9.1 (2.6.5-7.111-default) ----------------------------------------- [elb1] ~/tmp/pascal $ gpc NoUnderscore.pas NoUnderscore.pas:3: warning: identifiers should not start with an underscore [elb1] ~/tmp/pascal $ gpc NoUnderscore.pas -Wno-underscore [elb1] ~/tmp/pascal $ gpc NoUnderscore.pas --gnu-pascal -Wno-underscore NoUnderscore.pas:3: warning: identifiers should not start with an underscore [elb1] ~/tmp/pascal $ gpc -v Reading specs from /usr/gnu/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs Configured with: /tmp/root/install.gpc/gcc-3.3.3/configure --enable-languages=pascal --prefix=/usr/gnu Thread model: posix gpc version 20041017, based on gcc-3.3.3
The same results with: ---------------------- [elb3] ~/tmp/pascal $ gpc -v Reading specs from /usr/gnu/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs Configured with: /tmp/root/install.gpc/gcc-3.2.3/configure --enable-languages=pascal --prefix=/usr/gnu Thread model: posix gpc version 20040516, based on gcc-3.2.3
Ernst-Ludwig