Commit 7bb3487f by Joseph Myers Committed by Joseph Myers

opts.c (set_fast_math_flags, [...]): Make static.

	* 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.

From-SVN: r165540
parent 0a587f65
2010-10-16 Joseph Myers <joseph@codesourcery.com> 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 * config/arm/arm.c (arm_option_optimization): Set
flag_section_anchors to 1 not 2. flag_section_anchors to 1 not 2.
* config/i386/i386.c (ix86_option_override_internal): Check * config/i386/i386.c (ix86_option_override_internal): Check
...@@ -369,6 +369,8 @@ static void complain_wrong_lang (const struct cl_decoded_option *, ...@@ -369,6 +369,8 @@ static void complain_wrong_lang (const struct cl_decoded_option *,
unsigned int lang_mask); unsigned int lang_mask);
static void set_debug_level (enum debug_info_type type, int extended, static void set_debug_level (enum debug_info_type type, int extended,
const char *arg); 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. */ /* Return a malloced slash-separated list of languages in MASK. */
static char * static char *
...@@ -2175,7 +2177,7 @@ set_Wstrict_aliasing (int onoff) ...@@ -2175,7 +2177,7 @@ set_Wstrict_aliasing (int onoff)
/* The following routines are useful in setting all the flags that /* The following routines are useful in setting all the flags that
-ffast-math and -fno-fast-math imply. */ -ffast-math and -fno-fast-math imply. */
void static void
set_fast_math_flags (int set) set_fast_math_flags (int set)
{ {
flag_unsafe_math_optimizations = set; flag_unsafe_math_optimizations = set;
...@@ -2192,7 +2194,7 @@ set_fast_math_flags (int set) ...@@ -2192,7 +2194,7 @@ set_fast_math_flags (int set)
/* When -funsafe-math-optimizations is set the following /* When -funsafe-math-optimizations is set the following
flags are set as well. */ flags are set as well. */
void static void
set_unsafe_math_optimizations_flags (int set) set_unsafe_math_optimizations_flags (int set)
{ {
flag_trapping_math = !set; flag_trapping_math = !set;
......
...@@ -98,13 +98,6 @@ extern const char * default_pch_valid_p (const void *, size_t); ...@@ -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. */ /* The hashtable, so that the C front ends can pass it to cpplib. */
extern struct ht *ident_hash; 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. */ /* Handle -d switch. */
extern void decode_d_option (const char *); extern void decode_d_option (const char *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment