Commit Graph

31120 Commits

Author SHA1 Message Date
Tom Tromey
a697c5f753 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (install-exec-hook): New target.

From-SVN: r37057
2000-10-25 17:56:17 +00:00
Joseph Myers
e0c9fbb763 c-decl.c (grokdeclarator): Move warning for qualified void return types with -pedantic to when...
* c-decl.c (grokdeclarator): Move warning for qualified void
	return types with -pedantic to when the function type is
	constructed.  At -W, warn in general for qualified function return
	types, except for volatile void.
	* invoke.texi: Document this new warning at -W.

testsuite:
	* gcc.dg/qual-return-1.c, gcc.dg/qual-return-2.c: New tests.

From-SVN: r37056
2000-10-25 18:45:44 +01:00
Diego Novillo
fb204271dd i386.c (print_operand): Handle new 'A' formatting code.
2000-10-23  Diego Novillo  <dnovillo@cygnus.com>

	* i386.c (print_operand): Handle new 'A' formatting code.
	387 opcodes need suffixes even with -mintel-syntax.
	Check for explicit size override (codes 'b', 'w' and 'k').
	(print_operand_address): Check if register prefix is needed when
	emitting `ds' segment override.
	* i386.h: Add comment about new 'A' formatting code.
	* i386.md (jump and call patterns): Emit absolute references using %A.

From-SVN: r37055
2000-10-25 13:26:27 -04:00
Neil Booth
138e79e785 cpp.texi: Update with implementation-defined behavior and internal limits.
* cpp.texi: Update with implementation-defined behavior and
        internal limits.

From-SVN: r37054
2000-10-25 17:23:23 +00:00
Phil Edwards
dfb1d76f1c configure.in: Check for gconv.h.
2000-10-25  Phil Edwards  <pme@sources.redhat.com>

        * configure.in:  Check for gconv.h.
        * libio/wfileops.c:  Wrap gconv.h in HAVE_GCONV_H.

        * config/c_io_libio_codecvt.c:  Change __mbstate_t to __c_mbstate_t.
        * libio/_G_config.h:  And here.
        * libio/iofwide.c:  And here.
        * libio/libio.h:  And here.

        * config/os/solaris/solaris2.7/bits/ctype_noninline.h:  Remove
          exception specification to match declaration.
        * include/bits/locale_facets.tcc:  Include bits/std_clocale.h.

From-SVN: r37053
2000-10-25 16:54:47 +00:00
Jakub Jelinek
dc5041ab71 stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the incomplete type force it into alias set 0.
* stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
	incomplete type force it into alias set 0.

	* gcc.c-torture/execute/20001024-1.c: New test.

From-SVN: r37052
2000-10-25 17:23:35 +02:00
Mark Harig
1ac41449a6 configopts.html: Added documentation for the "--enable-version-specific-runtime-libs" and...
2000-10-24   Mark Harig <mharig@landmark.com>

        * docs/configopts.html: Added documentation for the
        "--enable-version-specific-runtime-libs" and
        "--with-gxx-include-dir" configuration switches.

From-SVN: r37051
2000-10-25 14:41:16 +00:00
Benjamin Kosnik
8b8ab21caf acconfig.h: List _GLIBCPP_USE_THREADS.
2000-10-24  Phil Edwards  <pme@sources.redhat.com>

        * acconfig.h:  List _GLIBCPP_USE_THREADS.
        * acinclude.m4:  General formatting cleanup (tabs/spaces), typo
          correction, etc.  Add comments about following *real* changes
          where they are used.
          (GLIBCPP_ENABLE_C_MBCHAR):  New test...
          (GLIBCPP_CHECK_WCHAR_T_SUPPORT):  ...results used here.
          (GLIBCPP_ENABLE_CSTDIO):  Define need_wlibio iff wide characters
          are requested.
          (GLIBCPP_ENABLE_THREADS):  If threads are used, define new
          macro _GLIBCPP_USE_THREADS in c++config.h.
          (GLIBCPP_ENABLE_SHADOW):  For C_INCLUDE_DIR, change () to {} as
          this is used in both makefiles and shell scripts (mkcheck).
        * configure.in:  Call GLIBCPP_ENABLE_C_MBCHAR.

        * libio/_G_config.h:  Wrap _IO_MTSAFE_IO in _GLIBCPP_USE_THREADS.
        * config/c_io_libio.h:  In nonthreaded case, typedef __c_lock to
          something harmless, like int.

        * config/os/aix/bits/os_defines.h:  Guard with _GLIBCPP_OS_DEFINES,
          add comment/instructions.
        * config/os/bsd/bits/os_defines.h:  Ditto.
        * config/os/generic/bits/os_defines.h:  Ditto.
        * config/os/gnu-linux/bits/os_defines.h:  Ditto.
        * config/os/irix/bits/os_defines.h:  Ditto.
        * config/os/newlib/bits/os_defines.h:  Ditto.
        * config/os/solaris/solaris2.5/bits/os_defines.h:  Ditto.
        * config/os/solaris/solaris2.6/bits/os_defines.h:  Ditto.

        * mkcheck.in:  Limit the available heap size for testsuite
          binaries, initially at 2MB.

From-SVN: r37050
2000-10-25 12:50:06 +00:00
Benjamin Kosnik
9aa1d5ac5e stl_pair.h (make_pair): Add LWG solution.
2000-10-24  Benjamin Kosnik  <bkoz@redhat.com>

        * include/bits/stl_pair.h (make_pair): Add LWG solution.

        * testsuite/21_strings/compare.cc (test01): Inject namespace std
	into the mix.

	* mkcheck.in (MAX_MEM_USAGE): Bump up to 3072. Strangely enough,
	this works.

From-SVN: r37049
2000-10-25 12:48:34 +00:00
Levente Farkas
cc66e4ac40 std_bitset.h (_M_do_find_next): Fix typo.
2000-10-24  Levente Farkas  <lfarkas@mindmaker.hu>

	* include/bits/std_bitset.h (_M_do_find_next): Fix typo.

From-SVN: r37048
2000-10-25 12:47:45 +00:00
Bryce McKinlay
ce2ab205ae ThreadGroup.java (uncaughtException): Print thread name with stack dump.
* java/lang/ThreadGroup.java (uncaughtException): Print thread name
        with stack dump.

From-SVN: r37047
2000-10-25 09:11:47 +01:00
Jeff Law
589cb9f16e Daily bump.
From-SVN: r37046
2000-10-25 01:45:08 -06:00
Alexandre Petit-Bianco
8ac1de05dd parse.y (register_incomplete_type): Include JDEP_FIELD as a case where an enclosing context can be set on the jdep.
2000-10-24  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (register_incomplete_type): Include JDEP_FIELD as a case
	where an enclosing context can be set on the jdep.
	(do_resolve_class): Fixed identation.

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00824.html)

From-SVN: r37045
2000-10-24 22:47:28 -07:00
John Wehle
e004f2f76e alias.c: Include basic-block.h.
* alias.c: Include basic-block.h.
	(loop_p): New function.
	(mark_constant_function): Use it.
	* Makefile.in (alias.o): Update dependencies.

From-SVN: r37044
2000-10-25 05:00:53 +00:00
Aldy Hernandez
842a07880f fix secondary_reload typo from last patch
From-SVN: r37043
2000-10-25 04:26:35 +00:00
Aldy Hernandez
15c097383f secondary_reload_class: treat pseudos like memory
From-SVN: r37042
2000-10-25 03:13:19 +00:00
Jim Wilson
a8ca775646 Fixes for C++ structure layout breakage.
* expmed.c (store_bit_field): Move integer pun code down after
	code that calls emit_move_insn for entire register move.
	* stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
	Oct 20 changes.  Only store mode in TYPE_MODE if RECORD_TYPE.

From-SVN: r37041
2000-10-24 18:30:25 -07:00
Richard Henderson
c0fc376bcf rtlanal.c (rtx_unstable_p, [...]): Don't consider pic register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
* rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
        register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.

From-SVN: r37040
2000-10-24 16:01:11 -07:00
Aldy Hernandez
d7836e38b7 do not propagate constants into jump_insn's for machines with CC0, more than once
From-SVN: r37039
2000-10-24 22:49:39 +00:00
Richard Henderson
5e2c51baa7 treat pseudos just like memory
From-SVN: r37038
2000-10-24 22:45:46 +00:00
Alexandre Oliva
c71e120103 combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL when deleting libcall sequence collapsed to...
* combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
when deleting libcall sequence collapsed to a single instruction.

From-SVN: r37037
2000-10-24 20:24:03 +00:00
Andrew Haley
5129d2ceee expr.c (do_store_flag): Don't crash if either side of a comparison is error_mark_node.
2000-10-24  Andrew Haley  <aph@cygnus.co.uk>

        * expr.c (do_store_flag): Don't crash if either side of a
        comparison is error_mark_node.

From-SVN: r37036
2000-10-24 20:06:13 +00:00
Benjamin Kosnik
dcc41852e1 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: r37035
2000-10-24 17:00:59 +00:00
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