aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2018-02-02 19:53:59 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2018-02-02 19:53:59 +0000
commit7c30b12aaab19731a659e8d1d1a287c2d21131bf (patch)
treee48d1877fab55b806ceb1df0cdf7f960c8e3fd96 /gcc/c-family
parentdacdc68f3bd5e7c4de0dd54f9dcb1465686ac01a (diff)
downloadgcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.zip
gcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.tar.gz
gcc-7c30b12aaab19731a659e8d1d1a287c2d21131bf.tar.bz2
c-common.h (DECL_UNNAMED_BIT_FIELD): New.
/c-family 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> * c-common.h (DECL_UNNAMED_BIT_FIELD): New. /c 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> * c-typeck.c (really_start_incremental_init, push_init_level, set_nonincremental_init, output_init_element, process_init_element): Use DECL_UNNAMED_BIT_FIELD. /cp 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> * class.c (is_really_empty_class): Use DECL_UNNAMED_BIT_FIELD. * constexpr.c (cx_check_missing_mem_inits): Likewise. * decl.c (next_initializable_field, find_decomp_class_base, cp_finish_decomp): Likewise. * typeck2.c (process_init_constructor_record): Likewise. From-SVN: r257348
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c-common.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 5bbdd36..02b2b1a 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,7 @@
+2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
+
2018-02-02 Julia Koval <julia.koval@intel.com>
* c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index aad01fa..775d468 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -940,6 +940,10 @@ extern void c_parse_final_cleanups (void);
#define CLEAR_DECL_C_BIT_FIELD(NODE) \
(DECL_LANG_FLAG_4 (FIELD_DECL_CHECK (NODE)) = 0)
+/* True if the decl was an unnamed bitfield. */
+#define DECL_UNNAMED_BIT_FIELD(NODE) \
+ (DECL_C_BIT_FIELD (NODE) && !DECL_NAME (NODE))
+
extern tree do_case (location_t, tree, tree);
extern tree build_stmt (location_t, enum tree_code, ...);
extern tree build_real_imag_expr (location_t, enum tree_code, tree);