aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-11-22 23:59:18 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-11-22 23:59:18 +0000
commit0576d21f39052849a9c4199cc511d7cf1a01fd9c (patch)
tree2bb8959996eb7c19089d471cfbfcd33670a0625f /gcc/toplev.h
parentd6d17ae760f1060e04b211b04d4c952662fe121b (diff)
downloadgcc-0576d21f39052849a9c4199cc511d7cf1a01fd9c.zip
gcc-0576d21f39052849a9c4199cc511d7cf1a01fd9c.tar.gz
gcc-0576d21f39052849a9c4199cc511d7cf1a01fd9c.tar.bz2
common.opt (exit_after_options, [...]): New Variable entries.
* common.opt (exit_after_options, write_symbols, debug_info_level, use_gnu_debug_info_extensions): New Variable entries. (fprofile-dir=): Use Var. * flag-types.h (enum debug_info_level): Rename to enum debug_info_levels. * flags.h (write_symbols, debug_info_level, use_gnu_debug_info_extensions): Remove declarations. * opts.c (exit_after_options, write_symbols, debug_info_level): Remove. (set_struct_debug_option): Make static variables const. (use_gnu_debug_info_extensions): Remove. (set_debug_level, print_filtered_help, print_specific_help, fast_math_flags_set_p): Take gcc_options parameters and use them in place of global variables. (print_filtered_help): Make new_help non-static. (print_specific_help): Update call to print_filtered_help. (common_handle_option): Update calls to print_specific_help. Use gcc_options structure for more settings. Make --help table const. Don't handle OPT_fprofile_dir_ here. Update calls to set_debug_level. * toplev.c (profile_data_prefix): Remove. * toplev.h (profile_data_prefix, exit_after_options): Remove declarations. (fast_math_flags_set_p): Update prototype. * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Update call to fast_math_flags_set_p. objc: * objc-act.c (write_symbols): Don't declare here. From-SVN: r167064
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 426c861..b7fd8799 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -76,9 +76,6 @@ extern const char *main_input_filename;
extern const char *main_input_basename;
extern int main_input_baselength;
-extern const char *profile_data_prefix;
-extern bool exit_after_options;
-
/* True if the user has tagged the function with the 'section'
attribute. */
@@ -99,7 +96,7 @@ extern struct ht *ident_hash;
extern void decode_d_option (const char *);
/* Return true iff flags are set as if -ffast-math. */
-extern bool fast_math_flags_set_p (void);
+extern bool fast_math_flags_set_p (const struct gcc_options *);
extern bool fast_math_flags_struct_set_p (struct cl_optimization *);
/* Inline versions of the above for speed. */