diff options
author | Mikhail Maltsev <maltsevm@gmail.com> | 2015-10-29 16:28:40 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-10-29 10:28:40 -0600 |
commit | 7f71272e3b7a420febff64d3dd7ab58d5988ccaa (patch) | |
tree | 20274687b3bb5807ca00d4c1289357d741c5e059 /gcc/genautomata.c | |
parent | 21f0717ab16fe725e887536f5f90b7487b6431cd (diff) | |
download | gcc-7f71272e3b7a420febff64d3dd7ab58d5988ccaa.zip gcc-7f71272e3b7a420febff64d3dd7ab58d5988ccaa.tar.gz gcc-7f71272e3b7a420febff64d3dd7ab58d5988ccaa.tar.bz2 |
[PATCH 6/9] ENABLE_CHECKING refactoring: generators
* genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
* genconditions.c: Define CHECKING_P in the generated code.
* genextract.c: Use flag_checking in insn_extract.
* gengtype.c (main): Remove conditional compilation.
* gengtype.h: Likewise.
From-SVN: r229539
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 5196d68..5041078 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -879,7 +879,7 @@ struct state_ainsn_table /* Macros to access members of unions. Use only them for access to union members of declarations and regexps. */ -#if defined ENABLE_CHECKING && (GCC_VERSION >= 2007) +#if CHECKING_P && (GCC_VERSION >= 2007) #define DECL_UNIT(d) __extension__ \ (({ __typeof (d) const _decl = (d); \ @@ -1070,7 +1070,7 @@ regexp_mode_check_failed (enum regexp_mode mode, exit (1); } -#else /* #if defined ENABLE_RTL_CHECKING && (GCC_VERSION >= 2007) */ +#else /* #if CHECKING_P && (GCC_VERSION >= 2007) */ #define DECL_UNIT(d) (&(d)->decl.unit) #define DECL_BYPASS(d) (&(d)->decl.bypass) @@ -1088,7 +1088,7 @@ regexp_mode_check_failed (enum regexp_mode mode, #define REGEXP_ALLOF(r) (&(r)->regexp.allof) #define REGEXP_ONEOF(r) (&(r)->regexp.oneof) -#endif /* #if defined ENABLE_RTL_CHECKING && (GCC_VERSION >= 2007) */ +#endif /* #if CHECKING_P && (GCC_VERSION >= 2007) */ #define XCREATENODE(T) ((T *) create_node (sizeof (T))) #define XCREATENODEVEC(T, N) ((T *) create_node (sizeof (T) * (N))) |