aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-07-22re PR debug/21828 (debug info omitted for uninitialized variables)Mark Mitchell5-9/+30
PR debug/21828 * toplev.c (check_global_declarations): Do not mark undefined variables as DECL_IGNORED_P. * varasm.c (first_global_object_name): GTY it. (weak_global_object_name): Likewise. (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating a string to go into {weak,first}_global_object_name. PR debug/21828 * gcc.dg/debug/dwarf2/dwarf-uninit.c: New test. From-SVN: r102287
2005-07-22c-format.c (check_function_format): Change warning control option from ↵DJ Delorie2-2/+7
OPT_Wattribute to OPT_Wmissing_format_attribute. * c-format.c (check_function_format): Change warning control option from OPT_Wattribute to OPT_Wmissing_format_attribute. From-SVN: r102286
2005-07-22tree-ssa-alias.c (count_ptr_derefs): Do not consider &PTR->FLD a dereference ↵Diego Novillo5-4/+95
of PTR. * tree-ssa-alias.c (count_ptr_derefs): Do not consider &PTR->FLD a dereference of PTR. * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD a potential dereference of PTR. testsuite/ChangeLog * gcc.dg/tree-ssa/20050719-1.c: New test. From-SVN: r102283
2005-07-22re PR rtl-optimization/20370 (dead_or_predictable doesn't resize reg_n_info)J"orn Rennecke2-0/+12
PR rtl-optimization/20370 * ifcvt.c (dead_or_predicable): Before calling propagate_block, call allocate_reg_info if necessary. From-SVN: r102282
2005-07-22re PR rtl-optimization/21848 (load_mems / replace_loop_mems bug causes ↵J"orn Rennecke2-0/+26
miscompilation of jcf-io.c / SEGV while processing java/lang/AbstractMethodError) PR rtl-optimization/21848 * calls.c (emit_library_call_value_1): For const functions, add USEs of the stack slots to CALL_INSN_FUNCTION_USAGE. From-SVN: r102281
2005-07-22re PR rtl-optimization/22445 (Optimizations done by cselib depend on pointer ↵J"orn Rennecke2-9/+32
values) PR rtl-optimization/22445 * cselib.c (target.h): Include. (rtx_equal_for_cselib_p): Allow commutative matches. (cselib_hash_rtx): Don't use MODE for CONST_INT hashing. Remove MODE parameter. Changed all callers. From-SVN: r102280
2005-07-22re PR rtl-optimization/22258 (combine causes spill failure on return value ↵J"orn Rennecke2-0/+87
register) PR rtl-optimization/22258 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p): New functions. (try_combine): Use likely_spilled_retval_p. From-SVN: r102279
2005-07-22config.gcc: Add crx-elf support.Paul Woegerer8-0/+3082
* config.gcc: Add crx-elf support. * doc/contrib.texi: Mention crx. * doc/extend.texi: Document crx extensions. * doc/install.texi: Document crx install. * doc/invoke.texi: Document crx options. * doc/md.texi: Document crx constraints. * config/crx/crx-protos.h: New file. * config/crx/crx.c: New file. * config/crx/crx.h: New file. * config/crx/crx.md: New file. * config/crx/crx.opt: New file. * config/crx/t-crx: New file. From-SVN: r102278
2005-07-22bfin-longcall-1.c: New file.Bernd Schmidt3-0/+71
* gcc.dg/bfin-longcall-1.c: New file. * gcc.dg/bfin-longcall-2.c: New file. From-SVN: r102277
2005-07-22tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised warnings.Manfred Hollstein9-3/+36
gcc/ChangeLog: * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised warnings. (int_add_graph_edge): Likewise. (collapse_nodes): Likewise. (process_unification_queue): Likewise. gcc/cp/ChangeLog: * parser.c (cp_parser_declaration): Fix unitialised warnings. gcc/fortran/ChangeLog: * match.c (gfc_match_symbol): Fix uninitialised warnings. * matchexp.c (gfc_match_expr): Likewise. gcc/java/ChangeLog: * verify-impl.c (check_class_constant): Fix uninitialised warnings. (check_constant): Likewise. (check_wide_constant): Likewise. From-SVN: r102273
2005-07-22re PR tree-optimization/22336 (ICE Segfault in record_block_change at ↵Richard Kenner2-0/+10
function.c:5498) 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Laurent GUERBY <laurent@guerby.net> PR tree-optimization/22336 * function.c (record_block_change): Check for cfun->ib_boundaries_block. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r102272
2005-07-22fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.James A. Morrison2-2/+12
2005-07-21 James A. Morrison <phython@gcc.gnu.org> * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs. (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED. From-SVN: r102269
2005-07-21... Add warning control to warning call.DJ Delorie2-5/+9
* c-common.c (check_function_sentinel): Likewise. (check_nonnull_arg): Likewise. From-SVN: r102266
2005-07-21c-typeck.c (parser_build_binary_op): Add warning control to warning calls.DJ Delorie2-10/+22
* c-typeck.c (parser_build_binary_op): Add warning control to warning calls. (c_finish_if_stmt): Likewise. From-SVN: r102265
2005-07-21toplev.c (warn_deprecated_use): Add warning control to warning call.DJ Delorie2-6/+14
* toplev.c (warn_deprecated_use): Add warning control to warning call. From-SVN: r102264
2005-07-21re PR tree-optimization/22504 (benchmark - galgel fails at runtime with ↵Richard Henderson2-126/+223
miscompare output) PR tree-opt/22504 * tree-complex.c (complex_ssa_name_components): New. (cvc_lookup): Allow entry not found. (create_components): Remove. (create_one_component_var, get_component_var): New. (get_component_ssa_name, set_component_ssa_name): New. (extract_component): Use get_component_ssa_name. (update_complex_components): Use set_component_ssa_name. (update_complex_components_on_edge): Likewise. (update_phi_components): Create new PHI nodes directly, instead of adding insns to edges. (tree_lower_complex): Allocate and free complex_variable_components and complex_ssa_name_components here. From-SVN: r102260
2005-07-22Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r102258.2
2005-07-21alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT, revert to ↵Daniel Berlin2-3/+8
returning false. 2005-07-20 Daniel Berlin <dberlin@dberlin.org> * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT, revert to returning false. From-SVN: r102256
2005-07-21* gcc.c-torture/compile/20050721-1.c: New test for 3.4 fix.Janis Johnson2-0/+61
From-SVN: r102252
2005-07-21re PR target/21149 (invalid code generation for _mm_movehl_ps SSE intrisinc)Uros Bizjak2-2/+7
PR target/21149 * config/i386/i386.md (sse_movhlps): Fix vec_select values. From-SVN: r102250
2005-07-21re PR target/22576 (ICE with simple factorial program compiled with ↵Uros Bizjak2-2/+8
-ffast-math on gcc 4.0.2) PR target/22576 * config/i386/i386.md (cmpxf): Change operand constraints to "nonmemory_operand". From-SVN: r102247
2005-07-21i386.md (trap): Use "".word/t0x0b0f" instead of ud2.Andrew Pinski2-1/+5
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2. From-SVN: r102246
2005-07-21class.c (build_base_path): Fix typo.Andrew Pinski2-2/+6
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> * class.c (build_base_path): Fix typo. From-SVN: r102245
2005-07-21re PR middle-end/21180 (checking on fold no longer happens in some cases)Andrew Pinski2-13/+132
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/21180 * fold-const.c (fold_build1): Add checksum for the operands. (fold_build2): Likewise. (fold_build3): Likewise. From-SVN: r102244
2005-07-21re PR tree-optimization/19055 (Minor bit optimization with or and xor)Andrew Pinski3-0/+59
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/19055 * gcc.dg/tree-ssa/pr19055.c: New test. * gcc.dg/tree-ssa/pr19055-2.c: New test. 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/19055 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X". From-SVN: r102243
2005-07-21re PR c++/22358 (C++ front-end produces mis-match types in MODIFY_EXPR)Andrew Pinski4-1/+20
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> PR C++/22358 * g++.dg/other/pr22358.C: New test. 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> PR C++/22358 * class.c (build_base_path): Convert BINFO_OFFSET to the correct type. From-SVN: r102240
2005-07-21common.opt (-fforward-propagate): Committed by mistake, removed.Paolo Bonzini2-4/+5
2005-07-21 Paolo Bonzini <bonzini@gnu.org> * common.opt (-fforward-propagate): Committed by mistake, removed. From-SVN: r102239
2005-07-21re PR c++/2922 ([DR 197] two-stage lookup for unqualified function calls ↵Douglas Gregor2-0/+24
with type-dependent arguments) 2005-07-21 Douglas Gregor <doug.gregor@gmail.com> PR c++/2922 * g++.dg/lookup/two-stage5.C: New test from bug comments. From-SVN: r102236
2005-07-21re PR c++/15938 (ICE with anonymous unions)Volker Reichelt2-0/+18
PR c++/15938 * g++.dg/init/union2.C: New test. From-SVN: r102235
2005-07-21Completed this ChangeLog entry:Doug Gregor1-1/+3
2005-07-20 Douglas Gregor <doug.gregor@gmail.com> PR c++/2922 * semantics.c (perform_koenig_lookup): For dependent calls, just return the set of functions we've found so far. Later, it will be augmented by those found through argument-dependent lookup. * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing the optimization that skips namespaces where the functions were originally found. From-SVN: r102234
2005-07-21reg-stack.c: Fix comment typo(s).Volker Reichelt4-5/+11
* reg-stack.c: Fix comment typo(s). * tree-ssa-operands.c: Likewise. * tree-vectorizer: Likewise. From-SVN: r102232
2005-07-21call.c: Fix comment typo(s).Volker Reichelt5-7/+14
* call.c: Fix comment typo(s). * cxx-pretty-print.h: Likewise. * name-lookup.c: Likewise. * parser.c: Likewise. From-SVN: r102231
2005-07-21re PR other/22393 (ICE in emit_move_insn, at expr.c:3142)Volker Reichelt2-0/+12
PR c/22393 * gcc.dg/complex-4.c: New test. From-SVN: r102229
2005-07-21Replace C++ style line comments with C style line comments.Nick Clifton2-17/+36
(symbian_add_attribute): Do not use a ? operator on the LHS of an assignment. (sh_symbian_handle_dll_attribute): Change the type of the method vector to "VEC(tree,gc)*" and use vector accessor macros to walk over the elements. (symbian_export_vtable_and_rtti_p): Likewise. (symbian_class_needs_attribute_p): Likewise. From-SVN: r102228
2005-07-21re PR testsuite/22522 (gcc.dg/tree-ssa/flatten-2.c scan-assembler cycle.: fails)Richard Guenther3-5/+12
2005-07-21 Richard Guenther <rguenther@suse.de> PR testsuite/22522 * gcc.dg/tree-ssa/flatten-1.c: Use correct regexp for scanning for asm labels. * gcc.dg/tree-ssa/flatten-2.c: Likewise. From-SVN: r102227
2005-07-21re PR target/22085 (error with -fpreprocessed)Paolo Bonzini7-6/+40
gcc: 2005-07-21 Paolo Bonzini <bonzini@gnu.org> PR target/22085 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not initialize targetm.resolve_overloaded_builtin here. (altivec_expand_overloaded_builtin): Make it non-static. * config/rs6000/rs6000-protos.h (altivec_expand_overloaded_builtin): New prototype. * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize targetm.resolve_overloaded_builtin here. * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise. testsuite: 2005-07-21 Paolo Bonzini <bonzini@gnu.org> PR target/22085 * gcc.dg/altivec-pr22085.c: New. From-SVN: r102226
2005-07-21re PR rtl-optimization/19210 (not using do-loop for some loops)Paolo Bonzini14-14/+193
gcc: 2005-07-21 Paolo Bonzini <bonzini@gnu.org> Zdenek Dvorak <dvorakz@suse.cz> PR tree-optimization/19210 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations): New. * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o. * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations, rely on unproven assumptions. * predict.c (predict_loops): Adjust call to number_of_iterations_exit. * tree-flow.h (number_of_iterations_exit): Add final parameter. * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call to number_of_iterations_exit. * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise. * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise. * tree-ssa-loop-niter.c (find_loop_niter, estimate_numbers_of_iterations_loop): Likewise. (number_of_iterations_exit): Honor the new options. * doc/invoke.texi (Wunsafe-loop-optimizations, funsafe-loop-optimizations): Document them. gcc/testsuite: 2005-07-21 Paolo Bonzini <bonzini@gnu.org> * gcc.dg/tree-ssa/pr19210-1.c: New. * gcc.dg/tree-ssa/pr19210-2.c: New. Co-Authored-By: Zdenek Dvorak <dvorakz@suse.cz> From-SVN: r102225
2005-07-21re PR rtl-optimization/22167 (Strange optimization bug when using -Os)Richard Sandiford4-1/+43
PR rtl-optimization/22167 * gcse.c (hoist_code): Fix hoist_exprs[] check. From-SVN: r102219
2005-07-21lynx.h: Mark __do_global_ctors_aux and __do_global_dtors_aux longcall.Adam Nemet2-0/+22
* config/rs6000/lynx.h: Mark __do_global_ctors_aux and __do_global_dtors_aux longcall. From-SVN: r102218
2005-07-21re PR c++/2922 ([DR 197] two-stage lookup for unqualified function calls ↵Douglas Gregor8-7/+84
with type-dependent arguments) 2005-07-20 Douglas Gregor <doug.gregor@gmail.com> PR c++/2922 * g++.dg/lookup/two-stage2.C: New. * g++.dg/lookup/two-stage3.C: New. * g++.dg/lookup/two-stage4.C: New. Illustrates how we have not yet fixed two-stage name lookup for operators. * g++.dg/template/call3.C: Compiler now produces an appropriate error message. * g++.dg/template/crash37.C: Compiler now describes bla() on line 14 as a candidate. * g++.dg/template/ptrmem4.C: Compiler produces different error message. * g++.old-deja/g++.other/pmf3.C: Compiler now describes connect_to_method as a candidate. From-SVN: r102217
2005-07-21re PR c++/2922 ([DR 197] two-stage lookup for unqualified function calls ↵Douglas Gregor3-24/+14
with type-dependent arguments) 2005-07-20 Douglas Gregor <doug.gregor@gmail.com> PR c++/2922 * semantics.c (perform_koenig_lookup): For dependent calls, just return the set of functions we've found so far. Later, it will be augmented by those found through argument-dependent lookup. * name-lookup.c (lookup_arg_dependent): From-SVN: r102216
2005-07-21gensupport.c (old_preds): Don't reference PREDICATE_CODES.Kazu Hirata6-74/+23
* gensupport.c (old_preds): Don't reference PREDICATE_CODES. (old_special_pred_table): Don't reference SPECIAL_MODE_PREDICATES. * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison. * config/arc/arc.h: Don't mention PREDICATE_CODES. * config/sh/predicates.h: Don't mention SPECIAL_MODE_PREDICATES. * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove. From-SVN: r102215
2005-07-21Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r102213.2
2005-07-20config.gcc: Add m32c-elf support.DJ Delorie28-6/+6534
* config.gcc: Add m32c-elf support. * doc/contrib.texi: Mention m32c. * doc/extend.texi: Document m32c extensions. * doc/install.texi: Mention m32c. * doc/invoke.texi: Document m32c options. * doc/md.texi: Document m32c constraints. * config/m32c/addsub.md: New file. * config/m32c/bitops.md: New file. * config/m32c/cond.md: New file. * config/m32c/jump.md: New file. * config/m32c/m32c-lib1.S: New file. * config/m32c/m32c-lib2.c: New file. * config/m32c/m32c-modes.def: New file. * config/m32c/m32c-pragma.c: New file. * config/m32c/m32c-protos.h: New file. * config/m32c/m32c.abi: New file. * config/m32c/m32c.c: New file. * config/m32c/m32c.h: New file. * config/m32c/m32c.md: New file. * config/m32c/m32c.opt: New file. * config/m32c/minmax.md: New file. * config/m32c/mov.md: New file. * config/m32c/muldiv.md: New file. * config/m32c/predicates.md: New file. * config/m32c/prologue.md: New file. * config/m32c/shift.md: New file. * config/m32c/t-m32c: New file. From-SVN: r102207
2005-07-20sh.md (UNSPEC_SP_SET, [...]): New constants.Kaz Kojima2-0/+120
* config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants. (stack_protect_set, stack_protect_test): New expanders. (stack_protect_set_si, stack_protect_set_si_media, stack_protect_set_di_media, stack_protect_test_si, stack_protect_test_si_media, stack_protect_test_di_media): New insns. From-SVN: r102206
2005-07-20c-typeck.c (output_init_element): Don't copy the INTEGER_CST.Andrew Pinski2-2/+4
2005-07-20 Andrew Pinski <pinskia@physics.uc.edu> * c-typeck.c (output_init_element): Don't copy the INTEGER_CST. From-SVN: r102203
2005-07-20tree.h (tree_expr_nonzero_p): Export.James A. Morrison8-39/+46
2005-07-20 James A. Morrison <phython@gcc.gnu.org> * tree.h (tree_expr_nonzero_p): Export. * fold-const.c (tree_expr_nonzero_p): Likewise. Return true for CALL_EXPRs that are alloca calls. (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs against zero. * tree-flow.h (expr_computes_nonzero): Remove. * tree-vrp.c (expr_computes_nonzero): Remove. (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p. (extract_range_from_unary_expr): Likewise. * tree-ssa-dom.c (record_equivalences_from_stmt): Use tree_expr_nonzero_p. From-SVN: r102201
2005-07-20bfin-protos.h (legitimize_pic_address): Don't declare.Bernd Schmidt4-107/+168
* config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare. * config/bfin/bfin.c (legitimize_pic_address): Now static. Take extra arg "picreg" and use it instead of pic_offset_table_rtx. All callers changed. (frame_related_constant_load): New arg "related" which controls setting of RTX_FRAME_RELATED_P. All callers changed. (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue. (bfin_expand_prologue): Add stack limit checking. * config/bfin/bfin.md (trapifcc): New pattern. From-SVN: r102195
2005-07-20bfin.c: Include "langhooks.h".Bernd Schmidt2-4/+8
* config/bfin/bfin.c: Include "langhooks.h". (def_builtin): Go through lang_hooks to call builtin_function. From-SVN: r102193
2005-07-20bfin-protos.h (bfin_longcall_p): Declare.Bernd Schmidt7-70/+229
* config/bfin/bfin-protos.h (bfin_longcall_p): Declare. * config/bfin/predicates.md (symbol_ref_operand): New. (call_insn_operand): Delete. All callers changed to use register_no_elim_operand. * config/bfin/bfin.c (init_cumulative_args): Initialize the new call_cookie field. (function_arg): Use it to generate the call's operand 2. (bfin_longcall_p): New function. (bfin_expand_call): Extra arg "cookie". All callers and declaration changed. Emit extra USE in the pattern. Use bfin_longcall_p to determine if the address needs to be in a REG. (bfin_handle_longcall_attribute): New function. (bfin_attribute_table): Add "longcall" and "shortcall". * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros. (CUMULATIVE_ARGS): New member call_cookie. (PREDICATE_CODES): Add symbol_ref_operand. * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add extra USE to the pattern. (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol): New patterns, split off call_insn, sibcall_insn, call_value_insn and sibcall_value_insn; now the new patterns handle direct calls and the old ones indirect calls. * doc/extend.texi: Mention Blackfin in longcall/shortcall docs. From-SVN: r102191