Waldek Hebisch wrote:
It appears that an old (http://www.gnu-pascal.de/crystal/gpc/en/mail11093.html) or similar problem has reappeared, but this thime with gp
<snip>
This seems to be caused by the -E flag
[G5:gpc/testgpc/adriaan] adriaan% gpc --gnu-pascal -O1 -Wuninitialized hello.pas -E gpc1: warning: -Wuninitialized is not supported without -O
The patch below should fix this (I forgot to pass -O when using -E)
--- gpc/p/lang-specs.h.bb 2005-11-17 01:19:05.394171816 +0100 +++ gpc-20051116/p/lang-specs.h 2005-11-17 01:31:32.740557896 +0100 @@ -62,11 +62,11 @@ %{!fsyntax-only:%(invoke_as)} }}}", 0}, #endif "gpc1 %{E:-E %{!M:%(cpp_unique_options) %1 %{m*} %{f*&W*&pedantic*} %{w} "
- "%(cpp_debug_options)}}"
- "%(cpp_debug_options) %{O*}}}" "%{M:%(cpp_unique_options) %1 %{m*} %{f*&W*&pedantic*} %{w}"
- "%(cpp_debug_options)}"
- "%(cpp_debug_options) %{O*}}" "%{!E:%{!M:%{save-temps:-E %(cpp_unique_options) %1 %{m*} "
- "%{f*&W*&pedantic*} %{w} -o %b.i \n\
- "%{f*&W*&pedantic*} %{w} %{O*} -o %b.i \n\ gpc1 -fpreprocessed %b.i} %{!save-temps:%(cpp_unique_options)} \ %(cc1_options)\ %{!famtmpfile*:%eInternal GPC problem: internal option
`--amtmpfile' not given}\
Fixes the problem, thanks.
Regards,
Adriaan van Os