re PR target/33135 ([SH] -ffinite-math-only should not be on by default)
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 2 Sep 2012 23:18:08 +0000 (23:18 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 2 Sep 2012 23:18:08 +0000 (23:18 +0000)
PR target/33135
* common/config/sh/sh-common.c: Update copyright years.
(sh_option_init_struct): Delete.
(TARGET_OPTION_INIT_STRUCT): Likewise.

From-SVN: r190865

gcc/ChangeLog
gcc/common/config/sh/sh-common.c

index b743a98d531e3029b9d35664cac77e24ff725d26..7e188999df7dc4821d5f0a4c6a5398e9554ae6ee 100644 (file)
@@ -1,3 +1,10 @@
+2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/33135
+       * common/config/sh/sh-common.c: Update copyright years.
+       (sh_option_init_struct): Delete.
+       (TARGET_OPTION_INIT_STRUCT): Likewise.
+
 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/54418
index 5a0c062e7093b7f23ec9b60645fa0372ba034f89..3e1b88324b233e428f6c5d0b4c54e84aba75b1a3 100644 (file)
@@ -1,6 +1,6 @@
 /* Common hooks for Renesas / SuperH SH.
    Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -186,17 +186,6 @@ sh_handle_option (struct gcc_options *opts,
     }
 }
 
-/* Implement TARGET_OPTION_INIT_STRUCT.  */
-static void
-sh_option_init_struct (struct gcc_options *opts)
-{
-  /* We can't meaningfully test TARGET_SH2E / TARGET_IEEE
-     here, so leave it to TARGET_OPTION_OVERRIDE to set
-     flag_finite_math_only.  We set it to 2 here so we know if the user
-     explicitly requested this to be on or off.  */
-  opts->x_flag_finite_math_only = 2;
-}
-
 /* Implement TARGET_OPTION_DEFAULT_PARAMS.  */
 static void
 sh_option_default_params (void)
@@ -206,8 +195,6 @@ sh_option_default_params (void)
 
 #undef TARGET_OPTION_OPTIMIZATION_TABLE
 #define TARGET_OPTION_OPTIMIZATION_TABLE sh_option_optimization_table
-#undef TARGET_OPTION_INIT_STRUCT
-#define TARGET_OPTION_INIT_STRUCT sh_option_init_struct
 #undef TARGET_OPTION_DEFAULT_PARAMS
 #define TARGET_OPTION_DEFAULT_PARAMS sh_option_default_params
 #undef TARGET_DEFAULT_TARGET_FLAGS