egcs-1.0.2 stuff

Richard Hadsell hadsell@blueskystudios.com
Mon Feb 9 15:33:00 GMT 1998


Jeffrey A Law wrote:
> 
>   * Other critical bugfixes that I've missed (such as...?)

This is not critical, but it is so simple, it will be annoying to not
see it get into your compiler:

[Re: egcs-1.0.1 can't find headers in -I./]

Richard Hadsell writes:
 > It seems that egcs-1.0.1 does not recognize -I./ as the current
 > directory.  This was true of egcs-1.0 as well.  -I. works fine.  It
 > would be nice to get -I./ working, because we have some make rules
that
 > generate the include path automatically from discovered header files,
 > and they give "./" as the directory for any header file that is named
 > without a path.
 > 
 > I think that this test case is telling us that it misinterprets
"-I./"
 > as "-I/":

Here is a fix for the above problem.  In cccp.c the diff of
cccp.c.orig  and cccp.c (fixed file) is :

9815c9815
<     if (dir->fname[len - 1] != '/') {
---
>     if (len && dir->fname[len - 1] != '/') {

-- 
Dick Hadsell			914-381-8400  Fax: 914-381-9790
Reply-to:			hadsell@blueskystudios.com
Blue Sky | VIFX			http://www.blueskystudios.com
1 South Road, Harrison, NY 10528



More information about the Gcc mailing list