qcc bug?

following other people’s suggestions, I am trying to replace
gcc with qcc, g++ with QCC, while trying other open source projects.
Sometimes, I get those warnings:
cc: badly formed -W option, ignoring


Here is a test case:
bash-2.05a$ gcc -W -c test.c
bash-2.05a$ qcc -W -c test.c
cc: badly formed -W option, ignoring

Frank

fliu@bb.vipstage.com wrote:

following other people’s suggestions, I am trying to replace
gcc with qcc, g++ with QCC, while trying other open source projects.
Sometimes, I get those warnings:
cc: badly formed -W option, ignoring

For cc & qcc, -W is the pass-through command, allowing you to pass
an option through to one of the underlying phases of the compilation.

e.g.

-Wl,-s says to pass -s through to the linker phase.

What did the -W option do under gcc?

-David

Here is a test case:
bash-2.05a$ gcc -W -c test.c
bash-2.05a$ qcc -W -c test.c
cc: badly formed -W option, ignoring

Frank


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

%% David Gibbs <dagibbs@qnx.com> writes:

dg> fliu@bb.vipstage.com wrote:

following other people’s suggestions, I am trying to replace
gcc with qcc, g++ with QCC, while trying other open source projects.
Sometimes, I get those warnings:
cc: badly formed -W option, ignoring

dg> For cc & qcc, -W is the pass-through command, allowing you to pass
dg> an option through to one of the underlying phases of the compilation.

dg> e.g.

dg> -Wl,-s says to pass -s through to the linker phase.

dg> What did the -W option do under gcc?

-W turns on an extra set of warnings; different than -Wall.

Frank, you want to use qcc’s -Wc option to send the -W to the compiler,
like this:

-Wc,-W

I had to do something similar since qcc doesn’t support gcc’s -m* suite
of options; I needed this for my PPC compiles:

-Wc,-mstrict-align

HTH…

Paul D. Smith <pausmith@nortelnetworks.com> HASMAT–HA Software Mthds & Tools
“Please remain calm…I may be mad, but I am a professional.” --Mad Scientist

These are my opinions—Nortel Networks takes no responsibility for them.