- 14 Nov, 2010 4 commits
-
-
In gcc/objc/: 2010-11-14 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_property_declaration): Check that the decl we received from the parser is a FIELD_DECL; reject array and bitfield properties. Convert the warning when a property is readonly and a setter is specified into an error. Convert errors when a property declaration does not match a property declaration in a superclass into warnings. (objc_add_synthesize_declaration_for_property): Use DECL_BIT_FIELD_TYPE to determine the type of an instance variable if it is a bitfield. Throw an error if we are asked to synthesize setters/getters for a bitfield instance variable but the property is not appropriate - it must be assign and nonatomic. If the property is readonly, allow the instance variable type to be a specialization of the property type. (objc_type_valid_for_messaging): Fixed returning 'false' for a Class qualified with a protocol when the 'accept_classes' argument is 'false'. In gcc/testsuite/: 2010-11-14 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/at-property-21.m: New. * objc.dg/property/at-property-22.m: New. * objc.dg/property/at-property-23.m: New. * objc.dg/property/synthesize-9.m: New. * objc.dg/property/synthesize-10.m: New. * objc.dg/property/synthesize-11.m: New. * obj-c++.dg/property/at-property-21.mm: New. * obj-c++.dg/property/at-property-22.mm: New. * obj-c++.dg/property/at-property-23.mm: New. * obj-c++.dg/property/synthesize-9.mm: New. * obj-c++.dg/property/synthesize-10.mm: New. * obj-c++.dg/property/synthesize-11.mm: New. * objc.dg/property/at-property-4.m: Updated to match new compiler where some errors have been converted into warnings and vice versa. * objc.dg/property/at-property-16.m: Same change. * objc.dg/property/at-property-18.m: Same change. * objc.dg/property/property-neg-5.m: Same change. * obj-c++.dg/property/at-property-4.mm: Same change. * obj-c++.dg/property/at-property-16.mm: Same change. * obj-c++.dg/property/at-property-18.mm: Same change. * obj-c++.dg/property/property-neg-5.mm: Same change. * obj-c++.dg/property/dynamic-2.mm: Enable tests that were commented out because of testsuite problems; I found out that using dg-warning instead of dg-message gets them to work. * obj-c++.dg/property/property-neg-3.mm: Same change. * obj-c++.dg/property/synthesize-6.mm: Same change. * obj-c++.dg/property/at-property-5.mm: Same change. * obj-c++.dg/property/at-property-14.mm: Same change. * obj-c++.dg/property/at-property-18.mm: Same change. * obj-c++.dg/property/at-property-16.mm: Same change (in this file, some tests still do not work due to some other testsuite issue). From-SVN: r166730
Nicola Pero committed -
gcc/ * config/mips/mips.c (machine_function): Remove initialized_mips16_gp_pseudo_p. (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to detect whether a pseudo has already been created. Unconditionally create a new one if not. (mips_pic_base_register): Only call mips16_gp_pseudo_reg when expanding to rtl. Create a new pseudo otherwise, if allowed. From-SVN: r166729
Richard Sandiford committed -
From-SVN: r166728
GCC Administrator committed -
* decl.c (cp_finish_decl): Use resolve_nondeduced_context for auto. * init.c (build_new): Likewise. * pt.c (tsubst_decl): Likewise. (do_auto_deduction): Likewise. (resolve_nondeduced_context): Use build_offset_ref and cp_build_addr_expr. From-SVN: r166724
Jason Merrill committed
-
- 13 Nov, 2010 27 commits
-
-
PR target/43440 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro. * tm.texi: Regenerated. * output.h (decode_reg_name_and_count): Declare. * varasm.c (decode_reg_name_and_count): New function. (decode_reg_name): Reimplement using decode_reg_name_and_count. * reginfo.c (fix_register): Use decode_reg_name_and_count and iterate over all regs used. * stmt.c (expand_asm_operands): Likewise. * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define. (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap multiple machine registers. From-SVN: r166723
Richard Earnshaw committed -
* tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro. * tm.texi: Regenerated. * output.h (decode_reg_name_and_count): Declare. * varasm.c (decode_reg_name_and_count): New function. (decode_reg_name): Reimplement using decode_reg_name_and_count. * reginfo.c (fix_register): Use decode_reg_name_and_count and iterate over all regs used. * stmt.c (expand_asm_operands): Likewise. * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define. (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap multiple machine registers. From-SVN: r166722
Richard Earnshaw committed -
* stor-layout.c (place_union_field): Do not put location information on offset expressions. (place_field): Likewise. (finalize_record_size): Likewise on size expressions. (finalize_type_size): Likewise. (layout_type): Likewise. From-SVN: r166721
Eric Botcazou committed -
2010-11-13 Georg-Johann Lay <georgjohann@web.de> PR bootstrap/39622 * configure.ac (FLAGS_FOR_TARGET): Add include-fixed path. * configure: Regenerated. From-SVN: r166720
Georg-Johann Lay committed -
PR debug/42889 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns. * df-core.c (df_set_bb_dirty_nonrl): Remove. * df.h (df_set_bb_dirty_nonlr): Likewise. From-SVN: r166719
Alexandre Oliva committed -
2010-11-13 Kai Tietz <kai.tietz@onevision.com> * lto-plugin.c (add_output_files): Fix memory leak. From-SVN: r166718
Kai Tietz committed -
gcc/ 2010-11-03 Uros Bizjak <ubizjak@gmail.com> * config/mips/mips.md (call_internal): Pass curr_insn to mips_split_call. (call_internal_direct): Ditto. (call_value_internal): Ditto. (call_value_internal_direct): Ditto. (call_value_multiple_internal): Ditto. * config/mips/mips.c (mips_split_call): Do not copy CALL_INSN_FUNCTION_USAGE here. From-SVN: r166717
Uros Bizjak committed -
gcc/ 2010-09-21 Mingming Sun <mingm.sun@gmail.com> * doc/invoke.texi (MIPS Options): Add loongson3a processor. * config/mips/mips.md (define_attr "cpu"): Add loongson_3a. (define_insn "prefetch"): Add TARGET_LOONGSON_3A. * config/mips/mips.h (TARGET_LOONGSON_3A): Define. (TUNE_LOONGSON_3A): Define. (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A. (MIPS_ISA_LEVEL_SPEC): Add loongson3a. * config/mips/mips.c (mips_cpu_info_table): Add loongson3a. (mips_issue_rate): Add PROCESSOR_LOONGSON_3A. (mips_rtx_cost_data): Add Loongson-3A. From-SVN: r166716
Mingming Sun committed -
gcc/testsuite: * objc.dg/fsf-nsstring-format-1.m: Adjust format messages. * obj-c++.dg/fsf-nsstring-format-1.mm: Likewise. From-SVN: r166713
Iain Sandoe committed -
* MAINTAINERS: Update my email address. From-SVN: r166712
Kaveh R. Ghazi committed -
2010-11-13 Paolo Bonzini <bonzini@gnu.org> PR c/46462 * gcc.dg/gomp/pr34607.c: Adjust errors for unknown typenames. * gcc.dg/pr35746.c: Likewise. * gcc.dg/cpp/direct2.c: Likewise. * gcc.dg/cpp/direct2s.c: Likewise. * gcc.dg/noncompile/920923-1.c: Likewise. * gcc.dg/dfp/constants-c99.c: Add -Wno-overflow. From-SVN: r166711
Paolo Bonzini committed -
2010-11-13 Nicola Pero <nicola.pero@meta-innovation.com> * obj-c++.dg/attributes/method-format-1.mm: Adjust. From-SVN: r166710
Nicola Pero committed -
In gcc/objc/: 2010-11-13 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_get_protocol_qualified_type): detect cases where we are asked to attach a protocol to something which is not an Objective-C object type, and produce an error. In gcc/testsuite/: 2010-11-13 Nicola Pero <nicola.pero@meta-innovation.com> * objc/compile/20060406-1.m: Fixed testcase not to try to qualify a pointer to an arbitrary C struct with an Objective-C protocol. Test various valid uses of typedef with Objective-C objects and protocols instead. * objc.dg/invalid-type-1.m: New. * obj-c++.dg/invalid-type-1.m: New. From-SVN: r166709
Nicola Pero committed -
From-SVN: r166708
Eric Botcazou committed -
2010-11-13 Paolo Bonzini <bonzini@gnu.org> * objc.dg/attributes/method-format-1.m: New test. From-SVN: r166707
Paolo Bonzini committed -
gcc: * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto switches. From-SVN: r166706
Iain Sandoe committed -
gcc/testsuite: * gcc.dg/darwin-segaddr.c: New test for multiple argument c/l switch. From-SVN: r166705
Iain Sandoe committed -
gcc: * dwarf2out.c (macinfo_entry): New struct. (output_comp_unit): Emit the section start label here and flag that we will emit an info section. (dwarf2out_start_source_file): Save data in a macinfo entry rather than emitting directly. (dwarf2out_end_source_file): Likewise. (dwarf2out_define): Likewise. (dwarf2out_undef): Likewise. (output_macinfo): New. (dwarf2out_init): Do not emit debug section switches here, allocate a vec for macinfo, when required. (dwarf2out_finish): First switch to debug_abbrev_section here. debug_line_section, debug_macinfo_section, Likewise. Check that the pubtypes table has at least one unpruned entry before trying to emit it. From-SVN: r166704
Iain Sandoe committed -
From-SVN: r166703
Joseph Myers committed -
2010-11-13 Tobias Burnus <burnus@net-b.de> PR fortran/45742 * gfortran.dg/volatile12.f90: Use the right three in * cleanup-tree-dump. From-SVN: r166702
Tobias Burnus committed -
2010-11-13 Tobias Burnus <burnus@net-b.de> PR fortran/45742 * trans-common.c (build_field): Add TREE_SIDE_EFFECTS for * volatile. * trans-decl.c (gfc_finish_var_decl): Ditto. (create_function_arglist): Handle volatile dummy arguments. 2010-11-13 Tobias Burnus <burnus@net-b.de> PR fortran/45742 * gfortran.dg/volatile12.f90: New. From-SVN: r166701
Tobias Burnus committed -
2010-10-30 Paolo Bonzini <bonzini@gnu.org> PR c/20385 * c-parser.c (c_parser_next_token_starts_declaration): Rename to... (c_parser_next_tokens_start_declaration): ... this. Handle 2nd token lookahead. (c_parser_compound_statement_nostart, c_parser_label, c_parser_for_statement, c_parser_omp_for_loop): Adjust calls. (c_parser_declaration_or_fndef): Detect the case now matched by c_parser_next_tokens_start_declaration, give error and correct it. testsuite: 2010-11-13 Paolo Bonzini <bonzini@gnu.org> PR c/20385 * gcc.dg/decl-9.c: New. From-SVN: r166700
Paolo Bonzini committed -
2010-11-13 Paolo Bonzini <bonzini@gnu.org> * c-tree.h (enum c_typespec_kind): Add ctsk_none. (struct c_declspecs): Replace tagdef_seen_p and type_seen_p with typespec_kind. * c-decl.c (build_null_declspecs): Initialize typespec_kind. (shadow_tag_warned, check_compound_literal_type): Adjust uses of tag_defined_p. (declspecs_add_type): Set typespec_kind. * c-parser.c (c_parser_declaration_or_fndef, c_parser_declspecs, c_parser_struct_declaration, c_parser_parameter_declaration, c_parser_type_name, c_parser_objc_diagnose_bad_element_prefix): Adjust uses of type_seen_p. * c-typeck.c (c_cast_expr): Use typespec_kind instead of tag_defined_p, pass ctsk_firstref through. testsuite: 2010-11-13 Paolo Bonzini <bonzini@gnu.org> * gcc.dg/Wcxx-compat-8.c: Add testcases involving incomplete types. From-SVN: r166699
Paolo Bonzini committed -
gcc: 2010-11-13 Paolo Bonzini <bonzini@gnu.org> * c-format.c (enum format_specifier_kind, kind_descriptions): New. (struct format_wanted_type): Replace field "name" with "kind", add "format_start" and "format_length". (check_format_info_main): Fill in new fields. Fill in FORMAT_WANTED_TYPES even for missing arguments. Move checks after the final NUL outside the while loop. Do not include width and precision modifiers in the format_start/format_length of the main format. (check_format_types): Remove FORMAT_START and FORMAT_LENGTH arguments. Compute WANTED_TYPE first so that format_type_warning can be called for missing arguments. Adjust calls to format_type_warning. (format_type_warning): Fetch as much information as possible from format_wanted_type. Adjust printing now that every warning has a "descr", as well as for missing argument warnings and to include % sign for format specifiers. testsuite: 2010-11-13 Paolo Bonzini <bonzini@gnu.org> * gcc.dg/format/few-1.c: New test. * gcc.dg/format/asm_fprintf-1.c: Adjust. * gcc.dg/format/c90-scanf-1.c: Adjust. * gcc.dg/format/cmn-err-1.c: Adjust. * gcc.dg/format/dfp-printf-1.c: Adjust. * gcc.dg/format/dfp-scanf-1.c: Adjust. * gcc.dg/format/gcc_diag-1.c: Adjust. * gcc.dg/format/ms_unnamed-1.c: Adjust. * gcc.dg/format/strfmon-1.c: Adjust. * gcc.dg/format/unnamed-1.c: Adjust. * gcc.dg/format/xopen-2.c: Adjust. * g++.dg/ext/builtin4.C: Adjust. * g++.dg/ext/builtin5.C: Adjust. From-SVN: r166698
Paolo Bonzini committed -
PR rtl-optimization/46204 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument. Update all callers. Do not recompute topological order. Adjust fallthrough edges following a degenerate conditional jump. From-SVN: r166697
Alexander Monakov committed -
libiberty/: PR other/46332 * cp-demangle.c (d_print_function_type): Don't print parentheses if there are no modifiers to print. * testsuite/demangle-expected: Tweak one test case, add another. libstdc++/: * testsuite/abi/demangle/abi_examples/14.cc (main): Change expected demangling. From-SVN: r166695
Ian Lance Taylor committed -
From-SVN: r166694
GCC Administrator committed
-
- 12 Nov, 2010 9 commits
-
-
From-SVN: r166690
Joseph Myers committed -
* opts-common.c (control_warning_option): New. * opts.c (set_default_handlers): New. (decode_options): Use set_default_handlers and control_warning_option. (common_handle_option): Update call to enable_warning_as_error. (enable_warning_as_error): Take gcc_options parameters. Use control_warning_option. * opts.h (set_default_handlers, control_warning_option): Declare. c-family: * c-common.h (c_family_lang_mask): Declare. * c-opts.c (c_family_lang_mask): Make extern. * c-pragma.c (handle_pragma_diagnostic): Use control_warning_option. testsuite: * gcc.dg/pragma-diag-2.c: New test. From-SVN: r166689
Joseph Myers committed -
* Makefile.in (OPTS_H): Define. (c-decl.o, c-family/c-common.o, c-family/c-opts.o, c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o, cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o, opts-common.o, toplev.o, passes.o, matrix-reorg.o, ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H). * gcc.c (driver_handle_option): Take location_t parameter. (process_command, do_self_spec): Update calls to read_cmdline_option. * langhooks-def.h (lhd_handle_option): Take location_t parameter. * langhooks.c (lhd_handle_option): Take location_t parameter. * langhooks.h (handle_option): Take location_t parameter. * lto-opts.c (lto_reissue_options): Update call to set_option. * opts-common.c (handle_option): Make static. Take location_t parameter and pass it to other functions. (handle_generated_option): Take location_t parameter and pass it to other functions. (read_cmdline_option): Take location_t parameter and pass it to other functions. Use warning_at and error_at. (set_option): Take location_t parameter and pass it to other functions. * opts.c (common_handle_option): Take location_t parameter and pass it to other functions. (enable_warning_as_error): Make static. Take location_t parameter and pass it to other functions. (lang_handle_option): Take location_t parameter and pass it to other functions. (target_handle_option): Take location_t parameter. (read_cmdline_options, maybe_default_option, maybe_default_options, default_options_optimization, decode_options): Take location_t parameter and pass it to other functions. * opts.h: Include input.h. (struct cl_option_handler_func, decode_options, set_option, handle_generated_option, read_cmdline_option): Take location_t parameters. (handle_option, enable_warning_as_error): Remove. * toplev.c (toplev_main): Update call to decode_options. ada: * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTS_H). * gcc-interface/misc.c (gnat_handle_option): Take location_t parameter. c-family: * c-common.c (parse_optimize_options): Update call to decode_options. * c-common.h (c_common_handle_option): Update prototype. * c-opts.c (c_common_handle_option): Take location_t parameter and pass it to other functions. cp: * Make-lang.in (g++spec.o): Use $(OPTS_H). fortran: * Make-lang.in (gfortranspec.o): Use $(OPTS_H). * gfortran.h (gfc_handle_option): Take location_t parameter. * options.c (gfc_handle_option): Take location_t parameter. java: * Make-lang.in (jvspec.o, java/lang.o): Use $(OPTS_H). * lang.c (java_handle_option): Take location_t parameter. lto: * Make-lang.in (lto/lto.o): Use $(OPTS_H). * lto-lang.c (lto_handle_option): Take location_t parameter. From-SVN: r166688
Joseph Myers committed -
2010-11-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/45794 * gfortran.dg/optional_mask.f90: New test. From-SVN: r166687
Jerry DeLisle committed -
2010-11-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/45794 trans-expr.c (gfc_conv_procedure_call): Avoid NULL array spec. From-SVN: r166686
Jerry DeLisle committed -
Core 1135, 1136, 1145, 1149 * method.c (defaultable_fn_check): Do not disallow defaulting a non-public or explicit special member function on its first declaration. From-SVN: r166685
Ville Voutilainen committed -
* config/cloog.m4: Add -enable-cloog-backend=(isl|ppl|ppl-legacy) to define the cloog backend to use. Furthermore, only pass the ppllibs to the configure checks, if necessary. *configure: Regenerate. From-SVN: r166684
Tobias Grosser committed -
* graphite-cloog-util.c (oppose_constraint, cloog_matrix_to_ppl_constraint, new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as CLooG isl uses unsigned integers. This triggered a warning. From-SVN: r166683
Tobias Grosser committed -
* config/cloog.m4: Use CLooG predefined macro to check for CLooG PPL. * configure: regenerate From-SVN: r166682
Tobias Grosser committed
-