From 50431bc4280a683141da4c51375ef07636083b7b Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Mon, 14 Jun 2004 16:18:01 +0200 Subject: Makefile.in (FLAGS_H): New. * Makefile.in (FLAGS_H): New. (flags.h): Replace by FLAGS_H. * c.opt: Document Var, VarExists, Init and Report attributes. * common.opt: Fill the values of the attributes. * diagnostic.c (flag_fatal_errors): Do not define. * except.c (flag_non_call_exceptions): Do not define. * flags.h: Include options.h. Remove declarations conflicting with the automatically defined ones. * opts.c: Remove automatically defined variables. (handle_option): Perform default initialization. (common_handle_option): Do not handle options covered by the default initialization. * opts.h (struct cl_option): Add flag_var, has_set_value and set_value fields. (CL_REPORT): New. * opts.sh: Generate variable declarations, handle CL_REPORT. * toplev.c: Remove automatically defined variables. (f_options): Removed. (print_switch_values): Use cl_options instead of f_options. * toplev.h (version_flag): Declaration removed. From-SVN: r83105 --- gcc/flags.h | 78 ++----------------------------------------------------------- 1 file changed, 2 insertions(+), 76 deletions(-) (limited to 'gcc/flags.h') diff --git a/gcc/flags.h b/gcc/flags.h index 748f030..dffe299 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -23,6 +23,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_FLAGS_H #define GCC_FLAGS_H +#include "options.h" + enum debug_info_type { NO_DEBUG, /* Write no debug info. */ @@ -78,80 +80,26 @@ extern int quiet_flag; extern int mem_report; -/* Don't print warning messages. -w. */ - -extern bool inhibit_warnings; - -/* Don't suppress warnings from system headers. -Wsystem-headers. */ - -extern bool warn_system_headers; - /* Do print extra warnings (such as for uninitialized variables). -W/-Wextra. */ extern bool extra_warnings; -/* If -Werror. */ - -extern bool warnings_are_errors; - /* Nonzero to warn about unused variables, functions et.al. Use set_Wunused() to update the -Wunused-* flags that correspond to the -Wunused option. */ extern void set_Wunused (int setting); -extern bool warn_unused_function; -extern bool warn_unused_label; -extern bool warn_unused_parameter; -extern bool warn_unused_variable; -extern bool warn_unused_value; - -/* Nonzero to warn about code which is never reached. */ - -extern bool warn_notreached; - -/* Nonzero means warn if inline function is too large. */ - -extern bool warn_inline; - /* Nonzero to warn about variables used before they are initialized. */ extern int warn_uninitialized; -/* Nonzero means warn about all declarations which shadow others. */ - -extern bool warn_shadow; - -/* Warn if a switch on an enum, that does not have a default case, - fails to have a case for every enum value. */ - -extern bool warn_switch; - -/* Warn if a switch does not have a default case. */ - -extern bool warn_switch_default; - -/* Warn if a switch on an enum fails to have a case for every enum - value (regardless of the presence or otherwise of a default case). */ - -extern bool warn_switch_enum; - /* Nonzero means warn about function definitions that default the return type or that use a null return and have a return-type other than void. */ extern int warn_return_type; -/* Warn about functions which might be candidates for attribute noreturn. */ - -extern bool warn_missing_noreturn; - -/* Nonzero means warn about pointer casts that increase the required - alignment of the target type (and might therefore lead to a crash - due to a misaligned access). */ - -extern bool warn_cast_align; - /* Nonzero means warn about any objects definitions whose size is larger than N bytes. Also want about function definitions whose returned values are larger than N bytes. The value N is in `larger_than_size'. */ @@ -159,28 +107,6 @@ extern bool warn_cast_align; extern bool warn_larger_than; extern HOST_WIDE_INT larger_than_size; -/* Warn if a function returns an aggregate, - since there are often incompatible calling conventions for doing this. */ - -extern bool warn_aggregate_return; - -/* Warn if packed attribute on struct is unnecessary and inefficient. */ - -extern bool warn_packed; - -/* Warn when gcc pads a structure to an alignment boundary. */ - -extern bool warn_padded; - -/* Warn when an optimization pass is disabled. */ - -extern bool warn_disabled_optimization; - -/* Nonzero means warn about uses of __attribute__((deprecated)) - declarations. */ - -extern bool warn_deprecated_decl; - /* Nonzero means warn about constructs which might not be strict aliasing safe. */ -- cgit v1.1