Commit Graph

53719 Commits

Author SHA1 Message Date
H.J. Lu
968e3f935b demangle-expected: Update the expected output of _GLOBAL__I__Z2fnv.
2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>

	* testsuite/demangle-expected: Update the expected output of
	_GLOBAL__I__Z2fnv.

From-SVN: r72552
2003-10-16 08:23:11 -07:00
Bernardo Innocenti
507ec7454e config.guess: Update to 2003-10-16 version.
* config.guess: Update to 2003-10-16 version.
	* config.sub: Update to 2003-10-16 version.

From-SVN: r72550
2003-10-16 13:57:24 +02:00
Kazu Hirata
82917bf99d 20031003-1.c: Enable only when INT_MAX == 2147483647.
* gcc.c-torture/execute/20031003-1.c: Enable only when INT_MAX
	== 2147483647.

From-SVN: r72549
2003-10-16 10:58:14 +00:00
Roger Sayle
5bb650ec1b builtins.c (fold_builtin_memcpy, [...]): New functions.
* builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
	fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
	fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
	New functions.
	(expand_builtin_memcpy): Use integer_zerop instead of testing
	host_integerp and tree_low_cst directly.  Move misapplied hunk
	for optimization wher SRC and DEST point to the same location.
	(expand_builtin_mempcpy): From here.
	(expand_builtin_memmove): Use integer_zerop instead of testing
	host_integerp and tree_low_cst_directly.
	(expand_builtin_memset): Likewise.
	(expand_builtin_memcmp): Likewise (and for integer_onep).
	(expand_builtin_strncmp): Likewise.
	(fold_builtin): Call the appropriate fold_builtin_foo functions
	to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
	strcmp and strncmp.

From-SVN: r72547
2003-10-16 02:36:48 +00:00
Kazu Hirata
8725a9b499 960416-1.x: Remove.
* gcc.c-torture/execute/960416-1.x: Remove.
	* gcc.c-torture/execute/divconst-3.x: Likewise.

From-SVN: r72545
2003-10-16 02:15:20 +00:00
Geoffrey Keating
6f94a68e87 darwin-protos.h (machopic_non_lazy_ptr_name): Delete prototype.
* config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
	prototype.  Clean up some whitespace.
	* config/darwin.c: Use gen_rtx_FOO (...) rather than
	gen_rtx (FOO, ...).
	(machopic_non_lazy_ptr_name): Make static.
	(name_needs_quotes): Allow '.' and '$' unquoted.
	(machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
	case.

From-SVN: r72544
2003-10-16 01:16:38 +00:00
R. Kelley Cook
42f3a0a059 Fix CRLF problem with 20031012-1.c
From-SVN: r72543
2003-10-16 00:57:55 +00:00
GCC Administrator
4d67c1990b Daily bump.
From-SVN: r72541
2003-10-16 00:16:06 +00:00
Jan Hubicka
2344a722aa problem that current decl duplication mechanizm > > /* If we didn't remap this variable...
problem that current decl duplication mechanizm
>
>         /* If we didn't remap this variable, so we can't mess with its
>   	 TREE_CHAIN.  If we remapped this variable to the return slot, it's

From-SVN: r72539
2003-10-15 23:10:20 +00:00
Gábor Lóki
a352244f95 fold-const.c (tree_swap_operands_p): disables some features when optimizing for size.
2003-10-15  G�bor L�ki  <alga@rgai.hu>

	* fold-const.c (tree_swap_operands_p): disables
	some features when optimizing for size.

From-SVN: r72538
2003-10-15 22:32:27 +00:00
David Daney
5c3c9bc46b linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
* config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
	* config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
	from leaf functions.
	(DWARF_FRAME_RETURN_COLUMN): Ditto.
	(SIGNAL_UNWIND_RETURN_COLUMN): New, used
	by MD_FALLBACK_FRAME_STATE_FOR.
	* testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.

From-SVN: r72537
2003-10-15 22:28:04 +00:00
David Daney
1f3d066157 linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
* config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
	* config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
	from leaf functions.
	(DWARF_FRAME_RETURN_COLUMN): Ditto.
	(SIGNAL_UNWIND_RETURN_COLUMN): New, used
	by MD_FALLBACK_FRAME_STATE_FOR.
	* testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.

From-SVN: r72536
2003-10-15 22:24:56 +00:00
Zack Weinberg
6492b8d80d Remove stray blank line
From-SVN: r72535
2003-10-15 22:06:16 +00:00
Zack Weinberg
b8eaca232b genmodes.c: Include hashtab.h.
* genmodes.c: Include hashtab.h.
	(modes_by_name, hash_mode, eq_mode, struct mode_adjust)
	(adj_bytesize, adj_alignment, adj_format, new_adjust)
	(_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
	(print_maybe_const_decl, emit_mode_adjustments): New.
	(known_modes): Rename to modes.
	(find_mode): Kill class argument; look up in hash table.
	(new_mode): Insert into hash table also.
	(new_adjust): New.
	(reset_float_format, make_partial_integer_mode)
	(make_vector_mode): Tweak error reporting.
	(reset_float_format): Correct type of fourth argument.
	(emit_insn_modes_h): Add #defines to help make mode_size,
	mode_base_align, and real_format_for_mode conditionally const.
	(emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
	(emit_real_format_for_mode): Likewise, but temporarily disabled.
	(emit_insn_modes_c): Call emit_mode_adjustments.
	(main): Initialize modes_by_name.
	* Makefile.in: Update dependencies.
	* machmode.def: Document EXPR arguments and new ADJUST_* statements.
	* machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
	declarations of mode_size and mode_base_align.  Declare
	init_adjust_machine_modes.
	* toplev.c (backend_init): Call init_adjust_machine_modes.

From-SVN: r72534
2003-10-15 21:57:21 +00:00
Olivier Hainque
0f229b22bb genmodes.c (calc_wider_mode): Allocate enough room for all the entries we'll possibly assign in the sort buffer.
* genmodes.c (calc_wider_mode): Allocate enough room for all the
	entries we'll possibly assign in the sort buffer.

From-SVN: r72531
2003-10-15 17:24:44 +00:00
Ulrich Weigand
8bf06993c1 Fixed up last commit.
From-SVN: r72530
2003-10-15 17:12:01 +00:00
Ulrich Weigand
24fe22c9d4 config.gcc (s390x-ibm-tpf*): New target.
* config.gcc (s390x-ibm-tpf*): New target.
	* doc/invoke.texi: Document it.
	* config/s390/t-tpf: New file.
	* config/s390/tpf.h: New file.

From-SVN: r72529
2003-10-15 17:10:20 +00:00
Michael Koch
55741da6e2 2003-10-15 Michael Koch <konqueror@gmx.de>
* java/text/RuleBasedCollator.java
	(RuleBasedCollator): Moved around, documentation added.
	(compare): Documentation added.
	(equals): Likewise.
	(getCollationElementIterator): Likewise.
	(getCollationKey): Likewise.
	(getRules): Likewise.
	(hashCode): Likewise.

From-SVN: r72528
2003-10-15 15:50:47 +00:00
David Daney
4d466c4259 * MAINTAINERS: Added myself to 'Write After Approval' section.
From-SVN: r72527
2003-10-15 15:40:13 +00:00
Michael Koch
684cab7dbf 2003-10-15 Michael Koch <konqueror@gmx.de>
* java/text/RuleBasedCollator.java
	(CollationElement): Renamed from RBCElement and moved into
	RuledBasedCollator as inner class.

From-SVN: r72525
2003-10-15 15:13:03 +00:00
Michael Koch
12dc3f75be 2003-10-15 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java
	(CollationElementIterator): Moved, documenatation added, call setText.
	(next): Reformated.
	(reset): Reformated.
	(setText): New method.
	(getOffset): New method.
	* java/text/CollationKey.java
	(getSourceString): Reformated.
	(hashCode): Reformated.
	(toByteArray): Reformated.

From-SVN: r72523
2003-10-15 14:49:30 +00:00
Hans-Peter Nilsson
51c1f28619 Forgot to mention cris_notice_update_cc in last ChangeLog entry
From-SVN: r72522
2003-10-15 14:13:03 +00:00
Hans-Peter Nilsson
dbb138cef6 re PR target/12598 (Invalid size optimization on volatile memory reference)
PR target/12598
	* config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
	(define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
	Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
	("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
	(define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
	(define_split "*mov_sidesi_mem"+28, +29, +30): Use
	replace_equiv_address, not gen_rtx_MEM.
	* config/cris/cris.c (cris_mem_op): New match_operator function.
	* config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.

From-SVN: r72521
2003-10-15 14:07:57 +00:00
Hans-Peter Nilsson
c546e1855c re PR target/12598 (Invalid size optimization on volatile memory reference)
PR target/12598
	* gcc.dg/torture/cris-volatile-1.c: New test.

From-SVN: r72520
2003-10-15 14:03:15 +00:00
Michael Koch
6c73e9f7f9 2003-10-15 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java
	(InflaterInputStream): Renamed infl to inf and bufsize to size,
	added description to exception, check for inf == null and size < 0.

From-SVN: r72519
2003-10-15 14:02:37 +00:00
Michael Koch
6d98f7a8d0 AttributedCharacterIterator.java, [...]: Reformated.
2003-10-15  Michael Koch  <konqueror@gmx.de>

	* java/text/AttributedCharacterIterator.java,
	java/text/CharacterIterator.java: Reformated.

From-SVN: r72518
2003-10-15 13:57:00 +00:00
Michael Koch
c191caf2fc UIDefaults.java (putDefaults): Readded accidently removed "public" modifier.
2003-10-15  Michael Koch  <konqueror@gmx.de>

	* javax/swing/UIDefaults.java (putDefaults):
	Readded accidently removed "public" modifier.

From-SVN: r72517
2003-10-15 13:44:22 +00:00
Bernardo Innocenti
eb0e017399 m68k.h (MASK_SEP_DATA, [...]): Move definitions after the other flags.
* config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
	MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
	definitions after the other flags.

From-SVN: r72516
2003-10-15 12:29:27 +02:00
Falk Hueffner
0c9b16bcbb MAINTAINERS: Move myself from 'Bug database only accounts' to 'Write After Approval' section.
* MAINTAINERS: Move myself from 'Bug database only accounts' to
	'Write After Approval' section. Update email.

From-SVN: r72515
2003-10-15 10:00:29 +02:00
Jason Merrill
e923089da4 oops
From-SVN: r72511
2003-10-14 22:37:10 -04:00
Jeff Bailey
84e72d83e3 re PR c++/12562 (Enable libstdc++-v3 compliation on *-gnu*)
2003-10-14  Jeff Bailey  <jbailey@nisa.net>

       PR libstdc++/12562
       * crossconfig.m4: Share the config between *-linux* and *-gnu*.
       * configure: Regenerate.

From-SVN: r72510
2003-10-14 19:17:34 -07:00
GCC Administrator
28bac8bc74 Daily bump.
From-SVN: r72508
2003-10-15 00:16:06 +00:00
Ziemowit Laski
4898423cfd c-parse.in (methoddef, [...]): Call objc_add_method() instead of add_method().
2003-10-14  Ziemowit Laski  <zlaski@apple.com>

        * c-parse.in (methoddef, methodproto): Call objc_add_method()
        instead of add_method().
        * objc/objc-act.c (objc_check_decl): Do not check for
        constant_string_type.
        (add_method): Rename to objc_add_method().
        (really_start_method): Call objc_add_method() instead of
        add_method().
        * objc/objc-act.h (add_method): Rename to objc_add_method().

From-SVN: r72506
2003-10-15 00:10:27 +00:00
Ulrich Weigand
e69166de8e s390-protos.h (s390_alc_comparison): Add prototype.
* config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
	(s390_slb_comparison): Likewise.
	* config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
	New functions.
	* config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
	and s390_slb_comparison.
	* config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
	zSeries machines.
	("*adddi3_31z", "*subdi3_31z"): New insns.
	("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
	"*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
	New insns.

From-SVN: r72505
2003-10-14 22:55:36 +00:00
Nathanael Nerode
7903cebc8d configure.in: Clean up some feedback echoes.
* configure.in: Clean up some feedback echoes.
	* configure: Regenerate.

From-SVN: r72503
2003-10-14 22:10:20 +00:00
Nathanael Nerode
87690a2f32 * gettext.m4: Properly quote arguments to AC_DEFUN.
From-SVN: r72501
2003-10-14 21:39:57 +00:00
Nathanael Nerode
f6db393e1c * aclocal.m4: Properly quote names of macros being defined.
From-SVN: r72499
2003-10-14 21:21:07 +00:00
Nathanael Nerode
296da0016d * configure: Regenerate.
From-SVN: r72497
2003-10-14 21:01:09 +00:00
Jason Merrill
52cdd56c65 re PR c++/11878 (ICE in cp_expr_size)
PR c++/11878
        * tree.c (build_target_expr_with_type): Call force_rvalue for
        classes with non-trivial copy ctors.

From-SVN: r72496
2003-10-14 16:47:07 -04:00
Jason Merrill
5455db23af re PR c++/11063 (ICE on parsing initialization list of const array member)
PR c++/11063
        * typeck.c (build_modify_expr): Call convert rather than abort.

From-SVN: r72495
2003-10-14 16:46:45 -04:00
Jason Merrill
182609b572 re PR c++/11878 (ICE in cp_expr_size)
PR c++/11878
        * tree.c (build_target_expr_with_type): Call force_rvalue for
        classes with non-trivial copy ctors.

        PR c++/11063
        * typeck.c (build_modify_expr): Call convert rather than abort.

From-SVN: r72494
2003-10-14 16:46:27 -04:00
Gabriel Dos Reis
a5e6b29b07 Breack out decl.c (3/n)
Breack out decl.c (3/n)
	* name-lookup.c: Include flags.h
	(lookup_name_current_level): Make static.
	(add_decl_to_level): Likewise.
	(push_local_binding): Likewise.
	(push_overloaded_decl): Likewise.
	(lookup_using_namespace): Likewise.
	(qualified_lookup_using_namespace): Likewise.
	(lookup_type_current_level): Likewise.
	(unqualified_namespace_lookup): Likewise.
	(namespace_ancestor): Likewise.
	(push_using_directive): Likewise.
	* decl.c (pushdecl): Move to name-lookup.c.
	(pushdecl_top_level_1): Likewise.
	(pushdecl_top_level): Likewise.
	(pushdecl_top_level_and_finish): Likewise.
	(maybe_push_decl): Likewise.
	(push_using_decl): Likewise.
	(push_overloaded_decl): Likewise.
	(make_anon_name): Likewise.
	(anon_cnt): Likewise.
	(clear_anon_tags): Likewise.
	(maybe_inject_for_scope_var): Likewise.
	(check_for_out_of_scope_variable): Likewise.
	* Make-lang.in (cp/name-lookup.o): Depend on flags.h.
	* decl.c (warn_extern_redeclared_static): Export.
	* cp-tree.h (warn_extern_redeclared_static): Declare.

From-SVN: r72492
2003-10-14 20:34:41 +00:00
Nathanael Nerode
e7f86e619d * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
From-SVN: r72490
2003-10-14 19:51:11 +00:00
Steve Ellcey
c80831866f ia64.c (ia64_expand_call): Force function address to DImode.
* config/ia64/ia64.c (ia64_expand_call): Force function address
	to DImode.
	* config/ia64/ia64.md (call_gp): Put DImode on operand 0.

From-SVN: r72489
2003-10-14 19:25:54 +00:00
Ulrich Weigand
553e5ce9e1 s390.md ("muldf3", [...]): Do not clobber CC.
* config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
	"mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
	("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
	"*divsf3_ibm"): Likewise.

From-SVN: r72488
2003-10-14 19:21:45 +00:00
Nathanael Nerode
43aba51835 config.gcc, [...]: Replace uses of target_alias with target_noncanonical.
gcc:
	* config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
	target_alias with target_noncanonical.

ada:
	* Make-lang.in: Replace uses of $(target_alias) with
	$(target_noncanonical).
	* ada/Makefile.in: Remove unused mention of $(target_alias).

cp:
	* Make-lang.in: Replace uses of $(target_alias) with
	$(target_noncanonical).

java:
	* Make-lang.in: Replace uses of $(target_alias) with
	$(target_noncanonical).

From-SVN: r72487
2003-10-14 19:07:21 +00:00
Jason Merrill
1b4d5fde31 stor-layout.c (do_type_align): New fn, split out from...
* stor-layout.c (do_type_align): New fn, split out from...
        (layout_decl): ...here.  Do all alignment calculations for
        FIELD_DECLs here.
        (update_alignment_for_field): Not here.
        (start_record_layout, debug_rli): Remove unpadded_align.
        * tree.h (struct record_layout_info_s): Remove unpadded_align.
        * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
        or DECL_MODE on the CONST_DECLs.
        (finish_struct): Don't mess with DECL_ALIGN.

From-SVN: r72485
2003-10-14 14:43:27 -04:00
Paolo Bonzini
415c96ca6a interpret.cc (_Jv_InterpMethod::run): Don't use libffi types, they were meant to be internal.
2003-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* interpret.cc (_Jv_InterpMethod::run): Don't
	use libffi types, they were meant to be internal.
	* gcj/javaprims.h (_Jv_ulong): New typedef.

From-SVN: r72482
2003-10-14 17:53:42 +00:00
Carlo Wood
4f22de0337 Lets add the correct test case instead.
From-SVN: r72481
2003-10-14 17:49:11 +00:00
Carlo Wood
be3faf8996 re PR libstdc++/12600 (Demangler goes in infinite loop for certain invalid mangled names.)
PR libstdc++/12600
* include/bits/demangle.h (session<Allocator>::
  decode_unqualified_name(string_type& output)): Fail on a
  <operator-name> when decoding <template-argument>.
* testsuite/demangle/regression/cw-15.cc: New.

From-SVN: r72480
2003-10-14 17:46:19 +00:00