aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-11-27expr.c (build_expr_wfl): Only declare last_file and last_filenode local ↵Per Bothner2-2/+8
static variables if... * expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if not USE_MAPPED_LOCATION. From-SVN: r91408
2004-11-27re PR bootstrap/18142 ("Unknown pseudo-op: .machine" compiling darwin-crt2.c)Per Bothner3-2/+54
PR bootstrap/18142 Re-applied following, with two modifications: add a URL for the fixed cctools; only exit if $build = $target. 2004-10-18 Kelley Cook <kcook@gcc.gnu.org> * configure.ac (powerpc-*-darwin*): Require assembler to support .machine directive. * configure: Regenerate. From-SVN: r91406
2004-11-28builtin-choose-expr-2.c, [...]: New tests.Joseph Myers15-0/+255
* gcc.dg/builtin-choose-expr-2.c, gcc.dg/cast-1.c, gcc.dg/cast-2.c, gcc.dg/cast-3.c, gcc.dg/format/opt-1.c, gcc.dg/format/opt-2.c, gcc.dg/format/opt-3.c, gcc.dg/format/opt-4.c, gcc.dg/format/opt-5.c, gcc.dg/format/opt-6.c, gcc.dg/pointer-arith-5.c, gcc.dg/pointer-arith-6.c, gcc.dg/pointer-arith-7.c, gcc.dg/pointer-arith-8.c: New tests. From-SVN: r91405
2004-11-28Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91403.2
2004-11-28Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91402.2
2004-11-27re PR libfortran/18364 (endfile does not truncate file)Bud Davis4-0/+42
2004-11-27 Bud Davis <bdavis9659@comcast.net> PR fortran/18364 * gfortran.dg/endfile.f90: New test. * io/endfile.c (st_endfile): flush the stream before truncating. From-SVN: r91400
2004-11-27re PR target/16800 (PowerPC - Unnecessary rldicl)David Edelsohn2-23/+59
PR target/16800 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED. Distinguish between SImode and DImode CONST_INT. From-SVN: r91399
2004-11-28re PR target/16343 (invalid code when using -meabi -msdata=eabi)Andreas Fischer2-0/+19
PR target/16343 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow functions, strings and thread-local vars. Co-Authored-By: Alan Modra <amodra@bigpond.net.au> From-SVN: r91397
2004-11-28rs6000.h (WORLD_SAVE_P): Define.Alan Modra4-27/+45
* config/rs6000/rs6000.h (WORLD_SAVE_P): Define. * config/rs6000/darwin.h (WORLD_SAVE_P): Define. * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P to allow non-darwin ABIs to optimize away code. (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. From-SVN: r91396
2004-11-27* fold-const.c: Fix a comment typo.Kazu Hirata2-2/+2
From-SVN: r91395
2004-11-27internal.h: Replace all uses of uchar with unsigned char.Roger Sayle3-46/+59
* internal.h: Replace all uses of uchar with unsigned char. * include/cpp-id-data.h: Likewise. Guard typedef of uchar with !IN_GCC, so uchar is only defined whilst building libcpp. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r91394
2004-11-27* fold-const.c: Fix a comment typo.Kazu Hirata2-1/+3
From-SVN: r91393
2004-11-27* class.c, decl.c, expr.c: Fix comment typos.Kazu Hirata4-3/+7
From-SVN: r91392
2004-11-27* pt.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r91391
2004-11-27re PR libstdc++/18690 (tr1/utility is broken on darwin)Paolo Carlini2-6/+12
2004-11-27 Paolo Carlini <pcarlini@suse.de> PR libstdc++/18690 * include/tr1/utility (get(pair), get(const pair)): Change occurrences of _I to _Int. From-SVN: r91390
2004-11-27* gcc.pot: Regenerate.Joseph Myers2-2595/+2655
From-SVN: r91389
2004-11-27* cpplib.pot: Regenerate.Joseph Myers2-48/+52
From-SVN: r91388
2004-11-27gc_config.h.in: Add comment.Bryce McKinlay2-2/+10
2004-11-27 Bryce McKinlay <mckinlay@redhat.com> * include/gc_config.h.in: Add comment. Define only THREAD_LOCAL_ALLOC. From-SVN: r91387
2004-11-27bb-reorder.c (find_traces_1_round): Speed up by using EDGE_COUNT instead of ↵Kazu Hirata2-8/+5
FOR_EACH_EDGE. * bb-reorder.c (find_traces_1_round): Speed up by using EDGE_COUNT instead of FOR_EACH_EDGE. From-SVN: r91386
2004-11-27tree.c (operand_equal_for_phi_arg_p): New.Kazu Hirata7-8/+33
* tree.c (operand_equal_for_phi_arg_p): New. * tree.h: Add a prototype for operand_equal_for_phi_arg_p. * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c: Replace operand_equal_p with operand_for_phi_arg_p appropriately. From-SVN: r91385
2004-11-27re PR pch/14940 (PCH largefile test fails on various platforms)John David Anglin2-2/+5
PR pch/14940 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change. From-SVN: r91381
2004-11-27* gcc.dg/loop-6.c: New test.Falk Hueffner2-0/+29
From-SVN: r91378
2004-11-27linux.h: Fix a comment typo.Kazu Hirata3-2/+7
* config/i386/linux.h: Fix a comment typo. * doc/extend.texi: Fix a typo. From-SVN: r91377
2004-11-27tree-cfg.c (cleanup_tree_cfg): Also return true if blocks are merged.Jeff Law2-1/+6
* tree-cfg.c (cleanup_tree_cfg): Also return true if blocks are merged. From-SVN: r91376
2004-11-27link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass ↵Andrew Haley4-4/+22
on INTERPRETER. 2004-11-27 Andrew Haley <aph@redhat.com> * link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass on INTERPRETER. (print_class_loaded): Likewise. (wait_for_state): Likewise. * include/jvm.h (ROUND): Move to here from include/java-interp.h. * include/java-interp.h (ROUND): Remove. From-SVN: r91375
2004-11-27* config/i386/linux64.h (REG_NAME): Define.Jakub Jelinek2-0/+7
From-SVN: r91374
2004-11-27fold-const.c (extract_muldiv_1): If ctype is unsigned and type signed...Jakub Jelinek4-1/+51
* fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is unsigned and type signed, build ABS_EXPR with signed_type (ctype) and only afterwards convert to ctype. * gcc.c-torture/execute/20041126-1.c: New test. From-SVN: r91373
2004-11-27mips-args-1.c: Don't expect _R3000 or _R4000 to be defined on IRIX.Richard Sandiford2-2/+7
* gcc.dg/mips-args-1.c: Don't expect _R3000 or _R4000 to be defined on IRIX. From-SVN: r91372
2004-11-27mips-movcc-[123].c: Pass the ?: expressions to other functions.Richard Sandiford4-12/+24
* gcc.dg/mips-movcc-[123].c: Pass the ?: expressions to other functions. From-SVN: r91371
2004-11-27mips-protos.h (function_arg_boundary): Declare.Richard Sandiford4-21/+32
* config/mips/mips-protos.h (function_arg_boundary): Declare. * config/mips/mips.h (PARM_BOUNDARY): Simplify definition. (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise. (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function. * config/mips/mips.c (function_arg_boundary): New function. Impose a maximum alignment of STACK_BOUNDARY. From-SVN: r91370
2004-11-27re PR rtl-optimization/17825 (ICE in reg_bitfield_target_p)Jakub Jelinek4-3/+44
PR rtl-optimization/17825 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new) or not. * gcc.c-torture/compile/20041119-1.c: New test. From-SVN: r91369
2004-11-272.cc: Fix typo.Paolo Carlini7-9/+19
2004-11-27 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo. * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise. * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY. * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise. * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise. From-SVN: r91368
2004-11-27target-libpath.exp (restore_ld_library_path_env_vars): Check existence of ld ↵John David Anglin2-8/+13
library path variables before unsetting. * lib/target-libpath.exp (restore_ld_library_path_env_vars): Check existence of ld library path variables before unsetting. From-SVN: r91367
2004-11-27* Make-lang.in (ada/trans.o): Depend on $(EXPR_H).Andreas Schwab2-5/+9
From-SVN: r91365
2004-11-27re PR middle-end/12769 (-mlongcall doesn't convert all calls to long calls ↵Alan Modra2-5/+13
for builtin functions) PR target/12769 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie from rs6000_default_long_calls for libcalls. From-SVN: r91362
2004-11-26expmed.c (extract_bit_field): When extracting from non-integer mode...Richard Kenner2-7/+12
* expmed.c (extract_bit_field): When extracting from non-integer mode, force a SUBREG into a register because we may be taking a further SUBREG of it. From-SVN: r91361
2004-11-27Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91358.2
2004-11-27Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91357.2
2004-11-26* doc/contrib.texi (Tim Josling): Remove nesting quotation marks.Di-an Jan2-1/+5
From-SVN: r91355
2004-11-26badalloc1.C: Robustify.Mark Mitchell2-14/+16
2004-11-26 Mark Mitchell <mark@codesourcery.com> * g++.old-deja/g++.eh/badalloc1.C: Robustify. From-SVN: r91352
2004-11-26inclhack.def (gnu_types): Do not use on Solaris 2.1x.Mark Mitchell3-10/+50
2004-11-26 Mark Mitchell <mark@codesourcery.com> * inclhack.def (gnu_types): Do not use on Solaris 2.1x. (stdio_va_list): Likewise. (stdio_stdarg.h): Likewise. (solaris_stdio_tag): Add bypass. * fixincl.x: Regenerated. From-SVN: r91351
2004-11-26Changes for k*bsd-gnu support.Robert Millan4-10/+26
* config/i386/linux.h: Define REG_NAME to allow overriding of register names in sc structure. * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead of sc->reg. * config.gcc: Detect x86_64-k*bsd-gnu systems. From-SVN: r91350
2004-11-26DR 243.Paolo Carlini12-67/+690
2004-11-26 Paolo Carlini <pcarlini@suse.de> DR 243. get and getline when sentry reports failure [WP] * include/bits/istream.tcc (istream<>::get, istream<>::getline): Store a null character only if the array has a non-zero size. * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline): Likewise. * testsuite/27_io/basic_istream/get/char/3.cc: New. * testsuite/27_io/basic_istream/getline/char/6.cc: New. * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New. * docs/html/ext/howto.html: Add an entry for DR 243. * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New. * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New. * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New. * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New. * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New. From-SVN: r91348
2004-11-26tree-ssa.c (verify_flow_sensitive_alias_info): Don't retrieve annotations or ↵Jeff Law2-4/+14
pointer info before it's necessary. * tree-ssa.c (verify_flow_sensitive_alias_info): Don't retrieve annotations or pointer info before it's necessary. Reorder tests for early continue of the loop. Manually CSE SSA_NAME_VAR. From-SVN: r91347
2004-11-26target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.Eric Botcazou7-81/+159
* target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'. * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0. (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC. * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move to a fixed reg if the source is the Return Address register. Implement new Rule 15. * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC. * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to sparc_dwarf_handle_frame_unspec. (gen_save_register_window): New function. (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc. (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec. (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement. Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns. (sparc_asm_function_prologue): Do not emit call frame debugging info. (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement. (sparc_expand_epilogue): Likewise. (sparc_dwarf_handle_frame_unspec): New function. * config/sparc/sparc.md (save_register_window): Remove. (save_register_windowdi): Rewrite modelled on the callframe debug info. (save_register_windowsi): Likewise. From-SVN: r91346
2004-11-26frv-protos.h: Guard ifcvt functions declarations with BB_HEAD, not BLOCK_HEAD.Alexandre Oliva2-1/+6
* config/frv/frv-protos.h: Guard ifcvt functions declarations with BB_HEAD, not BLOCK_HEAD. From-SVN: r91345
2004-11-26frv.c (frv_ifcvt_modify_insn): Don't leave alone scratch insns that set a ↵Alexandre Oliva2-3/+26
register live at the join point. * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone scratch insns that set a register live at the join point. From-SVN: r91344
2004-11-26re PR java/18305 (Class initialization optimization is not done when ↵Andrew Pinski6-25/+57
compiled from .class) 2004-11-26 Andrew Pinski <pinskia@physics.uc.edu> PR java/18305 * decl.c (end_java_method): Call attach_init_test_initialization_flags on all the init_decls. * parse.y (attach_init_test_initialization_flags): Move to ... * expr.c (attach_init_test_initialization_flags): here and support BIND_EXPR also. * java-tree.h (attach_init_test_initialization_flags): Prototype. * jcf-parse.c (parse_class_file): Don't disable class init optimization. From-SVN: r91343
2004-11-26Friend class name lookup 4/nKriang Lerdsuwanakij6-369/+41
Friend class name lookup 4/n * class.c (pushclass): Don't call cxx_remember_type_decls. * cp-tree.h (clear_anon_tags): Remove declaration. * decl.c (grokdeclarator): Don't call lookup_tag_reverse. * name-lookup.c (binding_entry_free, binding_table_free): Comment out functions. (binding_table_find_anon_type, binding_table_reverse_maybe_remap, binding_table_remove_anonymous_types, cxx_remember_type_decls, bt_print_entry, clear_anon_tags, follow_tag_typedef, lookup_tag, lookup_tag_reverse): Remove (begin_scope, leave_scope, kept_level_p, print_binding_level): Don't use type_decls field in cp_binding_level. (maybe_process_template_type_declaration, pushtag): Set CLASSTYPE_NESTED_UTDS directly. * name-lookup.h (binding_table_remove_anonymous_types, cxx_remember_type_decls, lookup_tag, lookup_tag_reverse): Remove declaration. (cp_binding_level): Remove type_decls field. From-SVN: r91342
2004-11-26* tree-cfg.c (tree_split_edge): Speed up by using find_edge.Kazu Hirata2-7/+5
From-SVN: r91341