aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26frontend-passes.c (inserted_block): New variable.Thomas Koenig2-5/+43
2011-04-26 Thomas Koenig <tkoenig@gcc.gnu.org> * frontend-passes.c (inserted_block): New variable. (changed_statement): Likewise. (create_var): Encase statement to be operated on in a BLOCK. Adjust code insertion for BLOCK. (cfe_code): Set inserted_block and changed_statement to NULL. From-SVN: r172983
2011-04-26configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.David S. Miller3-0/+8
2011-04-26 David S. Miller <davem@davemloft.net> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment. * configure: Regenerate. Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> From-SVN: r172982
2011-04-26PR target/48258, improve vector reduction on power7Michael Meissner7-7/+405
From-SVN: r172981
2011-04-26fr30.h (inhibit_libc): Don't define.Joseph Myers4-9/+12
* config/fr30/fr30.h (inhibit_libc): Don't define. * config/m32r/m32r-protos.h: Correct comment. * config/v850/v850.h (GHS_default_section_names, GHS_current_section_names): Use tree, not union tree_node *. From-SVN: r172980
2011-04-26Fixed gcc.dg/binop-xor[1-5].c filenames.Rainer Orth1-5/+5
From-SVN: r172979
2011-04-26Implement -Wno-maybe-uninitializedXinliang David Li11-25/+88
From-SVN: r172978
2011-04-26class.c (cp_fold_obj_type_ref): Remove.Martin Jambor3-29/+5
2011-04-26 Martin Jambor <mjambor@suse.cz> * class.c (cp_fold_obj_type_ref): Remove. * cp-tree.h (cp_fold_obj_type_ref): Remove declaration. From-SVN: r172977
2011-04-26iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.Rainer Orth2-6/+12
* config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI. (WINT_TYPE_SIZE): Use INT_TYPE_SIZE. (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards. From-SVN: r172976
2011-04-26mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.Rainer Orth5-17/+17
* config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove. * config/mips/mips.opt (mmips-tfile): Remove. * doc/install.texi (Specific, mips-*-*): Move mips-tfile, mips-tdump reference to ... (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX. * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS reference by Tru64 UNIX. From-SVN: r172975
2011-04-26* de.po: Update.Joseph Myers2-308/+312
From-SVN: r172973
2011-04-26re PR debug/48768 (ICE in get_expr_operands())Jakub Jelinek4-1/+50
PR debug/48768 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result is error_mark_node, set value to NULL. * gcc.dg/pr48768.c: New test. From-SVN: r172968
2011-04-26re PR tree-optimization/48734 (ICE in eliminate_redundant_comparison, at ↵Jakub Jelinek4-1/+37
tree-ssa-reassoc.c:1321) PR tree-optimization/48734 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up if return value from maybe_fold_*_comparsions isn't something the code is prepared to handle. * gcc.c-torture/compile/pr48734.c: New test. From-SVN: r172967
2011-04-26re PR testsuite/48753 (FAIL: gcc.dg/tree-prof/val-prof-2.c)Jakub Jelinek2-1/+6
PR testsuite/48753 * gcc.dg/tree-prof/val-prof-2.c: Adjust for 32-bit HWI. From-SVN: r172966
2011-04-26predicates.md (ext_QIreg_operand): Remove extra mode check.Uros Bizjak3-47/+55
* config/i386/predicates.md (ext_QIreg_operand): Remove extra mode check. (ext_QIreg_nomode_operands): Remove. * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand. (*andsi_1): Ditto. (*andhi_1): Ditto. From-SVN: r172965
2011-04-26re PR c/48731 (regression: __attribute__((flatten)) produces error with ↵Richard Guenther2-0/+29
function calling variadic functions) 2011-04-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/48731 * gcc.dg/torture/pr48731.c: New testcase. From-SVN: r172964
2011-04-26arm.c (arm_gen_constant): Remove can_negate_initial.Andrew Stubbs2-2/+4
2011-04-26 Andrew Stubbs <ams@codesourcery.com> gcc/ * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial. From-SVN: r172962
2011-04-26re PR preprocessor/48248 (Wrong error message location when compiling ↵Richard Guenther2-1/+8
preprocessed code) 2011-04-26 Richard Guenther <rguenther@suse.de> PR preprocessor/48248 * c-ppoutput.c (maybe_print_line): Always optimize newlines for output size with -P. From-SVN: r172959
2011-04-26c-typeck.c (build_unary_op): Do not expand array-refs via pointer arithmetic.Richard Biener1-11/+3
2011-04-26 Richard Guenther <rguenther@suse.de> * c-typeck.c (build_unary_op): Do not expand array-refs via pointer arithmetic. Only adjust qualifiers for function types. From-SVN: r172958
2011-04-26re PR tree-optimization/48694 (possible memory hog bug)Richard Biener1-0/+14
2011-04-26 Richard Guenther <rguenther@suse.de> PR middle-end/48694 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag. * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set. * gcc.dg/torture/pr48694-1.c: New testcase. * gcc.dg/torture/pr48694-2.c: Likewise. From-SVN: r172957
2011-04-26re PR testsuite/48753 (FAIL: gcc.dg/tree-prof/val-prof-2.c)Richard Guenther2-1/+6
2011-04-26 Richard Guenther <rguenther@suse.de> PR testsuite/48753 * gcc.dg/tree-prof/val-prof-2.c: Adjust. From-SVN: r172955
2011-04-26re PR tree-optimization/48694 (possible memory hog bug)Richard Guenther5-3/+48
2011-04-26 Richard Guenther <rguenther@suse.de> PR middle-end/48694 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag. * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set. * gcc.dg/torture/pr48694-1.c: New testcase. * gcc.dg/torture/pr48694-2.c: Likewise. From-SVN: r172954
2011-04-26Daily bump.GCC Administrator1-1/+1
From-SVN: r172950
2011-04-25c-common.c (struct c_common_resword): Add __underlying_type.Paolo Carlini3-1/+5
/gcc 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * c-family/c-common.c (struct c_common_resword): Add __underlying_type. * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE. * doc/extend.texi: Document __underlying_type. /cp 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * cp-tree.def: Add a new UNDERLYING_TYPE tree code. * cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy. (UNDERLYING_TYPE_TYPE): Add. * cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE as TS_COMMON. * parser.c (cp_lexer_next_token_is_decl_specifier_keyword, cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE. (cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy. * semantics.c (finish_underlying_type): New. * typeck.c (structural_comptypes): Handle UNDERLYING_TYPE. * error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise. * cxx-pretty-print.c (p_cxx_type_id): Likewise. * tree.c (cp_walk_subtrees): Likewise. * pt.c (for_each_template_parm_r, tsubst, unify, dependent_type_p_r): Likewise. * mangle.c (write_type): Sorry for __underlying_type. /testsuite 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/ext/underlying_type1.C: New. * g++.dg/ext/underlying_type2.C: Likewise. * g++.dg/ext/underlying_type3.C: Likewise. * g++.dg/ext/underlying_type4.C: Likewise. * g++.dg/ext/underlying_type5.C: Likewise. * g++.dg/ext/underlying_type6.C: Likewise. * g++.dg/ext/underlying_type7.C: Likewise. * g++.dg/ext/underlying_type8.C: Likewise. * g++.dg/ext/underlying_type9.C: Likewise. * g++.dg/ext/underlying_type10.C: Likewise. From-SVN: r172945
2011-04-25c-common.c (struct c_common_resword): Add __underlying_type.Paolo Carlini26-16/+448
/gcc 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * c-family/c-common.c (struct c_common_resword): Add __underlying_type. * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE. /cp 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * cp-tree.def: Add a new UNDERLYING_TYPE tree code. * cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy. (UNDERLYING_TYPE_TYPE): Add. * cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE as TS_COMMON. * parser.c (cp_lexer_next_token_is_decl_specifier_keyword, cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE. (cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy. * semantics.c (finish_underlying_type): New. * typeck.c (structural_comptypes): Handle UNDERLYING_TYPE. * error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise. * cxx-pretty-print.c (p_cxx_type_id): Likewise. * tree.c (cp_walk_subtrees): Likewise. * pt.c (for_each_template_parm_r, tsubst, unify, dependent_type_p_r): Likewise. * mangle.c (write_type): Sorry for __underlying_type. * doc/extend.texi: Document __underlying_type. /testsuite 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/ext/underlying_type1.C: New. * g++.dg/ext/underlying_type2.C: Likewise. * g++.dg/ext/underlying_type3.C: Likewise. * g++.dg/ext/underlying_type4.C: Likewise. * g++.dg/ext/underlying_type5.C: Likewise. * g++.dg/ext/underlying_type6.C: Likewise. * g++.dg/ext/underlying_type7.C: Likewise. * g++.dg/ext/underlying_type8.C: Likewise. * g++.dg/ext/underlying_type9.C: Likewise. * g++.dg/ext/underlying_type10.C: Likewise. From-SVN: r172943
2011-04-25re PR c++/48707 ([c++0x] ICE initializing static const int)Jason Merrill6-9/+85
PR c++/48707 * decl.c (type_dependent_init_p): New. (cp_finish_decl): Check it. * pt.c (any_type_dependent_elements_p): New. * cp-tree.h: Declare it. From-SVN: r172941
2011-04-25titan.md (automata_option "progress"): Remove.Segher Boessenkool2-2/+4
2011-04-25 Segher Boessenkool <segher@kernel.crashing.org> * config/rs6000/titan.md (automata_option "progress"): Remove. From-SVN: r172940
2011-04-25Typo in testJeff Law1-1/+1
From-SVN: r172939
2011-04-25tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.Jeff Law4-11/+61
* tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too. * gcc.dg/tree-ssa/vrp56.c: new test. From-SVN: r172938
2011-04-25* go.test/go-test.exp (go-set-goarch): Accept mips*-*-*.Rainer Orth2-1/+5
From-SVN: r172937
2011-04-25ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.Jan Kratochvil2-9/+4
include/ * ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h. contrib/ * paranoia.cc (ENUM_BITFIELD): Remove. gcc/ * system.h (ENUM_BITFIELD): Remove. libcpp/ * system.h (ENUM_BITFIELD): Remove. From-SVN: r172933
2011-04-25Use backend interface for function types.Ian Lance Taylor10-172/+178
Drop type_tree() functions for Float_type and Complex_type. Don't define builtin functions until gogo is created. * go-gcc.cc (Gcc_backend::error_type): Implement. (Gcc_backend::string_type): Remove. (Gcc_backend::function_type): Change signature and implement. (Gcc_backend::struct_type): Change signature. (Gcc_backend::slice_type, Gcc_backend::map_type): Remove. (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove. (Gcc_backend::pointer_type): Check for error. * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h. From-SVN: r172932
2011-04-25Use backend interface for basic typesEvan Shaw4-68/+156
* go-gcc.c (class Gcc_tree): Make get_tree const. (Gcc_backend::void_type): Implement. (Gcc_backend::bool_type): Implement. (Gcc_backend::integer_type): Implement. (Gcc_backend::float_type): Implement. (Gcc_backend::complex_type): New function. (Gcc_backend::pointer_type): New function. (Gcc_backend::make_type): New function. (type_to_tree): New function. From-SVN: r172931
2011-04-25combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals for ↵Maxim Kuvyrkov2-1/+10
STORE_FLAG_VALUE==-1 case. * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals for STORE_FLAG_VALUE==-1 case. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r172930
2011-04-25Daily bump.GCC Administrator1-1/+1
From-SVN: r172929
2011-04-24Author: Richard Sandiford <richard.sandiford@linaro.org>Richard Sandiford2-1/+8
PR target/43804 * gcc/config/m68k/constraints.md (T): Allow PIC operands that satisfy LEGITIMATE_PIC_OPERAND_P. From-SVN: r172920
2011-04-24ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette WPA hack.Jan Hubicka4-16/+54
* ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette WPA hack. * ipa-prop.h (ipa_get_param, ipa_is_param_used, ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty, ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds. * ipa-inline-analysis.c (add_clause): Fix clause ordering. (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate): Sanity check predicate length. (remap_predicate): Likewise; sanity check jump functions. (inline_read_section, inline_write_summary): Sanity check predicate length. From-SVN: r172914
2011-04-24re PR other/48748 (Undocumented type traits used in libstdc++-4.6)Paolo Carlini2-21/+43
2011-04-24 Paolo Carlini <paolo.carlini@oracle.com> PR other/48748 * doc/extend.texi (Type Traits): Document __is_standard_layout, __is_literal_type, and __is_trivial; update throughout about possibly cv-qualified void types. From-SVN: r172911
2011-04-24sourcebuild.texi (Ada Tests): Adjust reference to ACATS testsuite and make ↵Gerald Pfeifer2-2/+7
it version agnostic. * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS testsuite and make it version agnostic. From-SVN: r172910
2011-04-24Daily bump.GCC Administrator1-1/+1
From-SVN: r172909
2011-04-24re PR preprocessor/48740 (Raw C++0x strings and trigraphs mix badly)Jakub Jelinek2-0/+18
PR preprocessor/48740 * lex.c (lex_raw_string): When raw string ends with ??) followed by raw prefix and ", ensure it is preprocessed with ??) rather than ??]. * c-c++-common/raw-string-11.c: New test. From-SVN: r172903
2011-04-23gnat_ugn.texi (Complexity Metrics Control): Update link to the Watson/McCabe ↵Gerald Pfeifer2-1/+6
paper. * gnat_ugn.texi (Complexity Metrics Control): Update link to the Watson/McCabe paper. From-SVN: r172902
2011-04-23pr48616.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.John David Anglin2-0/+6
* gcc.dg/pr48616.c (dg-options): Add -fno-common to options on hppa*-*-hpux*. From-SVN: r172899
2011-04-23* ipa-inline-analysis.c (inline_write_summary): Fix thinko.Jan Hubicka2-2/+6
From-SVN: r172898
2011-04-23re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])Tobias Burnus5-1/+58
2011-04-23 Tobias Burnus <burnus@net-b.de> PR fortran/18918 * module.c (mio_array_spec): Set as->cotype on reading. * resolve.c (resolve_allocate_expr): Fix allocating coarray components. 2011-04-23 Tobias Burnus <burnus@net-b.de> PR fortran/18918 * gfortran.dg/coarray_19.f90: New. From-SVN: r172897
2011-04-23re PR c/48685 (ICE in gimplify_expr, at gimplify.c:7034)Jakub Jelinek4-2/+22
PR c/48685 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting to VOID_TYPE even around MODIFY_EXPR. * gcc.dg/pr48685.c: New test. From-SVN: r172895
2011-04-23Revert:Uros Bizjak2-7/+0
2011-04-22 Uros Bizjak <ubizjak@gmail.com> PR target/48723 * config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset after the call to ix86_adjust_stack_and_probe. From-SVN: r172894
2011-04-23* gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/Jim Meyering2-1/+5
From-SVN: r172892
2011-04-23* gensupport.c (read_md_rtx): Fix typo in comment.Mike Stump2-1/+2
From-SVN: r172890
2011-04-23Daily bump.GCC Administrator1-1/+1
From-SVN: r172889
2011-04-23cris.opt (moverride-best-lib-options): Fix typo in comment.Mike Stump2-1/+6
* config/cris/cris.opt (moverride-best-lib-options): Fix typo in comment. From-SVN: r172884