aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-07-02tree.h (TYPE_ARTIFICIAL): New flag.Eric Botcazou9-2/+65
* tree.h (TYPE_ARTIFICIAL): New flag. * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to the DIE of the type if it is artificial. (gen_array_type_die): Likewise. (gen_enumeration_type_die): Likewise. (gen_struct_or_union_type_die): Likewise. * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL. * lto-streamer-out.c (pack_ts_base_value_fields): Likewise. ada/ * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on the type according to the ARTIFICIAL_P parameter. (create_type_decl): Likewise. (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. Co-Authored-By: Nicolas Setton <setton@adacore.com> Co-Authored-By: Olivier Hainque <hainque@adacore.com> From-SVN: r175781
2011-07-02re PR fortran/49562 ([OOP] assigning value to type-bound function)Janus Weil4-3/+44
2011-07-02 Janus Weil <janus@gcc.gnu.org> PR fortran/49562 * expr.c (gfc_check_vardef_context): Handle type-bound procedures. 2011-07-02 Janus Weil <janus@gcc.gnu.org> PR fortran/49562 * gfortran.dg/typebound_proc_23.f90: New. From-SVN: r175779
2011-07-02Daily bump.GCC Administrator1-1/+1
From-SVN: r175775
2011-07-01re PR c++/49605 (-Wdelete-non-virtual-dtor is not picky enough)Jonathan Wakely4-2/+35
2011-07-01 Jonathan Wakely <jwakely.gcc@gmail.com> PR c++/49605 * init.c (build_delete): Only warn for sfk_deleting_destructor. From-SVN: r175771
2011-07-01Make-lang.in (gnat1): Prepend '+' to the command.Eric Botcazou2-2/+7
* gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. (gnatbind): Likewise. From-SVN: r175769
2011-07-01tree-object-size.c (pass_through_call): Handle BUILT_IN_ASSUME_ALIGNED.Jakub Jelinek2-1/+7
* tree-object-size.c (pass_through_call): Handle BUILT_IN_ASSUME_ALIGNED. From-SVN: r175768
2011-07-01Make-lang.in (cp/decl.o): Depend on pointer-set.h.Jakub Jelinek2-5/+13
* Make-lang.in (cp/decl.o): Depend on pointer-set.h. (cp/class.o): Likewise. (cp/error.o): Likewise. (cp/name-lookup.o): Likewise. (cp/decl2.o): Likewise. Don't depend on $(POINTER_SET_H). From-SVN: r175767
2011-07-01re PR c++/48261 (internal compiler error: in lookup_template_function, at ↵Jason Merrill4-2/+34
cp/pt.c:6227) PR c++/48261 * pt.c (lookup_template_function): Handle non-function. From-SVN: r175766
2011-07-01re PR c++/48593 (Wrong return type when applying address operator to ↵Jason Merrill7-6/+39
inherited, template dependend member, using a typedef) PR c++/48593 * pt.c (tsubst_qualified_id): Check PTRMEM_OK_P. * tree.c (build_qualified_name): Set PTRMEM_OK_P. * semantics.c (finish_parenthesized_expr): Clear PTRMEM_OK_P on SCOPE_REF, too. * cp-tree.h (PTRMEM_OK_P): Apply to SCOPE_REF, too. (QUALIFIED_NAME_IS_TEMPLATE): Switch to lang flag 1. From-SVN: r175765
2011-07-01re PR c++/48883 (?: ternary operator fails in certain contexts - link error)Jason Merrill4-0/+22
PR c++/48883 PR c++/49609 * pt.c (resolve_nondeduced_context): Call mark_used. From-SVN: r175764
2011-07-01tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.Martin Jambor2-0/+5
2011-07-01 Martin Jambor <mjambor@suse.cz> * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs. From-SVN: r175760
2011-07-01re PR c++/49085 (Crash with SIGSEGV during compilation.)Jason Merrill4-0/+26
PR c++/49085 * semantics.c (finish_offsetof): Complain about incomplete type. From-SVN: r175758
2011-07-01Use proper mode for stack save area.H.J. Lu3-3/+13
2011-07-01 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/48016 * explow.c (update_nonlocal_goto_save_area): Use proper mode for stack save area. * function.c (expand_function_start): Likewise. From-SVN: r175756
2011-07-01re PR middle-end/49596 (FAIL: gcc.dg/torture/pr43879_1.c)Richard Guenther2-1/+8
2011-07-01 Richard Guenther <rguenther@suse.de> PR middle-end/49596 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes may have unknown refs. From-SVN: r175753
2011-07-01tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.Kai Tietz4-1/+20
2011-07-01 Kai Tietz <ktietz@redhat.com> * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo. 2011-07-01 Kai Tietz <ktietz@redhat.com> * gcc.dg/tree-ssa/bitwise-sink.c: New test. From-SVN: r175752
2011-07-01config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.Rainer Orth3-10/+22
* config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5. * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it. (Specific, mips-sgi-irix6): Likewise. From-SVN: r175751
2011-07-01re PR libmudflap/49549 (Use of --noinhibit-exec is unportable)Rainer Orth4-0/+33
libmudflap: PR libmudflap/49549 * testsuite/lib/libmudflap.exp (load_gcc_lib): Load target-supports.exp. * testsuite/libmudflap.cth/cthfrags.exp: Only pass --noinhibit-exec to GNU ld. gcc: PR libmudflap/49549 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld. gcc/testsuite: PR libmudflap/49549 * lib/target-supports.exp (check_effective_target_gld): New proc. From-SVN: r175749
2011-07-01tree-pretty-print.c (dump_generic_code): Print [idx]= and [idx1 ...Jakub Jelinek2-8/+53
* tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print [idx]= and [idx1 ... idx2]= before initializers if needed for array initializers. From-SVN: r175748
2011-07-01config.gcc (score-*-elf): Remove score7.o.Chen Liqin6-2210/+1550
2011-07-01 Chen Liqin <liqin.gcc@gmail.com> * config.gcc (score-*-elf): Remove score7.o. * config/score/t-score-elf: Likewise. * config/score/score.c: Merge score7 to score.c and remove forwarding functions. * config/score/score7.c: Deleted. * config/score/score7.h: Deleted. From-SVN: r175747
2011-07-01re PR middle-end/49603 (177.mesa in SPEC CPU 2000 failed to build)Richard Guenther4-12/+37
2011-07-01 Richard Guenther <rguenther@suse.de> PR tree-optimization/49603 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert. * gcc.dg/torture/pr49603.c: New testcase. From-SVN: r175746
2011-06-30correct changelogJason Merrill1-1/+1
From-SVN: r175744
2011-06-30re PR c++/49387 (t.cxx:140: error: too many initializers for ‘const ↵Jason Merrill4-0/+31
__class_type_info_pseudo’) PR c++/49387 * rtti.c (get_pseudo_ti_index): Call complete_type. From-SVN: r175743
2011-07-01Daily bump.GCC Administrator1-1/+1
From-SVN: r175742
2011-06-30re PR c++/49569 (-std=gnu++0x causes segmentation fault)Jason Merrill4-2/+33
PR c++/49569 * method.c (implicitly_declare_fn): Set DECL_PARM_LEVEL and DECL_PARM_INDEX on rhs parm. From-SVN: r175738
2011-06-30* pt.c (iterative_hash_template_arg): Use cp_tree_operand_length.Jason Merrill2-1/+3
From-SVN: r175737
2011-06-30re PR c++/49355 (new T({""}) crashes G++ when struct T { std::string foobar };)Jason Merrill4-4/+33
PR c++/49355 * tree.c (stabilize_init): Handle aggregate initialization. From-SVN: r175736
2011-06-30tree-sra.c (struct access): Rename total_scalarization to ↵Martin Jambor4-25/+93
grp_total_scalarization 2011-06-30 Martin Jambor <mjambor@suse.cz> * tree-sra.c (struct access): Rename total_scalarization to grp_total_scalarization (completely_scalarize_var): New function. (sort_and_splice_var_accesses): Set total_scalarization in the representative access. (analyze_access_subtree): Propagate total scalarization accross the tree, no holes in totally scalarized trees, simplify coverage computation. (analyze_all_variable_accesses): Call completely_scalarize_var instead of completely_scalarize_record. * testsuite/gcc.dg/tree-ssa/sra-12.c: New test. From-SVN: r175733
2011-06-30re PR c++/48481 (C++ overloading memory hog)Jason Merrill5-15/+35
PR c++/48481 * name-lookup.c (struct arg_lookup): Add fn_set. (add_function): Check it. (lookup_arg_dependent_1): Initialize it. From-SVN: r175732
2011-06-30* g++.dg/cpp0x/named.C: Test subobject of xvalue.Jason Merrill2-0/+6
From-SVN: r175731
2011-06-30i386: Always use TARGET_DEEP_BRANCH_PREDICTION.Richard Henderson3-92/+27
While it could be possible to output_set_got such that we can individually annotate the instructions, it's simpler to simply admit that all processors currently being manufactured do want deep branch prediction. At which point all of the complication simply goes away. * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove. (TARGET_DEEP_BRANCH_PREDICTION): Remove. * config/i386/i386.c: Don't include dwarf2out.h. (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION. (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves. (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn. (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION. From-SVN: r175730
2011-06-30dwarf2out: Add REG_CFA_FLUSH_QUEUE.Richard Henderson4-14/+43
* reg-notes.def (REG_CFA_FLUSH_QUEUE): New. * dwarf2out.c (dwarf2out_frame_debug): Handle it. * final.c (final_scan_insn): Look for it, and invoke dwarf2out_frame_debug before the insn if found. From-SVN: r175729
2011-06-30dwarf2out: Handle pc_rtx as return column in REG_CFA_OFFSET too.Richard Henderson2-4/+19
* dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN. From-SVN: r175728
2011-06-30dwarf2out: Convert regs_saved_in_regs to VEC.Richard Henderson2-50/+80
* dwarf2out.c (struct reg_saved_in_data): Provide a typedef. Define a vector of this type. (regs_saved_in_regs): Use a VEC. (num_regs_saved_in_regs): Remove. (compare_reg_or_pc): New. (record_reg_saved_in_reg): Split out from... (dwarf2out_flush_queued_reg_saves): ... here. (clobbers_queued_reg_save): Update for VEC. (reg_saved_in): Likewise. (dwarf2out_frame_debug_init): Likewise. (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg. (dwarf2out_frame_debug_cfa_register): Likewise. From-SVN: r175727
2011-06-30re PR tree-optimization/49572 (gcc.dg/tree-ssa/20030709-2.c ↵Eric Botcazou2-3/+7
scan-tree-dump-times cddce2 ".rtmem" 0) PR tree-optimization/49572 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the type of the RHS instead of that of the LHS for the expression type. From-SVN: r175721
2011-06-30df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro ↵Eric Botcazou2-11/+12
unconditionally. * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro unconditionally. From-SVN: r175718
2011-06-30opts.c (finish_options): Do not disable IPA-PTA during ltrans.Richard Guenther3-37/+69
2011-06-30 Richard Guenther <rguenther@suse.de> * opts.c (finish_options): Do not disable IPA-PTA during ltrans. * tree-ssa-structalias.c (create_variable_info_for): Do not add initial constraints for non-var-decls. Properly handle globals in other ltrans partitions. (intra_create_variable_infos): Manually create constraints for the fake no-alias parameter. (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly and assert there are no clones. From-SVN: r175707
2011-06-30re PR tree-optimization/46787 (Does not vectorize loop with load from scalar ↵Richard Guenther6-52/+42
variable) 2011-06-30 Richard Guenther <rguenther@suse.de> PR tree-optimization/46787 * tree-data-ref.c (dr_address_invariant_p): Remove. (find_data_references_in_stmt): Invariant accesses are ok now. * tree-vect-stmts.c (vectorizable_load): Handle invariant loads. * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow invariant loads. * gcc.dg/vect/vect-121.c: New testcase. From-SVN: r175704
2011-06-30re PR tree-optimization/49094 (ARM aligned(1) attribute is sometimes dropped)Martin Jambor4-1/+74
2011-06-30 Martin Jambor <mjambor@suse.cz> PR tree-optimization/49094 * tree-sra.c (tree_non_mode_aligned_mem_p): New function. (build_accesses_from_assign): Use it. * testsuite/gcc.dg/tree-ssa/pr49094.c: New test. From-SVN: r175703
2011-06-30* de.po: Update.Joseph Myers2-324/+328
From-SVN: r175698
2011-06-30tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of ↵Jakub Jelinek2-1/+17
BUILT_IN_ASSUME_ALIGNED. * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN_ASSUME_ALIGNED. From-SVN: r175695
2011-06-30re PR debug/49364 ([4.7 regressions] Empty .debug_abbrev sections confuse ↵Jakub Jelinek2-6/+14
SGI nm) PR debug/49364 * dwarf2out.c (output_abbrev_section): Don't return early if abbrev_die_table_in_use is 1. (dwarf2out_finish): Instead don't call output_abbrev_section nor emit abbrev_section_label in that case. From-SVN: r175694
2011-06-30re PR fortran/49540 (Memory-hog with large DATA stmt)Jakub Jelinek12-49/+272
PR fortran/49540 * gfortran.h (gfc_constructor): Add repeat field. * trans-array.c (gfc_conv_array_initializer): Handle repeat > 1. * array.c (current_expand): Add repeat field. (expand_constructor): Copy repeat. * constructor.c (node_free, node_copy, gfc_constructor_get, gfc_constructor_lookup): Handle repeat field. (gfc_constructor_lookup_next, gfc_constructor_remove): New functions. * data.h (gfc_assign_data_value): Add mpz_t * argument. (gfc_assign_data_value_range): Removed. * constructor.h (gfc_constructor_advance): Removed. (gfc_constructor_lookup_next, gfc_constructor_remove): New prototypes. * data.c (gfc_assign_data_value): Add REPEAT argument, handle it and also handle overwriting a range with a single entry. (gfc_assign_data_value_range): Removed. * resolve.c (check_data_variable): Adjust gfc_assign_data_value call. Use gfc_assign_data_value instead of gfc_assign_data_value_expr. * gfortran.dg/pr49540-1.f90: New test. * gfortran.dg/pr49540-2.f90: New test. From-SVN: r175693
2011-06-30re PR ada/49511 (acats test setup fails on HP-UX using posix shell)Rainer Orth2-2/+7
PR ada/49511 * ada/acats/run_acats (which): Use last field of type -p output. From-SVN: r175690
2011-06-30re PR libobjc/36610 (objc_msg_sendv is broken for targets which pass ↵Dominique d'Humieres2-2/+8
argument via registers) 2011-06-28 Dominique d'Humieres <dominiq@lps.ens.fr> Iain Sandoe <iains@gcc.gnu.org> PR libobjc/36610 * objc.dg/torture/forward-1.m: Remove dg-xfail-run-if. Only skip on 64-bit *-*-darwin8* && !objc2. Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org> From-SVN: r175689
2011-06-30v850.h (CPP_SPEC): Define __v850e__ when compiling for the V850E.Nick Clifton2-0/+6
* config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling for the V850E. From-SVN: r175688
2011-06-30re PR tree-optimization/38752 (ICE in set_uids_in_ptset, at ↵Richard Guenther2-0/+30
tree-ssa-structalias.c:4817) 2011-06-30 Richard Guenther <rguenther@suse.de> PR tree-optimization/38752 * gcc.c-torture/compile/pr38752.c: New testcase. From-SVN: r175684
2011-06-30tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of ↵Jakub Jelinek2-1/+8
BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK. * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK. From-SVN: r175682
2011-06-30tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern ↵Ira Rosen8-56/+287
and original statements if necessary. * tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern and original statements if necessary. (vect_transform_loop): Likewise. * tree-vect-patterns.c (vect_pattern_recog): Update documentation. * tree-vect-stmts.c (vect_mark_relevant): Add new argument. Mark the pattern statement only if the original statement doesn't have its own uses. (process_use): Call vect_mark_relevant with additional parameter. (vect_mark_stmts_to_be_vectorized): Likewise. (vect_get_vec_def_for_operand): Use vectorized pattern statement. (vect_analyze_stmt): Handle both pattern and original statements if necessary. (vect_transform_stmt): Don't store vectorized pattern statement in the original statement. (vect_is_simple_use_1): Use related pattern statement only if the original statement is irrelevant. * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise. From-SVN: r175681
2011-06-30Daily bump.GCC Administrator1-1/+1
From-SVN: r175678
2011-06-29re PR c++/49216 ([C++0x] ICE on compiling new-expression with ↵Jason Merrill6-16/+65
braced-init-list for arrays) PR c++/49216 * init.c (build_new_1): Pass {} down to build_vec_init. (build_vec_init): Handle it. From-SVN: r175674