Hi,

I have some question on gcc driver.

Whenever we invoke gcc, it'll pass some default options to the
compiler, assembler linker etc. But if i dont want to pass all these
default options but only some of them, what should i do?

For eg: gcc will pass the following option to cc1

/usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1 -quiet -v test.c -quiet
-dumpbase test.c -mtune=generic -auxbase test -version -o
/tmp/ccM89Tz7.s

and to "as"

 as -V -Qy -o /tmp/ccP6YP4n.o /tmp/ccM89Tz7.s

Now i dont want to generate "-o /tmp/ccM89Tz7.s" instead i want to
generate "/tmp/ccM89Tz7.sl" and this generated ".sl" should be picked
by my assembler and it should generate the o/p with ".ol" extension.

as -V -Qy -o /tmp/ccP6YP4n.ol /tmp/ccM89Tz7.sl

Also if i give "-S" switch, it should generate the the output with the
".sl" extension instead of  ".s".

Is this possible to do it in "gcc/config/<target>.h" or do i need to
write a separate spec file.

Please help me out.


Thanks,
Vikram

Reply via email to