🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1410

-I option differences

#1410
From: Stan Schneider
Date: Mon, 16 Nov 1992 23:50
36 lines
1728 bytes
Hi Gnu Gurus,


There appears to have been a suble change in gcc's include file behavior.  The
compile options:

	-Idira -Idirb

    with file structure:

	dira:
	   foo.h
	dirb:
	   foo.h fooinclude.h

Yields different results under 2.x that differ from 1.37x.  In particular, if
fooinclude.h contains `#include "foo.h"', and your source includes
"fooinclude.h", then under 1.37x, you would get dira/foo.h (in the order of the
options), under 2.x you get dirb/foo.h (the "current" directory has
precedence).

Was this intended?  Adding the options "-I- -I." doesn't really fix the
"problem"; that fails when you compile source from a subdirectory.

Thanks for your time,

        -- Stan


===============================================================================
=                                           =                                 =
=   Stan Schneider                          =   email: stan@rti.com           =
=   Real-Time Innovations, Inc.             =   Phone: (408) 720-8312         =
=   954 Aster, Sunnyvale, CA 94086          =   Fax:   (408) 720-8419         =
=                                           =                                 =
===============================================================================
Technical Details
Message-ID: <9211162350.AA14442@rti.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rti.COM!stan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rti.COM!stan
From: stan@rti.COM (Stan Schneider)
Subject: -I option differences
Message-ID: <9211162350.AA14442@rti.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 16 Nov 1992 23:50:49 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 38