gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 12 Mar 2007 21:32:41 +0000 (21:32 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 12 Mar 2007 21:32:41 +0000 (21:32 +0000)
* gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
some multilibs.

From-SVN: r122865

gcc/ChangeLog
gcc/gcc.c

index 85c05fb..3abf3ed 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
+       some multilibs.
+
 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
 
        PR 30635
index 878f044..f2a7d1b 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6422,7 +6422,9 @@ main (int argc, char **argv)
     {
       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