Commit Graph

49603 Commits

Author SHA1 Message Date
Mark Mitchell
1f6f0cb610 re PR c++/10551 (Failure to emit explicitly instantiated template w/--no-implicit-templates)
PR c++/10551
	* pt.c (mark_decl_instantiated): Defer all explicit instantiations
	that have not yet been written out.

	PR c++/10551
	* g++.dg/template/explicit1.C: New test.

From-SVN: r66263
2003-04-29 22:15:34 +00:00
Joel Sherrill
51dc3d74f8 atomicity.h: New file.
2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
	   Loren J. Rittle <ljrittle@acm.org>
	   Martin v. Loewis  <martin@v.loewis.de>

	* config/cpu/i386/atomicity.h: New file.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
Co-Authored-By: Martin v. Loewis <martin@v.loewis.de>

From-SVN: r66261
2003-04-29 21:57:39 +00:00
Olivier Hainque
0219237c53 calls.c (expand_call): When modes of target and valreg match, force sibcall failure when target is a MEM.
* calls.c (expand_call): When modes of target and valreg match,	force
	sibcall failure when target is a MEM.

From-SVN: r66260
2003-04-29 17:47:42 -04:00
Mark Mitchell
555456b175 re PR c++/10549 (ICE in store_bit_field on bitfields that exceed the precision of the declared type.)
PR c++/10549
	* class.c (layout_class_type): Mark overlong bitfields as having
	the maximum size permitted by their type, after layout.

	PR c++/10549
	* g++.dg/other/bitfield1.C: New test.

From-SVN: r66257
2003-04-29 21:28:41 +00:00
Geoffrey Keating
f4ddb75bb3 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
From-SVN: r66254
2003-04-29 20:45:55 +00:00
Geoffrey Keating
0366359a3c dwarf2out.c (output_call_frame_info): No need to output EH unwind information if all_throwers_are_sibcalls.
* dwarf2out.c (output_call_frame_info): No need to output EH
	unwind information if all_throwers_are_sibcalls.

From-SVN: r66253
2003-04-29 20:42:55 +00:00
Geoffrey Keating
e55614cab2 c-semantics.c (expand_unreachable_stmt): Return a tree.
* c-semantics.c (expand_unreachable_stmt): Return a tree.
	(expand_stmt): Update for change to expand_unreachable_stmt.
	(expand_unreachable_if_stmt): Likewise.

From-SVN: r66252
2003-04-29 20:39:12 +00:00
Geoffrey Keating
b9538b2e88 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
From-SVN: r66251
2003-04-29 20:34:45 +00:00
Jason Merrill
72e940d286 re PR middle-end/10336 (ICE with -Wunreachable-code)
PR middle-end/10336
        * jump.c (never_reached_warning): Really stop looking if we reach
        the beginning of the function.

From-SVN: r66249
2003-04-29 16:25:11 -04:00
Mark Mitchell
60cde93696 re PR c++/10527 (confused error message with "new int()" parameter initializer)
PR c++/10527
	* error.c (dump_expr): Correctly handling of NEW_EXPR.4

	PR c++/10527
	* g++.dg/init/new7.C: New test.

From-SVN: r66247
2003-04-29 20:17:00 +00:00
Paolo Carlini
cc9d1c78ef fstream.tcc (open): Change to single return.
2003-04-29  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (open): Change to single return.

From-SVN: r66245
2003-04-29 19:46:07 +00:00
Bob Wilson
9193479f34 elf.h (SIZE_TYPE, [...]): Remove redundant macros.
* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
	Remove redundant macros.
	(WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
	(LOCAL_LABEL_PREFIX): Define unconditionally.
	(NO_DOT_IN_LABEL): Clarify comment.
	* config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
	definition to "long int".

From-SVN: r66242
2003-04-29 18:56:53 +00:00
Alexander Kabaev
b0501ec1da gengtype-yacc.y: Improve portability.
bootstrap/10452
	* gengtype-yacc.y: Improve portability.

From-SVN: r66239
2003-04-29 18:51:38 +00:00
Zack Weinberg
8e720e8bbc config.gcc: Install obsolete target list for GCC 3.3.
* config.gcc: Install obsolete target list for GCC 3.3.
	* doc/install.texi: Mention in specific-target instructions
	that certain configurations are deprecated.

From-SVN: r66238
2003-04-29 18:47:40 +00:00
Mark Mitchell
446d5e4776 re PR c++/10515 (problem when initializing a field in a union)
PR c++/10515
	* cp-tree.h (lookup_field_1): Declare it.
	* search.c (lookup_field_1): Make it public.
	* decl.c (reshape_init): Handle designated initializers.

From-SVN: r66236
2003-04-29 18:26:47 +00:00
Mark Mitchell
7513525363 re PR c++/10515 (problem when initializing a field in a union)
PR c++/10515
	* g++.dg/ext/desig1.C: New test.
	* g++.dg/ext/init1.C: Likewise.

	PR c++/10515
	* cp-tree.h (lookup_field_1): Declare it.
	* search.c (lookup_field_1): Make it public.
	* decl.c (reshape_init): Handle designated initializers.

From-SVN: r66235
2003-04-29 18:00:23 +00:00
Paolo Carlini
d4be2966f3 std_sstream.h (underflow): Change to single return.
2003-04-29  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_sstream.h (underflow): Change to single return.

From-SVN: r66234
2003-04-29 17:47:38 +00:00
Zack Weinberg
1be3f80ff8 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
From-SVN: r66233
2003-04-29 17:10:48 +00:00
Kriang Lerdsuwanakij
8e854b762f c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
* c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
	* gcc.c (display_help): Likewise.
	* toplev.c (f_options): Likewise.
	* params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
	* config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
	* config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
	* config/s390/s390.h (TARGET_SWITCHES): Likewise.
	* config/v850/v850.h (TARGET_SWITCHES): Likewise.

	* call.c (build_operator_new_call): Fix typo.
	* lang-options.h: Likewise.

From-SVN: r66228
2003-04-29 14:16:48 +00:00
David O'Brien
fbf17dab00 freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
* config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
	(SET_ASM_OP): New macro.
	(HANDLE_SYSV_PRAGMA): New macro.
	(ASM_WEAKEN_LABEL): New macro.

From-SVN: r66223
2003-04-29 12:52:57 +00:00
Michael Koch
f0fad938da Two little fixes I commited to classpath but not to libgcj first
From-SVN: r66222
2003-04-29 12:34:49 +00:00
Michael Koch
ca55ba498a 2003-04-29 Michael Koch <konqueror@gmx.de>
* javax/swing/JTable.java
	(AUTO_RESIZE_ALL_COLUMNS): New constant.
	(AUTO_RESIZE_LAST_COLUMN): New constant.
	(AUTO_RESIZE_NEXT_COLUMN): New constant.
	(AUTO_RESIZE_OFF): New constant.
	(AUTO_RESIZE_SUBSEQUENT_COLUMNS): New constant.
	(JTable): New method.
	(columnAdded): New method.
	(columnMarginChanged): New method.
	(columnMoved): New method.
	(columnRemoved): New method.
	(columnSelectionChanged): New method.
	(editingCanceled): New method.
	(editingStopped): New method.
	(getColumnModel): New method.
	(getPreferredScrollableViewportSize): New method.
	(getScrollableBlockIncrement): New method.
	(getScrollableTracksViewportHeight): New method.
	(getScrollableTracksViewportWidth): New method.
	(getScrollableUnitIncrement): New method.
	(getSelectedRow): New method.
	(getSelectionModel): New method.
	(tableChanged): New method.
	(setModel): New method.
	(setSelectionMode): New method.
	(setSelectionModel): New method.
	(setShowGrid): New method.
	(valueChanged): New method.
	* javax/swing/text/DefaultEditorKit.java
	(backwardAction): New constant.
	(beepAction): New constant.
	(beginAction): New constant.
	(beginLineAction): New constant.
	(beginParagraphAction): New constant.
	(beginWordAction): New constant.
	(copyAction): New constant.
	(cutAction): New constant.
	(defaultKeyTypedAction): New constant.
	(deleteNextCharAction): New constant.
	(deletePrevCharAction): New constant.
	(downAction): New constant.
	(endAction): New constant.
	(endLineAction): New constant.
	(endOfLineStringProperty): New constant.
	(endParagraphAction): New constant.
	(endWordAction): New constant.
	(forwardAction): New constant.
	(insertBreakAction): New constant.
	(insertContentAction): New constant.
	(insertTabAction): New constant.
	(nextWordAction): New constant.
	(pageDownAction): New constant.
	(pageUpAction): New constant.
	(pasteAction): New constant.
	(previousWordAction): New constant.
	(readOnlyAction): New constant.
	(selectAllAction): New constant.
	(selectionBackwardAction): New constant.
	(selectionBeginAction): New constant.
	(selectionBeginLineAction): New constant.
	(selectionBeginParagraphAction): New constant.
	(selectionBeginWordAction): New constant.
	(selectionDownAction): New constant.
	(selectionEndAction): New constant.
	(selectionEndLineAction): New constant.
	(selectionEndParagraphAction): New constant.
	(selectionEndWordAction): New constant.
	(selectionForwardAction): New constant.
	(selectionNextWordAction): New constant.
	(selectionPreviousWordAction): New constant.
	(selectionUpAction): New constant.
	(selectLineAction): New constant.
	(selectParagraphAction): New constant.
	(selectWordAction): New constant.
	(upAction): New constant.
	(writableAction): New constant.

From-SVN: r66221
2003-04-29 12:31:25 +00:00
J"orn Rennecke
267594f312 * varasm.c (default_assemble_visibility): Use assemble_name.
From-SVN: r66220
2003-04-29 13:18:17 +01:00
David O'Brien
5b51b1f540 freebsd.h (LINK_SHLIB_SPEC): New macro.
* config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
	(SIZE_TYPE): New macro.

From-SVN: r66217
2003-04-29 12:01:59 +00:00
David O'Brien
667b43dd10 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
From-SVN: r66215
2003-04-29 11:42:16 +00:00
Michael Koch
fbba7d6850 PropertyPermission.java: New version from classpath
2003-04-29  Michael Koch  <konqueror@gmx.de>

	* java/util/PropertyPermission.java:
	New version from classpath
	* java/util/ResourceBundle.java:
	Partly merged from classpath
	(getObject): Reformated.
	(tryBundle): Set foundBundle = null if no bundle found.

From-SVN: r66214
2003-04-29 11:36:34 +00:00
Michael Koch
cac9b0bcb1 AbstractListModel.java, [...]: New Versions from classpath.
2003-04-29  Michael Koch  <konqueror@gmx.de>

	* javax/swing/AbstractListModel.java,
	javax/swing/DefaultBoundedRangeModel.java,
	javax/swing/DefaultSingleSelectionModel.java:
	New Versions from classpath.

From-SVN: r66212
2003-04-29 09:26:29 +00:00
Michael Koch
7e89296c0b 2003-04-29 Michael Koch <konqueror@gmx.de>
* java/awt/Window.java
	(show): Call super.show() instead of setVisible() to avoid endless
	loop.
	(hide): Call super.hide() instead of setVisible() to avoid endless
	loop.

From-SVN: r66208
2003-04-29 07:51:46 +00:00
Michael Koch
8efaad2140 Deflater.java, [...]: Partly merged with classpath.
2003-04-29  Michael Koch  <konqueror@gmx.de>

	* java/util/zip/Deflater.java,
	java/util/zip/DeflaterOutputStream.java:
	Partly merged with classpath.

From-SVN: r66207
2003-04-29 07:37:14 +00:00
Mark Mitchell
29f4feceaa Remove accidental commit
From-SVN: r66206
2003-04-29 07:35:47 +00:00
Mark Mitchell
0dbc5cd368 decl.c (maybe_commonize_var): Further tweak support for systems without weak symbols.
* decl.c (maybe_commonize_var): Further tweak support for systems
	without weak symbols.

	* g++.old-deja/g++.pt/deduct5.C: Remove unnecessary initializer.

From-SVN: r66205
2003-04-29 07:13:33 +00:00
Loren J. Rittle
48f2318c45 Fix date typo.
From-SVN: r66203
2003-04-29 03:54:23 +00:00
Mark Mitchell
a833faa599 re PR c++/10180 (gcc fails to warn about non-inlined function)
PR c++/10180
	* tree-inline.c (expand_call_inline): Call push_srcloc when
	encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.

	PR c++/10180
	* g++.dg/warn/Winline-1.C: New test.

From-SVN: r66202
2003-04-29 03:24:27 +00:00
GCC Administrator
3e1be8c1b1 Daily bump.
From-SVN: r66200
2003-04-29 00:17:06 +00:00
Paolo Carlini
479a181108 std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there.
2003-04-28  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (_M_buf): is currently
	used only for basic_filebuf, therefore move it there.
	(basic_streambuf(), ~basic_streambuf()): Adjust.
	* include/std/std_fstream.h (_M_buf): Moved here.
	* include/std/std_sstream.h (setbuf): Don't set _M_buf,
	is actually redundant for basic_stringbuf.
	(_M_really_sync): Likewise.
	* include/bits/fstream.tcc (basic_filebuf()): Adjust.
	* include/bits/sstream.tcc (seekoff): Adjust.

From-SVN: r66193
2003-04-28 23:51:37 +00:00
Benjamin Kosnik
988ad90d00 localename.cc: Standardize exception strings.
2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>

	* src/localename.cc: Standardize exception strings.
	* src/locale.cc: Same.
	* src/ios.cc: Same.
	* include/bits/basic_string.tcc: Same.
	* include/bits/basic_ios.tcc: Same.
	* include/std/std_bitset.h: Same.
	* include/ext/ropeimpl.h: Same.
	* include/bits/stl_vector.h: Same.
	* include/bits/stl_deque.h: Same.
	* include/bits/stl_bvector.h: Same.
	* config/locale/generic/c_locale.cc: Same.
	* config/locale/gnu/c_locale.cc: Same.
	* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.

	* testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.

From-SVN: r66192
2003-04-28 23:05:57 +00:00
Paolo Carlini
6ef4b79c95 std_streambuf.h (_M_buf_size): is currently used only for basic_filebuf, therefore move it there.
2003-04-28  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (_M_buf_size): is currently
	used only for basic_filebuf, therefore move it there.
	(basic_streambuf(), ~basic_streambuf()): Adjust.
	* include/std/std_fstream.h (_M_buf_size): Moved here.
	* include/bits/fstream.tcc (basic_filebuf()): Adjust.

From-SVN: r66191
2003-04-28 23:02:46 +00:00
Paolo Carlini
44b84cc918 streambuf.tcc (__copy_streambufs): Don't use _M_buf_size (synced input is now correctly dealt with elsewhere)...
2003-04-28  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/streambuf.tcc (__copy_streambufs): Don't use
	_M_buf_size (synced input is now correctly dealt with
	elsewhere); when the output buffer is full don't fall back
	to a snextc-sputc loop, call overflow instead.

From-SVN: r66190
2003-04-28 22:15:58 +00:00
Paolo Carlini
ca78f36ae3 sstream.tcc (pbackfail): Shorten a bit (6 lines) the innermost 'if' by factoring out some code.
2003-04-28  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
	the innermost 'if' by factoring out some code.

From-SVN: r66187
2003-04-28 21:28:25 +00:00
Mike Stump
a72bf3e951 * gdbinit.in: Update to reflect new identifier structure.
From-SVN: r66186
2003-04-28 21:24:06 +00:00
Phil Edwards
ad41429085 configure.in: Test for libintl.h.
2003-04-28  Phil Edwards  <pme@gcc.gnu.org>

	* configure.in:  Test for libintl.h.
	* include/bits/c++config:  Define __N for everybody.
	* include/bits/basic_string.h, include/bits/stl_bvector.h,
	include/bits/stl_deque.h, include/bits/stl_vector.h,
	include/std/std_bitset.h:  Wrap all __throw* text with __N.
	* po/Makefile.am (pot):  New rule, mostly working.
	* src/functexcept.cc:  Call gettext on all __throw* arguments when
	-fexceptions is in effect.
	* po/Makefile.in, config.h.in, configure:  Regenerate.

From-SVN: r66185
2003-04-28 21:03:19 +00:00
Mohan Embar
e83a44d21d configure.in: define GC_DLL under mingw if --enable-shared
2003-04-28  Mohan Embar  <gnustuff@thisiscool.com>

	* configure.in: define GC_DLL under mingw if --enable-shared
	* configure: rebuilt
	* win32_threads.c: add #ifdef GC_DLL around DllMain

From-SVN: r66183
2003-04-28 20:54:37 +00:00
Zack Weinberg
0864034eb2 tree.h (TREE_CST_RTL, [...]): Delete.
* tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
	(struct tree_int_cst, struct tree_real_cst, struct tree_string,
	struct tree_complex, struct tree_vector): Remove RTL field.
	(CONSTRUCTOR_ELTS): Use elt 0.
	* tree.def (CONSTRUCTOR): Delete first of its two operands.
	* varasm.c (output_constant_def): Remove early exit if
	TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
	(decode_addr_const): Don't mention TREE_CST_RTL in comment.
	* target.h (select_section): Don't mention TREE_CST_RTL in comment.
	* doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.

ada:
	* utils.c (convert): No need to clear TREE_CST_RTL.

From-SVN: r66182
2003-04-28 20:02:28 +00:00
Jakub Jelinek
9661b15f95 c-decl.c (finish_decl): When prototype with asmspec is found for built-in...
* c-decl.c (finish_decl): When prototype with asmspec is found
	for built-in, adjust built_in_decls as well as expr.c decls.
	* expr.c (init_block_move_fn, init_block_clear_fn): New functions.
	(emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
	* expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.

	* gcc.c-torture/execute/string-opt-asm-1.c: New test.
	* gcc.c-torture/execute/string-opt-asm-2.c: New test.

From-SVN: r66181
2003-04-28 21:58:52 +02:00
Tom Tromey
62a3446bb8 natString.cc (_Jv_AllocString): Initialize cachedHashCode.
* java/lang/natString.cc (_Jv_AllocString): Initialize
	cachedHashCode.
	(init): Likewise.
	(_Jv_NewStringUtf8Const): Likewise.

From-SVN: r66180
2003-04-28 18:19:23 +00:00
Richard Henderson
8707fe9398 sparc.c (print_operand): Add 's' to sign-extend.
* config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
        * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
        integral constant mult operand.
        (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
        (const_smulsi3_highpart_v8plus): Likewise.
        (const_smulsi3_highpart): Likewise.
        (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
        (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
        (const_umulsi3_highpart_v8plus): Likewise.
        (const_umulsi3_highpart): Likewise.

From-SVN: r66179
2003-04-28 10:58:02 -07:00
Benjamin Kosnik
2aacd7357a [multiple changes]
2003-04-28  Petur Runolfsson  <peturr02@ru.is>

        PR libstdc++/9523
        * include/bits/ios_base.h (Init::_S_ios_create,
        Init::_S_ios_destroy):  Remove declarations.
        (Init::_S_create_buffers,
        Init::_S_destroy_buffers):  Declare
        * src/ios.cc (Init::_S_ios_create):  Remove
        (Init::_S_create_buffers):  Create buffers and add to streams.
        (Init::_S_ios_destroy):  Rename to...
        (Init::_S_destroy_buffers):  this.
        (Init::Init):  Only construct streams once.
        (Init::~Init):  Flush streams, don't destroy them.
        (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
        * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
        * testsuite/27_io/objects/char/5.cc:  New test.
        * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
        * testsuite/27_io/objects/char/6.cc:  New test.
        * testsuite/27_io/objects/char/7.cc:  New test.

2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>

        * testsuite/27_io/objects/char/8.cc:  New test.

From-SVN: r66177
2003-04-28 17:15:03 +00:00
David O'Brien
ff4cb2e75b x86-64.h (NO_PROFILE_COUNTERS, [...]): Define as 1.
2003-04-28  David O'Brien  <obrien@FreeBSD.org>
	* config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
	Define as 1.

From-SVN: r66174
2003-04-28 15:30:25 +00:00
David O'Brien
495d8dd6ac i386.h (builtin_define): Add __amd64 and __amd64__.
2003-04-28  David O'Brien  <obrien@FreeBSD.org>
	* config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.

From-SVN: r66171
2003-04-28 15:11:06 +00:00
Benjamin Kosnik
af77916931 char.cc: Remove bom usage.
2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
	* testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.

From-SVN: r66170
2003-04-28 14:30:07 +00:00