aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-01-03re PR rtl-optimization/25130 (miscompilation in GCSE)Steven Bosscher4-11/+40
* fold-const.c (operand_equal_p): Accept a NULL operand 0 for COMPONENT_REFs. * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for hashing trees instead of a pointer hash. (mem_attrs_htab_eq): Do a deep compare instead of a pointer compare for MEM_EXPR. PR rtl-optimization/25130 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET when comparing MEMs for GCSE From-SVN: r109264
2006-01-03targhooks.h (default_decimal_float_supported_p): Declare.Ben Elliston5-5/+21
* targhooks.h (default_decimal_float_supported_p): Declare. * targhooks.c (default_decimal_float_supported_p): Define. * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to `default_decimal_float_supported_p'. * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update. From-SVN: r109262
2006-01-03combine.c (apply_distributive_law <SUBREG>): Check TRULY_NOOP_TRUNCATION.Adam Nemet2-1/+11
* combine.c (apply_distributive_law <SUBREG>): Check TRULY_NOOP_TRUNCATION. From-SVN: r109261
2006-01-03Index: gcc/ChangeLogGeoffrey Keating4-28/+72
2006-01-02 Geoffrey Keating <geoffk@apple.com> * dwarf2out.c (have_switched_text_section): Delete. (have_multiple_function_sections): New. (have_location_lists): Make 'bool'. (add_AT_loc_list): Use 'true' not '1'. (dwarf2out_switch_text_section): Set have_multiple_function_sections. (output_loc_list): Use have_multiple_function_sections. (output_ranges): Likewise. (dwarf2out_begin_function): Set have_multiple_function_sections if necessary. (dwarf2out_source_line): Don't fake separate_line_info_table_in_use. Check function_section rather than DECL_SECTION_NAME. (dwarf2out_finish): Use have_multiple_function_sections. Don't clear have_location_lists. Index: gcc/testsuite/ChangeLog 2006-01-02 Geoffrey Keating <geoffk@apple.com> * g++.dg/debug/debug9.C: New. From-SVN: r109260
2006-01-03* zh_CN.po: Update.Joseph Myers2-1414/+1324
From-SVN: r109258
2006-01-03libtool-ldflags: New script.Mark Mitchell7-4/+120
* libtool-ldflags: New script. * src/Makefile.am (LTLDFLAGS): New variable. (CXXLINK): Use LTLDFLAGS. * src/Makefile.in: Regenerated. * libsupc++/Makefile.am (LTLDFLAGS): New variable. (CXXLINK): Use LTLDFLAGS. * libsupc++/Makefile.in: Regenerated. From-SVN: r109256
2006-01-03Daily bump.GCC Administrator1-1/+1
From-SVN: r109253
2006-01-02cfglayout.c (fixup_reorder_chain): Remove kludge for the case of conditional ↵Eric Botcazou3-37/+14
jump jumping to the next instruction. * cfglayout.c (fixup_reorder_chain): Remove kludge for the case of conditional jump jumping to the next instruction. * cfgrtl.c (force_nonfallthru_and_redirect): Accept all cases of conditional jump jumping to the next instruction. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r109247
2006-01-02re PR fortran/24640 ([4.1] ice with invalid label)Steven G. Kargl5-0/+26
PR fortran/24640 * parse.c (next_free): Check for whitespace after the label. * match.c (gfc_match_small_literal_int): Initialize cnt variable. * gfortran.dg/label_2.f90: New test. From-SVN: r109246
2006-01-02i386.c (*_cost): Add COSTS_N_INSNS.Jan Hubicka2-170/+256
* i386.c (*_cost): Add COSTS_N_INSNS. (ix86_rtx_costs): Do not use COSTS_N_INSNS. From-SVN: r109242
2006-01-02re PR libgomp/25259 (bootstrap failures on non-C99 platforms (no stdint.h))Paolo Bonzini14-294/+7343
config: 2006-01-02 Paolo Bonzini <bonzini@gnu.org> PR target/25259 * stdint.m4: New. gcc: 2006-01-02 Paolo Bonzini <bonzini@gnu.org> PR target/25259 * Makefile.in (DECNUMINC): Include libdecnumber's build directory. libgfortran: 2006-01-02 Paolo Bonzini <bonzini@gnu.org> PR target/25259 * configure.ac: Use GCC_HEADER_STDINT. * libgfortran.h: Include gstdint.h. * aclocal.m4: Regenerate. * configure: Regenerate. libdecnumber: 2006-01-02 Paolo Bonzini <bonzini@gnu.org> PR target/25259 * configure.ac: Use GCC_HEADER_STDINT. * decContext.h: Include gstdint.h. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r109241
2006-01-02configure.in: When reconfiguring remove Makefile in all stage directories.Andreas Schwab3-9/+21
* configure.in: When reconfiguring remove Makefile in all stage directories. * configure: Regenerate. From-SVN: r109240
2006-01-02* decl2.c (mark_used): Fix typo in comment.Mark Mitchell2-1/+5
From-SVN: r109239
2006-01-02arm.c (all_fpus): Fix comment typo.Volker Reichelt6-5/+13
* config/arm/arm.c (all_fpus): Fix comment typo. * config/darwin.c: Likewise. * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise. * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise. * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise. From-SVN: r109238
2006-01-02parser.c (cp_parser_using_declaration): Skip name-lookup on invalid scope.Volker Reichelt4-2/+11
* parser.c (cp_parser_using_declaration): Skip name-lookup on invalid scope. * g++.dg/lookup/using12.C: Tighten error marker. From-SVN: r109237
2006-01-02re PR libstdc++/24645 (Commonize arithmetic inserters/extractors bodies)Paolo Carlini8-700/+327
2006-01-02 Paolo Carlini <pcarlini@suse.de> PR libstdc++/24645 * include/std/std_istream.h (basic_istream<>::_M_extract): New. (operator>>(bool&), operator>>(short&), operator>>(unsigned short&), operator>>(int&), operator>>(unsigned int&), operator>>(long&), operator>>(unsigned long&), operator>>(long long&), operator>> (unsigned long long&), operator>>(float&), operator>>(double&), operator>>(long double&), operator>>(void*&)): Use it. * include/bits/istream.tcc (basic_istream<>::_M_extract): Define. * include/std/std_ostream.h (basic_ostream<>::_M_insert): New. (operator<<(long), operator<<(unsigned long), operator<<(bool), operator<<(short), operator<<(unsigned short), operator<<(int), operator<<(unsigned int), operator<<(long long), operator<< (unsigned long long), operator<<(double), operator<<(float), operator<<(long double), operator<<(const void*): Use it. * include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define. * src/istream-inst.cc: Add _M_insert instantiations. * src/ostream-inst.cc: Add _M_extract instantiations. * config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7; detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put, money_put, etc., symbols to avoid exporting _M_insert symbols @GLIBCXX_3.4. From-SVN: r109236
2006-01-02changelog rotated for gccPaolo Bonzini2-13160/+13160
From-SVN: r109235
2006-01-02Daily bump.GCC Administrator1-1/+1
From-SVN: r109232
2006-01-01rs6000.c (rs6000_expand_compare_and_swapqhi): New.David Edelsohn4-1/+147
* config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New. (rs6000_split_compare_and_swapqhi): New. * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New. (sync_compare_and_swapqhi_internal): New. * config/rs6000/rs6000-protos.h: Declare. From-SVN: r109226
2006-01-01* Split the ChangeLog into years.Steven G. Kargl5-4623/+4627
From-SVN: r109225
2006-01-01* Split the ChangeLog into years.Steven G. Kargl5-9243/+9247
From-SVN: r109224
2006-01-01darwin-abi-3.c: New file.Andreas Tobler10-0/+203
2006-01-01 Andreas Tobler <a.tobler@schweiz.ch> Andrew Pinski <pinskia@physics.uc.edu> * gcc.target/powerpc/darwin-abi-3.c: New file. * gcc.target/powerpc/darwin-abi-4.c: Likewise. * gcc.target/powerpc/darwin-abi-5.c: Likewise. * gcc.target/powerpc/darwin-abi-6.c: Likewise. * gcc.target/powerpc/darwin-abi-7.c: Likewise. * gcc.target/powerpc/darwin-abi-8.c: Likewise. * gcc.target/powerpc/darwin-abi-9.c: Likewise. * gcc.target/powerpc/darwin-abi-10.c: Likewise. * gcc.target/powerpc/darwin-abi-11.c: Likewise. Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu> From-SVN: r109223
2006-01-01It's 2006, i thinkDaniel Berlin1-1/+1
From-SVN: r109222
2006-01-01loadpre1.c: New;Daniel Berlin1-0/+12
2005-01-01 Daniel Berlin <dberlin@dberlin.org> * gcc.dg/tree-ssa/loadpre1.c: New; * gcc.dg/tree-ssa/loadpre2.c: New; * gcc.dg/tree-ssa/loadpre3.c: New; * gcc.dg/tree-ssa/loadpre4.c: New; * gcc.dg/tree-ssa/loadpre5.c: New; * gcc.dg/tree-ssa/loadpre6.c: New; * gcc.dg/tree-ssa/loadpre7.c: New; * gcc.dg/tree-ssa/loadpre8.c: New; * gcc.dg/tree-ssa/loadpre9.c: New; From-SVN: r109221
2006-01-01thunk3.C: Adjust regexp to be 64bit safe.Nathan Sidwell3-2/+7
* g++.dg/abi/thunk3.C: Adjust regexp to be 64bit safe. * g++.dg/abi/thunk4.C: Likewise. From-SVN: r109220
2006-01-01loadpre6.c: Fix prototype of malloc to be portable.Andreas Jaeger2-1/+6
* gcc.dg/tree-ssa/loadpre6.c: Fix prototype of malloc to be portable. From-SVN: r109219
2006-01-01re PR libfortran/25594 (LAPACK regression in schkbl.f)Jerry DeLisle2-1/+17
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25594 PR libgfortran/25419 * io/list_read.c (list_formatted_read_scalar): Test for comma to return a null value (default). Revert patch of 25419 on 2005-12-28. From-SVN: r109211
2006-01-01Daily bump.GCC Administrator1-1/+1
From-SVN: r109208
2006-01-01re PR c++/25294 (Bogus "unterminated comment" error from #pragma comment)Jakub Jelinek5-4/+115
PR c++/25294 * directives.c (do_pragma): If pragma line ends with multi-line block comment, end the saved deferred pragma string before that comment. Handle embedded '\0' chars on the pragma line. * gcc.dg/pragma-pack-3.c: New test. * g++.dg/parse/pragma3.C: New test. From-SVN: r109201
2005-12-31re PR tree-optimization/25612 (Ada bootstrap failure on x86_64 ↵Andrew Pinski2-0/+19
find_or_generate_expression, at tree-ssa-pre.c:2028) 2005-12-31 Andrew Pinski <pinskia@ohysics.uc.edu> PR tree-opt/25612 * tree-ssa-pre.c (compute_avail): Treat the static chain decl as a parameter and pretend that it is defined in the entry basic block. From-SVN: r109200
2005-12-31re PR middle-end/24827 (FAIL: gcc.dg/attr-weakref-1.c)John David Anglin2-2/+10
PR middle-end/24827 * gcc.dg/attr-weakref-1.c: Skip test on hppa*-*-hpux*. From-SVN: r109197
2005-12-31re PR testsuite/25214 (-fpic/-fPIC failures in gcc.dg/i386-local2.c)Kaveh R. Ghazi2-0/+6
PR testsuite/25214 * gcc.target/i386/local2.c: Skip if ilp32 and -fpic/-fpic. From-SVN: r109193
2005-12-31xtensa-config.h (XCHAL_HAVE_WIDE_BRANCHES): New.Bob Wilson2-1/+8
include/ * xtensa-config.h (XCHAL_HAVE_WIDE_BRANCHES): New. From-SVN: r109191
2005-12-31Daily bump.GCC Administrator1-1/+1
From-SVN: r109188
2005-12-30tree-outof-ssa.c (_elim_graph): Change the type of STACK to VEC(int,heap).Kazu Hirata2-7/+14
* tree-outof-ssa.c (_elim_graph): Change the type of STACK to VEC(int,heap). (new_elim_graph, delete_elim_graph, elim_forward, eliminate_phi): Use the VEC API on STACK. From-SVN: r109182
2005-12-30tree.h (VALUE_HANDLE_VUSES): New.Daniel Berlin14-152/+1442
2005-12-29 Daniel Berlin <dberlin@dberlin.org> * tree.h (VALUE_HANDLE_VUSES): New. (struct tree_value_handle): Add vuses. * tree-vn.c (struct val_expr_pair_d): Remove stmt, add vuses. (vn_compute): Remove stmt argument. Don't use vuses in hash value computation. (val_expr_pair_eq): Compare vuse lists. (copy_vuses_from_stmt): New function. (shared_vuses_from_stmt): Ditto. (vn_add): Rewrite in terms of vn_add_with_vuses. (vn_add_with_vuses): New function. (vn_lookup): Rewrite in terms of vn_lookup_with_vuses. (vn_lookup_with_vuses): New function. (vuses_compare): New function. (print_creation_to_file): Ditto. (vn_lookup_or_add): Rewrite to handle vuses. (sort_vuses): New function. (vn_lookup_or_add_with_vuses): Ditto. (vn_init): Initialize shared_lookup_vuses. (vn_delete): Free shared_lookup_vuses. * tree-ssa-pre.c: Update todo list. (bb_value_sets_t): Add rvuse_in, rvuse_out, rvuse_gen, and rvuse_kill. (RVUSE_IN): New macro. (RVUSE_GEN): Ditto. (RVUSE_KILL): Ditto. (RVUSE_OUT): Ditto. (modify_expr_node_pool): New function. (pretemp): New. (storetemp): Ditto. (mergephitemp): Ditto. (prephitemp): Ditto. (struct expr_pred_trans_d): Add vuses member. (expr_pred_trans_eq): Compare vuses. (phi_trans_lookup): Add vuses argument. (phi_trans_add): Ditto. (translate_vuses_through_block): New function. (phi_translate): Use vuses to ask about those expressions that can have vuses. Properly translate virtual uses through phis, and use vn_lookup_or_add_with vuses. Handle tcc_reference. (phi_translate_set): Don't add pointless translations to the cache. (get_representative): New function. (vuses_dies_in_block_x): Ditto. (valid_in_set): Add block argument. Check virtual use validity. (clean): Add block argument. Update call to valid_in_set (compute_antic_aux): Update call to clean. (dump_bitmap_of_names): New function. (compute_vuse_representatives): Ditto. (compute_rvuse): Ditto. (can_value_number_call): Modified to accept calls with vuses. (can_value_number_operation): New function. (can_PRE_operation): Ditto. (need_creation): New vector of stores that may need creation. (find_or_generate_expression): use can_PRE_operation. (create_expression_by_pieces): Handle INDIRECT_REF. Only create one temp until we have to change types. Mark new vars for renaming. (insert_into_preds_of_block): Ignore loopiness of loads. Use can_PRE_operation. Only create one temp until we have to chnge types. (insert_aux): Use can_PRE_operation. Don't pass name to insert_into_preds_of_block. (insert_extra_phis): Only use one temp until we have to change types. (poolify_tree): New function. (modify_expr_template): New var. (poolify_modify_expr): New function. (insert_fake_stores): Ditto. (realify_fake_stores): Ditto. (compute_avail): Use can_value_number_operation. (mark_operand_necessary): Return NULL for non-SSA names. (remove_dead_inserted_code): Update comment. (init_pre): Initialize pretemp, need_creation, storetemp, mergephitemp, prephitemp. Create modify_expr_node_pool. (fini_pre): Free modify_expr_node_pool and need_creation array. (execute_pre): Call insert_fake_stores, compute_rvuse, and realify_fake_stores. * tree-flow.h (vn_compute): Fix prototype. (vn_add): Ditto. (vn_lookup): Ditto. (sort_vuses): New. (vn_lookup_or_add_with_vuses): Ditto. (vn_add_with_vuses): Ditto. (vn_lookup_with_vuses): Ditto. * passes.c (pass_may_alias): Add. From-SVN: r109180
2005-12-30c-pretty-print.h (struct c_pretty_print_info): Add new member "constant".Gabriel Dos Reis6-12/+50
2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net> * c-pretty-print.h (struct c_pretty_print_info): Add new member "constant". (pp_constant): New macro. * c-pretty-print.c (pp_c_pretty_printer_init): Set pp->constant. cp/ 2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net> * cxx-pretty-print.c (pp_cxx_constant): New. Print string-literal in parens if input program says so. (pp_cxx_primary_expression): Hand off constant printing to pp_cxx_constant. (pp_cxx_pretty_printer_init): Set pp->c_base.constant. (pp_cxx_expression): Use pp_cxx_constant for literals. * error.c (dump_expr): Use pp_constant for literals. From-SVN: r109176
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