summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-14 14:18:01 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-14 14:18:01 +0000
commit2e9da478edf45047e522074479ad7646cb4c4e68 (patch)
tree8e99c7d2af7c48b5b41eea44cd56ece27f2296b4 /gcc/flags.h
parent08faa217dd0cad967e3747cf25133fd2b0ca7c65 (diff)
downloadgcc-2e9da478edf45047e522074479ad7646cb4c4e68.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83105 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h78
1 files changed, 2 insertions, 76 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 748f0302ad5..dffe299d5f8 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. */