authorManfred Hollstein <manfred@gcc.gnu.org>
Thu, 12 Mar 1998 00:43:13 +0000 (00:43 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Thu, 12 Mar 1998 00:43:13 +0000 (00:43 +0000)
In gcc/:
* i386.h (RTX_COSTS): Insert braces around nested if.
(ADDITIONAL_REGISTER_NAMES): Insert braces around structured
elements.
* gcc.c (default_compilers): Properly put brackets around array elements in
initializer.
* getopt.c (_getopt_internal): Add explicit braces around nested if;
reformatted.
* reg-stack.c (record_asm_reg_life): Add explicit braces around nested if's.
(record_reg_life_pat): Add explicit parens around && and || in expression.
(stack_reg_life_analysis): Add parens around assignment used as expression.
(convert_regs): Likewise.
In gcc/cp/:
* lang-specs.h: Properly put brackets around array elements in initializer.
* typeck.c (build_binary_op_nodefault): Correctly place parens around
&& and || in expression.
In gcc/f/:
* lang-specs.h: Properly put brackets around array elements in initializer.

From-SVN: r18503

gcc/f/lang-specs.h

index a51e2a6ba9af9a93c5901d93e7a3e29ab6038458..c9419c33e208cf017dd5ad7db9f45d32488889f6 100644 (file)
@@ -33,8 +33,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #define OO ".o"
 #endif
 
-  {".F", "@f77-cpp-input"},
-  {".fpp", "@f77-cpp-input"},
+  {".F", {"@f77-cpp-input"}},
+  {".fpp", {"@f77-cpp-input"}},
   {"@f77-cpp-input",
      /* For f77 we want -traditional to avoid errors with, for
        instance, mismatched '.  Also, we avoid unpleasant surprises
@@ -43,7 +43,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
        Sun f77, at least) so you test `__unix' rather than `unix'.
        -D_LANGUAGE_FORTRAN is used by some compilers like SGI and
        might as well be in there. */
-   "cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
+   {"cpp -lang-c %{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\
@@ -52,7 +52,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
        %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\
        %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
        %i %{!M:%{!MM:%{!E:%{!pipe:%g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
-   "%{!M:%{!MM:%{!E:f771 %{!pipe:%g.i} -fset-g77-defaults %(f771) \
+    "%{!M:%{!MM:%{!E:f771 %{!pipe:%g.i} -fset-g77-defaults %(f771) \
                   %{!Q:-quiet} -dumpbase %b.F %{d*} %{m*} %{a}\
                   %{g*} %{O*} %{W*} %{w} %{pedantic*} \
                   %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
@@ -61,13 +61,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
                   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
              %{!S:as %a %Y\
                      %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\
-                     %{!pipe:%g.s} %A\n }}}}"},
-  {".r", "@ratfor"},
+                     %{!pipe:%g.s} %A\n }}}}"}},
+  {".r", {"@ratfor"}},
   {"@ratfor",
-   "ratfor %{C} %{v}\
+   {"ratfor %{C} %{v}\
            %{C:%{!E:%eGNU C does not support -C without using -E}}\
            %{!E:%{!pipe:-o %g.f}}%{E:%W{o*}} %i |\n",
-   "%{!E:f771 %{!pipe:%g.f} -fset-g77-defaults %(f771) \
+    "%{!E:f771 %{!pipe:%g.f} -fset-g77-defaults %(f771) \
           %{!Q:-quiet} -dumpbase %b.r %{d*} %{m*} %{a}\
           %{g*} %{O*} %{W*} %{w} %{pedantic*} \
           %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
@@ -76,11 +76,11 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
           %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
           %{!S:as %a %Y\
           %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\
-           %{!pipe:%g.s} %A\n }}"},
-  {".f", "@f77"},
-  {".for", "@f77"},
+           %{!pipe:%g.s} %A\n }}"}},
+  {".f", {"@f77"}},
+  {".for", {"@f77"}},
   {"@f77",
-   "%{!M:%{!MM:%{!E:f771 %i -fset-g77-defaults %(f771) \
+   {"%{!M:%{!MM:%{!E:f771 %i -fset-g77-defaults %(f771) \
                   %{!Q:-quiet} -dumpbase %b.f %{d*} %{m*} %{a}\
                   %{g*} %{O*} %{W*} %{w} %{pedantic*}\
                   %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
@@ -89,7 +89,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
                   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
              %{!S:as %a %Y\
                      %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\
-                     %{!pipe:%g.s} %A\n }}}}"},
+                     %{!pipe:%g.s} %A\n }}}}"}},
 
 #undef OO