Commit Graph

55515 Commits

Author SHA1 Message Date
J"orn Rennecke f96540656c re PR target/9365 ([SH] segfault in gen_far_branch (config/sh/sh.c))
PR target/9365
        * sh.c (gen_block_redirect): Add special handling of RETURN.
        (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
        far branch target (i.e. it's a return).

From-SVN: r75872
2004-01-14 18:02:42 +00:00
Kazu Hirata abbe8578d6 * regrename.c (find_oldest_value_reg): Fix a warning.
From-SVN: r75871
2004-01-14 17:55:20 +00:00
Richard Earnshaw 192c8d78fe re PR bootstrap/12527 ([arm] bootstrap error on arm-linux, miscompiling genconstants)
PR bootstrap/12527
* config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
Move linux-gas.h and linux-elf.h before aout.h.
* arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
* arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.

From-SVN: r75870
2004-01-14 17:51:31 +00:00
Kazu Hirata e512ab39b7 m32r.md: Use GEN_INT instead of gen_rtx (CONST_INT, VOIDmode, ...).
* config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
	(CONST_INT, VOIDmode, ...).

From-SVN: r75868
2004-01-14 16:35:13 +00:00
Richard Earnshaw 684bcee536 regrename.c (find_oldest_value_reg): If the replacement uses multiple hard registers...
* regrename.c (find_oldest_value_reg): If the replacement uses
multiple hard registers, check that all of them are in CLASS.

From-SVN: r75867
2004-01-14 16:25:09 +00:00
Jan Hubicka e7844ffbe7 alias.c (get_alias_set): Initialize alias set to 0 when subset is impossible.
* alias.c (get_alias_set):  Initialize alias set to 0 when subset is
	impossible.

From-SVN: r75861
2004-01-14 12:00:22 +00:00
Kelley Cook 73e232f0c1 Makefile.in: Define MAINT from --enable-maintainer-mode.
gcc/
2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in: Define MAINT from --enable-maintainer-mode.

gcc/ada/
2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.\

From-SVN: r75860
2004-01-14 11:53:19 +00:00
Jan Hubicka 7ec4deda8c re PR c++/12850 (memory consumption for heavy template instantiations tripled since 3.3)
PR c++/12850
	* pt.c (instantiate_decl):  Do not increase function_depth.

From-SVN: r75859
2004-01-14 11:34:37 +00:00
Hartmut Penner 4d774ff8d5 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
Calculate always vrsave_mask if TARGET_ALTIVEC.
      (rs6000_emit_prologue): Emit code for vrsave
      only if TARGET_ALTIVEC_VRSAVE.
      (rs6000_emit_epilogue): Likewise.

From-SVN: r75857
2004-01-14 10:57:40 +00:00
Eric Botcazou fa1090f542 sparc.md (tie_add32): Fix pasto.
* config/sparc/sparc.md (tie_add32): Fix pasto.
	(tie_add64): Likewise.

From-SVN: r75856
2004-01-14 09:49:31 +00:00
Eric Botcazou 35d405cf7d ChangeLog
From-SVN: r75855
2004-01-14 09:48:30 +00:00
Hartmut Penner 27768ae6ae * gcc.dg/ppc64-abi-1.c: New test.
From-SVN: r75852
2004-01-14 09:23:06 +00:00
Danny Smith d22c417920 * g++.dg/ext/attrib9.C: Add dg-warnings.
From-SVN: r75847
2004-01-14 07:31:39 +00:00
Danny Smith e0fed25b88 re PR c++/9021 ([win32] No exports possible when using a class pointer in an union)
PR c++/9021
  	PR c++/11005
	* parser.c (cp_parser_elaborated_type_specifier): Warn about
	attributes and discard.
	* decl.c (xref_tag): Don't overwite existing attributes with
	NULL_TREE.

From-SVN: r75846
2004-01-14 07:27:07 +00:00
Zdenek Dvorak 79551a5610 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
From-SVN: r75845
2004-01-14 07:20:48 +00:00
Giovanni Bajo 90c2bc78e6 re PR c++/12335 (ICE when explicitly calling destructor)
PR c++/12335
	* g++.dg/parse/dtor3.C: New test.

From-SVN: r75843
2004-01-14 04:54:24 +00:00
Giovanni Bajo fd6e3cce4e re PR c++/12335 (ICE when explicitly calling destructor)
PR c++/12335
	* parser.c (cp_parser_lookup_name): Return error_mark_node if there
	is no destructor while looking up a BIT_NOT_EXPR.

From-SVN: r75842
2004-01-14 04:50:30 +00:00
Benjamin Kosnik 070ce57b95 ifstream_extract_float.cc: Add higher precision tests.
2
2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/performance/ifstream_extract_float.cc: Add higher
	precision tests.
	* testsuite/performance/ofstream_insert_float.cc: Same.

From-SVN: r75841
2004-01-14 04:11:57 +00:00
Kazu Hirata 5b8d96f109 iq2000-protos.h: Fix comment formatting.
* config/iq2000/iq2000-protos.h: Fix comment formatting.
	* config/iq2000/iq2000.c: Likewise.
	* config/iq2000/iq2000.md: Likewise.

From-SVN: r75840
2004-01-14 03:10:51 +00:00
Ian Lance Taylor f18056ff95 * cxxfilt.c: Remove unused file.
From-SVN: r75839
2004-01-14 03:02:35 +00:00
J. Brobecker b98d154e3e dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
* dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
        (subrange_type_die): Add handle for nameless subrange types.

From-SVN: r75838
2004-01-14 02:52:40 +00:00
Ian Lance Taylor 8dd8b815f4 re PR fortran/6491 ([g77] Logical operations error on logicals when using -fugly-logint)
PR fortran/6491
	* expr.c (ffeexpr_reduce_): When handling AND, OR, and XOR, and
	when using -fugly-logint, if both operands are logical, convert
	the result back to logical.
	(ffeexpr_reduced_ugly2log_): Add bothlogical parameter.  Change
	all callers.  Convert logical operands to integer.

From-SVN: r75837
2004-01-14 02:32:49 +00:00
Kazu Hirata 1a793acf78 h8300-protos.h: Replace do_movsi with h8300_expand_movsi.
* config/h8300/h8300-protos.h: Replace do_movsi with
	h8300_expand_movsi.
	* config/h8300/h8300.c (do_movsi): Change to
	h8300_expand_movsi.
	* config/h8300/h8300.md (movsi): Replace do_movsi with
	h8300_expand_movsi.
	(movsf): Likewise.

From-SVN: r75836
2004-01-14 02:01:05 +00:00
Kazu Hirata 81ad9dedff h8300.c (dosize): Change to h8300_emit_stack_adjustment.
* config/h8300/h8300.c (dosize): Change to
	h8300_emit_stack_adjustment.  Update callers.

From-SVN: r75835
2004-01-14 01:31:56 +00:00
Kazu Hirata 3f0063abae h8300.md (movstrictqi): Add an alternative with the source being post_inc.
* config/h8300/h8300.md (movstrictqi): Add an alternative with
	the source being post_inc.  Tighten the predicate for the
	destination to register_operand.
	(movstricthi): Likewise.

From-SVN: r75833
2004-01-14 00:52:26 +00:00
Kazu Hirata abf843c494 system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
* system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
	* varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
	* doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.

From-SVN: r75832
2004-01-14 00:49:05 +00:00
GCC Administrator 4bcab2210b Daily bump.
From-SVN: r75829
2004-01-14 00:23:09 +00:00
Jan Hubicka d34cb6a149 Partial fix PR c++/12850
Partial fix PR c++/12850
	* cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
	at zero nest level.

	* decl2.c (mark_used): Do not proactively instantiate templates
	when compiling in unit-at-a-time or not optimizing.
	* optimize.c (maybe_clone_body): Do not increase function depth.

From-SVN: r75823
2004-01-13 23:59:19 +00:00
Paolo Carlini c951359074 locale-misc-inst.cc (__convert_from_v(long), [...]): Remove, unused.
2004-01-13  Paolo Carlini  <pcarlini@suse.de>

	* src/locale-misc-inst.cc (__convert_from_v(long),
	__convert_from_v(unsigned long), __convert_from_v(long long),
	__convert_from_v(unsigned long long)): Remove, unused.

From-SVN: r75822
2004-01-13 23:25:55 +00:00
Jan Hubicka 4b589eab01 lang.c (java_estimate_num_insns_1): Fix bug in MODIFY_EXPR cost estimation.
* lang.c (java_estimate_num_insns_1): Fix bug in MODIFY_EXPR cost
	estimation.
	* c-common.c (c_estimate_num_insns_1):  Fix bug in MODIFY_EXPR
	cost estimation.
	* expr.c (MOVE_RATIO, CLEAR_RATIO): Move to ...
	* expr.h (MOVE_RATIO, CLEAR_RATIO): ... here.

From-SVN: r75821
2004-01-13 23:14:04 +00:00
Fernando Nasser 25c3f7c8b9 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack. (push): Make sure push is performed at the top of the thread stack.
From-SVN: r75820
2004-01-13 22:51:26 +00:00
Daniel Jacobowitz d4f3ce5cc0 cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE takes two parameters.
* cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
	takes two parameters.
	* cp-demint.c (cplus_demangle_fill_component): Likewise.

From-SVN: r75819
2004-01-13 21:35:12 +00:00
Bernardo Innocenti 9ff2cabcbe netbsd-elf.h (REGISTER_NAMES): Add missing "argptr" pseudo-register.
* config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
	pseudo-register.

From-SVN: r75818
2004-01-13 22:23:36 +01:00
Thomas Fitzsimmons 9e2c04c59a GtkTextAreaPeer.java, [...] (native create): Add width and height parameters.
2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
	(native	create): Add width and height parameters.  Set text
	view's size request according to new parameters.
	(create): Calculate text view size based on current font's
	metrics and number of rows and columns.  Set TextArea's font if
	not already set.  Call native create.
	(getMinimumSize): Call minimumSize.
	(getPreferredSize): Call preferredSize.
	(getHScrollbarHeight): New method.
	(getVScrollbarWidth): New method.
	(minimumSize): Calculate minimum size based on scrollbar
	visibility, scrollbar sizes, font metrics and number of rows and
	columns.
	(preferredSize): Likewise for preferred size.
	(gtkTextGetSize): Remove method.

From-SVN: r75817
2004-01-13 20:58:33 +00:00
Thomas Fitzsimmons db19e39b82 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
	(initializeInsets): Remove method.
	(GtkComponentPeer): Initialize insets field.  Remove call to
	initializeInsets.
	* gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
	Remove method.
	* gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
	Remove method.
	* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
	(latestInsets): Remove field.
	(native create): Add insets parameter.  Call
	window_get_frame_extents.  Set the window's default size and
	size request based on its frame extents.
	(create): Initialize insets.
	(postInsetsChangedEvent): New method.
	(postConfigureEvent): Remove parameters top, left, bottom,
	right.  Remove insets-related logic.
	(connectJObject): Handle property-notify-event.
	(window_get_frame_extents, request_frame_extents,
	property_notify_predicate, window_property_changed_cb): New
	static functions.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
	(pre_event_handler): Remove insets-related logic for configure
	events.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
	Update postConfigureEvent signature.

From-SVN: r75816
2004-01-13 20:54:46 +00:00
Devang Patel a4d8ec652b re PR debug/7078 (stabs are not generated correctly with c++ namespaces are used)
PR debug/7078
        * dbxout.c (dbxout_symbol_name): Emit mangled names for
        NAMESPACE_DECL memebers.

From-SVN: r75815
2004-01-13 12:12:35 -08:00
Andrew Pinski bfaba7a9c3 re PR c++/12709 (ICE with __FUNCTION__ and function-try-block)
2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/12709
        * c-common.c (finish_fname_decls): Use the chain only if the
        tree is an expr_stmt.

2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/12709
        * g++.dg/parse/try-catch-1.C: New test.

From-SVN: r75814
2004-01-13 12:10:07 -08:00
Fernando Nasser 81c740ba1b TestAWT.java (DialogWindow): Add WindowAdapter to handle Window "Closing" events.
* gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
        to handle Window "Closing" events.

From-SVN: r75813
2004-01-13 20:00:00 +00:00
Vladimir Makarov dfa849f326 rtl.def: Add comment about new option in automata_option.
2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>

        * rtl.def: Add comment about new option in automata_option.

	* genautomata.c (PROGRESS_OPTION): New macro.
	(progress_flag): New global variable.
	(gen_automata_option): Process `progress'.
	(transform_insn_regexps, check_unit_distributions_to_automata,
	make_automaton, NDFA_to_DFA, build_automaton, create_automata,
	expand_automata, write_automata): Print about the progress only if
	progress_flag.  Remove fflush.
	(initiate_automaton_gen): Process command line flag `-progress'.

	* doc/md.texi: Describe the new option.

From-SVN: r75812
2004-01-13 19:52:24 +00:00
Benjamin Kosnik 60af005f4b ifstream_extract_float.cc: New.
2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/performance/ifstream_extract_float.cc: New.
	* testsuite/performance/ofstream_insert_float.cc: Float generation
	matches above.

	* 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
	* 20_util/auto_ptr/1.cc: ...this.
	* 20_util/auto_ptr/2.cc: Same.
	* 20_util/auto_ptr/3.cc: Same.
	* 20_util/auto_ptr/3946.cc: Same.
	* 20_util/auto_ptr/4.cc: Same.
	* 20_util/auto_ptr/5.cc: Same.
	* 20_util/auto_ptr/6.cc: Same.
	* 20_util/auto_ptr/7.cc: Same.
	* 20_util/auto_ptr/assign_neg.cc
	* 20_util/pairs.cc: Break into...
	* 20_util/pair/1.cc: ...this.
	* 20_util/pair/2.cc: Same.
	* 20_util/pair/3.cc: Same.
	* 20_util/pair/4.cc: Same.

From-SVN: r75811
2004-01-13 18:57:45 +00:00
Paolo Carlini d8ef7deccb locale_facets.tcc (num_get::do_get(void*&)): Set correctly just basefield, the only group that matters.
2004-01-13  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get::do_get(void*&)):
	Set correctly just basefield, the only group that matters.

From-SVN: r75810
2004-01-13 18:53:57 +00:00
David Jee e6cca48823 2004-01-13�� David Jee�� <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkContainerPeer.java
        (setBackground): New method. Children with no explicitly-set
        background will be repainted with the parent container's new
        background color.

From-SVN: r75809
2004-01-13 17:55:20 +00:00
David Jee 3c3a78a502 2004-01-13�� David Jee�� <djee@redhat.com>
����������������* Makefile.am: Add BitwiseXORComposite.java.
����������������* Makefile.in: Regenerated.
����������������* gcj/Makefile.in: Regenerated.
����������������* include/Makefile.in: Regenerated.
����������������* testsuite/Makefile.in: Regenerated.

From-SVN: r75808
2004-01-13 17:37:23 +00:00
Zdenek Dvorak 9405162eba * cfg.c (dump_bb): Dump entry edges.
From-SVN: r75806
2004-01-13 16:48:19 +00:00
Richard Earnshaw f954388e83 arm.c (thumb_legitimate_address_p): Only allow constant pool references from SImode.
* arm.c (thumb_legitimate_address_p): Only allow constant pool
references from SImode.
* arm.md (thumb_movhi_insn): Don't allow minipool references.

From-SVN: r75804
2004-01-13 13:24:37 +00:00
Fernando Nasser e5baf3bd82 TestAWT.java: Fix test program so that it does not show modal dialogs twice and so that it...
* gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
        not show modal dialogs twice and so that it allows showing a modal
        dialog from another modal dialog.

From-SVN: r75803
2004-01-13 13:09:31 +00:00
Arnaud Charlet 9bc43c535e [multiple changes]
2004-01-13  Ed Schonberg  <schonberg@gnat.com>

	* exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
	components that are initialized with aggregates.

2004-01-13  Vincent Celier  <celier@gnat.com>

	* gnatlink.adb (Process_Binder_File): To find directory of shared
	libgcc, if "gcc-lib" is not a subdirectory, look for the last
	subdirectory "lib" in the path of the shared libgnat or libgnarl.

	* make.adb (Gnatmake): If GCC version is at least 3, link with
	-shared-libgcc, when there is at least one shared library project.

	* opt.ads (GCC_Version): New integer constant.

	* adaint.c (get_gcc_version): New function.

2004-01-13  Robert Dewar  <dewar@gnat.com>

	* sem_dist.adb, sem_res.adb, sem_util.adb,
	sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
	exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting

2004-01-13  Thomas Quinot  <quinot@act-europe.fr>

	* s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
	g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
	declarations.

From-SVN: r75802
2004-01-13 12:51:34 +01:00
Arnaud Charlet 0115e4700b Add extra checks.
From-SVN: r75801
2004-01-13 12:48:46 +01:00
Paolo Carlini 5640461d2f rope (_Rope_rep_alloc_base): Eliminate.
2004-01-13  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/rope (_Rope_rep_alloc_base): Eliminate.
	(_Rope_rep_base): Inherit directly from the rope allocator;
	use rebinding instead of _Alloc_traits; pick up data member
	from _Rope_rep_alloc_base.
	(_Rope_alloc_base): Eliminate.
	(_Rope_base): Inherit directly from the rope allocator; use
	rebinding instead of _Alloc_traits; pick up data member from
	_Rope_alloc_base.
	(rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
	rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.

From-SVN: r75800
2004-01-13 11:46:50 +00:00
Paolo Carlini 95c9624ff5 re PR libstdc++/13650 (string::compare should not (always) use traits_type::length())
2004-01-13  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13650
	* include/bits/basic_string.tcc (compare(size_type, size_type,
	const _CharT*, size_type)): Implement correctly the resolution
	of DR 5: basically, s is a char array, -not- a C string.
	* include/bits/basic_string.h: Tweak some comments.
	* testsuite/21_strings/basic_string/compare/char/13650.cc: New.
	* testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.

From-SVN: r75798
2004-01-13 11:12:38 +00:00