Commit b12b1915 by Marek Polacek Committed by Marek Polacek

Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.

	* Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.

	* c-attribs.c: New file.
	* c-common.c: Move attributes handling to c-attribs.c.
	(get_nonnull_operand): No longer static.
	* c-common.h: Move the declarations from c-attribs.c to its own section.

From-SVN: r241238
parent f6a1ec62
2016-10-17 Marek Polacek <polacek@redhat.com>
* Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
2016-10-17 Richard Biener <rguenther@suse.de> 2016-10-17 Richard Biener <rguenther@suse.de>
* bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
......
...@@ -1183,7 +1183,7 @@ C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \ ...@@ -1183,7 +1183,7 @@ C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \
c-family/c-semantics.o c-family/c-ada-spec.o \ c-family/c-semantics.o c-family/c-ada-spec.o \
c-family/c-cilkplus.o \ c-family/c-cilkplus.o \
c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o \ c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o \
c-family/c-warn.o c-family/c-attribs.o c-family/c-warn.o
# Language-independent object files. # Language-independent object files.
# We put the *-match.o and insn-*.o files first so that a parallel make # We put the *-match.o and insn-*.o files first so that a parallel make
......
2016-10-17 Marek Polacek <polacek@redhat.com>
* c-attribs.c: New file.
* c-common.c: Move attributes handling to c-attribs.c.
(get_nonnull_operand): No longer static.
* c-common.h: Move the declarations from c-attribs.c to its own section.
2016-10-14 Jason Merrill <jason@redhat.com> 2016-10-14 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -808,10 +808,8 @@ extern bool check_builtin_function_arguments (location_t, vec<location_t>, ...@@ -808,10 +808,8 @@ extern bool check_builtin_function_arguments (location_t, vec<location_t>,
tree, int, tree *); tree, int, tree *);
extern void check_function_format (tree, int, tree *); extern void check_function_format (tree, int, tree *);
extern bool attribute_fallthrough_p (tree); extern bool attribute_fallthrough_p (tree);
extern tree handle_unused_attribute (tree *, tree, tree, int, bool *);
extern tree handle_format_attribute (tree *, tree, tree, int, bool *); extern tree handle_format_attribute (tree *, tree, tree, int, bool *);
extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *); extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *);
extern bool attribute_takes_identifier_p (const_tree);
extern bool c_common_handle_option (size_t, const char *, int, int, location_t, extern bool c_common_handle_option (size_t, const char *, int, int, location_t,
const struct cl_option_handlers *); const struct cl_option_handlers *);
extern bool default_handle_c_option (size_t, const char *, int); extern bool default_handle_c_option (size_t, const char *, int);
...@@ -857,6 +855,7 @@ extern bool pointer_to_zero_sized_aggr_p (tree); ...@@ -857,6 +855,7 @@ extern bool pointer_to_zero_sized_aggr_p (tree);
extern bool bool_promoted_to_int_p (tree); extern bool bool_promoted_to_int_p (tree);
extern tree fold_for_warn (tree); extern tree fold_for_warn (tree);
extern tree c_common_get_narrower (tree, int *); extern tree c_common_get_narrower (tree, int *);
extern bool get_nonnull_operand (tree, unsigned HOST_WIDE_INT *);
#define c_sizeof(LOC, T) c_sizeof_or_alignof_type (LOC, T, true, false, 1) #define c_sizeof(LOC, T) c_sizeof_or_alignof_type (LOC, T, true, false, 1)
#define c_alignof(LOC, T) c_sizeof_or_alignof_type (LOC, T, false, false, 1) #define c_alignof(LOC, T) c_sizeof_or_alignof_type (LOC, T, false, false, 1)
...@@ -1315,8 +1314,6 @@ c_tree_chain_next (tree t) ...@@ -1315,8 +1314,6 @@ c_tree_chain_next (tree t)
#define TM_STMT_ATTR_ATOMIC 4 #define TM_STMT_ATTR_ATOMIC 4
#define TM_STMT_ATTR_RELAXED 8 #define TM_STMT_ATTR_RELAXED 8
extern int parse_tm_stmt_attr (tree, int);
/* Mask used by tm_attr_to_mask and tm_mask_to_attr. Note that these /* Mask used by tm_attr_to_mask and tm_mask_to_attr. Note that these
are ordered specifically such that more restrictive attributes are are ordered specifically such that more restrictive attributes are
at lower bit positions. This fact is known by the C++ tm attribute at lower bit positions. This fact is known by the C++ tm attribute
...@@ -1328,10 +1325,6 @@ extern int parse_tm_stmt_attr (tree, int); ...@@ -1328,10 +1325,6 @@ extern int parse_tm_stmt_attr (tree, int);
#define TM_ATTR_IRREVOCABLE 8 #define TM_ATTR_IRREVOCABLE 8
#define TM_ATTR_MAY_CANCEL_OUTER 16 #define TM_ATTR_MAY_CANCEL_OUTER 16
extern int tm_attr_to_mask (tree);
extern tree tm_mask_to_attr (int);
extern tree find_tm_attribute (tree);
/* A suffix-identifier value doublet that represents user-defined literals /* A suffix-identifier value doublet that represents user-defined literals
for C++-0x. */ for C++-0x. */
enum overflow_type { enum overflow_type {
...@@ -1538,6 +1531,14 @@ extern bool maybe_warn_shift_overflow (location_t, tree, tree); ...@@ -1538,6 +1531,14 @@ extern bool maybe_warn_shift_overflow (location_t, tree, tree);
extern void warn_duplicated_cond_add_or_warn (location_t, tree, vec<tree> **); extern void warn_duplicated_cond_add_or_warn (location_t, tree, vec<tree> **);
extern bool diagnose_mismatched_attributes (tree, tree); extern bool diagnose_mismatched_attributes (tree, tree);
/* In c-attribs.c. */
extern bool attribute_takes_identifier_p (const_tree);
extern tree handle_unused_attribute (tree *, tree, tree, int, bool *);
extern int parse_tm_stmt_attr (tree, int);
extern int tm_attr_to_mask (tree);
extern tree tm_mask_to_attr (int);
extern tree find_tm_attribute (tree);
#if CHECKING_P #if CHECKING_P
namespace selftest { namespace selftest {
extern void c_format_c_tests (void); extern void c_format_c_tests (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment