🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #5960

Re: fix-header bug in gcc-2.7.2.1

#5960
From: Le Duc T.
Date: Tue, 14 Jan 1997 00:00
31 lines
1910 bytes
Hi,

> Well, it is not clear what the problem is.
> You can use gcc -v to look at the flags passed to cpp,
> and also look at the cpp output.  (The output is supposed
> to include certain magic number codes following the source file
> name # line in the output.  I don't remember the details,
> but you figure it out.)
> 
> The "fix" you suggested is unlikely to happen, the current situation
> works for most people.  Without understanding why it does not work for
> you, I would be against changing it (since it would slow down
> installation, and make useless extra "fixed" #include files).
> But then it is not my decision, since I no longer work on g++ or
> cpp.

I looked a little more and found that the standard include directories
you mention are hard-coded in cpplib.c and a few others as
#define STANDARD_INCLUDE_DIR /usr/include    and
#define LOCAL_INCLUDE_DIR /usr/local/include

Apparently, if the #define 's are not defined, then the above values
are used. But, there is no reference either #define 's in the Makefile.
Shouldn't those #define come from --exec-prefix ? or derived somehow
from it? Because, the standard directories you mention will always
be /usr/include and /usr/local/include which, of course, may not
always be the case. :)))

Duc T. Le
email: led@eiws.esid.northgrum.com
Technical Details
Message-ID: <m0vkJi3-0002ncC@coltrane.eiws.esid.northgrum.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,a9c26189247badb2
X-Google-Attributes: gid113d02,public
From: led@eiws.esid.northgrum.com (Le Duc T.)
Subject: Re: fix-header bug in gcc-2.7.2.1
Date: 1997/01/14
Message-ID: <m0vkJi3-0002ncC@coltrane.eiws.esid.northgrum.com>
X-Deja-AN: 209884451
sender: bug-gcc-request@prep.ai.mit.edu
content-type: text/plain; charset=US-ASCII
x-gateway: relay3.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 14 Jan 1997 20:05:01 EST
mime-version: 1.0
newsgroups: gnu.gcc.bug
x-mailer: ELM [version 2.4 PL24 PGP2]