This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Further include-fixed fix
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 11 Mar 2007 22:29:44 +0000 (UTC)
- Subject: 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