Passing -auxbase to cc1 thru gcc
Clifford Wolf
clifford@clifford.at
Wed Sep 22 15:36:00 GMT 2004
Hi,
I'm using gcc 3.4.2 and I have the following problem with it:
Usually the -auxbase option to cc1 is autogenerated from the specs file. So
e.g. the gcc call "gcc-34 -v -fprofile-arcs demo.c" results in something
such as:
/usr/libexec/gcc/i386-unknown-linux-gnu/3.4.2/cc1 -quiet -v demo.c -quiet \
-dumpbase demo.c -auxbase demo -version -fprofile-arcs -o /tmp/ccTzVYVe.s
The "-auxbase demo" is added from the specs file:
%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}}
So I want to set my own auxbase using something like:
gcc-34 -v -auxbase /tmp/myprofile/demo -fprofile-arcs demo.c
But this is then converted by gcc to:
gcc-34: /tmp/myprofile/demo: No such file or directory
/usr/libexec/gcc/i386-unknown-linux-gnu/3.4.2/cc1 -quiet -v demo.c -quiet \
-dumpbase demo.c -auxbase -auxbase demo -version-fprofile-arcs -o /tmp/ccezahKk.s
So, because gcc doesn't know -auxbase it just passes it thru to cc1. But
since it doesn't know that -auxbase takes an argument, it simply thinks
that /tmp/myprofile/demo is just another source file..
Should setting -auxbase from the gcc command line be supported? (I've found
the option from reading the gcc sources - there seams to be no
documentation about it.)
Am I doing something wrong or is that a bug in gcc?
yours,
- clifford
--
____ ___ ____ _ __ _ _ www.rocklinux.org
| _ \ / _ \ / ___| |/ / | | (_)_ __ _ ___ __
| |_) | | | | | | ' / | | | | '_ \| | | \ \/ /
| _ <| |_| | |___| . \ | |___| | | | | |_| |> < Clifford Wolf
|_| \_\\___/ \____|_|\_\ |_____|_|_| |_|\__,_/_/\_\ www.clifford.at
To understand recursion, you must first understand recursion.
More information about the Gcc
mailing list