aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-12-30re PR fortran/22607 (Elemental character functions don't work)Erik Edelmann6-1/+89
fortran/ 2005-12-30 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/22607 * trans-decl.c(gfc_get_extern_function_decl): Don't set DECL_IS_PURE (fndecl) = 1 for return-by-reference functions. fortran/PR 25396 * interface.c (gfc_extend_expr): Initialize e->value.function.name to NULL. testsuite/ 2005-12-30 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/22607 * gfortran-dg/pure_byref_3.f90: New. fortran/PR 25396 * gfortran.dg/userdef_operator_1.f90: New. From-SVN: r109171
2005-12-30re PR middle-end/25586 (FAIL: gfortran.dg/cray_pointers_2.f90 at -O2 and above)John David Anglin2-42/+48
PR fortran/25586 * pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point store patterns. From-SVN: r109166
2005-12-30Daily bump.GCC Administrator1-1/+1
From-SVN: r109160
2005-12-29bitmap.c (bitmap_element_free, [...]): Added code to properly maintain the ↵Kenneth Zadeck2-28/+280
variants associated with the CURRENT and... 2005-12-29 Kenneth Zadeck <zadeck@naturalbridge.com> * bitmap.c (bitmap_element_free, bitmap_element_link, bitmap_elt_insert_after, bitmap_and, bitmap_and_compl, bitmap_and_compl, bitmap_ior, bitmap_ior_into, bitmap_xor, bitmap_xor_into): Added code to properly maintain the variants associated with the CURRENT and HEAD fields. (bitmap_popcount, bitmap_clear_range, bitmap_compl_and_into): New functions. * bitmap.h: Added defs for bitmap_popcount, bitmap_clear_range, and bitmap_compl_and_into. From-SVN: r109153
2005-12-29invoke.texi (Objective-C and Objective-C++ Dialect Options ↵Mike Stump2-2/+9
-fobjc-exceptions): Don't imply this doesn't work with the GNU runtime. * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options -fobjc-exceptions): Don't imply this doesn't work with the GNU runtime. From-SVN: r109151
2005-12-29s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.John David Anglin2-1/+5
* s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t. From-SVN: r109150
2005-12-29varasm.c (get_section): Use gcc_assert.Nathan Sidwell7-9/+62
* varasm.c (get_section): Use gcc_assert. cp: * method.c (make_thunk): Don't set comdat_linkage here. (use_thunk): Make thunk one only here, if thunk target is DECL_ONE_ONLY. testsuite: * g++.dg/abi/thunk3.C: New. * g++.dg/abi/thunk4.C: New. From-SVN: r109149
2005-12-29m68k.h (RETURN_ADDR_RTX): Define.Paul Brook3-6/+19
2005-12-29 Paul Brook <paul@codesourcery.com> * config/m68k/m68k.h (RETURN_ADDR_RTX): Define. * config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME. Include offset due to FIRST_PARM_OFFSET. From-SVN: r109147
2005-12-29lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.Paul Brook2-22/+86
2005-12-29 Paul Brook <paul@codesourcery.com> * config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask. Create wrapper and rename body... (__cmpdf2_internal): ... to this. Return correct value for unordered result. (__cmpsf2): Create wrapper and rename body... (__cmpsf2_internal): ... to this. Return corerct value for unordered result. (__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use __cmpdf2_internal. (__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use __cmpsf2_internal. From-SVN: r109145
2005-12-29fpgnulib.c (__extendsfdf2): Handle negative zero.Paul Brook3-18/+44
2005-12-29 Paul Brook <paul@codesourcery.com> * config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero. (__truncdfsf2): Ditto. (__extenddfxf2): Ditto. (__truncxfdf2): Ditto. * config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0. (__adddf3): Ditto. From-SVN: r109143
2005-12-29m68k.c (m68k_output_pic_call): Don't use bsr.l for !TARGET_68020.Paul Brook6-6/+21
2005-12-29 Daniel Jacobowitz <dan@codesourcery.com> Paul Brook <paul@codesourcery.com> * config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for !TARGET_68020. * config/m68k/t-m68kelf (EXTRA_PARTS): Remove. (EXTRA_MULTILIB_PARTS): Set. * config/m68k/t-uclinux (EXTRA_PARTS): Remove. (EXTRA_MULTILIB_PARTS): Set. From-SVN: r109141
2005-12-29re PR fortran/25532 (ICE in gfc_conv_component_ref, at fortran/trans-expr.c:269)Paul Thomas4-1/+64
2005-12-29 Paul Thomas <pault@gcc.gnu.org> PR fortran/25532 * trans-types.c (copy_dt_decls_ifequal): Copy declarations for components of derived type components by recursing into gfc_get_derived_type. 2005-12-29 Paul Thomas <pault@gcc.gnu.org> PR fortran/25532 *gfortran.dg/host_used_types_1.f90: Check that host associated derived type components of derived types are properly declared in contained procedures. From-SVN: r109138
2005-12-29re PR target/25572 (ppc64 -mminimal-toc trashes r30)Alan Modra2-0/+7
PR target/25572 * config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live. From-SVN: r109133
2005-12-29Daily bump.GCC Administrator1-1/+1
From-SVN: r109130
2005-12-28config.gcc (mt-*-*): Add --with-arch support.Nathan Sidwell4-5/+35
* config.gcc (mt-*-*): Add --with-arch support. (--with): Print accepted options on error. * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define. * config/mt/mt.c (DEF_VEC_P(basic_block), DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here. From-SVN: r109124
2005-12-28re PR libfortran/25139 ("Invalid argument" error on I/O)Jerry DeLisle2-0/+26
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25139 * gfortran.dg/backspace_2.f: New test. From-SVN: r109123
2005-12-28re PR fortran/25587 (Garbage in output of -fdump-tree-original)Andrew Pinski2-1/+6
2005-12-28 Andrew Pinski <pinskia@physics.uc.edu> PR fortran/25587 * trans-io.c (gfc_build_st_parameter): Correct off by one error. From-SVN: r109120
2005-12-28re PR tree-optimization/25394 (libgcc2.c:2033: ICE: tree check: expected ↵Daniel Berlin2-5/+14
tree that contains 'decl common' structure, have 'name_memory_tag') 2005-12-28 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/25394 * fold-const.c (fold_checksum_tree): Guard portions of checksumming with correct structure checks. From-SVN: r109109
2005-12-28Make-lang.in: Remove distdir from comment.Rafael Ávila de Espíndola2-1/+5
2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> * Make-lang.in: Remove distdir from comment. From-SVN: r109107
2005-12-28Make-lang.in (treelang.distdir): Remove.Rafael Ávila de Espíndola2-7/+6
2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> * Make-lang.in (treelang.distdir): Remove. From-SVN: r109106
2005-12-28re PR libfortran/25550 (file data corrupted after reading end of file)Jerry DeLisle2-0/+23
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25550 * gfortran.dg/endfile.f: New test. From-SVN: r109102
2005-12-28re PR libfortran/25419 (gfortran read does not take comma for default on one ↵Jerry DeLisle2-0/+23
entry) 2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25419 * gfortran.dg/comma.f: New test. From-SVN: r109100
2005-12-28gfortran-dg.exp: Remove trailing whitespace.Tobias Schlüter3-2/+8
* lib/gfortran-dg.exp: Remove trailing whitespace. ChangeLog lib/gfortran-dg.exp lib/fortran-torture.exp * lib/fortran-torture.exp: Test with -fbounds-check instead of -funroll-all-loops. From-SVN: r109098
2005-12-28global.c, [...]: Move DEF_VEC_P(basic_block) and ↵Kazu Hirata4-5/+10
DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ... * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ... * basic-block.h: ... here. From-SVN: r109097
2005-12-28Daily bump.GCC Administrator1-1/+1
From-SVN: r109094
2005-12-27fold-const.c (int_const_binop): Return NULL_TREE when an expression can't be ↵Roger Sayle2-91/+88
evaluated at compile-time (instead... * fold-const.c (int_const_binop): Return NULL_TREE when an expression can't be evaluated at compile-time (instead of calling abort). Return NULL_TREE for division (and modulus) by zero. (const_binop): Return NULL_TREE for floating point operators that aren't handled by real_arithmetic. (fold_binary): Eliminate "wins" variable, and "binary" label, by folding operators with constant operands early. Assert that operands are non-NULL. From-SVN: r109088
2005-12-28fp-int-convert-timode.c: Don't test IBM Extended Double long doubles or ↵Alan Modra2-0/+11
repeat tests when... * gcc.dg/torture/fp-int-convert-timode.c: Don't test IBM Extended Double long doubles or repeat tests when long double is the same size as double. From-SVN: r109087
2005-12-27re PR testsuite/25442 (-fpic/-fPIC failures in gcc.dg/ipa/ipa-1.c ipa-2.c ↵Kaveh R. Ghazi9-3/+22
ipa-3.c ipa-4.c ipa-5.c) * g++.dg/rtti/tinfo1.C: Scan for ".global" also. PR testsuite/25442 * gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c, gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC. PR testsuite/25441 * gcc.dg/pr23911.c: Make test variable static. PR testsuite/25444 * gcc.dg/tree-ssa/pr14841.c: Likewise. From-SVN: r109083
2005-12-27re PR c++/25439 ("template<> int A<0>" accepted)Mark Mitchell7-53/+99
PR c++/25439 * decl.c (grokdeclarator): Remove dead code. * ptree.c (cxx_print_xnode): Handle BASELINK. * parser.c (make_id_declarator): Add sfk parameter. (cp_parser_direct_declarator): Do not pass TYPE_DECLs to make_id_declarator. (cp_parser_declarator_id): Simplify BASELINKs here. (cp_parser_member_declaration): Adjust calls to make_id_declarator. PR c++/25439 * g++.dg/parse/crash17.C: Adjust error markers. * g++.dg/template/error20.C: New test. From-SVN: r109079
2005-12-27tree-vrp.c (extract_range_from_binary_expr): Use build_int_cst instead of ↵Kazu Hirata2-2/+7
fold_convert. * tree-vrp.c (extract_range_from_binary_expr): Use build_int_cst instead of fold_convert. From-SVN: r109078
2005-12-27PR c++/23171, c++/23172, c++/25417.Mark Mitchell15-96/+179
* c-decl.c (compound_literal_number): Remove. (build_compound_literal): Use set_compound_literal_name. * c-common.c (compound_literal_number): New variable. (set_compound_literal_name): New function. * c-common.h (set_compound_literal_name): Declare. PR c++/23171, c++/23172, c++/25417. * typeck.c (build_unary_op): Create temporary variables for compound literals whose addresses are taken. * init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P. * decl.c (reshape_init_vector): Likewise. (reshape_init): Give it external linkage. (check_initializer): Use COMPOUND_LITERAL_P. (initialize_artificial_var): Allow the initializer to be a CONSTRUCTOR. * call.c (make_temporary_var_for_ref_to_temp): Use create_temporary_var. * cp-tree.h (COMPOUND_LITERAL_P): New macro. (rehape_init): Declare. * typeck2.c (digest_init): Use COMPOUND_LITERAL_P. * semantics.c (finish_compound_literal): Use reshape_init. PR c++/23172 * g++.dg/ext/complit4.C: New test. PR c++/25417 * g++.dg/ext/complit5.C: Likewise. From-SVN: r109075
2005-12-27Daily bump.GCC Administrator1-1/+1
From-SVN: r109071
2005-12-26re PR middle-end/25125 ((short) ((int)(unsigned short) + (int)) is done in ↵Kazu Hirata7-4/+55
the wrong type) gcc/ PR tree-optimization/25125 * convert.c (convert_to_integer): Don't narrow the type of a PLUX_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type is signed. gcc/testsuite/ PR tree-optimization/25125 * gcc.dg/vect/vect-7.c, gcc.dg/vect/vect-reduc-2char.c, gcc.dg/vect/vect-reduc-2short.c: XFAIL. * gcc.c-torture/execute/pr25125.c: New. From-SVN: r109065
2005-12-26re PR middle-end/25568 (RTL checking bootstrap failure on ↵Graham Stott2-0/+8
i686-unknown-linux-gnu) PR middle-end/25568 * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking rtl bootstrap failure. From-SVN: r109064
2005-12-26Daily bump.GCC Administrator1-1/+1
From-SVN: r109058
2005-12-25final.c (compute_alignments): Make it static.Kazu Hirata6-11/+16
* final.c (compute_alignments): Make it static. * gcse.c (gcse_main, bypass_jumps): Likewise. * web.c (web_main): Likewise. * output.h: Remove the prototype for compute_alignments. * rtl.h: Remove the prototypes for web_main, gcse_main, and bypass_jumps. From-SVN: r109051
2005-12-25Daily bump.GCC Administrator1-1/+1
From-SVN: r109048
2005-12-24expr.c (force_operand): Use expand_fix and expand_float to implement integer ↵Roger Sayle2-16/+22
<-> FP conversions instead... * expr.c (force_operand): Use expand_fix and expand_float to implement integer <-> FP conversions instead of convert_to_mode. From-SVN: r109041
2005-12-24re PR fortran/25029 (Assumed size array can be associated with array pointer ↵Paul Thomas4-126/+16
without upper bound of last dimension) 2005-12-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/25029 PR fortran/21256 * resolve.c (check_assumed_size_reference, resolve_assumed_size_actual): Remove because of regressions caused by patch. (resolve_function, resolve_call, resolve_variable): Remove assumed size checks because of regressionscaused by patch. PR fortran/25029 PR fortran/21256 * gfortran.dg/initialization_1.f90: Remove tests of intrinsic functions with incorrect assumed size references. From-SVN: r109039
2005-12-24re PR c++/23171 (ICE on pointer initialization with C99 initializer)Mark Mitchell4-12/+33
PR c++/23171 * varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a CONSTRUCTOR is invalid. PR c++/23171 * g++.dg/opt/init1.C: New test. From-SVN: r109035
2005-12-24tree-pass.h (pass_eliminate_useless_stores): Remove.Daniel Berlin5-148/+10
2005-12-23 Daniel Berlin <dberlin@dberlin.org> * tree-pass.h (pass_eliminate_useless_stores): Remove. * tree-ssa-pre.c (is_copy_stmt): Ditto. (follow_copies_till_vuse): Ditto. (do_eustore): Ditto. (gate_eustores): Ditto. (pass_eliminate_useless_stores): Ditto. * passes.c (init_optimization_passes): Ditto. From-SVN: r109034
2005-12-24Daily bump.GCC Administrator1-1/+1
From-SVN: r109031
2005-12-23re PR c++/24671 (ICE with zero-sized arrays)Mark Mitchell4-0/+29
PR c++/24671 * pt.c (instantiate_template): Handle SFINAE. PR c++/24671 * g++.dg/template/sfinae3.C: New test. From-SVN: r109022
2005-12-23decl.c (grokdeclarator): Improve diagnostic for friend declarations of class ↵Volker Reichelt4-3/+25
members. * decl.c (grokdeclarator): Improve diagnostic for friend declarations of class members. * g++.dg/other/friend4.C: New test. From-SVN: r109017
2005-12-23combine.c (simplify_shift_const): Fix typo.Paolo Bonzini2-143/+173
2005-12-23 Paolo Bonzini <bonzini@gnu.org> * combine.c (simplify_shift_const): Fix typo. Use, whenever applicable, simplify_const_binary_operation. (simplify_shift_const): Leave only the fallback case when no simplification is possible. Extract to... (simplify_shift_const_1): ... here. Always create a new RTX instead of substituting. Remove the signed_count variable. Return NULL_RTX if no substitution is possible. (simplify_and_const_int): Leave only the fallback case when no simplification is possible. Extract to... (simplify_and_const_int_1): ... here. Always create a new RTX instead of substituting. Return NULL_RTX if no substitution is possible. (force_to_mode, simplify_comparison): Don't pass a non-NULL first parameter to simplify_and_const_int and simplify_shift_const, unless it is equal to the expected non-simplified result. From-SVN: r109016
2005-12-23re PR target/25005 (ICE in extract_constrain_insn_cached, at recog.c:2002)Jakub Jelinek4-13/+84
PR target/25005 * regrename.c (replace_oldest_value_reg): Use validate_change with IN_GROUP set to 1 instead of doing direct modifications. (copyprop_hardreg_forward_1): Likewise. If any replace_oldest_* replacements have been performed on an instruction, use apply_change_group (). * g++.dg/opt/pr25005.C: New test. From-SVN: r109013
2005-12-23re PR c++/25369 (use of inline function in template class leads to undefined ↵Mark Mitchell7-42/+54
reference) PR c++/25369 * g++.dg/template/ptrmem16.C: New test. PR c++/25369 * tree.c (really_overloaded_fn): Tweak comment. * pt.c (tsubst_call_declarator_parms): Remove. (tsubst_copy): Call mark_used on the member referenced by an OFFSET_REF. * semantics.c (finish_qualified_id_expr): Simplify. * decl2.c (mark_used): Accept BASELINKs. From-SVN: r109010
2005-12-23re PR fortran/25029 (Assumed size array can be associated with array pointer ↵Paul Thomas4-1/+19
without upper bound of last dimension) 2005-12-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/25029 PR fortran/21256 *resolve.c(resolve_function): Remove assumed size checking for SIZE and UBOUND and rely on their built-in checking. 2005-12-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/25029 PR fortran/21256 *gfortran.dg/initialization_1.f90: Add test of SIZE. From-SVN: r109009
2005-12-23arit.c (do_31div): Clarify what "31" refers to.Hans-Peter Nilsson2-40/+58
* config/cris/arit.c (do_31div): Clarify what "31" refers to. [L_divsi3] (__Udiv): Don't use as inline function. [L_modsi3] (__Umod): Ditto. (__Div): Rearrange to call do_31div directly instead of __Udiv. (__Mod): Similarly regarding __Umod. From-SVN: r109007
2005-12-23re PR libfortran/25307 (internal read with end=label aborts)Jerry DeLisle2-0/+43
2005-12-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25307 * gfortran.dg/list_read_5.f90: New test. From-SVN: r109003