public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search
@ 2006-04-12 19:10 trt at acm dot org
2006-04-12 20:18 ` [Bug preprocessor/27137] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: trt at acm dot org @ 2006-04-12 19:10 UTC (permalink / raw)
To: gcc-bugs
The -I option inhibits the use of the current file directory as the first
search directory for #include "file". This is important for software
development which uses partially populated source trees for which the build
"looks through" other trees to find the missing pieces.
Without -I- gcc should offer something like the IBM xlc -qidirfirst option:
Specifies the search order for files included with
the '#include' <file_name> directive. Use
-qidirfirst with the -I option. If -qidirfirst is
specified, the directories specified by the
-I<directory> option are searched before the
directory where the current file resides. The
default is -qnoidirfirst.
This is all we need, but over the last 10 years we have instead pushed vendors
to support the -I- option. It is sadly ironic that gcc deprecates it.
My employer does not use `nmake', but `nmake' has noticed this too:
http://www.bell-labs.com/project/nmake/newsletters/issue021.html
--
Summary: Without -I- gcc needs another way to defer source dir.
search
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trt at acm dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27137
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/27137] Without -I- gcc needs another way to defer source dir. search
2006-04-12 19:10 [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search trt at acm dot org
@ 2006-04-12 20:18 ` pinskia at gcc dot gnu dot org
2006-04-12 20:19 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-12 20:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-12 20:18 -------
What do you need exactly that -iquote or any of the -i* options provide?
Or even what this patch should provide:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01197.html
That adds an option to do what exactly -I- did except for not change the
behavior of -I* after -I-.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27137
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/27137] Without -I- gcc needs another way to defer source dir. search
2006-04-12 19:10 [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search trt at acm dot org
2006-04-12 20:18 ` [Bug preprocessor/27137] " pinskia at gcc dot gnu dot org
@ 2006-04-12 20:19 ` pinskia at gcc dot gnu dot org
2006-04-13 14:05 ` trt at acm dot org
2006-04-13 16:45 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-12 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-12 20:19 -------
If that patch does the trick for you, then this is a dup of bug 19541.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27137
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/27137] Without -I- gcc needs another way to defer source dir. search
2006-04-12 19:10 [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search trt at acm dot org
2006-04-12 20:18 ` [Bug preprocessor/27137] " pinskia at gcc dot gnu dot org
2006-04-12 20:19 ` pinskia at gcc dot gnu dot org
@ 2006-04-13 14:05 ` trt at acm dot org
2006-04-13 16:45 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: trt at acm dot org @ 2006-04-13 14:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from trt at acm dot org 2006-04-13 14:05 -------
The patch for bug 19541 should resolve this, thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27137
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/27137] Without -I- gcc needs another way to defer source dir. search
2006-04-12 19:10 [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search trt at acm dot org
` (2 preceding siblings ...)
2006-04-13 14:05 ` trt at acm dot org
@ 2006-04-13 16:45 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-13 16:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-04-13 16:45 -------
*** This bug has been marked as a duplicate of 19541 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27137
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-13 16:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-12 19:10 [Bug preprocessor/27137] New: Without -I- gcc needs another way to defer source dir. search trt at acm dot org
2006-04-12 20:18 ` [Bug preprocessor/27137] " pinskia at gcc dot gnu dot org
2006-04-12 20:19 ` pinskia at gcc dot gnu dot org
2006-04-13 14:05 ` trt at acm dot org
2006-04-13 16:45 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).