]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* opts.c (set_fast_math_flags,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Oct 2010 12:13:21 +0000 (12:13 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Oct 2010 12:13:21 +0000 (12:13 +0000)
set_unsafe_math_optimizations_flags): Make static.
* toplev.h (set_fast_math_flags,
set_unsafe_math_optimizations_flags): Remove prototypes.

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

gcc/ChangeLog
gcc/opts.c
gcc/toplev.h

index 55d179fe8e262115abeba5fa7dfbb1a224fc977d..f849036d969a31b6088d9376a04d8c1d571b742a 100644 (file)
@@ -1,3 +1,10 @@
+2010-10-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * opts.c (set_fast_math_flags,
+       set_unsafe_math_optimizations_flags): Make static.
+       * toplev.h (set_fast_math_flags,
+       set_unsafe_math_optimizations_flags): Remove prototypes.
+
 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
 
        * config/arm/arm.c (arm_option_optimization): Set
index 69d13596712ad71245b56afe00bd6ead5e70fbef..52f8c6d934065bd0f5ec585f4065c714035c3fec 100644 (file)
@@ -369,6 +369,8 @@ static void complain_wrong_lang (const struct cl_decoded_option *,
                                 unsigned int lang_mask);
 static void set_debug_level (enum debug_info_type type, int extended,
                             const char *arg);
+static void set_fast_math_flags (int set);
+static void set_unsafe_math_optimizations_flags (int set);
 
 /* Return a malloced slash-separated list of languages in MASK.  */
 static char *
@@ -2175,7 +2177,7 @@ set_Wstrict_aliasing (int onoff)
 
 /* The following routines are useful in setting all the flags that
    -ffast-math and -fno-fast-math imply.  */
-void
+static void
 set_fast_math_flags (int set)
 {
   flag_unsafe_math_optimizations = set;
@@ -2192,7 +2194,7 @@ set_fast_math_flags (int set)
 
 /* When -funsafe-math-optimizations is set the following
    flags are set as well.  */
-void
+static void
 set_unsafe_math_optimizations_flags (int set)
 {
   flag_trapping_math = !set;
index c72f4681fbf0d1a33f026a1f801941243108e591..d38d4ebdd16a02a2207ebb0205f0b3018cc5cdf0 100644 (file)
@@ -98,13 +98,6 @@ extern const char * default_pch_valid_p (const void *, size_t);
 /* The hashtable, so that the C front ends can pass it to cpplib.  */
 extern struct ht *ident_hash;
 
-/* This function can be used by targets to set the flags originally
-    implied by -ffast-math and -fno-fast-math.  */
-
-extern void set_fast_math_flags         (int);
-
-extern void set_unsafe_math_optimizations_flags (int);
-
 /* Handle -d switch.  */
 extern void decode_d_option            (const char *);