aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-03-12 21:32:41 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2007-03-12 21:32:41 +0000
commitdc5bbad332834841c4e5016db3245cff1d096638 (patch)
tree8ce317028997b7d8326355982e3ac468b092c7a6 /gcc
parent814bcb146bb5ac7662c6c9a8ea9253c89924325b (diff)
downloadgcc-dc5bbad332834841c4e5016db3245cff1d096638.zip
gcc-dc5bbad332834841c4e5016db3245cff1d096638.tar.gz
gcc-dc5bbad332834841c4e5016db3245cff1d096638.tar.bz2
gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs.
* gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs. From-SVN: r122865
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 85c05fb..3abf3ed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 878f044..f2a7d1b 100644
--- 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