diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog.MELT | 4 | ||||
-rw-r--r-- | gcc/melt-runtime.c | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog.MELT b/gcc/ChangeLog.MELT index 1cd40082f3a..1a4fef6f14a 100644 --- a/gcc/ChangeLog.MELT +++ b/gcc/ChangeLog.MELT @@ -1,5 +1,9 @@ 2012-04-15 Basile Starynkevitch <basile@starynkevitch.net> + * melt-runtime.c (melt_really_initialize): Don't print null + strings for print-settings + +2012-04-15 Basile Starynkevitch <basile@starynkevitch.net> * melt-runtime.c (melt_really_initialize): For "print-settings" argument print MELTGCCBUILTIN_BUILD_WITH_CXX. diff --git a/gcc/melt-runtime.c b/gcc/melt-runtime.c index a479f153901..4413c11d5c6 100644 --- a/gcc/melt-runtime.c +++ b/gcc/melt-runtime.c @@ -9983,8 +9983,11 @@ melt_really_initialize (const char* pluginame, const char*versionstr) melt_run_preprocessed_md5); fprintf (setfil, "MELTGCCBUILTIN_GENERATED='%s'\n", nowbuf); - fprintf (setfil, "MELTGCCBUILTIN_GCC_EXEC_PREFIX='%s'\n", - gcc_exec_prefix); + if (gcc_exec_prefix) + fprintf (setfil, "MELTGCCBUILTIN_GCC_EXEC_PREFIX='%s'\n", + gcc_exec_prefix); + else + fprintf (setfil, "# MELTGCCBUILTIN_GCC_EXEC_PREFIX is not set\n"); #if ENABLE_BUILD_WITH_CXX #ifdef __cplusplus fprintf (setfil, "MELTGCCBUILTIN_BUILD_WITH_CXX=1\n"); @@ -9992,7 +9995,7 @@ melt_really_initialize (const char* pluginame, const char*versionstr) fprintf (setfil, "MELTGCCBUILTIN_BUILD_WITH_CXX=O\n"); #endif /*__cplusplus*/ #else /* !ENABLE_BUILD_WITH_CXX*/ - fprintf (setfil, "## MELT without build with C++\n"); + fprintf (setfil, "# MELTGCCBUILTIN_BUILD_WITH_CXX is not set\n"); #endif /*ENABLE_BUILD_WITH_CXX*/ |