This is the mail archive of the gcc-prs@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: preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include


The following reply was made to PR preprocessor/8505; it has been noted by GNATS.

From: stephane Carbillet <stephane.carbillet@Jaluna.COM>
To: stephane.carbillet@Jaluna.COM, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   zack@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
Date: Thu, 28 Nov 2002 16:29:20 +0100

 --------------2C5957D8A16FE6E380DAAF98
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Sorry the fix I proposed, was wrong.
 It works for me only by chance.
 The following patch seems to be a good fix.
 
 Stephane
 
 diff -ru gcc-3.2/gcc/cppdefault.c GCC/gcc/cppdefault.c
 --- gcc-3.2/gcc/cppdefault.c    Sat Sep 29 20:22:02 2001
 +++ GCC/gcc/cppdefault.c        Wed Nov 13 16:38:25 2002
 @@ -47,8 +47,10 @@
      /* /usr/local/include comes before the fixincluded header files.
 */
      { LOCAL_INCLUDE_DIR, 0, 0, 1 },
  #endif
 +#ifndef CROSS_COMPILE
  #ifdef PREFIX_INCLUDE_DIR
      { PREFIX_INCLUDE_DIR, 0, 0, 1 },
 +#endif
  #endif
  #ifdef GCC_INCLUDE_DIR
      /* This is the dir for fixincludes and for gcc's private headers.
 */
 
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8505
 
 --
 
 Project Jaluna : an Open Source Real-Time Operating System (RTOS), royalty-free.
 
 http://sourceforge.net/projects/jaluna/
 
 
 
 --------------2C5957D8A16FE6E380DAAF98
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
 <html>
 Sorry the fix I proposed, was wrong.
 <br>It works for me only by chance.
 <br>The following patch seems to be a good fix.
 <p>Stephane
 <p>diff -ru gcc-3.2/gcc/cppdefault.c GCC/gcc/cppdefault.c
 <br>--- gcc-3.2/gcc/cppdefault.c&nbsp;&nbsp;&nbsp; Sat Sep 29 20:22:02
 2001
 <br>+++ GCC/gcc/cppdefault.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Wed Nov 13 16:38:25 2002
 <br>@@ -47,8 +47,10 @@
 <br>&nbsp;&nbsp;&nbsp;&nbsp; /* /usr/local/include comes before the fixincluded
 header files.&nbsp; */
 <br>&nbsp;&nbsp;&nbsp;&nbsp; { LOCAL_INCLUDE_DIR, 0, 0, 1 },
 <br>&nbsp;#endif
 <br>+#ifndef CROSS_COMPILE
 <br>&nbsp;#ifdef PREFIX_INCLUDE_DIR
 <br>&nbsp;&nbsp;&nbsp;&nbsp; { PREFIX_INCLUDE_DIR, 0, 0, 1 },
 <br>+#endif
 <br>&nbsp;#endif
 <br>&nbsp;#ifdef GCC_INCLUDE_DIR
 <br>&nbsp;&nbsp;&nbsp;&nbsp; /* This is the dir for fixincludes and for
 gcc's private headers.&nbsp; */
 <br>&nbsp;
 <br>&nbsp;
 <p><A HREF="http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8505";>http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&amp;database=gcc&amp;pr=8505</A>
 <pre>--&nbsp;
 
 Project Jaluna : an Open Source Real-Time Operating System (RTOS), royalty-free.&nbsp;
 
 <A HREF="http://sourceforge.net/projects/jaluna/";>http://sourceforge.net/projects/jaluna/</A></pre>
 &nbsp;</html>
 
 --------------2C5957D8A16FE6E380DAAF98--
 


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