aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-11-01re PR rtl-optimization/33673 (ICE in verify_flow_info, missing barrier, when ↵Jakub Jelinek4-0/+73
multiple tree opts disabled) PR rtl-optimization/33673 * gcse.c (cprop_jump): If a conditional jump has been optimized into unconditional jump, make the remaining normal edge fallthru and delete the jump insn. * gcc.dg/pr33673.c: New test. From-SVN: r129819
2007-11-01emit-rtl.c (set_reg_attrs_from_mem): Clarify function comment.Ben Elliston2-3/+8
* emit-rtl.c (set_reg_attrs_from_mem): Clarify function comment. (set_mem_attrs_from_reg): Likewise. From-SVN: r129818
2007-11-01re PR tree-optimization/33961 (gcc 4.3 causes crash valid code to crash)Michael Matz4-18/+71
PR tree-optimization/33961 * tree-ssa-phiopt.c (struct name_to_bb.store): New member. (name_to_bb_hash, name_to_bb_eq): Consider and check it. (add_or_mark_expr): New argument 'store', using it to search the hash table. (nt_init_block): Adjust calls to add_or_mark_expr. * gcc.dg/pr33961.c: New test. From-SVN: r129817
2007-11-01re PR c++/33494 (Broken diagnostic: 'modop_expr' not supported by dump_expr)Paolo Carlini1-0/+3
/cp 2007-10-31 Paolo Carlini <pcarlini@suse.de> PR c++/33494 * cxx-pretty-print.c (pp_cxx_typeid_expression, pp_cxx_delete_expression): Change to static linkage. * cxx-pretty-print.h: Adjust declarations. * error.c (dump_expr, case EXPR_PACK_EXPANSION, TYPEID_EXPR, MEMBER_REF, DOTSTAR_EXPR, DELETE_EXPR, VEC_DELETE_EXPR, MODOP_EXPR): Forward to pp_expression. * cxx-pretty-print.c (pp_cxx_expression, case NON_DEPENDENT_EXPR): Fix typo. /testsuite 2007-10-31 Paolo Carlini <pcarlini@suse.de> PR c++/33494 * g++.dg/template/error35.C: New. From-SVN: r129816
2007-11-01re PR c++/33494 (Broken diagnostic: 'modop_expr' not supported by dump_expr)Paolo Carlini5-22/+27
/cp 2007-10-31 Paolo Carlini <pcarlini@suse.de> PR c++/33494 * cxx-pretty-print.c (pp_cxx_typeid_expression, pp_cxx_delete_expression): Change to static linkage. * cxx-pretty-print.h: Adjust declarations. * error.c (dump_expr, case EXPR_PACK_EXPANSION, TYPEID_EXPR, MEMBER_REF, DOTSTAR_EXPR, DELETE_EXPR, VEC_DELETE_EXPR, MODOP_EXPR): Forward to pp_expression. * cxx-pretty-print.c (pp_cxx_expression, case NON_DEPENDENT_EXPR): Fix typo. /testsuite 2007-10-31 Paolo Carlini <pcarlini@suse.de> PR c++/33494 * g++.dg/template/error35.C: New. From-SVN: r129815
2007-11-01stl_queue.h (queue<>::push(value_type&&)): Replace with "emplace" version ↵Paolo Carlini3-18/+31
per DR 756. 2007-10-31 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_queue.h (queue<>::push(value_type&&)): Replace with "emplace" version per DR 756. (priority_queue<>::push(value_type&&)): Likewise. * include/bits/stl_stack.h (stack<>::push(value_type&&)): Likewise. From-SVN: r129814
2007-11-01Daily bump.GCC Administrator1-1/+1
From-SVN: r129811
2007-10-31re PR target/31507 (libffi regression, many.c, closure_fn2/fn3.c with -Os)Jakub Jelinek5-1/+68
PR target/31507 * config/i386/i386.md (pushsf_rex64): Use X instead of < constraints for the first push_operand. * gcc.dg/pr31507-1.c: New test. * gcc.dg/pr31507-2.c: New test. From-SVN: r129807
2007-10-31configure.ac: Add ADDITIONAL_OBJS variable.Thiago Jung Bauermann4-7/+31
2007-10-31 Thiago Jung Bauermann <bauerman@br.ibm.com> * configure.ac: Add ADDITIONAL_OBJS variable. * Makefile.in (bid_OBS): New. (libdecnumber_a_OBJS): Add ADDITIONAL_OBJS, remove condition on enable_decimal_float. * configure: Regenerate. From-SVN: r129804
2007-10-31Enable auto-vectorization for PowerPC 750CL paired-single instructionsRevital Eres17-12/+614
From-SVN: r129803
2007-10-31[multiple changes]Tobias Burnus4-6/+47
2007-10-31 Tobias Burnus <burnus@net-b.de> PR fortran/33941 * modules.c (intrinsics): Use only alphabetic names for intrinsic operators. 2007-10-31 Dominique d'Humieres <dominiq@lps.ens.fr> Tobias Burnus <burnus@net-b.de> PR fortran/33941 * gfortran.dg/module_read_1.f90: New. From-SVN: r129801
2007-10-31re PR preprocessor/30786 (ICE on _Pragma at end of file)Tom Tromey6-11/+44
gcc/testsuite PR preprocessor/30786: * gcc.dg/cpp/pr30786.c: New file. libcpp PR preprocessor/30786: * macro.c (builtin_macro): Return result of _cpp_do__Pragma. * directives.c (_cpp_do__Pragma): Return error status. * internal.h (_cpp_do__Pragma): Update. * directives.c (get__Pragma_string): Back up if EOF seen. From-SVN: r129800
2007-10-31re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)Jerry DeLisle4-0/+78
2007-10-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/33162 * gfortran.dg/interface_19.f90: New. * gfortran.dg/interface_20.f90: New. * gfortran.dg/interface_21.f90: New. From-SVN: r129799
2007-10-31re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)Jerry DeLisle3-4/+70
2007-10-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/33162 * interface.c (compare_intr_interfaces): New function to check intrinsic function arguments against formal arguments. (compare_interfaces): Fix logic in comparison of function and subroutine attributes. (compare_parameter): Use new function for intrinsic as argument. * resolve.c (resolve_actual_arglist): Allow an intrinsic without function attribute to be checked further. Set function attribute if intrinsic symbol is found, return FAILURE if not. From-SVN: r129798
2007-10-31re PR tree-optimization/32377 (can't determine dependence ↵Sebastian Pop4-106/+94
(source/destination overlap without more than size)) 2007-10-31 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/32377 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Make it work also for unknown number of iterations. (analyze_subscript_affine_affine): Clean up. Don't fail when the number of iterations is not known. * gfortran.dg/vect/pr32377.f90: New. From-SVN: r129797
2007-10-31re PR middle-end/33779 (folds unsigned multiplication == 0 to true)Richard Guenther5-4/+46
2007-10-31 Richard Guenther <rguenther@suse.de> PR middle-end/33779 * fold-const.c (extract_muldiv_1): Make sure to not introduce new undefined integer overflow. (fold_binary): Avoid useless conversion. * gcc.c-torture/execute/pr33779-1.c: New testcase. * gcc.c-torture/execute/pr33779-2.c: Likewise. From-SVN: r129796
2007-10-31re PR fortran/33897 (Incorrect host association in module)Paul Thomas5-7/+85
2007-10-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/33897 * decl.c (gfc_match_entry): Do not make ENTRY name global for contained procedures. * parse.c (gfc_fixup_sibling_symbols): Fix code for determining whether a procedure is external. 2007-10-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/33897 * gfortran.dg/contained_3.f90: New. From-SVN: r129795
2007-10-31re PR target/33948 (Bootstrap broken on mips-sgi-irix6.5)Richard Sandiford2-1/+7
gcc/ PR target/33948 * config/mips/mips.c (mips_fpr_return_fields): Fix SCALAR_TYPE_P check. From-SVN: r129794
2007-10-31rs6000.opt: Rename -mdfp option to -mhard-dfp.Andreas Krebbel5-13/+19
2007-10-31 Andreas Krebbel <krebbel1@de.ibm.com> * config/rs6000/rs6000.opt: Rename -mdfp option to -mhard-dfp. * config/s390/s390.c: (override_options): Replace -mhard-dfp/-msoft-dfp with -mhard-dfp/-mno-hard-dfp. * config/s390/s390.opt: Likewise. * config/s390/s390.h: Add MASK_HARD_DFP to the TARGET_DEFAULT definition. From-SVN: r129793
2007-10-31fix PR c++/19531: NRV is performed on volatile temporaryChristian Bruel4-1/+46
Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r129792
2007-10-31Daily bump.GCC Administrator1-1/+1
From-SVN: r129790
2007-10-30* tree-ssa.c (execute_update_addresses_taken): Initialize update_vops.Janis Johnson2-1/+5
From-SVN: r129787
2007-10-30invoke.texi (Option Summary): Add -fdce and -fdse to list of optimization ↵Janis Johnson2-2/+21
options. * doc/invoke.texi (Option Summary): Add -fdce and -fdse to list of optimization options. (Optimize Options): Add -fdce and -fdse to the list of optimizations enabled by -O. Document -fdce and -fdse. From-SVN: r129786
2007-10-30re PR c++/33709 (Type verification failure with new expression)Jakub Jelinek4-3/+27
PR c++/33709 * fold-const.c (fold_binary): If one argument is COMPOUND_EXPR, convert second operand of COMPOUND_EXPR to the original type of that argument. * g++.dg/opt/compound1.C: New test. From-SVN: r129785
2007-10-30re PR c++/33616 ("lvalue required as unary '&' operand" with template pmf)Jakub Jelinek4-1/+62
PR c++/33616 * decl2.c (build_offset_ref_call_from_tree): Call build_non_dependent_expr on object prior to building ADDR_EXPR from it if FN is DOTSTAR_EXPR. * g++.dg/template/ptrmem18.C: New test. From-SVN: r129784
2007-10-30re PR fortran/33596 (ICE with simplified ISNAN)Francois-Xavier Coudert4-0/+29
PR fortran/33596 * trans-intrinsic.c (gfc_conv_intrinsic_isnan): Strip NOP_EXPR from the result of build_call_expr. * gfortran.dg/isnan_2.f90: New test. From-SVN: r129782
2007-10-30re PR tree-optimization/32500 (Loop optimization limits range to size of ↵Ed Schouten2-1/+6
array used inside loop) PR tree-optimization/32500 * gcc.c-torture/execute/pr32500.c: Fix buffer overflow in testcase. From-SVN: r129781
2007-10-30Remove ">>>>>>> .r129772".H.J. Lu1-1/+0
From-SVN: r129777
2007-10-30Revert accidental change to crash36.CDoug Gregor1-1/+1
From-SVN: r129774
2007-10-30re PR c++/31993 (ICE with template class in variadic template class)Doug Gregor6-37/+89
2007-10-30 Douglas Gregor <doug.gregor@gmail.com> PR c++/31993 PR c++/32252 * pt.c (find_parameter_packs_r): Fix typo in comment. (convert_template_argument): Look at the pattern of a pack expansion to determine what kind of entity we're converting. (coerce_template_parameter_pack): When we have coerced a non-type template parameter pack, substitute into the type of that pack. (tsubst_pack_expansion): When our substitution of a parameter pack is a "trivial" substitution of itself, just substitute into the pack expansion rather than actually expanding. 2007-10-30 Douglas Gregor <doug.gregor@gmail.com> PR c++/31993 PR c++/32252 * g++.dg/cpp0x/pr31993.C: New * g++.dg/cpp0x/pr32252.C: New From-SVN: r129773
2007-10-30re PR tree-optimization/33723 (Inefficient code with compound literals)Jakub Jelinek2-1/+6
PR tree-optimization/33723 * gcc.dg/tree-ssa/pr33723.c (T): Decrease size of field s. From-SVN: r129772
2007-10-30tree-ssa-operands.c (add_vars_for_offset): Fix exit test of loop adding SFTs ↵Richard Guenther4-1/+91
as virtual operands. 2007-10-30 Richard Guenther <rguenther@suse.de> * tree-ssa-operands.c (add_vars_for_offset): Fix exit test of loop adding SFTs as virtual operands. * gcc.c-torture/execute/20071030-1.c: New testcase copied from gcc.target/i386/loop-3.c. From-SVN: r129770
2007-10-30re PR libstdc++/33815 (tr1::uniform_int isn't uniform)Paolo Carlini3-21/+55
2007-10-19 Paolo Carlini <pcarlini@suse.de> PR libstdc++/33815 * include/tr1_impl/random (uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type, result_type, true_type)): Avoid the modulo (which uses the low-order bits). From-SVN: r129769
2007-10-30Makefile.in (dse.o): Add $(OPTABS_H) and $(RECOG_H)Richard Guenther2-1/+5
2007-10-30 Richard Guenther <rguenther@suse.de> * Makefile.in (dse.o): Add $(OPTABS_H) and $(RECOG_H) * dependencies. From-SVN: r129768
2007-10-30Fix vectorizer testcaseRevital Eres2-0/+5
From-SVN: r129767
2007-10-30Fix vectorizer testcasesRevital Eres3-0/+7
From-SVN: r129766
2007-10-30Correct filename.Benjamin Kosnik10-9/+27
2007-10-30 Benjamin Kosnik <bkoz@redhat.com> *docs/html/ext/pb_ds/multimap_text_insert_timing_test_small.html: Correct filename. *docs/html/ext/pb_ds/multimap_text_find_timing_test_large.html: Same. *docs/html/ext/pb_ds/ multimap_text_insert_mem_usage_test_small.html: Same. *docs/html/ext/pb_ds/multimap_text_insert_timing_test_large.html: Same. *docs/html/ext/pb_ds/ multimap_text_insert_mem_usage_test_large.html: Same. *docs/html/ext/pb_ds/multimap_text_find_timing_test_small.html: Same. 2007-10-30 Benjamin Kosnik <bkoz@redhat.com> *include/Makefile.am (PCHFLAGS): Remove -Wno-deprecated. *include/Makefile.in: Regenerate. *include/std/memory: Remove extraneous include. From-SVN: r129765
2007-10-30re PR target/32893 (zlib segfault in inflate_table() compiled w/ -O -msse2 ↵Dorit Nuzman51-109/+991
ftree-vectorize) PR tree-optimization/32893 * tree-vectorize.c (vect_can_force_dr_alignment_p): Check STACK_BOUNDARY instead of PREFERRED_STACK_BOUNDARY. From-SVN: r129764
2007-10-30Daily bump.GCC Administrator1-1/+1
From-SVN: r129759
2007-10-29longlong.h (add_ssaaaa): Support Intel asm syntax in i386 and x86_64 versions.Rask Ingemann Lambertsen2-8/+16
* longlong.h (add_ssaaaa): Support Intel asm syntax in i386 and x86_64 versions. (sub_ddmmss): Likewise. (umul_ppmm): Likewise. (udiv_qrnnd): Likewise. From-SVN: r129756
2007-10-29re PR testsuite/24841 (dg-require compilation-test trigged on test with ↵Janis Johnson2-2/+10
additional-sources barfs) PR testsuite/24841 * doc/sourcebuild.texi (Test Directives): Document that dg-require directives must come before dg-additional-sources. From-SVN: r129744
2007-10-29re PR tree-optimization/33723 (Inefficient code with compound literals)Jakub Jelinek5-0/+165
PR tree-optimization/33723 * c-gimplify.c (c_gimplify_expr): Optimize INIT_EXPR or MODIFY_EXPR with non-addressable COMPOUND_LITERAL_EXPR as source. * gcc.c-torture/execute/20071029-1.c: New test. * gcc.dg/tree-ssa/pr33723.c: New test. From-SVN: r129743
2007-10-29re PR tree-optimization/33614 (ICE on semi-constant vector CONSTRUCTORs)Richard Sandiford4-4/+30
gcc/ PR tree-optimization/33614 * gimplify.c (gimplify_init_constructor): Gimplify vector constructors if they can't be reduced to VECTOR_CSTs and aren't legitimate initializer constants. gcc/testsuite/ PR tree-optimization/33614 * gcc.c-torture/compile/pr33614.c: New test. From-SVN: r129739
2007-10-29re PR tree-optimization/33870 (miscompiles sqlite)Richard Guenther4-34/+27
2007-10-29 Richard Guenther <rguenther@suse.de> PR tree-optimization/33870 * tree-ssa-operands.c (add_vars_for_offset): Remove mpt_vars parameter. (add_virtual_operand): Do not recurse into MPTs looking for pointed-to SFTs. * gcc.c-torture/execute/pr33870.x: XFAIL testcase for -O2 and -Os. From-SVN: r129738
2007-10-29re PR tree-optimization/33757 (Revision 126149 fails ↵Jakub Jelinek2-2/+5
gcc.dg/tree-ssa/ssa-fre-4.c) PR tree-optimization/33757 * gcc.dg/tree-ssa/ssa-fre-4.c: Run on selected TARGET_PROMOTE_PROTOTYPES true architectures instead of having a big dg-skip-if. From-SVN: r129737
2007-10-29re PR c++/33841 (ICE with non-integral bit-field)Jakub Jelinek4-7/+37
PR c++/33841 * class.c (check_bitfield_decl): Don't set field's type to error_mark_node for non-integral type bitfields. Return true if bitfield is correct, false error has been diagnosed. (check_field_decls): If check_bitfield_decl returned false, call also check_field_decl. * g++.dg/other/bitfield3.C: New test. From-SVN: r129736
2007-10-29passes.c (init_optimization_passes): Exchange store_copy_prop with copy_prop.Richard Guenther9-151/+51
2007-10-29 Richard Guenther <rguenther@suse.de> * passes.c (init_optimization_passes): Exchange store_copy_prop with copy_prop. * tree-pass.h (pass_store_copy_prop): Remove. * tree-ssa-copy.c (do_store_copy_prop): Remove. (stmt_may_generate-copy): Do not handle store_copy_prop. (get_copy_of_val): Likewise. (set_copy_of_val): Likewise. (copy_prop_visit_assignment): Likewise. (copy_prop_visit_stmt): Likewise. (copy_prop_visit_phi_node): Likewise. (init_copy_prop): Likewise. (execute_copy_prop): Likewise. (do_copy_prop): Remove. (gate_store_copy_prop): Likewise. (store_copy_prop): Likewise. (pass_store_copy_prop): Likewise. (pass_copy_prop): Call execute_copy_prop. * opts.c (decode_options): Do not set flag_tree_store_copy_prop. * common.opt (ftree-store-copy-prop): Mark obsolete. * doc/invoke.texi (ftree-store-copy-prop): Remove documentation. * gcc.dg/tree-ssa/ssa-copyprop-1.c: Scan optimized dump. From-SVN: r129734
2007-10-29c++config (_GLIBCXX_DEPRECATED, [...]): New.Benjamin Kosnik13-138/+283
2007-10-29 Benjamin Kosnik <bkoz@redhat.com> * include/bits/c++config (_GLIBCXX_DEPRECATED, _GLIBCXX_USE_DEPRECATED): New. Adjust comments. * include/bits/stl_auto_ptr.h: Move... * includse/backward/auto_ptr.h: ...here. * include/bits/stl_function.h (binder1st, binder2nd, bind1st, bind2nd): Move... * include/backward/binders.h: ...here. Deprecate in C++0x. * include/tr1_impl/boost_shared_ptr.h: Guard auto_ptr usage. * include/std/memory: Same. * include/std/streambuf: Consistent use of _GLIBCXX_USE_DEPRECATED. * include/backward/strstream: Fix guard macros. * include/backward/backward_warning.h: Adjust for all new items. * config/abi/pre/gnu.ver: Export basic_streambuf::stossc. * include/Makefile.am (backward_headers): Adjust. * include/Makefile.in: Regenerate. * configure: Regenerate. From-SVN: r129733
2007-10-29ifcvt.c (noce_can_store_speculate_p): New static function.Ian Lance Taylor2-18/+78
* ifcvt.c (noce_can_store_speculate_p): New static function. (noce_process_if_block): Call it. (if_convert): Remove recompute_dominance parameter. Change all callers. From-SVN: r129729
2007-10-29Makefile.am (ext_compat_headers): New.Benjamin Kosnik4-15/+30
2007-10-29 Benjamin Kosnik <bkoz@redhat.com> * include/Makefile.am (ext_compat_headers): New. * include/Makefile.in: Regenerate. * configure: Regenerate. From-SVN: r129728