gcc.c (default_compilers): Define __FAST_MATH__ when appropriate.
authorRichard Henderson <rth@cygnus.com>
Thu, 25 Feb 1999 18:50:07 +0000 (10:50 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 25 Feb 1999 18:50:07 +0000 (10:50 -0800)
        * gcc.c (default_compilers): Define __FAST_MATH__ when appropriate.
        * cp/lang-specs.h: Likewise.
        * f/lang-specs.h: Likewise.
        * objc/lang-specs.h: Likewise.

From-SVN: r25445

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/lang-specs.h
gcc/f/ChangeLog
gcc/f/lang-specs.h
gcc/gcc.c
gcc/objc/lang-specs.h

index c68d309..fffa0ca 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb 25 18:46:26 1999  Richard Henderson  <rth@cygnus.com>
+
+       * gcc.c (default_compilers): Define __FAST_MATH__ when appropriate.
+       * objc/lang-specs.h: Likewise.
+
 Thu Feb 25 16:19:43 1999  Jeffrey A Law  (law@cygnus.com)
 
        * pa.md (call patterns): Lose unused argument to output_call.
index 7aa0ff9..b0ef37c 100644 (file)
@@ -1,3 +1,7 @@
+1999-02-25  Richard Henderson  <rth@cygnus.com>
+
+       * lang-specs.h: Define __FAST_MATH__ when appropriate.
+
 1999-02-24  Mike Stump  <mrs@wrs.com>
 
        * typeck.c (convert_for_assignment): Allow boolean integral constant
index 972d72b..74518b7 100644 (file)
@@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA.  */
        %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
        %{!fno-exceptions:-D__EXCEPTIONS}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
+       %{ffast-math:-D__FAST_MATH__}\
        %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
         %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}\
       %{!E:%{!M:%{!MM:cc1plus %i %1 %2\
@@ -47,6 +48,7 @@ Boston, MA 02111-1307, USA.  */
                             %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
                             %{!fno-exceptions:-D__EXCEPTIONS}\
                             %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+                           %{ffast-math:-D__FAST_MATH__}\
                             %{trigraphs}\
                            %{!Q:-quiet} -dumpbase %b.cc %{d*} %{m*} %{a}\
                            %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
@@ -66,6 +68,7 @@ Boston, MA 02111-1307, USA.  */
        %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
        %{!fno-exceptions:-D__EXCEPTIONS}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
+       %{ffast-math:-D__FAST_MATH__}\
        %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
         %i %{!M:%{!MM:%{!E:%{!pipe:%g.ii}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
     "%{!M:%{!MM:%{!E:cc1plus %{!pipe:%g.ii} %1 %2\
index cceb41f..65e502d 100644 (file)
@@ -1,3 +1,7 @@
+1999-02-25  Richard Henderson  <rth@cygnus.com>
+
+       * lang-specs.h: Define __FAST_MATH__ when appropriate.
+
 1999-02-25  Craig Burley  <craig@jcb-sc.com>
 
        * g77.texi: Clarify/index lack of run-time allocation for
index 8e22fed..c8f597e 100644 (file)
@@ -42,6 +42,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
        %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
        %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \
        %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\
+       %{ffast-math:-D__FAST_MATH__}\
        %{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} %(f771) \
@@ -91,6 +92,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
       %{ansi:-trigraphs -$ -D__STRICT_ANSI__} \
       %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \
       %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional \
+      %{ffast-math:-D__FAST_MATH__}\
       %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z \
       /dev/null /dev/null \n\
      f771 -fnull-version %(f771) \
index d269395..f6873c1 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -588,6 +588,7 @@ static struct compiler default_compilers[] =
        %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\
        %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
@@ -601,6 +602,7 @@ static struct compiler default_compilers[] =
                  %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\
                  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
                   %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+                 %{ffast-math:-D__FAST_MATH__}\
                   %{H} %C %{D*} %{U*} %{i*} %Z\
                   %{ftraditional:-traditional}\
                   %{traditional-cpp:-traditional}\
@@ -623,6 +625,7 @@ static struct compiler default_compilers[] =
        %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\
        %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
@@ -650,6 +653,7 @@ static struct compiler default_compilers[] =
        %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\
        %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
@@ -666,6 +670,7 @@ static struct compiler default_compilers[] =
        %{std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\
        %{!undef:%{!std=*:%p}%{std=gnu*:%p} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
@@ -694,6 +699,7 @@ static struct compiler default_compilers[] =
        %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} %{trigraphs}\
         -undef -$ %{!undef:%p %P} -D__ASSEMBLER__ \
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
index ad98eaf..50c25f5 100644 (file)
@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA.  */
        %{ansi:-trigraphs -D__STRICT_ANSI__}\
        %{!undef:%{!ansi:%p} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\
@@ -42,6 +43,7 @@ Boston, MA 02111-1307, USA.  */
                   -undef -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
                   %{!undef:%{!ansi:%p} %P} %{trigraphs}\
                   %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+                  %{ffast-math:-D__FAST_MATH__}\
                   %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
                   %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
                   %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
@@ -60,6 +62,7 @@ Boston, MA 02111-1307, USA.  */
         %{ansi:-trigraphs -D__STRICT_ANSI__}\
        %{!undef:%{!ansi:%p} %P} %{trigraphs}\
         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+       %{ffast-math:-D__FAST_MATH__}\
         %{traditional} %{ftraditional:-traditional}\
         %{traditional-cpp:-traditional}\
        %{fleading-underscore} %{fno-leading-underscore}\