This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
- From: stephane Carbillet <stephane dot carbillet at Jaluna dot COM>
- To: zack at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 28 Nov 2002 15:36:04 -0000
- Subject: Re: preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
- Reply-to: stephane Carbillet <stephane dot carbillet at Jaluna dot COM>
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 Sat Sep 29 20:22:02
2001
<br>+++ GCC/gcc/cppdefault.c
Wed Nov 13 16:38:25 2002
<br>@@ -47,8 +47,10 @@
<br> /* /usr/local/include comes before the fixincluded
header files. */
<br> { LOCAL_INCLUDE_DIR, 0, 0, 1 },
<br> #endif
<br>+#ifndef CROSS_COMPILE
<br> #ifdef PREFIX_INCLUDE_DIR
<br> { PREFIX_INCLUDE_DIR, 0, 0, 1 },
<br>+#endif
<br> #endif
<br> #ifdef GCC_INCLUDE_DIR
<br> /* This is the dir for fixincludes and for
gcc's private headers. */
<br>
<br>
<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&database=gcc&pr=8505</A>
<pre>--
Project Jaluna : an Open Source Real-Time Operating System (RTOS), royalty-free.
<A HREF="http://sourceforge.net/projects/jaluna/">http://sourceforge.net/projects/jaluna/</A></pre>
</html>
--------------2C5957D8A16FE6E380DAAF98--