OSDN Git Service

Thu Jun 25 11:12:29 1998 Dave Brolley <brolley@cygnus.com>
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jun 1998 08:24:04 +0000 (08:24 +0000)
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jun 1998 08:24:04 +0000 (08:24 +0000)
* gcc.c (default_compilers): Use new | syntax to eliminate
string concatenation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20711 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index 6918eb9..4ca5d51 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 25 11:12:29 1998  Dave Brolley  <brolley@cygnus.com>
+
+       * gcc.c (default_compilers): Use new | syntax to eliminate
+       string concatenation.
+
 Thu Jun 25 01:00:48 1998  Richard Henderson  <rth@cygnus.com>
 
        * alpha.c (alpha_function_name): Delete.
index 3fd700a..f9cd0ef 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -602,8 +602,7 @@ static struct compiler default_compilers[] =
   {"@c",
    {
 #if USE_CPPLIB
-#define CPP_FOR_C \
-     "cpp -lang-c%{ansi:89} %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
+     "%{E|M|MM:cpp -lang-c%{ansi:89} %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
        %{C:%{!E:%eGNU C does not support -C without using -E}}\
        %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
         -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
@@ -613,12 +612,8 @@ static struct compiler default_compilers[] =
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
-        %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n"
-
-     "%{E:"CPP_FOR_C"}"
-     "%{!E:%{M:"CPP_FOR_C"}"
-          "%{!M:%{MM:"CPP_FOR_C"}"
-               "%{!MM:cc1 %i %1 \
+        %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}\
+      %{!E:%{!M:%{!MM:cc1 %i %1 \
                   -lang-c%{ansi:89} %{nostdinc*} %{A*} %{I*} %I\
                   %{!Q:-quiet} -dumpbase %b.c %{d*} %{m*} %{a*}\
                   %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\