Commit Graph

31097 Commits

Author SHA1 Message Date
Benjamin Kosnik 060974d0af compare.cc (test01): Add using declarations.
2000-10-23  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/21_strings/compare.cc (test01): Add using declarations.

	* include/c_std/bits/std_cerrno.h: And here.
	* include/c_std/bits/std_cassert.h: Tweaks.

	* mkcheck.in: Simplify.

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify.
	(GLIBCPP_ENABLE_LONG_LONG): Same.
	* aclocal.m4: Regenerate.

	* src/Makefile.am (c_shadow_headers): Add features.h,
	bits/wrap_features.h.
	* src/Makefile.in: Regenerate.
	* include/c_std/features.h: New file.
	* include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New
	file. Need to have c++config.h included before this file so
	_ISOC99_SOURCE around.

	* include/c_std/sys/cdefs.h: Hack.
	* include/c_std/stdlib.h: Same, use c++config.h.
	* include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD.

	* include/c_std/bits/std_cassert.h: Fix.
	* include/c_std/bits/std_cerrno.h: Make consistent.

	* include/c_std/bits/std_csetjmp.h (setjmp): Unscope global
	declaration from ::_C_legacy to _C_legacy.

	* include/c_std/bits/std_cstdio.h: same with printf.
	* include/c_std/stdio.h: And here.

	* include/c_std/bits/std_cstdlib.h: abort, exit comment.
	* include/c_std/stdlib.h: Same here.

From-SVN: r37034
2000-10-24 17:00:07 +00:00
Jakub Jelinek f85b5d6572 sibcall.c (purge_mem_unchanging_flag): New function.
* sibcall.c (purge_mem_unchanging_flag): New function.
	(optimize_sibling_and_tail_recursive_calls): Call it.

	* g++.old-deja/g++.other/sibcall1.C: New test.

From-SVN: r37033
2000-10-24 13:25:50 +02:00
Bryce McKinlay 85d0c8b46e EventObject.java: Merged from classpath.
2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/EventObject.java: Merged from classpath.

From-SVN: r37032
2000-10-24 11:53:56 +01:00
Jeff Law 264836a1ff Daily bump.
From-SVN: r37031
2000-10-24 01:45:07 -06:00
Philipp Thomas 4adee315bd Makefile.in (check-po): New target for doing checks in the po subdir if all languages configured.
2000-10-24  Philipp Thomas  <pthomas@suse.de>

	* Makefile.in (check-po): New target for doing checks in the po
	subdir if all languages configured.
	(CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
	configure if NLS is enabled.
	* configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
	otherwise leave empty.
	* configure: Regenerate.

From-SVN: r37030
2000-10-24 04:00:07 +00:00
Richard Henderson 8a959ea52e ia64.c (ia64_expand_prologue): Mark extra output registers as fixed.
* config/ia64/ia64.c (ia64_expand_prologue): Mark extra
        output registers as fixed.
        (ia64_function_epilogue): Undo output fixation.

From-SVN: r37029
2000-10-23 17:26:12 -07:00
Richard Henderson 964686defd alpha.md: Add names for all unnamed insns; use define_insn_and_split in some obvious places.
* config/alpha/alpha.md: Add names for all unnamed insns; use
        define_insn_and_split in some obvious places.
        (lda): Remove.
        (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
        (zero_extendqisi2, zero_extendqidi2): Likewise.
        (zero_extendhisi2, zero_extendhidi2): Likewise.
        (abs splitters): Fix match_scratch operand number.
        (bcc_reverse): Swap pc & label instead of non-canonical compare.

From-SVN: r37028
2000-10-23 17:06:18 -07:00
Jim Wilson 18a3c539ee Fix Turbo's LPRng compilation failure due to assembler errors.
* ia64.c (ia64_print_operand, case 'r'): Correct comment.  Handle
	CONST_INT.
	* ia64.md (cmpsi_adjusted): Use %r3.
	(cmpdi_adjusted): Likewise.

From-SVN: r37025
2000-10-23 16:38:39 -07:00
Jason Merrill 6c6ed0ef92 * call.c (equal_functions): Also call decls_match for extern "C" fns.
From-SVN: r37024
2000-10-23 17:38:33 -04:00
Diego Novillo 57dd137ffb att.h (ASM_FILE_START): Define.
2000-10-23  Diego Novillo  <dnovillo@cygnus.com>

	* config/i386/att.h (ASM_FILE_START): Define.

From-SVN: r37023
2000-10-23 16:21:58 -04:00
Diego Novillo d984704dd1 linux.h (ASM_FILE_START): Define.
2000-10-23  Diego Novillo  <dnovillo@cygnus.com>

	* config/i386/linux.h (ASM_FILE_START): Define.

From-SVN: r37022
2000-10-23 16:07:50 -04:00
Alexandre Petit-Bianco eade41de2a AbstractSet.java (equals): Re-installed original code.
2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* java/util/AbstractSet.java (equals): Re-installed original code.

(http://sources.redhat.com/ml/java-patches/2000-q4/msg00054.html)

From-SVN: r37021
2000-10-23 12:52:45 -07:00
Donald Lindsay 261f21e70d m68k-coff removed libgloss to fix a multiple definition of crt0
From-SVN: r37020
2000-10-23 18:54:12 +00:00
Geoff Keating 2af88768a8 reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can overwrite the value in a RELOAD_FOR_INPUT and other kinds of...
* reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
	overwrite the value in a RELOAD_FOR_INPUT and other kinds of
	reloads just like an RELOAD_FOR_OUTPUT would.

From-SVN: r37019
2000-10-23 18:45:15 +00:00
Geoff Keating 96af667a5e local-alloc.c (update_equiv_regs): Add an abort().
* local-alloc.c (update_equiv_regs): Add an abort().  When
	deleting or moving insns, update reg_equiv[regno].init_insns.

From-SVN: r37018
2000-10-23 18:42:52 +00:00
Alex Samuel ea343d1a91 Fix incorrect date in ChangeLog entry.
From-SVN: r37017
2000-10-23 18:11:23 +00:00
Gabriel Dos Reis c3229aa7c0 std_valarray.h (valarray::valarray): Use __valarray_copy, not __valarray_copy_construct.
2000-10-23  Gabriel Dos Reis  <gdr@codesourcery.com>

	* std/std_valarray.h (valarray::valarray): Use __valarray_copy,
	not __valarray_copy_construct.

From-SVN: r37016
2000-10-23 16:24:19 +00:00
Mark Mitchell d252a51551 c-tree.texi: Improve documentation for IF_STMTs and related conditional statements.
* c-tree.texi: Improve documentation for IF_STMTs and related
	conditional statements.

From-SVN: r37015
2000-10-23 14:43:33 +00:00
Jeff Law 69881ed7b4 Daily bump.
From-SVN: r37014
2000-10-23 01:45:08 -06:00
Mark Mitchell 583ca5a08d call.c (standard_conversion): Use RVALUE_CONVs for all expressions that satisfy lvalue_p...
* call.c (standard_conversion): Use RVALUE_CONVs for all
	expressions that satisfy lvalue_p, not just those that satisfy
	real_lvalue_p.

From-SVN: r37013
2000-10-23 06:36:37 +00:00
Mark Mitchell f9808f81c9 expr.c (do_preexpand_calls): Remove.
* expr.c (do_preexpand_calls): Remove.
	(same_from_p): Don't use CALL_EXPR_RTL.
	(expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
	(preexpand_calls): Remove.
	* tree.c (first_rtl_op): Remove CALL_EXPR case.
	(unsave_expr_1): Likewise.
	* tree.def (CALL_EXPR): Give it only two slots.
	* tree.h (CALL_EXPR_RTL): Remove.

	* optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.

From-SVN: r37012
2000-10-23 04:40:26 +00:00
Alex Samuel 0870bfd6d8 cp-demangle.c (string_list_def): Add caret_position and comments.
* cp-demangle.c (string_list_def): Add caret_position and comments.
	(result_caret_pos): New macro.
	(result_append_string): Rename to...
	(result_add_string): ... this, and insert at caret position.
	Rename throughout.
	(result_append): Rename to...
	(result_add): ... this, and insert at caret position.  Rename
	throughout.
	(result_append_char): Rename to...
	(result_add_char): ... this, and insert at caret position.  Rename
	throughout.
	(result_append_space): Remove.
	(string_list_new): Initialize caret position.
	(result_add_separated_char): Use caret position.
	(result_get_caret): New funtion.
	(result_set_caret): Likewise.
	(result_shift_caret): Likewise.
	(result_previous_char_is_space): Likewise.
	(substitution_start): Use caret position.
	(substitution_add): Likewise.
	(demangling_new): Initialize caret position.
	(demangle_encoding): Use caret position.
	(demanglin_nested_name): Put CV qualifiers after name.
	(demangle_type_ptr): Use switch statement.  Handle pointers to
	arrays.  Don't use result_append_space.  Use caret position.
	(demangle_type): Emit CV qualifiers after underlying type.  Adjust
	call to demangle_array_type.
	(demangle_array_type): Add parameter to handle pointers to arrays.

From-SVN: r37011
2000-10-22 23:59:25 +00:00
Chandrakala Chavva ae4bd6227a libgcc-std.ver (__addvsi3, [...]): New functions.
* libgcc-std.ver (__addvsi3, __addvdi3,  __subvsi3, __subvdi3,
        __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
        New functions.

From-SVN: r37010
2000-10-22 17:20:28 -04:00
Jason Merrill db5ae31b19 call.c (build_conditional_expr): Use ocp_convert to force rvalue conversion.
* call.c (build_conditional_expr): Use ocp_convert to force
        rvalue conversion.

From-SVN: r37009
2000-10-22 16:21:41 -04:00
Alexandre Oliva 3e555c7de1 calls.c (combine_pending_stack_adjustment_and_call): Don't adjust stack when unadjusted_alignment ends up as zero.
* calls.c (combine_pending_stack_adjustment_and_call): Don't
adjust stack when unadjusted_alignment ends up as zero.

From-SVN: r37008
2000-10-22 19:34:05 +00:00
Joseph Myers 99bdaa681e genfixes: Remove EGCS reference.
* fixinc/genfixes: Remove EGCS reference.
	* install.texi: Remove EGCS reference.
	* INSTALL: Regenerate.

From-SVN: r37007
2000-10-22 19:07:07 +01:00
Mark Mitchell e36308b076 tree.h (TYPE_IS_SIZETYPE): Add more documentation.
* tree.h (TYPE_IS_SIZETYPE): Add more documentation.

	* typeck.c (c_sizeof): Return an expression of `size_t' type,
	not one with TYPE_IS_SIZETYPE set.
	(dubious_conversion_warnings): Remove special-case code.

From-SVN: r37006
2000-10-22 17:50:28 +00:00
Rolf W. Rasmussen 2622c79d2d Makefile.am: Added rules for libgcjx library.
* Makefile.am: Added rules for libgcjx library.
	* Makefile.in: Rebuilt.
	* configure.in: Added check for X.
	* configure: Rebuilt.
	* gnu/awt/LightweightRedirector.java: New file.
	* gnu/awt/j2d/AbstractGraphicsState.java: New file.
	* gnu/awt/j2d/DirectRasterGraphics.java: New file.
	* gnu/awt/j2d/Graphics2DImpl.java: New file.
	* gnu/awt/j2d/IntegerGraphicsState.java: New file.
	* gnu/awt/j2d/MappedRaster.java: New file.
	* gnu/awt/xlib/XCanvasPeer.java: New file.
	* gnu/awt/xlib/XEventLoop.java: New file.
	* gnu/awt/xlib/XEventQueue.java: New file.
	* gnu/awt/xlib/XFontMetrics.java: New file.
	* gnu/awt/xlib/XFramePeer.java: New file.
	* gnu/awt/xlib/XGraphics.java: New file.
	* gnu/awt/xlib/XGraphicsConfiguration.java: New file.
	* gnu/awt/xlib/XPanelPeer.java: New file.
	* gnu/awt/xlib/XToolkit.java: New file.
	* gnu/gcj/xlib/Clip.java: New file.
	* gnu/gcj/xlib/Colormap.java: New file.
	* gnu/gcj/xlib/Display.java: New file.
	* gnu/gcj/xlib/Drawable.java: New file.
	* gnu/gcj/xlib/Font.java: New file.
	* gnu/gcj/xlib/GC.java: New file.
	* gnu/gcj/xlib/Pixmap.java: New file.
	* gnu/gcj/xlib/Screen.java: New file.
	* gnu/gcj/xlib/Visual.java: New file.
	* gnu/gcj/xlib/WMSizeHints.java: New file.
	* gnu/gcj/xlib/Window.java: New file.
	* gnu/gcj/xlib/WindowAttributes.java: New file.
	* gnu/gcj/xlib/XAnyEvent.java: New file.
	* gnu/gcj/xlib/XButtonEvent.java: New file.
	* gnu/gcj/xlib/XColor.java: New file.
	* gnu/gcj/xlib/XConfigureEvent.java: New file.
	* gnu/gcj/xlib/XConnectException.java: New file.
	* gnu/gcj/xlib/XEvent.java: New file.
	* gnu/gcj/xlib/XException.java: New file.
	* gnu/gcj/xlib/XExposeEvent.java: New file.
	* gnu/gcj/xlib/XID.java: New file.
	* gnu/gcj/xlib/XImage.java: New file.
	* gnu/gcj/xlib/XUnmapEvent.java: New file.
	* gnu/gcj/xlib/natClip.cc: New file.
	* gnu/gcj/xlib/natColormap.cc: New file.
	* gnu/gcj/xlib/natDisplay.cc: New file.
	* gnu/gcj/xlib/natDrawable.cc: New file.
	* gnu/gcj/xlib/natFont.cc: New file.
	* gnu/gcj/xlib/natGC.cc: New file.
	* gnu/gcj/xlib/natPixmap.cc: New file.
	* gnu/gcj/xlib/natScreen.cc: New file.
	* gnu/gcj/xlib/natVisual.cc: New file.
	* gnu/gcj/xlib/natWMSizeHints.cc: New file.
	* gnu/gcj/xlib/natWindow.cc: New file.
	* gnu/gcj/xlib/natWindowAttributes.cc: New file.
	* gnu/gcj/xlib/natXAnyEvent.cc: New file.
	* gnu/gcj/xlib/natXButtonEvent.cc: New file.
	* gnu/gcj/xlib/natXColor.cc: New file.
	* gnu/gcj/xlib/natXConfigureEvent.cc: New file.
	* gnu/gcj/xlib/natXException.cc: New file.
	* gnu/gcj/xlib/natXExposeEvent.cc: New file.
	* gnu/gcj/xlib/natXImage.cc: New file.
	* gnu/gcj/xlib/natXUnmapEvent.cc: New file.
	* java/awt/EventDispatchThread.java: Start thead on creation.

From-SVN: r37005
2000-10-22 17:46:09 +00:00
Geoff Keating 9b95cc4a34 * POTFILES.in: Add config/i386/netware.h and config/netware.h.
From-SVN: r37004
2000-10-22 11:02:11 +00:00
Jeff Law 1d3591d1b5 Daily bump.
From-SVN: r37003
2000-10-22 01:45:08 -06:00
Geoff Keating 7a0f14e58b decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
* decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
	* error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
	(dump_type_prefix): Print vector-of-int as 'int vector'.
	(dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
	* tree.c (walk_tree): Handle VECTOR_TYPE.

From-SVN: r37002
2000-10-22 01:38:35 +00:00
Geoff Keating 3b9ae6f0d5 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
From-SVN: r37001
2000-10-22 01:38:09 +00:00
Jason Merrill aca77bd196 parse.y (operator): Set got_object from got_scope.
* parse.y (operator): Set got_object from got_scope.
        Set looking_for_typename.
        * decl.c (lookup_name_real): Clear val after setting from_obj.
        Reorganize diagnostic.

From-SVN: r37000
2000-10-21 17:44:04 -04:00
Benjamin Kosnik fac045536f acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
	* aclocal.m4: Regenerate.
	* configure.in: Use it.
	* configure: Regenerate.
	* src/complexl.cc: Fixup.
	* include/c_std/bits/std_cmath.h: Fixup.
	* include/c/bits/std_cmath.h: Fixup.
	* docs/configopts.html: Add docs.

From-SVN: r36999
2000-10-21 19:43:13 +00:00
Benjamin Kosnik 9fedcfd5a3 acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
	* aclocal.m4: Regenerate.
	* configure.in: Use it.
	* configure: Regenerate.
	* src/complexl.cc: Fixup.
	* include/c_std/bits/std_cmath.h: Fixup.
	* include/c/bits/std_cmath.h: Fixup.

From-SVN: r36998
2000-10-21 19:40:17 +00:00
Philipp Thomas 4037042b88 POTFILES.in: Remove config/rs6000/netware.h.
2000-10-21  Philipp Thomas  <pthomas@suse.de>

	* POTFILES.in: Remove config/rs6000/netware.h.
	Remove the files moved out of libgcc and over
	to libsupc++.
	* Makefile.in.in (stamp-check-pot): Rename to stamp-check-po.
	(check-po): New, more intuitive target to check POTFILES.in
	for consistency.

From-SVN: r36997
2000-10-21 19:04:38 +00:00
Joseph Myers bf6eb15f68 diagnostic.c: Remove EGCS reference in comment.
* diagnostic.c: Remove EGCS reference in comment.

f:
	* Makefile.in, g77spec.c: Remove EGCS references in comments.

From-SVN: r36996
2000-10-21 19:10:32 +01:00
Benjamin Kosnik 6b76f569a3 [multiple changes]
2000-10-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* docs/links.html: Add links to defects list, standards FAQ.

	* testsuite/21_strings/ctor_copy_dtor.cc (test01): Disable tests
	with string creation that allocate huge ammounts of memory.

	* include/c/bits/std_cstddef.h: Put size_t, ptrdiff_t in
	namepace std.

2000-10-21  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

    	* libsupc++/exception.cc: Use namespace std.
    	* libsupc++/new: DITTO.
    	* libsupc++/new_op.cc: DITTO.
    	* libsupc++/new_opnt.cc: DITTO.
    	* libsupc++/new_opv.cc: DITTO.
    	* libsupc++/new_opvnt.cc: DITTO.
    	* libsupc++/tinfo.cc: DITTO.
    	* libsupc++/tinfo.h: DITTO.
    	* libsupc++/vec.cc: DITTO.
    	* libsupc++/Makefile.am: Blank lines removal.

From-SVN: r36995
2000-10-21 16:50:29 +00:00
Kaveh R. Ghazi 80393943c7 Warning fixes:
* gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define

	* jcf-reader.c (peek_attribute, skip_attribute): Only define
	when requested.

	* parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN.

	* verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void.

From-SVN: r36994
2000-10-21 15:10:38 +00:00
Richard Kenner e62ff0c3ba * loop.c (strength_reduce): Fix error in last change.
From-SVN: r36993
2000-10-21 08:12:07 -04:00
Jeff Law 139a41f984 Daily bump.
From-SVN: r36992
2000-10-21 01:45:08 -06:00
Jakub Jelinek 42a55121ee * gcc.dg/noncompile/init-3.c: New test.
From-SVN: r36991
2000-10-21 08:35:47 +02:00
Bryce McKinlay e1d565ab93 parse.y (do_resolve_class): Also explore superclasses of intermediate enclosing contexts when...
2000-08-15  Bryce McKinlay  <bryce@albatross.co.nz>

	* parse.y (do_resolve_class): Also explore superclasses of
	intermediate enclosing contexts when searching for inner classes.

From-SVN: r36990
2000-10-21 07:28:27 +01:00
David Edelsohn 0ad7574f93 Makefile.in (SHLIB_NM_FLAGS): New.
* Makefile.in (SHLIB_NM_FLAGS): New.
        (libgcc.mk): Pass it.
        * mklibgcc.in (libgcc.map): Use it.

        * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
        SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.

From-SVN: r36989
2000-10-20 21:47:05 -04:00
Joseph Myers d73b0bcff3 configopts.html, [...]: Remove many EGCS references...
* docs/configopts.html, docs/install.html, docs/17_intro/BADNAMES,
	docs/17_intro/howto.html, docs/18_support/howto.html,
	docs/19_diagnostics/howto.html, docs/20_util/howto.html,
	docs/21_strings/howto.html, docs/22_locale/howto.html,
	docs/23_containers/howto.html, docs/24_iterators/howto.html,
	docs/25_algorithms/howto.html, docs/26_numerics/howto.html,
	docs/27_io/howto.html, docs/ext/howto.html, docs/faq/index.html:
	Remove many EGCS references; use current absolute URLs on
	gcc.gnu.org or sources.redhat.com for messages in list archives.
	* docs/faq/index.txt: Regenerate.

From-SVN: r36988
2000-10-21 01:51:50 +01:00
Kaveh R. Ghazi 8f54374ed3 Warning fixes:
* mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.

	* sparc.c (load_pic_register): Delete unused varaible.

	* libgcc2.c (__addvsi3): Delete unused variable.

	* libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
	__subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
	__negvdi2): Prototype.

	* ssa.c (apply_delayed_renames): Avoid undefined operation.

	* toplev.c (display_target_options): Make static to match
	prototype.  Delete empty declaration.

From-SVN: r36987
2000-10-20 23:32:10 +00:00
Tom Tromey a9770f9a91 From Arno J. Klaassen:
* interpret.cc: Include <stdlib.h> for alloca.
	* defineclass.cc: Include <stdlib.h> for alloca.

From-SVN: r36986
2000-10-20 23:25:57 +00:00
Jason Merrill 05c1707ca2 * tree.c (walk_tree): Don't walk into default args.
From-SVN: r36985
2000-10-20 17:31:25 -04:00
Jason Merrill ba523395f1 tree.c (walk_tree): Don't walk into default args.
* tree.c (walk_tree): Don't walk into default args.

        * error.c (dump_expr): Use host_integerp.

From-SVN: r36984
2000-10-20 17:26:26 -04:00
Tom Tromey ac758f9643 Removed erroneous ChangeLog entry
From-SVN: r36983
2000-10-20 21:26:21 +00:00