Commit Graph

63986 Commits

Author SHA1 Message Date
GCC Administrator
69b7944b0d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91403.2
2004-11-28 00:16:25 +00:00
GCC Administrator
0c1e33969b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91402.2
2004-11-28 00:16:17 +00:00
Bud Davis
203f344c3d re PR libfortran/18364 (endfile does not truncate file)
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-27 23:35:47 +00:00
David Edelsohn
22e54023ca re PR target/16800 (PowerPC - Unnecessary rldicl)
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-27 18:00:57 -05:00
Andreas Fischer
7482ad259b re PR target/16343 (invalid code when using -meabi -msdata=eabi)
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-28 09:21:43 +10:30
Alan Modra
f57fe06890 rs6000.h (WORLD_SAVE_P): Define.
* 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-28 09:15:24 +10:30
Kazu Hirata
51dd24d7d0 * fold-const.c: Fix a comment typo.
From-SVN: r91395
2004-11-27 22:29:34 +00:00
Roger Sayle
c812785aaa internal.h: Replace all uses of uchar with unsigned char.
* 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 21:59:38 +00:00
Kazu Hirata
38318b7342 * fold-const.c: Fix a comment typo.
From-SVN: r91393
2004-11-27 20:54:33 +00:00
Kazu Hirata
0b1214ef13 * class.c, decl.c, expr.c: Fix comment typos.
From-SVN: r91392
2004-11-27 20:48:17 +00:00
Kazu Hirata
270af55dd4 * pt.c: Fix a comment typo.
From-SVN: r91391
2004-11-27 20:44:30 +00:00
Paolo Carlini
84477ec3e8 re PR libstdc++/18690 (tr1/utility is broken on darwin)
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 20:25:11 +00:00
Joseph Myers
4961e35da5 * gcc.pot: Regenerate.
From-SVN: r91389
2004-11-27 19:43:51 +00:00
Joseph Myers
7546e96e4a * cpplib.pot: Regenerate.
From-SVN: r91388
2004-11-27 19:39:31 +00:00
Bryce McKinlay
d4edf85f2b gc_config.h.in: Add comment.
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-27 17:44:31 +00:00
Kazu Hirata
51027369ac bb-reorder.c (find_traces_1_round): Speed up by using EDGE_COUNT instead of 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-27 17:33:11 +00:00
Kazu Hirata
cdef8bc6d1 tree.c (operand_equal_for_phi_arg_p): New.
* 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-27 17:26:17 +00:00
John David Anglin
31f16dff98 re PR pch/14940 (PCH largefile test fails on various platforms)
PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.

From-SVN: r91381
2004-11-27 16:57:06 +00:00
Falk Hueffner
0c00d5f3da * gcc.dg/loop-6.c: New test.
From-SVN: r91378
2004-11-27 16:49:53 +00:00
Kazu Hirata
2fd1350624 linux.h: Fix a comment typo.
* config/i386/linux.h: Fix a comment typo.
	* doc/extend.texi: Fix a typo.

From-SVN: r91377
2004-11-27 16:45:15 +00:00
Jeff Law
086aa12e9c tree-cfg.c (cleanup_tree_cfg): Also return true if blocks are merged.
* tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
        are merged.

From-SVN: r91376
2004-11-27 09:36:30 -07:00
Andrew Haley
1daa567cf8 link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass 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 12:37:32 +00:00
Jakub Jelinek
02a854f970 * config/i386/linux64.h (REG_NAME): Define.
From-SVN: r91374
2004-11-27 12:21:31 +01:00
Jakub Jelinek
47d42ce271 fold-const.c (extract_muldiv_1): If ctype is unsigned and type signed...
* 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-27 11:13:56 +01:00
Richard Sandiford
87980da05e mips-args-1.c: Don't expect _R3000 or _R4000 to be defined on IRIX.
* gcc.dg/mips-args-1.c: Don't expect _R3000 or _R4000 to be defined
	on IRIX.

From-SVN: r91372
2004-11-27 09:55:16 +00:00
Richard Sandiford
601a71a77f mips-movcc-[123].c: Pass the ?: expressions to other functions.
* gcc.dg/mips-movcc-[123].c: Pass the ?: expressions to other
	functions.

From-SVN: r91371
2004-11-27 09:54:10 +00:00
Richard Sandiford
e64ca6c474 mips-protos.h (function_arg_boundary): Declare.
* 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-27 09:46:43 +00:00
Jakub Jelinek
b78b8bd83e re PR rtl-optimization/17825 (ICE in reg_bitfield_target_p)
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-27 10:39:00 +01:00
Paolo Carlini
fcfbdb74da 2.cc: Fix typo.
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-27 09:34:06 +00:00
John David Anglin
de2fc4db61 target-libpath.exp (restore_ld_library_path_env_vars): Check existence of ld 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 05:19:33 +00:00
Andreas Schwab
ed986c8e6e * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
From-SVN: r91365
2004-11-27 01:53:46 +00:00
Alan Modra
3eb4e360ee re PR middle-end/12769 (-mlongcall doesn't convert all calls to long calls 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-27 11:36:55 +10:30
Richard Kenner
360e353587 expmed.c (extract_bit_field): When extracting from non-integer mode...
* 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-26 20:01:12 -05:00
GCC Administrator
23d5143200 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91358.2
2004-11-27 00:16:36 +00:00
GCC Administrator
fabc785906 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91357.2
2004-11-27 00:16:29 +00:00
Di-an Jan
85136eb493 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
From-SVN: r91355
2004-11-26 23:40:50 +00:00
Mark Mitchell
3de878170d badalloc1.C: Robustify.
2004-11-26  Mark Mitchell  <mark@codesourcery.com>

	* g++.old-deja/g++.eh/badalloc1.C: Robustify.

From-SVN: r91352
2004-11-26 22:02:34 +00:00
Mark Mitchell
9fcc7481f8 inclhack.def (gnu_types): Do not use on Solaris 2.1x.
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-26 22:00:51 +00:00
Robert Millan
44379973a5 Changes for k*bsd-gnu support.
* 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-26 21:37:24 +00:00
Paolo Carlini
75a25e3f65 DR 243.
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-26 20:34:27 +00:00
Jeff Law
b5c3569b07 tree-ssa.c (verify_flow_sensitive_alias_info): Don't retrieve annotations or 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-26 13:18:34 -07:00
Eric Botcazou
e54c747181 target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
* 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-26 19:21:16 +00:00
Alexandre Oliva
077094ace3 frv-protos.h: Guard ifcvt functions declarations with BB_HEAD, not BLOCK_HEAD.
* config/frv/frv-protos.h: Guard ifcvt functions declarations with
BB_HEAD, not BLOCK_HEAD.

From-SVN: r91345
2004-11-26 19:06:07 +00:00
Alexandre Oliva
9a228f097b frv.c (frv_ifcvt_modify_insn): Don't leave alone scratch insns that set a 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-26 18:53:47 +00:00
Andrew Pinski
532815a787 re PR java/18305 (Class initialization optimization is not done when 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-26 10:04:45 -08:00
Kriang Lerdsuwanakij
e57df6fed9 Friend class name lookup 4/n
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 17:15:39 +00:00
Kazu Hirata
7510740de1 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
From-SVN: r91341
2004-11-26 17:02:49 +00:00
Kazu Hirata
276318a57f * typeck.c: Fix a comment typo.
From-SVN: r91340
2004-11-26 15:45:47 +00:00
Kazu Hirata
6668f6a735 * cse.c, tree-ssa-operands.c: Fix comment typos.
From-SVN: r91339
2004-11-26 15:42:36 +00:00
James A. Morrison
c5145ceba1 re PR target/18510 (GCC should have instrinsics for SPARC VIS instructions)
2004-11-26  James A. Morrison  <phython@gcc.gnu.org>

	PR target/18510
	* doc/extend.texi (SPARC VIS Built-in Functions): New section.

From-SVN: r91338
2004-11-26 13:18:14 +00:00