aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-11-29[multiple changes]Joseph Myers15-3/+113
2004-11-29 Daniel Jacobowitz <dan@codesourcery.com> PR c/7544 * Makefile.in (c-lang.o): Update dependencies. * c-lang.c: Include "c-pragma.h". (finish_file): Call maybe_apply_pending_pragma_weaks. * c-pragma.c (maybe_apply_pending_pragma_weaks): New function. * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype. cp: 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com> * Make-lang.in (cp/decl2.o): Update dependencies. * decl2.c (finish_file): Call maybe_apply_pending_pragma_weaks. objc: 2004-11-29 Joseph Myers <joseph@codesourcery.com> * Make-lang.in (objc/objc-act.o): Update dependencies. * objc-act.c (objc_finish_file): Call maybe_apply_pending_pragma_weaks if not OBJCPLUS. testsuite: 2004-11-29 Joseph Myers <joseph@codesourcery.com> * g++.dg/ext/weak1.C, gcc.dg/weak/weak-10.c, objc.dg/weak-1.m: New tests. From-SVN: r91479
2004-11-29re PR target/17224 (relocation truncated to fit: GPREL22)Richard Henderson2-3/+43
PR target/17224 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets outside the referenced object. From-SVN: r91478
2004-11-29cfg.c (flow_obstack): Remove.Kazu Hirata2-16/+4
* cfg.c (flow_obstack): Remove. (flow_firstobj): Likewise. (init_flow): Remove all uses of flow_obstack. From-SVN: r91477
2004-11-29tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge only when needed.Kazu Hirata2-1/+4
* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge only when needed. From-SVN: r91476
2004-11-29cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using EDGE_COUNT.Kazu Hirata2-7/+4
* cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using EDGE_COUNT. From-SVN: r91475
2004-11-29cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by simplifying edge ↵Kazu Hirata2-19/+5
manipulation. * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by simplifying edge manipulation. From-SVN: r91474
2004-11-29tree-if-conv.c (replace_phi_with_cond_modify_expr): Use EDGE_PRED instead of ↵Kazu Hirata5-4/+12
PHI_ARG_EDGE. * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use EDGE_PRED instead of PHI_ARG_EDGE. * tree-ssa-live.c: Likewise. * tree-ssa-loop-manip.c: Likewise. * tree-ssa.c: Likewise. From-SVN: r91473
2004-11-29* link.cc (link_symbol_table): Do not use intptr_t.Eric Botcazou2-2/+6
From-SVN: r91472
2004-11-29re PR c++/18652 (ICE on invalid redeclaration)Kriang Lerdsuwanakij7-7/+36
PR c++/18652 * name-lookup.c (pushtag): Change return type to tree. * cp-tree.h (pushtag): Adjust declaration. * decl.c (xref_tag, start_enum): Use return value of pushtag. * pt.c (push_template_decl_real): Return immediately if pushdecl_namespace_level returns error_mark_node. * g++.dg/lookup/crash6.C: New test. From-SVN: r91470
2004-11-2918654.cc: Use better names.Paolo Carlini3-7/+13
2004-11-29 Paolo Carlini <pcarlini@suse.de> * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use better names. * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same. From-SVN: r91469
2004-11-29re PR middle-end/18164 (ICE on trivial invalid asm)Hans-Peter Nilsson2-1/+7
PR middle-end/18164 * gcc.dg/pr18164.c: Add dg-options "". Correct typo in dg-error. From-SVN: r91468
2004-11-29re PR libstdc++/18654 (Shrink-to-fit std::string::reserve() calls can ↵Paolo Carlini4-1/+121
reallocate & copy string contents unnecessarily) 2004-11-29 Paolo Carlini <pcarlini@suse.de> PR libstdc++/18654 * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking, do not round to pagesize. * testsuite/21_strings/basic_string/capacity/char/18654.cc: New. * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New. From-SVN: r91466
2004-11-29Wnested-externs-1.c, [...]: New tests.Joseph Myers9-0/+196
* gcc.dg/Wnested-externs-1.c, gcc.dg/decl-7.c, gcc.dg/decl-8.c, gcc.dg/if-empty-1.c, gcc.dg/init-bad-1.c, gcc.dg/init-bad-2.c, gcc.dg/init-bad-3.c, gcc.dg/parm-mismatch-1.c: New tests. From-SVN: r91465
2004-11-29varasm.c (default_elf_select_section_1): Only pass DECL_P decl to named_section.Alan Modra2-16/+27
* varasm.c (default_elf_select_section_1): Only pass DECL_P decl to named_section. From-SVN: r91464
2004-11-29opts.c (decode_options): Do not set max-inline-insns-rtl.Nathan Sidwell5-20/+8
* opts.c (decode_options): Do not set max-inline-insns-rtl. (common_handle_option): Likewise. * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove. * params.h (MAX_INLINE_INSNS_RTL): Remove. * doc/invoke.texi (max-inline-insns-rtl): Remove. From-SVN: r91463
2004-11-29re PR target/9571 ([PPC] problems with 'const', -msdata=eabi and sections.)Alan Modra2-12/+17
PR target/9571 * varasm.c (default_elf_select_section_1): Pass decl to named_section. From-SVN: r91462
2004-11-28[multiple changes]Andrew Pinski4-1/+21
2004-11-18 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/18164 * gimplify.c (gimplify_asm_expr): If the length of an output operand is zero, do not process it, just let it go through. 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu> * gcc.dg/pr18164.c: New test. From-SVN: r91459
2004-11-28PR/18662, also backported from tree-cleanup-branch.Richard Kenner2-7/+16
* tree-ssa-ccp.c (substitute_and_fold): If replaced anything, always call maybe_clean_eh_stmt and modify_stmt. Co-Authored-By: Diego Novillo <dnovillo@redhat.com> From-SVN: r91451
2004-11-28tree-ssa-operands.c (build_ssa_operands, [...]): Ignore a VIEW_CONVERT_EXPR ↵Richard Kenner3-22/+56
on LHS when deciding if must or may def. PR/18664 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR): Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def. * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR, add an inverse VIEW_CONVERT_EXPR to const_val. From-SVN: r91450
2004-11-28tree-nested.c (check_for_nested_with_variably_modified): New.Richard Kenner2-1/+50
* tree-nested.c (check_for_nested_with_variably_modified): New. (create_nesting_tree): Call it. From-SVN: r91449
2004-11-28tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove special code ↵Richard Kenner2-17/+17
for assigning to non-pointer. * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove special code for assigning to non-pointer. (is_escape_site): If RHS is a conversion between pointer and integer types, this is an escape site. From-SVN: r91448
2004-11-28gcse.c (insert_store): Error if try to insert store on abnormal edge.Richard Kenner2-8/+27
* gcse.c (insert_store): Error if try to insert store on abnormal edge. (store_motion): Don't move store if any edge we'd want to move it to is abnormal. From-SVN: r91447
2004-11-28expr.c (expand_expr_real_1, [...]): Properly fold with non-zero lower bound.Richard Kenner2-24/+9
* expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with non-zero lower bound. From-SVN: r91446
2004-11-28* expr.c (categorize_ctor_elements_1, case STRING_CST): New case.Richard Kenner2-0/+10
From-SVN: r91445
2004-11-29re PR other/17594 (GCC does not error about unknown options which starts ↵Matt Kraai4-6/+21
with a valid option) (gcc) PR diagnostic/17594 * opts.c (find_opt): Require that the input match a switch exactly or that the switch take a joined option to be interpreted as a match for another language. (gcc/testsuite) * gcc.dg/funroll-loops-all.c: New. From-SVN: r91444
2004-11-29re PR target/18489 (mmix-knuth-mmixware testsuite failure: g++.dg/rtti/tinfo1.C)Hans-Peter Nilsson2-1/+5
PR target/18489 * g++.dg/rtti/tinfo1.C: In pattern for label definition ending delimeter, match space and TAB as well as ":". From-SVN: r91443
2004-11-29Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91441.2
2004-11-29Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91440.2
2004-11-28timevar.def (TV_TREE_REDPHI): New timevar.Andrew Pinski3-1/+7
2004-11-28 Andrew Pinski <pinskia@physics.uc.edu> * timevar.def (TV_TREE_REDPHI): New timevar. * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id. From-SVN: r91438
2004-11-28lost ChangeLog entryNathanael Nerode1-0/+8
From-SVN: r91437
2004-11-28re PR preprocessor/17651 (Erroneous preprocessor output with -g when ↵Nathanael Nerode2-1/+3
generating dependencies) 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> PR preprocessor/17651 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply flag_no_line_commands. * c-ppoutput.c (pp_file_change): Remove now-redundant check of flag_no_output. From-SVN: r91436
2004-11-28re PR target/18484 (mmix-knuth-mmixware testsuite failure: g++.dg/abi/empty6.C)Hans-Peter Nilsson2-2/+7
PR target/18484 * g++.dg/abi/empty6.C: Xfail warning for mmix-*-*. From-SVN: r91434
2004-11-28avr.c (avr_handle_fndecl_attribute): Generate a warning if the function name ↵Theodore A. Roth2-0/+32
does not begin with "__vector" and the... * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a warning if the function name does not begin with "__vector" and the function has either the 'signal' or 'interrupt' attribute. From-SVN: r91433
2004-11-28avr.c (avr_mcu_types): Add entries for atmega48...Theodore A. Roth4-9/+47
* config/avr/avr.c (avr_mcu_types): Add entries for atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165, atmega325, atmega3250, atmega645 and atmega6450. * config/avr/avr.h (LINK_SPEC): Ditto. (LIB_SPEC): Ditto. (LIBGCC_SPEC): Ditto. (CRT_BINUTILS_SPECS): Ditto. * config/avr/t-avr (MULTILIB_MATCHES): Ditto. From-SVN: r91432
2004-11-28re PR target/18348 (mmix-knuth-mmixware testsuite failure: gcc.dg/uninit-H.c)Hans-Peter Nilsson2-1/+6
PR target/18348 * gcc.dg/uninit-H.c (ASM): For unknown targets, define to "= 0". From-SVN: r91431
2004-11-28mauve-libgcj: Disable SpinnerListModel...Mark Wielaard2-0/+10
* mauve-libgcj: Disable SpinnerListModel, SwingUtilities and XMLDecoder tests which currently don't compile. From-SVN: r91430
2004-11-28re PR target/18345 (mmix-knuth-mmixware testsuite failure: gcc.dg/intmax_t-1.c)Hans-Peter Nilsson2-1/+4
PR target/18345 * gcc.dg/intmax_t-1.c: Add mmix-*-* to dg-error. From-SVN: r91429
2004-11-28re PR preprocessor/17610 (Empty #include statement halts gcc)Nathanael Nerode4-0/+32
(libcpp) PR preprocessor/17610 * directives.c (do_include_common): Error out if an empty filename is given for #include (or #include_next or #import). (gcc) PR preprocessor/17610 * testsuite/gcc.dg/cpp/empty-include.c: New testcase. From-SVN: r91428
2004-11-28re PR target/18337 (mmix-knuth-mmixware testsuite failure: ↵Hans-Peter Nilsson2-1/+7
gcc.dg/array-quals-1.c) PR target/18337 * gcc.dg/array-quals-1.c: Xfail for mmix-*-*. From-SVN: r91427
2004-11-28direct_io_2.f90: New test.Bud Davis4-1/+55
2004-11-28 Bud Davis <bdavis9659@comcast.net> * gcc/gcc/gfortran.dg/direct_io_2.f90: New test. * gcc/libgfortran/io/unix.c (mmap_alloc_w_a): check for a write to a location less than the mapped area. From-SVN: r91426
2004-11-28tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.Jeff Law4-0/+66
* tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New. (pass_maybe_create_global_var): New. * tree-pass.h (pass_maybe_create_global_var): Declare. * tree-optimize.c (init_tree_optimization_passes): Link in pass_maybe_create_global_var. From-SVN: r91425
2004-11-28re PR target/18334 (mmix-knuth-mmixware testsuite failure: gcc.dg/cpp/assert4.c)Hans-Peter Nilsson2-8/+5
PR target/18334 * gcc.dg/cpp/assert4.c: Remove mmix assertion tests. From-SVN: r91424
2004-11-28* tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.Richard Kenner2-1/+8
From-SVN: r91420
2004-11-28re PR rtl-optimization/18420 (ICE compiling mesa at -O2)Ulrich Weigand2-2/+6
PR rtl-optimization/18420 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change. From-SVN: r91419
2004-11-28Forgot to add my own email addressSteven Bosscher1-1/+1
From-SVN: r91418
2004-11-28vax.h (CASE_DROPS_THROUGH): Don't define.Steven Bosscher3-60/+60
* config/vax/vax.h (CASE_DROPS_THROUGH): Don't define. * config/vax/vax.md (casesi): Emit a test-and-branch to make sure that the case is in range, to make sure the casesi insn is always in range and never falls through. (casesi1): Add comment to explain why casesi never falls through. Remove the unnamed special case casesi pattern. From-SVN: r91417
2004-11-28re PR target/18331 (mmix-knuth-mmixware testsuite failure: ↵Hans-Peter Nilsson2-4/+45
execute/ieee/fp-cmp-8.c gcc.dg/20040625-1.c) PR target/18331 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from "*movdicc_real". Only match reversible comparisons. ("*movdicc_real_nonreversible"): New pattern, split from "*movdicc_real". Match only nonreversible comparisons. Exclude reversed alternatives. ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"): Similar. From-SVN: r91416
2004-11-28* gcc.c-torture/execute/20020227-1.x: Remove XFAIL.Richard Henderson2-35/+4
From-SVN: r91415
2004-11-28ia64.md: Move all define_predicate's ...Richard Henderson3-344/+360
* config/ia64/ia64.md: Move all define_predicate's ... * config/ia64/predicates.md: ... here. New file. From-SVN: r91414
2004-11-27jcf-parse.c (set_source_filename): Improvement to Andrew's fix...Per Bothner2-7/+18
* jcf-parse.c (set_source_filename): Improvement to Andrew's fix: Fix fencepost error in 'i', which got executed one too many times. Also, fold memcpy into explicit loop, as originally intended. Also, free temporary 'buf' which otherwise leaks. From-SVN: r91411