diff options
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/c-ada-spec.cc | 2 | ||||
-rw-r--r-- | gcc/c-family/c-attribs.cc | 6 | ||||
-rw-r--r-- | gcc/c-family/c-common.cc | 58 | ||||
-rw-r--r-- | gcc/c-family/c-common.h | 4 | ||||
-rw-r--r-- | gcc/c-family/c-cppbuiltin.cc | 24 | ||||
-rw-r--r-- | gcc/c-family/c-format.cc | 26 | ||||
-rw-r--r-- | gcc/c-family/c-indentation.cc | 2 | ||||
-rw-r--r-- | gcc/c-family/c-objc.h | 2 | ||||
-rw-r--r-- | gcc/c-family/c-omp.cc | 4 | ||||
-rw-r--r-- | gcc/c-family/c-opts.cc | 14 | ||||
-rw-r--r-- | gcc/c-family/c-ppoutput.cc | 2 | ||||
-rw-r--r-- | gcc/c-family/c-pragma.cc | 2 | ||||
-rw-r--r-- | gcc/c-family/c-target.def | 2 | ||||
-rw-r--r-- | gcc/c-family/c-ubsan.cc | 2 | ||||
-rw-r--r-- | gcc/c-family/stub-objc.cc | 14 |
15 files changed, 82 insertions, 82 deletions
diff --git a/gcc/c-family/c-ada-spec.cc b/gcc/c-family/c-ada-spec.cc index db5c0b5..9ee9fa1 100644 --- a/gcc/c-family/c-ada-spec.cc +++ b/gcc/c-family/c-ada-spec.cc @@ -3288,7 +3288,7 @@ dump_ada_declaration (pretty_printer *pp, tree t, tree type, int spc) } } - TREE_VISITED (t) = 1; + TREE_VISITED (t) = 1; if (is_interface) { pp_string (pp, "limited interface -- "); diff --git a/gcc/c-family/c-attribs.cc b/gcc/c-family/c-attribs.cc index cf9523a..7fd480e 100644 --- a/gcc/c-family/c-attribs.cc +++ b/gcc/c-family/c-attribs.cc @@ -628,11 +628,11 @@ const struct attribute_spec c_common_gnu_attributes[] = { "tainted_args", 0, 0, true, false, false, false, handle_tainted_args_attribute, NULL }, { "fd_arg", 1, 1, false, true, true, false, - handle_fd_arg_attribute, NULL}, + handle_fd_arg_attribute, NULL}, { "fd_arg_read", 1, 1, false, true, true, false, handle_fd_arg_attribute, NULL}, { "fd_arg_write", 1, 1, false, true, true, false, - handle_fd_arg_attribute, NULL}, + handle_fd_arg_attribute, NULL}, { "flag_enum", 0, 0, false, true, false, false, handle_flag_enum_attribute, NULL }, { "null_terminated_string_arg", 1, 1, false, true, true, false, @@ -5036,7 +5036,7 @@ handle_fd_arg_attribute (tree *node, tree name, tree args, if (positional_argument (*node, name, TREE_VALUE (args), INTEGER_TYPE)) return NULL_TREE; - *no_add_attrs = true; + *no_add_attrs = true; return NULL_TREE; } diff --git a/gcc/c-family/c-common.cc b/gcc/c-family/c-common.cc index 28a2d4b..a0e6a31 100644 --- a/gcc/c-family/c-common.cc +++ b/gcc/c-family/c-common.cc @@ -3308,14 +3308,14 @@ shorten_compare (location_t loc, tree *op0_ptr, tree *op1_ptr, the comparison isn't an issue, so suppress the warning. */ tree folded_op0 = fold_for_warn (op0); - bool warn = + bool warn = warn_type_limits && !in_system_header_at (loc) && !(TREE_CODE (folded_op0) == INTEGER_CST && !TREE_OVERFLOW (convert (c_common_signed_type (type), folded_op0))) /* Do not warn for enumeration types. */ && (TREE_CODE (expr_original_type (folded_op0)) != ENUMERAL_TYPE); - + switch (code) { case GE_EXPR: @@ -7196,9 +7196,9 @@ complete_flexible_array_elts (tree init) } /* Like c_mark_addressable but don't check register qualifier. */ -void +void c_common_mark_addressable_vec (tree t) -{ +{ while (handled_component_p (t) || TREE_CODE (t) == C_MAYBE_CONST_EXPR) { if (TREE_CODE (t) == C_MAYBE_CONST_EXPR) @@ -7586,7 +7586,7 @@ get_atomic_generic_size (location_t loc, tree function, /* Types must be compile time constant sizes. */ if (!tree_fits_uhwi_p ((TYPE_SIZE_UNIT (TREE_TYPE (type_0))))) { - error_at (loc, + error_at (loc, "argument 1 of %qE must be a pointer to a constant size type", function); return 0; @@ -7597,7 +7597,7 @@ get_atomic_generic_size (location_t loc, tree function, /* Zero size objects are not allowed. */ if (size_0 == 0) { - error_at (loc, + error_at (loc, "argument 1 of %qE must be a pointer to a nonzero size object", function); return 0; @@ -7711,12 +7711,12 @@ get_atomic_generic_size (location_t loc, tree function, /* This will take an __atomic_ generic FUNCTION call, and add a size parameter N at the beginning of the parameter list PARAMS representing the size of the objects. This is to match the library ABI requirement. LOC is the location - of the function call. + of the function call. The new function is returned if it needed rebuilding, otherwise NULL_TREE is returned to allow the external call to be constructed. */ static tree -add_atomic_size_parameter (unsigned n, location_t loc, tree function, +add_atomic_size_parameter (unsigned n, location_t loc, tree function, vec<tree, va_gc> *params) { tree size_node; @@ -7774,12 +7774,12 @@ atomic_size_supported_p (int n) PARAMS is the argument list for the call. The return value is non-null TRUE is returned if it is translated into the proper format for a call to the external library, and NEW_RETURN is set the tree for that function. - FALSE is returned if processing for the _N variation is required, and + FALSE is returned if processing for the _N variation is required, and NEW_RETURN is set to the return value the result is copied into. */ static bool -resolve_overloaded_atomic_exchange (location_t loc, tree function, +resolve_overloaded_atomic_exchange (location_t loc, tree function, vec<tree, va_gc> *params, tree *new_return) -{ +{ tree p0, p1, p2, p3; tree I_type, I_type_ptr; int n = get_atomic_generic_size (loc, function, params); @@ -7807,14 +7807,14 @@ resolve_overloaded_atomic_exchange (location_t loc, tree function, p1 = (*params)[1]; p2 = (*params)[2]; p3 = (*params)[3]; - + /* Create pointer to appropriate size. */ I_type = builtin_type_for_size (BITS_PER_UNIT * n, 1); I_type_ptr = build_pointer_type (I_type); /* Convert object pointer to required type. */ p0 = build1 (VIEW_CONVERT_EXPR, I_type_ptr, p0); - (*params)[0] = p0; + (*params)[0] = p0; /* Convert new value to required type, and dereference it. If *p1 type can have padding or may involve floating point which could e.g. be promoted to wider precision and demoted afterwards, @@ -7836,7 +7836,7 @@ resolve_overloaded_atomic_exchange (location_t loc, tree function, } -/* This will process an __atomic_compare_exchange function call, determine +/* This will process an __atomic_compare_exchange function call, determine whether it needs to be mapped to the _N variation, or turned into a lib call. LOC is the location of the builtin call. FUNCTION is the DECL that has been invoked; @@ -7846,10 +7846,10 @@ resolve_overloaded_atomic_exchange (location_t loc, tree function, FALSE is returned if processing for the _N variation is required. */ static bool -resolve_overloaded_atomic_compare_exchange (location_t loc, tree function, - vec<tree, va_gc> *params, +resolve_overloaded_atomic_compare_exchange (location_t loc, tree function, + vec<tree, va_gc> *params, tree *new_return) -{ +{ tree p0, p1, p2; tree I_type, I_type_ptr; int n = get_atomic_generic_size (loc, function, params); @@ -7864,7 +7864,7 @@ resolve_overloaded_atomic_compare_exchange (location_t loc, tree function, /* If not a lock-free size, change to the library generic format. */ if (!atomic_size_supported_p (n)) { - /* The library generic format does not have the weak parameter, so + /* The library generic format does not have the weak parameter, so remove it from the param list. Since a parameter has been removed, we can be sure that there is room for the SIZE_T parameter, meaning there will not be a recursive rebuilding of the parameter list, so @@ -7887,7 +7887,7 @@ resolve_overloaded_atomic_compare_exchange (location_t loc, tree function, p0 = (*params)[0]; p1 = (*params)[1]; p2 = (*params)[2]; - + /* Create pointer to appropriate size. */ I_type = builtin_type_for_size (BITS_PER_UNIT * n, 1); I_type_ptr = build_pointer_type (I_type); @@ -7924,13 +7924,13 @@ resolve_overloaded_atomic_compare_exchange (location_t loc, tree function, PARAMS is the argument list for the call. The return value is non-null TRUE is returned if it is translated into the proper format for a call to the external library, and NEW_RETURN is set the tree for that function. - FALSE is returned if processing for the _N variation is required, and + FALSE is returned if processing for the _N variation is required, and NEW_RETURN is set to the return value the result is copied into. */ static bool -resolve_overloaded_atomic_load (location_t loc, tree function, +resolve_overloaded_atomic_load (location_t loc, tree function, vec<tree, va_gc> *params, tree *new_return) -{ +{ tree p0, p1, p2; tree I_type, I_type_ptr; int n = get_atomic_generic_size (loc, function, params); @@ -7957,7 +7957,7 @@ resolve_overloaded_atomic_load (location_t loc, tree function, p0 = (*params)[0]; p1 = (*params)[1]; p2 = (*params)[2]; - + /* Create pointer to appropriate size. */ I_type = builtin_type_for_size (BITS_PER_UNIT * n, 1); I_type_ptr = build_pointer_type (I_type); @@ -7984,13 +7984,13 @@ resolve_overloaded_atomic_load (location_t loc, tree function, PARAMS is the argument list for the call. The return value is non-null TRUE is returned if it is translated into the proper format for a call to the external library, and NEW_RETURN is set the tree for that function. - FALSE is returned if processing for the _N variation is required, and + FALSE is returned if processing for the _N variation is required, and NEW_RETURN is set to the return value the result is copied into. */ static bool -resolve_overloaded_atomic_store (location_t loc, tree function, +resolve_overloaded_atomic_store (location_t loc, tree function, vec<tree, va_gc> *params, tree *new_return) -{ +{ tree p0, p1; tree I_type, I_type_ptr; int n = get_atomic_generic_size (loc, function, params); @@ -8016,7 +8016,7 @@ resolve_overloaded_atomic_store (location_t loc, tree function, p0 = (*params)[0]; p1 = (*params)[1]; - + /* Create pointer to appropriate size. */ I_type = builtin_type_for_size (BITS_PER_UNIT * n, 1); I_type_ptr = build_pointer_type (I_type); @@ -8029,7 +8029,7 @@ resolve_overloaded_atomic_store (location_t loc, tree function, p1 = build_indirect_ref (loc, p1, RO_UNARY_STAR); p1 = build1 (VIEW_CONVERT_EXPR, I_type, p1); (*params)[1] = p1; - + /* The memory model is in the right spot already. Return is void. */ *new_return = NULL_TREE; @@ -9610,7 +9610,7 @@ c_family_tests (void) #endif /* #if CHECKING_P */ /* Attempt to locate a suitable location within FILE for a - #include directive to be inserted before. + #include directive to be inserted before. LOC is the location of the relevant diagnostic. Attempt to return the location within FILE immediately diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index 1e80939..46099b6 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -80,7 +80,7 @@ enum rid are keywords only in specific contexts) */ RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF, RID_ONEWAY, - /* ObjC ("PATTR" reserved words - they do not appear after a '@' + /* ObjC ("PATTR" reserved words - they do not appear after a '@' and are keywords only as property attributes) */ RID_GETTER, RID_SETTER, RID_READONLY, RID_READWRITE, @@ -197,7 +197,7 @@ enum rid RID_AT_PRIVATE, RID_AT_PROTECTED, RID_AT_PUBLIC, RID_AT_PACKAGE, RID_AT_PROTOCOL, RID_AT_SELECTOR, RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, - RID_AT_FINALLY, RID_AT_SYNCHRONIZED, + RID_AT_FINALLY, RID_AT_SYNCHRONIZED, RID_AT_OPTIONAL, RID_AT_REQUIRED, RID_AT_PROPERTY, RID_AT_SYNTHESIZE, RID_AT_DYNAMIC, RID_AT_INTERFACE, diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc index b37a4c0..294315a 100644 --- a/gcc/c-family/c-cppbuiltin.cc +++ b/gcc/c-family/c-cppbuiltin.cc @@ -660,7 +660,7 @@ c_cpp_builtins_optimize_pragma (cpp_reader *pfile, tree prev_tree, /* This function will emit cpp macros to indicate the presence of various lock free atomic operations. */ - + static void cpp_atomic_builtins (cpp_reader *pfile) { @@ -741,26 +741,26 @@ cpp_atomic_builtins (cpp_reader *pfile) lock free. */ #define SIZEOF_NODE(T) (tree_to_uhwi (TYPE_SIZE_UNIT (T))) #define SWAP_INDEX(T) ((SIZEOF_NODE (T) < SWAP_LIMIT) ? SIZEOF_NODE (T) : 0) - builtin_define_with_int_value ("__GCC_ATOMIC_BOOL_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_BOOL_LOCK_FREE", (have_swap[SWAP_INDEX (boolean_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_CHAR_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_CHAR_LOCK_FREE", (have_swap[SWAP_INDEX (signed_char_type_node)]? 2 : 1)); if (flag_char8_t) builtin_define_with_int_value ("__GCC_ATOMIC_CHAR8_T_LOCK_FREE", (have_swap[SWAP_INDEX (char8_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_CHAR16_T_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_CHAR16_T_LOCK_FREE", (have_swap[SWAP_INDEX (char16_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_CHAR32_T_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_CHAR32_T_LOCK_FREE", (have_swap[SWAP_INDEX (char32_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_WCHAR_T_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_WCHAR_T_LOCK_FREE", (have_swap[SWAP_INDEX (wchar_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_SHORT_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_SHORT_LOCK_FREE", (have_swap[SWAP_INDEX (short_integer_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_INT_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_INT_LOCK_FREE", (have_swap[SWAP_INDEX (integer_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_LONG_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_LONG_LOCK_FREE", (have_swap[SWAP_INDEX (long_integer_type_node)]? 2 : 1)); - builtin_define_with_int_value ("__GCC_ATOMIC_LLONG_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_LLONG_LOCK_FREE", (have_swap[SWAP_INDEX (long_long_integer_type_node)]? 2 : 1)); /* If we're dealing with a "set" value that doesn't exactly correspond @@ -787,7 +787,7 @@ cpp_atomic_builtins (cpp_reader *pfile) psize = POINTER_SIZE_UNITS; if (psize >= SWAP_LIMIT) psize = 0; - builtin_define_with_int_value ("__GCC_ATOMIC_POINTER_LOCK_FREE", + builtin_define_with_int_value ("__GCC_ATOMIC_POINTER_LOCK_FREE", (have_swap[psize]? 2 : 1)); } @@ -1822,7 +1822,7 @@ struct GTY(()) lazy_hex_fp_value_struct Each builtin_define_float_constants invocation calls builtin_define_with_hex_fp_value 5 times and builtin_define_float_constants is called for FLT, DBL, LDBL and up to NUM_FLOATN_NX_TYPES times for - FLTNN*. */ + FLTNN*. */ #define LAZY_HEX_FP_VALUES_CNT (5 * (3 + NUM_FLOATN_NX_TYPES)) static GTY(()) struct lazy_hex_fp_value_struct lazy_hex_fp_values[LAZY_HEX_FP_VALUES_CNT]; diff --git a/gcc/c-family/c-format.cc b/gcc/c-family/c-format.cc index 211fb3b..035080e 100644 --- a/gcc/c-family/c-format.cc +++ b/gcc/c-family/c-format.cc @@ -150,12 +150,12 @@ format_warning_substr (location_t fmt_string_loc, tree format_string_cst, /* Check that we have a pointer to a string suitable for use as a format. The default is to check for a char type. For objective-c dialects, this is extended to include references to string - objects validated by objc_string_ref_type_p (). - Targets may also provide a string object type that can be used within c and + objects validated by objc_string_ref_type_p (). + Targets may also provide a string object type that can be used within c and c++ and shared with their respective objective-c dialects. In this case the reference to a format string is checked for validity via a hook. - - The function returns true if strref points to any string type valid for the + + The function returns true if strref points to any string type valid for the language dialect and target. */ bool @@ -206,8 +206,8 @@ handle_format_arg_attribute (tree *node, tree atname, } /* Verify that the format_num argument is actually a string reference suitable, - for the language dialect and target (in case the format attribute is in - error). When we know the specific reference type expected, this is also + for the language dialect and target (in case the format attribute is in + error). When we know the specific reference type expected, this is also checked. */ static bool check_format_string (const_tree fntype, unsigned HOST_WIDE_INT format_num, @@ -241,7 +241,7 @@ check_format_string (const_tree fntype, unsigned HOST_WIDE_INT format_num, return true; /* Now check that the arg matches the expected type. */ - is_char_ref = + is_char_ref = (TYPE_MAIN_VARIANT (TREE_TYPE (ref)) == char_type_node); fmt_flags = format_flags (expected_format_type); @@ -275,18 +275,18 @@ check_format_string (const_tree fntype, unsigned HOST_WIDE_INT format_num, *no_add_attrs = true; return false; } - + /* We will assert that objective-c will support either its own string type or the target-supplied variant. */ if (!is_objc_sref) is_target_sref = (*targetcm.string_object_ref_type_p) ((const_tree) ref); - if (expected_format_type == (int) gcc_objc_string_format_type + if (expected_format_type == (int) gcc_objc_string_format_type && (is_objc_sref || is_target_sref)) return true; /* We will allow a target string ref to match only itself. */ - if (first_target_format_type + if (first_target_format_type && expected_format_type >= first_target_format_type && is_target_sref) return true; @@ -1719,7 +1719,7 @@ check_format_arg (void *ctx, tree format_tree, if (params == 0) res->number_other++; - else + else { if (res->number_extra_args == 0) res->extra_arg_loc = EXPR_LOC_OR_LOC (TREE_VALUE (params), @@ -1760,7 +1760,7 @@ check_format_arg (void *ctx, tree format_tree, } res->format_string_loc = EXPR_LOC_OR_LOC (format_tree, input_location); format_tree = TREE_OPERAND (format_tree, 0); - if (format_types[info->format_type].flags + if (format_types[info->format_type].flags & (int) FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL) { bool objc_str = (info->format_type == gcc_objc_string_format_type); @@ -1768,7 +1768,7 @@ check_format_arg (void *ctx, tree format_tree, a valid type. */ if (TREE_CODE (format_tree) != CONST_DECL || !((objc_str && objc_string_ref_type_p (TREE_TYPE (format_tree))) - || (*targetcm.string_object_ref_type_p) + || (*targetcm.string_object_ref_type_p) ((const_tree) TREE_TYPE (format_tree)))) { res->number_non_literal++; diff --git a/gcc/c-family/c-indentation.cc b/gcc/c-family/c-indentation.cc index 7adec84..3bd85e5 100644 --- a/gcc/c-family/c-indentation.cc +++ b/gcc/c-family/c-indentation.cc @@ -324,7 +324,7 @@ should_warn_for_misleading_indentation (const token_indent_info &guard_tinfo, " the size of the code/headers"); if (!flag_large_source_files) inform (guard_loc, - "adding %<-flarge-source-files%> will allow for more" + "adding %<-flarge-source-files%> will allow for more" " column-tracking support, at the expense of compilation" " time and memory"); } diff --git a/gcc/c-family/c-objc.h b/gcc/c-family/c-objc.h index b690188..d588882 100644 --- a/gcc/c-family/c-objc.h +++ b/gcc/c-family/c-objc.h @@ -163,7 +163,7 @@ extern void objc_add_property_declaration (location_t, tree, extern tree objc_maybe_build_component_ref (tree, tree); extern tree objc_build_class_component_ref (tree, tree); extern tree objc_maybe_build_modify_expr (tree, tree); -extern tree objc_build_incr_expr_for_property_ref (location_t, enum tree_code, +extern tree objc_build_incr_expr_for_property_ref (location_t, enum tree_code, tree, tree); extern void objc_add_synthesize_declaration (location_t, tree); extern void objc_add_dynamic_declaration (location_t, tree); diff --git a/gcc/c-family/c-omp.cc b/gcc/c-family/c-omp.cc index 620a3c1..eacfcdc 100644 --- a/gcc/c-family/c-omp.cc +++ b/gcc/c-family/c-omp.cc @@ -204,7 +204,7 @@ c_finish_omp_taskyield (location_t loc) /* Complete a #pragma omp atomic construct. For CODE OMP_ATOMIC - the expression to be implemented atomically is LHS opcode= RHS. + the expression to be implemented atomically is LHS opcode= RHS. For OMP_ATOMIC_READ V = LHS, for OMP_ATOMIC_CAPTURE_{NEW,OLD} LHS opcode= RHS with the new or old content of LHS returned. LOC is the location of the atomic statement. The value returned @@ -1337,7 +1337,7 @@ c_omp_is_loop_iterator (tree decl, struct c_omp_check_loop_iv_data *d) /* Helper function called via walk_tree, to diagnose uses of associated loop IVs inside of lb, b and incr expressions of OpenMP loops. */ - + static tree c_omp_check_loop_iv_r (tree *tp, int *walk_subtrees, void *data) { diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc index 5eb6940..b920b7d 100644 --- a/gcc/c-family/c-opts.cc +++ b/gcc/c-family/c-opts.cc @@ -147,7 +147,7 @@ static struct deferred_opt } *deferred_opts; -extern const unsigned int +extern const unsigned int c_family_lang_mask = (CL_C | CL_CXX | CL_ObjC | CL_ObjCXX); /* Defer option CODE with argument ARG. */ @@ -778,15 +778,15 @@ c_common_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value, switch (c_language) { case clk_c: - C_handle_option_auto (&global_options, &global_options_set, - scode, arg, value, + C_handle_option_auto (&global_options, &global_options_set, + scode, arg, value, c_family_lang_mask, kind, loc, handlers, global_dc); break; case clk_objc: ObjC_handle_option_auto (&global_options, &global_options_set, - scode, arg, value, + scode, arg, value, c_family_lang_mask, kind, loc, handlers, global_dc); break; @@ -1541,7 +1541,7 @@ sanitize_cpp_opts (void) /* Wlong-long is disabled by default. It is enabled by: [-Wpedantic | -Wtraditional] -std=[gnu|c]++98 ; or - [-Wpedantic | -Wtraditional] -std=non-c99 + [-Wpedantic | -Wtraditional] -std=non-c99 Either -Wlong-long or -Wno-long-long override any other settings. ??? These conditions should be handled in c.opt. */ @@ -1784,13 +1784,13 @@ cb_file_change (cpp_reader *reader, const line_map_ordinary *new_map) /* We're starting the main file. Inform the FE of that. */ lang_hooks.preprocess_main_file (reader, line_table, new_map); - if (new_map + if (new_map && (new_map->reason == LC_ENTER || new_map->reason == LC_RENAME)) { /* Signal to plugins that a file is included. This could happen several times with the same file path, e.g. because of several '#include' or '#line' directives... */ - invoke_plugin_callbacks + invoke_plugin_callbacks (PLUGIN_INCLUDE_FILE, const_cast<char*> (ORDINARY_MAP_FILE_NAME (new_map))); } diff --git a/gcc/c-family/c-ppoutput.cc b/gcc/c-family/c-ppoutput.cc index 722f919..f6f83bd 100644 --- a/gcc/c-family/c-ppoutput.cc +++ b/gcc/c-family/c-ppoutput.cc @@ -207,7 +207,7 @@ class token_streamer print.streamer = this; } - void begin_pragma () + void begin_pragma () { in_pragma = true; } diff --git a/gcc/c-family/c-pragma.cc b/gcc/c-family/c-pragma.cc index 9d71534..de7c378 100644 --- a/gcc/c-family/c-pragma.cc +++ b/gcc/c-family/c-pragma.cc @@ -1880,7 +1880,7 @@ init_pragma (void) #endif global_sso = default_sso; - c_register_pragma (0, "scalar_storage_order", + c_register_pragma (0, "scalar_storage_order", handle_pragma_scalar_storage_order); /* Allow plugins to register their own pragmas. */ diff --git a/gcc/c-family/c-target.def b/gcc/c-family/c-target.def index 79761d2..8a7af16 100644 --- a/gcc/c-family/c-target.def +++ b/gcc/c-family/c-target.def @@ -112,5 +112,5 @@ linkage the declaration would normally have. An example of such function\n\ is WinMain on Win32 targets.", bool, (const char*), NULL) - + HOOK_VECTOR_END (C90_EMPTY_HACK) diff --git a/gcc/c-family/c-ubsan.cc b/gcc/c-family/c-ubsan.cc index 7cd3c6a..a49158b 100644 --- a/gcc/c-family/c-ubsan.cc +++ b/gcc/c-family/c-ubsan.cc @@ -664,7 +664,7 @@ ubsan_maybe_instrument_reference (tree *stmt_p) UBSAN_REF_BINDING); if (op) { - if (TREE_CODE (stmt) == NOP_EXPR) + if (TREE_CODE (stmt) == NOP_EXPR) TREE_OPERAND (stmt, 0) = op; else *stmt_p = op; diff --git a/gcc/c-family/stub-objc.cc b/gcc/c-family/stub-objc.cc index 55650e0..a598162 100644 --- a/gcc/c-family/stub-objc.cc +++ b/gcc/c-family/stub-objc.cc @@ -127,7 +127,7 @@ objc_start_protocol (tree ARG_UNUSED (proto), { } -void +void objc_set_method_opt (bool ARG_UNUSED (optional)) { } @@ -217,7 +217,7 @@ objc_finish_method_definition (tree ARG_UNUSED (fndecl)) { } -bool +bool objc_method_decl (enum tree_code ARG_UNUSED(opcode)) { return false; @@ -316,7 +316,7 @@ objc_get_class_ivars (tree ARG_UNUSED (name)) } void -objc_add_property_declaration (location_t ARG_UNUSED (location), +objc_add_property_declaration (location_t ARG_UNUSED (location), tree ARG_UNUSED (decl), vec<property_attribute_info *>& /*prop_attr_list*/) @@ -363,19 +363,19 @@ objc_build_incr_expr_for_property_ref (location_t ARG_UNUSED (location), } void -objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus), +objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus), tree ARG_UNUSED (property_and_ivar_list)) { } void -objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus), +objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus), tree ARG_UNUSED (property_list)) { } const char * -objc_maybe_printable_name (tree ARG_UNUSED (decl), +objc_maybe_printable_name (tree ARG_UNUSED (decl), int ARG_UNUSED (v)) { return NULL; @@ -449,7 +449,7 @@ objc_string_ref_type_p (tree ARG_UNUSED (strp)) } void -objc_check_format_arg (tree ARG_UNUSED (format_arg), +objc_check_format_arg (tree ARG_UNUSED (format_arg), tree ARG_UNUSED (args_list)) { } |