This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Small feature for gcc


mike stump <mrs@windriver.com> writes:

|> > From: "Rupert Wood" <me@rupey.net>
|> > To: "'mike stump'" <mrs@windriver.com>
|> > Cc: <980611bb@hogent.be>, <gcc@gnu.org>
|> > Date: Tue, 7 May 2002 18:57:08 +0100
|> 
|> > He might have meant without all the cruft so he could backtick it, e.g.:
|> 
|> >     for _d in `gcc -print-include-search`; do
|> >         if [ -f $_d/stdio.h ]; then
|> >             STDIO_PATH=$_d/stdio.h
|> >             break
|> >         fi
|> >     done
|> 
|> > I can't think of a good reason why you'd want to do that, though.
|> 
|> $ echo "#include <stdio.h>" | gcc -E -  | sed -n 2p | cut -d\  -f3
|> "/folk/mrs/packages/gcc-20010413/lib/gcc-lib/sparc-sun-solaris2.7/3.1/include/stdio.h"

Hmm...

$ echo "#include <stdio.h>" | gcc -E -  | sed -n 2p | cut -d\  -f3
"<built-in>"

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]