Commit Graph

53806 Commits

Author SHA1 Message Date
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
Paolo Carlini
1638f5c9d0 re PR libstdc++/11480 (std::unique calls predicate too many times)
2003-10-14  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/11480
	* include/bits/stl_algo.h (unique): Fix.
	* testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
	* testsuite/25_algorithms/unique/11480.cc: New, from the PR.
	* testsuite/25_algorithms/unique/2.cc: New.

From-SVN: r72478
2003-10-14 17:15:27 +00:00
Tom Tromey
77a325a26b fixed patch submitter's name
From-SVN: r72476
2003-10-14 15:57:40 +00:00
Geoffrey Keating
a357a6d4ed expr.c (block_move_libcall_safe_for_call_parm): Clean up...
* expr.c (block_move_libcall_safe_for_call_parm): Clean up,
	and add case for machines where outgoing register parameters
	get stack space.

From-SVN: r72474
2003-10-14 15:01:44 +00:00
Geoffrey Keating
d9b46dfb99 darwin.c (machopic_indirect_data_reference): Use a scratch register when generating indirect address.
* config/darwin.c (machopic_indirect_data_reference): Use a scratch
	register when generating indirect address.

From-SVN: r72473
2003-10-14 15:01:14 +00:00
Paolo Carlini
42db0f21ef localename.cc (_M_replace_categories, [...]): Const-ify a couple of variables.
2003-10-14  Paolo Carlini  <pcarlini@unitus.it>

	* src/localename.cc (_M_replace_categories, M_replace_facet):
	Const-ify a couple of variables.

From-SVN: r72472
2003-10-14 14:56:29 +00:00
Roger Sayle
74d57d158c MAINTAINERS: Move myself from 'Write After Approval' to 'Various Maintainers' section as...
* MAINTAINERS: Move myself from 'Write After Approval' to
	'Various Maintainers' section as middle-end maintainer.

From-SVN: r72468
2003-10-14 13:40:33 +00:00
Roger Sayle
e157d7777a re PR rtl-optimization/9325 (wrong conversion of constants: (int)(float)(int) (INT_MAX))
PR optimization/9325
	* gcc.c-torture/execute/20031003-1.c: Remove non-portable tests
	for overflowing floating point to integer conversion during RTL
	simplification.

From-SVN: r72467
2003-10-14 13:31:27 +00:00
Richard Earnshaw
91de08c377 arm.c (arm_addimm_operand): MODE arguemnt is unused.
* arm.c (arm_addimm_operand): MODE arguemnt is unused.
* arm.md (cbranchne_decr1): Fix bootstrap warning.

From-SVN: r72466
2003-10-14 13:22:14 +00:00
Rainer Orth
821281db25 re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 --enable-threads=posix problem)
* fixinc/inclhack.def (alpha_pthread_gcc): New fix.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
	testcase.
	Fixes PR bootstrap/9330.

From-SVN: r72465
2003-10-14 11:46:47 +00:00
Eric Christopher
b16c143519 frv.c (frv_adjust_field_align): Redo check for too wide bitfields.
2003-10-13  Eric Christopher  <echristo@redhat.com>

	* config/frv/frv.c (frv_adjust_field_align): Redo check for
	too wide bitfields.
	(frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
	* config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
	(SBSS_SECTION_ASM_OP): Remove.
	(EXTRA_SECTIONS): Remove in_sbss.
	(EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
	(SBSS_SECTION_FUNCTION, sbss_section): Remove.
	(ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
	named_section.

From-SVN: r72463
2003-10-14 08:39:24 +00:00
Gabriel Dos Reis
5a167978fa name-lookup.h (cxx_scope_find_binding_for_name): Don't export.
* name-lookup.h (cxx_scope_find_binding_for_name): Don't export.
	(binding_for_name): Likewise.
	(cxx_binding_clear): Move to name-lookup.c.
	* name-lookup.c (cxx_scope_find_binding_for_name): Now static.
	(binding_for_name): Likewise.
	* decl2.c (is_ancestor): Move to name-lookup.c
	(namespace_ancestor): Likewise.
	(add_using_namespace): Likewise.
	(ambiguous_decl): Likewise.
	(lookup_using_namespace): Likewise.
	(qualified_lookup_using_namespace): Likewise.
	(set_decl_namespace): Likewise.
	(decl_namespace): Likewise.
	(current_decl_namespace): Likewise.
	(push_decl_namespace): Likewise.
	(pop_decl_namespace): Likewise.
	(push_scope): Likewise.
	(pop_scope): Likewise.
	(struct arg_lookup): Likewise.
	(arg_assoc): Likewise.
	(arg_assoc_args): Likewise.
	(arg_assoc_type): Likewise.
	(add_function): Likewise.
	(arg_assoc_namespace): Likewise.
	(arg_assoc_class): Likewise.
	(arg_assoc_template_arg): Likewise.
	(do_namespace_alias): Likewise.
	(validate_nonmember_using_decl): Likewise.
	(do_nonmember_using_decl): Likewise.
	(do_toplevel_using_decl): Likewise.
	(do_local_using_decl): Likewise.
	(do_class_using_decl): Likewise.
	(do_using_directive): Likewise.
	(constructor_name_full): Likewise.
	(constructor_name): Likewise.
	(constructor_name_p): Likewise.

From-SVN: r72462
2003-10-14 08:19:06 +00:00
Petur Runolfsson
9dccaa6bb6 locale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr API when...
2003-10-14  Petur Runolfsson  <peturr02@ru.is>
	    Andreas Tobler  <a.tobler@schweiz.ch>

	* src/locale.cc (locale::_S_initialize): Workaround a confusion
	of the use of the gthr API when __gthread_active_p() returns true.

Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>

From-SVN: r72458
2003-10-14 06:47:10 +02:00
Nathanael Nerode
caa55b1e67 Makefile.in, [...]: Replace uses of ${target_alias} for directory names (and other places which...
* Makefile.in, configure.in, config.host, mkheaders.in: Replace
	uses of ${target_alias} for directory names (and other places which
	won't like the empty string) with ${target_noncanonical}.  Introduce
	call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
	available.
	* configure: Regenerate.

From-SVN: r72457
2003-10-14 03:41:42 +00:00