This is the mail archive of the gcc-patches@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]

Further include-fixed fix


This patch fixes a further issue with the include-fixed changes.  If
SYSROOT_HEADERS_SUFFIX_SPEC is defined so that some multilibs use
sysroot suffixes while for others the suffix is empty, when the suffix
is empty target_sysroot_hdrs_suffix will be NULL, and
-print-sysroot-headers-suffix needs to handle that case.

Bootstrapped with no regresions on i686-pc-linux-gnu.  OK to commit?

2007-03-11  Joseph Myers  <joseph@codesourcery.com>

	gcc/
	* gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
	some multilibs.

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c	(revision 122822)
+++ gcc/gcc.c	(working copy)
@@ -6422,7 +6422,9 @@
     {
       if (*sysroot_hdrs_suffix_spec)
 	{
-	  printf("%s\n", target_sysroot_hdrs_suffix);
+	  printf("%s\n", (target_sysroot_hdrs_suffix
+			  ? target_sysroot_hdrs_suffix
+			  : ""));
 	  return (0);
 	}
       else

-- 
Joseph S. Myers
joseph@codesourcery.com


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