Commit Graph

55483 Commits

Author SHA1 Message Date
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
Kazu Hirata
0fe7abcc1e system.h (TEXT_SECTION): Poison.
* system.h (TEXT_SECTION): Poison.
	* varasm.c (text_section): Don't use TEXT_SECTION.
	* config/sh/sh.c (sh_file_start): Fix a comment typo.
	* doc/tm.texi (TEXT_SECTION): Remove.

From-SVN: r75797
2004-01-13 10:51:39 +00:00
Arnaud Charlet
b85ea57f63 Complete previous check in.
From-SVN: r75796
2004-01-13 11:28:02 +01:00
Arnaud Charlet
5989ebe96d run_all.sh: Add more verbose output in acats.log when compiling tests.
* ada/acats/run_all.sh: Add more verbose output in acats.log
	when compiling tests.

From-SVN: r75795
2004-01-13 11:24:59 +01:00
Ben Elliston
fdb0779102 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
From-SVN: r75793
2004-01-13 20:22:14 +11:00
Steven Bosscher
1eee14b968 Add missing PR number
From-SVN: r75791
2004-01-13 08:30:42 +00:00
James E Wilson
56067bbedb Delete unused file.
* unwind-libunwind.c: Delete.

From-SVN: r75790
2004-01-12 23:54:59 -08:00
Ian Lance Taylor
d051dc88ef demangle.h: Instead of checking ANSI_PROTOTYPES, just include "libiberty.h".
2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>

	* demangle.h: Instead of checking ANSI_PROTOTYPES, just include
	"libiberty.h".

From-SVN: r75789
2004-01-13 03:06:13 +00:00
Fernando Nasser
cc11dca961 Dialog.java (show): Enable blocking for all modal dialogs and run secondary dispatch thread to...
* java/awt/Dialog.java (show): Enable blocking for all modal dialogs
        and run secondary dispatch thread to process event queue while this
        thread is blocked.

From-SVN: r75788
2004-01-13 02:56:18 +00:00
Zack Weinberg
bc298aa711 re PR c/13656 (ICE after redeclaring size_t in the system headers)
PR 13656
	* c-decl.c (diagnose_mismatched_decls): Whenever newtype or
	oldtype is set, set *newtypep or *oldtypep too.  Do not set
	them at the very end.
	(validate_proto_after_old_defn): Restructure for comprehensibility;
	make error messages clearer.
testsuite:
	* gcc.dg/typedef-redecl.c: New test case.
	* gcc.dg/typedef-redecl.h: New support file.

From-SVN: r75787
2004-01-13 02:52:37 +00:00
Zack Weinberg
12a08b407e varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
* varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
	(VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
	* varray.c: No need to prototype error.
	(varray_check_failed): Wrap long string onto two lines.
	(varray_underflow): New function.

From-SVN: r75786
2004-01-13 02:43:16 +00:00
Ian Lance Taylor
e79d56eae8 * README: Remove.
From-SVN: r75785
2004-01-13 02:26:28 +00:00
Steven Bosscher
faed5cc356 re PR c++/13376 (Incorrect dumps of RTL for passes that use current_function_name)
PR c++/13376
	* function.h (struct function): Kill `name' field.
	(current_function_name): Make it an extern function.
	* function.c (current_function_name): New function.
	* graph.c: Update all uses of current_function_name.
	* gcse.c: Likewise.
	* config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
	config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
	* config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
	instead of a strcmp with "main".

From-SVN: r75784
2004-01-13 01:58:45 +00:00
Ian Lance Taylor
e4a32afbe1 * demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
From-SVN: r75783
2004-01-13 01:49:16 +00:00
Jan Hubicka
0bb03c1105 c-decl.c (diagnose_mismatched_decls): Fix warning calls.
* c-decl.c (diagnose_mismatched_decls):  Fix warning calls.

	* cgraphunit.c (cgraph_optimize_function):  Always do
	optimize_inline_calls when there is always_inline callee.
	(cgraph_decide_inlining): Fix formating.
	* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
	functions.
	(expand_call_inline): Likewise.
	* toplev.h (sorry): Fix prototype.

From-SVN: r75782
2004-01-13 01:37:15 +00:00
Jan Hubicka
2d3270129f cgraphunit.c (cgraph_optimize_function): Always do optimize_inline_calls when there is always_inline callee.
* cgraphunit.c (cgraph_optimize_function):  Always do
	optimize_inline_calls when there is always_inline callee.
	(cgraph_decide_inlining): Fix formating.
	* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
	functions.
	(expand_call_inline): Likewise.
	* toplev.h (sorry): Fix prototype.

	* gcc.dg/always_inline.c: New test.
	* gcc.dg/debug/20031231-1.c: Fix.

From-SVN: r75781
2004-01-13 01:35:27 +00:00
Roger Sayle
04cc79bb89 builtins.c (expand_builtin_expect_jump): Simplify logic.
* builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
	conditional jumps that drop through to unconditional jumps or the
	end of the sequence.

From-SVN: r75780
2004-01-13 01:32:42 +00:00
Jan Hubicka
3416f5c283 alias.c (new_alias_set): Construct the alias_set varray.
* alias.c (new_alias_set): Construct the alias_set varray.
	(init_alias_once): Don't do it here.

From-SVN: r75779
2004-01-13 01:14:17 +00:00
Giovanni Bajo
451aeff70d re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
	* g++.dg/template/array3.C: New test.

From-SVN: r75778
2004-01-13 01:07:02 +00:00
Giovanni Bajo
cdf4ac6f04 re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
	* pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.

From-SVN: r75777
2004-01-13 01:02:27 +00:00
Steven Bosscher
fdd09134be re PR c++/13558 (ICE (illegal code) at cp/friend.c:200)
PR c++/13558
	* parser.c (cp_parser_member_declaration): Any non-type is also
	not a class or a function.

From-SVN: r75776
2004-01-13 00:44:51 +00:00
GCC Administrator
3c702a6f25 Daily bump.
From-SVN: r75772
2004-01-13 00:16:08 +00:00
Jason Merrill
7b25f6e5eb re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
PR c++/12815
        * class.c (build_base_path): Do not mark vtable references as
        TREE_CONSTANT.
        (build_vtbl_ref_1): Likewise.

From-SVN: r75770
2004-01-12 19:01:46 -05:00
Marc Espie
f92ed97628 system.h: handle YYBYACC like YYBISON.
2004-01-12  Marc Espie <espie@openbsd.org>

	* system.h: handle YYBYACC like YYBISON.

From-SVN: r75764
2004-01-12 22:51:02 +00:00
Richard Henderson
25ebb82a64 re PR rtl-optimization/10776 (Large aggregate initializers with a single relocated entry causes excessive compile time regression)
PR opt/10776
        * typeck2.c (split_nonconstant_init_1, split_nonconstant_init): New.
        (store_init_value): Use it.
        * decl.c (check_initializer): Expect full initialization code
        from store_init_value.
        * init.c (expand_aggr_init_1): Likewise.
        * decl2.c (maybe_emit_vtables): Abort if runtime init needed.

From-SVN: r75763
2004-01-12 13:38:04 -08:00
Andreas Tobler
6b692ad7bd libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper path setting for Ssolaris 32/64-bit testing.
2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* lib/libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper
	path setting for Ssolaris 32/64-bit testing.
	Reorganize LD_LIBRARY_PATH setting.

From-SVN: r75762
2004-01-12 22:19:26 +01:00
Zack Weinberg
4139f34d38 lvalue1.C: No longer expected to fail.
* g++.dg/ext/lvalue1.C: No longer expected to fail.
	* g++.dg/warn/Wunused-2.C: Likewise.

From-SVN: r75761
2004-01-12 21:09:29 +00:00
Andreas Tobler
7b2e3e60a6 libffi-dg.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
	Solaris.

From-SVN: r75760
2004-01-12 21:49:14 +01:00
Andreas Tobler
c91de77a9d libstdc++.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-10  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
	Solaris.

From-SVN: r75759
2004-01-12 21:47:44 +01:00
Mark Mitchell
4f0a2b81cc class.c (layout_class_type): For non-POD class types...
* class.c (layout_class_type): For non-POD class types, also copy
	the DECL_SIZE and DECL_MODE of fields to the base class type.

From-SVN: r75758
2004-01-12 20:36:45 +00:00
Kriang Lerdsuwanakij
66e0c44047 re PR c++/13289 (ICE in regenerate_decl_from_template on recursive template)
2004-01-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

        PR c++/13289
        * pt.c (instantiate_decl): Set DECL_TEMPLATE_INSTANTIATED before
        calling regenerate_decl_from_template.
2004-01-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

        PR c++/13289
        * g++.dg/template/instantiate6.C: New test.

From-SVN: r75752
2004-01-12 12:10:19 -08:00
Jonathan Merriman
ff2aaa93cc re PR bootstrap/10847 (build fails on openbsd3.2-sparc64)
2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>

        PR target/10847
        * config.gcc: No longer includes conflicting header sparc/sol2.h when
        building on sparc64-*-openbsd*.

From-SVN: r75751
2004-01-12 11:54:01 -08:00
Andrew Pinski
c5ff912364 re PR debug/13539 (dbxout.c does not recognize protected inheritance)
2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>

        PR debug/13539
        * dbxout.c (dbxout_type): Protected inheritance is not
        private but protected.

From-SVN: r75750
2004-01-12 11:50:30 -08:00