aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-08-26re PR tree-optimization/23584 (ipa-pure-const pass ignores dereferencing a ↵Josh Conner2-6/+13
volatile pointer type) PR middle-end/23584 * ipa-pure-const.c (check_tree): Check for volatile-ness when considering a dereference. From-SVN: r103546
2005-08-27* rtl.h (MEM_IN_STRUCT_P): Fix comment typo.Jakub Jelinek2-1/+5
From-SVN: r103542
2005-08-27re PR rtl-optimization/23561 (nonoverlapping_memrefs_p returns true even for ↵Jakub Jelinek4-18/+158
overlapping memory references) PR rtl-optimization/23561 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless at most LEN bytes long memory fits into the field. (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr, expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp, expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers. * gcc.c-torture/execute/20050826-1.c: New test. From-SVN: r103541
2005-08-26re PR rtl-optimization/23560 (Strength-reduction breaking unsigned COMPARE)Jakub Jelinek2-0/+67
PR rtl-opt/23560 * gcc.c-torture/execute/20050826-2.c: New test. From-SVN: r103540
2005-08-26re PR rtl-optimization/23560 (Strength-reduction breaking unsigned COMPARE)Richard Henderson2-182/+107
PR rtl-opt/23560 * loop.c (biased_biv_may_wrap_p): New. (maybe_eliminate_biv_1): Use it to suppress non-equality comparison transformations. Delete disabled code. From-SVN: r103539
2005-08-2620030711-1.c: Modify to work on Darwin.Dale Johannesen3-1/+53
2005-08-26 Dale Johannesen <dalej@apple.com> * gcc.dg/20030711-1.c: Modify to work on Darwin. * gcc.dg/20050826-1.c: New. From-SVN: r103538
2005-08-26combine.c (make_extraction): Avoid reference outside object.Ian Lance Taylor2-3/+9
2005-08-26 Ian Lance Taylor <ian@airs.com> * combine.c (make_extraction): Avoid reference outside object. From-SVN: r103537
2005-08-26PR libstdc++/20534 (contd)Benjamin Kosnik5-25/+38
2005-08-26 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/20534 (contd) * src/debug.cc (__gnu_debug): Remove __fancy_abort definition. Remove cstdio and cstdlib includes. * include/debug/debug.h: Define inline here. Remove _GLIBCXX_DEBUG_ABORT. * include/debug/macros.h: Remove __fancy_abort declaration, _GLIBXX_DEBUG_ABORT definition. * config/linker-map.gnu: Remove export. From-SVN: r103535
2005-08-26check_compile (UNIQUE_ID): New.Benjamin Kosnik2-2/+10
2005-08-26 Benjamin Kosnik <bkoz@redhat.com> * scripts/check_compile (UNIQUE_ID): New. Use to name output files. From-SVN: r103534
2005-08-26re PR c++/19004 (ICE in uses_template_parms at cp/pt.c:4860)Mark Mitchell4-6/+40
PR c++/19004 * pt.c (uses_template_parms): Handle IDENTIFIER_NODE. (type_dependent_expression_p): Allow BASELINKs whose associated functions are simply a FUNCTION_DECL. PR c++/19004 * g++.dg/template/nontype13.C: New test. From-SVN: r103531
2005-08-26re PR c++/23491 (new declarator with constant expression gives "error: ↵Mark Mitchell9-38/+104
invalid use of array with unspecified bounds") PR c++/23491 * cp-tree.h (build_vec_init): Adjust prototype. * init.c (perform_member_init): Adjust call to build_vec_init. (build_aggr_init): Likewise. (build_new_1): Do not call build_default_init for array types. (build_vec_init): Add explicit_default_init_p parameter. Perform default initialization of vector elements when set. * typeck.c (build_modify_expr): Adjust call to build_vec_init. PR c++/23491 * g++.dg/init/new14.C: New test. * g++.dg/expr/anew1.C: Do not XFAIL. * g++.dg/expr/anew2.C: Likewise. * g++.dg/expr/anew3.C: Likewise. From-SVN: r103530
2005-08-26stor-layout.c (finalize_type_size): Restore behaviour for non-aggregate ↵J"orn Rennecke2-11/+17
types to the status quo ante of the patch... * stor-layout.c (finalize_type_size): Restore behaviour for non-aggregate types to the status quo ante of the patch for pr 23467. Document why it matters. From-SVN: r103527
2005-08-26re PR c/23506 (Bad array access in DEF_GCC_BUILTIN)Jakub Jelinek2-1/+8
PR c/23506 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types array by one element, initialize the BT_LAST element with NULL. From-SVN: r103526
2005-08-26re PR libstdc++/23081 (Finish the implementation of tr1::array)Paolo Carlini8-58/+407
2005-08-26 Paolo Carlini <pcarlini@suse.de> PR libstdc++/23081 * include/tr1/array: Implement members back(), front(), data(), and the tuple interface; tidy. * testsuite/tr1/6_containers/array/element_access/back.cc: New. * testsuite/tr1/6_containers/array/element_access/data.cc: Likewise. * testsuite/tr1/6_containers/array/element_access/front.cc: Likewise. * testsuite/tr1/6_containers/array/tuple_interface/get.cc: Likewise. * testsuite/tr1/6_containers/array/tuple_interface/tuple_element.cc: Likewise. * testsuite/tr1/6_containers/array/tuple_interface/tuple_size.cc: Likewise. From-SVN: r103525
2005-08-26re PR middle-end/22439 (ICE with char VLA and __SIZE_TYPE__ argument (so no ↵Andrew Pinski2-0/+16
cast)) 2005-08-26 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/22439 * gcc.dg/vla-3.c: New test. From-SVN: r103524
2005-08-26rs6000.md (eq<mode>_compare): Only enable when optimizing for size.David Edelsohn3-20/+33
* config/rs6000/rs6000.md (eq<mode>_compare): Only enable when optimizing for size. (plus_eqsi): Same. (compare_plus_eqsi): Same. (plus_eqsi_compare): Same. (neg_eq0<mode>): Same. (neg_eq<mode>): Same. * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to PROCESSOR_POWER4. From-SVN: r103522
2005-08-26v850.c (ep_memory_operand): Return FALSE if TARGET_EP is not defined.Nick Clifton5-43/+641
* config/v850/v850.c (ep_memory_operand): Return FALSE if TARGET_EP is not defined. * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if TARGET_EP is enabled. (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing. * config/v850/v850.md (save_all_interrupt): Only use the EP register if TARGET_EP is defined. (restore_all_interrupt): Likewise. * config/v850/lib1funcs.asm: Update functions so that the EP register is only used if __EP__ is defined. From-SVN: r103520
2005-08-26mips.c (mips_expand_prologue): Handle case when generating for MIPS16 and ↵David Ung2-4/+24
the outgoing argument area is more... * config/mips/mips.c (mips_expand_prologue): Handle case when generating for MIPS16 and the outgoing argument area is more than SMALL_OPERAND. Use the frame pointer as temporary to generate the add instruction. From-SVN: r103519
2005-08-26crx.md: Make doloop_end pattern usage controllable via ↵Paul Woegerer4-59/+85
mloop-nesting=<max-nesting>... * config/crx/crx.md: Make doloop_end pattern usage controllable via mloop-nesting=<max-nesting> command line switch. Make sure the combiner cannot use doloop_end_<mode> in an illegal way. * config/crx/crx.c: Use regs up to r6 for argument passing. Refine crx_address_cost (non cst4 displacements are expensive). * config/crx/crx.opt: Add switch for mloop-nesting=. From-SVN: r103518
2005-08-26s390.md: ("movstr", "*movstr"): Add patterns.Adrian Straetling2-0/+48
2005-08-26 Adrian Straetling <straetling@de.ibm.com> * config/s390/s390.md: ("movstr", "*movstr"): Add patterns. (UNSPEC_MVST): New constant. From-SVN: r103516
2005-08-26predicates.md ("shift_count_operand", [...]): Reject operands containing ↵Andreas Krebbel3-0/+44
eliminable registers. 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/predicates.md ("shift_count_operand", "setmem_operand"): Reject operands containing eliminable registers. * testsuite/gcc.dg/20050825-1.c: New testcase. From-SVN: r103515
2005-08-26Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103505.2
2005-08-25re PR fortran/20363 (interface body has incorrect scope)Erik Edelmann4-12/+39
2005-08-25 Erik Edelmann <eedelman@acclab.helsinki.fi> fortran/ PR fortran/20363 * symbol.c (find_special): Remove. (build_sym, add_init_expr, attr_decl1): Remove calls to find_special in favor of calls to gfc_get_symbol. testsuite/ PR fortran/20363 * gfortran.dg/named_interface.f90: New. From-SVN: r103486
2005-08-25* gcc.c-torture/execute/frame-address.c: New test.Maciej W. Rozycki2-0/+46
From-SVN: r103485
2005-08-25hashtable: Use __throw_exception_again, not naked throw, in the catch clauses.Paolo Carlini2-5/+11
2005-08-25 Paolo Carlini <pcarlini@suse.de> * include/tr1/hashtable: Use __throw_exception_again, not naked throw, in the catch clauses. From-SVN: r103483
2005-08-25re PR c++/20817 (ICE for tree check in build_offset_type)Nathan Sidwell4-4/+17
cp: PR c++/20817 * typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a ->*. testsuite: PR c++/20817 * g++.old-deja/g++.benjamin/13908.C: Robustify expected error. From-SVN: r103481
2005-08-25* gcc.dg/vect/vect-52.c: Increase b[] and c[] size by one.Alan Modra2-2/+6
From-SVN: r103480
2005-08-2520020103-1.c: Scan for LC[0-9], not LC.Alan Modra3-1/+7
* gcc.dg/20020103-1.c: Scan for LC[0-9], not LC. * gcc.dg/altivec-22.c: Rename from.. * gcc.dg/altivec-nomfcr.c: ..this. From-SVN: r103479
2005-08-25re PR tree-optimization/23546 (ICE in for_each_index, at tree-ssa-loop-im.c:202)Paolo Bonzini2-1/+16
2005-08-24 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/23546 * gcc.dg/tree-ssa/pr23546.c: New test. From-SVN: r103473
2005-08-25regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.Paolo Bonzini2-3/+8
2005-08-24 Paolo Bonzini <bonzini@gnu.org> Jan Hubicka <jh@suse.cz> * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r103472
2005-08-25re PR tree-optimization/23546 (ICE in for_each_index, at tree-ssa-loop-im.c:202)Paolo Bonzini2-0/+8
2005-08-24 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/23546 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST and REAL_CST nodes. From-SVN: r103471
2005-08-25re PR target/23404 (gij trashes args of functions with more than 8 fp args)Alan Modra2-2/+11
PR target/23404 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack homed fp args. (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same. From-SVN: r103462
2005-08-25Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103458.2
2005-08-24re PR libstdc++/23550 (char_traits requirements/1.cc test bad math)Lawrence Lim3-14/+30
2005-08-24 Lawrence Lim <llim@redhat.com> Jakub Jelinek <jakub@redhat.com> Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/23550 * testsuite/21_strings/char_traits/requirements/char/1.cc (test01): Simplify counting. * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc (test02): Same. Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com> Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r103451
2005-08-24params.def (PARAM_MIN_SPEC_PROB): New.Pete Steinmetz4-5/+17
2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com> * params.def (PARAM_MIN_SPEC_PROB): New. * sched-rgn.c (MIN_PROBABILITY): Delete. (compute_trg_info): Convert to PARAM_VALUE. * doc/invoke.texi (param): Document min-spec-prob. From-SVN: r103450
2005-08-24re PR fortran/17758 (gfortran_abort and some others should be marked as ↵Thomas Koenig6-1/+68
noreturn) 2005-08-24 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/17758 * gfortran.h (symbol_attribute): Add noreturn to the structure. (gfc_intrinsic_sym): Add noreturn to the structure. * intrinsic.c (make_noreturn): New function. (add_subroutines): Mark subroutines abort and exit as noreturn. (gfc_intrinsic_sub_interface): Copy noreturn attribute from isym to the resolved symbol. * trans-decl.c (gfc_get_extern_function_decl): Set function as VOLATILE (== noreturn) if the noreturn attribute is set. 2005-08-24 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/17758 gfortran.dg/nonreturning_statements.f90: New test. From-SVN: r103449
2005-08-24Define __PIC__ for darwin targets.Fariborz Jahanian4-0/+25
OKed by Mike Stump. From-SVN: r103447
2005-08-24rs6000.md: Fix thinko in the peephole2 I added yesterday.Paolo Bonzini2-8/+17
2005-08-24 Paolo Bonzini <bonzini@gnu.org> * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added yesterday. From-SVN: r103443
2005-08-24re PR libstdc++/23465 (Assignment fails on TR1 unordered containers)Paolo Carlini3-13/+87
2005-08-24 Paolo Carlini <pcarlini@suse.de> Chris Jefferson <chris@bubblescope.net> PR libstdc++/23465 * include/tr1/hashtable (hash_code_base::m_swap): Use std::swap. (hashtable<>::hashtable(const hashtable&)): Use copy_code; fix m_allocate_node call. * testsuite/tr1/6_containers/unordered/hashtable/23465.cc: New. Co-Authored-By: Chris Jefferson <chris@bubblescope.net> From-SVN: r103441
2005-08-24re PR c++/22454 (ICE with operator in default argument in template class)Nathan Sidwell4-2/+23
cp: PR c++/22454 * parser.c (cp_lexer_peek_nth_token): Relax assert. testsuite: PR c++/22454 * g++.dg/parse/crash29.C: New. From-SVN: r103438
2005-08-24bb-reorder.c (copy_bb, [...]): Add argument to duplicate_block.Zdenek Dvorak14-44/+122
* bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument to duplicate_block. * cfghooks.c (duplicate_block): Added position where to place new block as argument. * cfghooks.h (duplicate_block): Declaration changed. * cfglayout.c (copy_bbs): Add argument after. Pass it to duplicate_block. * cfglayout.h (copy_bbs): Declaration changed. * cfgloop.h (loop_version): Declaration changed. * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass position to copy_bbs. (loop_version): Pass position to duplicate_loop_to_header_edge. Add place_after argument and position new blocks according to it. * modulo-sched.c (sms_schedule): Pass place_after argument to loop_version. * tracer.c (tail_duplicate): Pass argument to duplicate_block. * tree-cfg.c (split_edge_bb_loc): New function. (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc to determine position of new blocks. * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument to loop_version. * tree-ssa-threadupdate.c (create_block_for_threading): Pass argument to duplicate_block. * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Pass position to copy_bbs. From-SVN: r103437
2005-08-24fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of ↵Zdenek Dvorak2-2/+7
host_integerp. * fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp. From-SVN: r103436
2005-08-24darwin.c (gen_pic_offset): New.Paolo Bonzini2-20/+26
2005-08-24 Paolo Bonzini <bonzini@gnu.org> * config/darwin.c (gen_pic_offset): New. (machopic_indirect_data_reference, machopic_legitimize_pic_address): Use it. From-SVN: r103434
2005-08-24re PR tree-optimization/23486 (ICE in execute_todo, at passes.c:677)Zdenek Dvorak2-1/+7
PR tree-optimization/23486 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals. From-SVN: r103433
2005-08-24config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove ↵Phil Edwards13-193/+632
use_collect2. 2005-08-22 Phil Edwards <phil@codesourcery.com> * config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2. (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target. * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target configuration files to override the default value. * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO, EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS. * config/vx-common.h: New file, split out from... * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode. * config/vxworksae.h: New file, for VxWorks AE. * config/vxworks.opt: New file. * config/vxlib.c: Update for VxWorks 6. * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust other MULTILIB_* variables appropriately. (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm. * config/rs6000/t-vxworksae: New file, adjust multilibs for AE. * config/rs6000/vxworks.h: Update for VxWorks 6. * config/rs6000/vxworksae.h: New file, mostly placeholder for now. From-SVN: r103432
2005-08-24configure.ac (extra_ldflags_libjava): Enable -single_module only for darwin < 8.Andreas Tobler3-2/+12
2005-08-24 Andreas Tobler <a.tobler@schweiz.ch> * configure.ac (extra_ldflags_libjava): Enable -single_module only for darwin < 8. * configure: Regenerate. From-SVN: r103430
2005-08-23re PR target/20799 (bad relocs for new/delete overrides)Andrew Pinski2-22/+7
2005-08-23 Andrew Pinski <pinskia@physics.uc.edu> PR target/20799 * config/darwin.c (machopic_select_section): Remove the hack to mark "::operator new" and "::operator delete" for coalescing even though they are not weak. From-SVN: r103426
2005-08-24configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.Alan Modra3-4/+9
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch. * configure: Regenerate. From-SVN: r103425
2005-08-24Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r103419.2
2005-08-23re PR libstdc++/23462 (27_io/basic_filebuf/sgetn/char/[12]-i[no].cc ↵Kelley Cook2-1/+6
execution tests fail) 2005-08-23 Kelley Cook <kcook@gcc.gnu.org> PR libstdc++/23462 * testsuite/data/sgetn.txt: Revert to previous FSF address. From-SVN: r103415