Commit Graph

31962 Commits

Author SHA1 Message Date
Bernd Schmidt
222de5be45 New testcase
From-SVN: r37709
2000-11-24 17:11:10 +00:00
Anthony Green
1510057a32 jcf-parse.c (init_jcf_parse): Register current_file_list root.
* jcf-parse.c (init_jcf_parse): Register current_file_list root.
        Move current_file_list out of yyparse and make it static.

        * expr.c: Declare quick_stack and tree_list_free_list as static
        (init_expr_processing): Register quick_stack and
        tree_list_free_list roots.

From-SVN: r37708
2000-11-24 15:29:39 +00:00
Bernd Schmidt
52a84e4270 Fix bug in previous change.
From-SVN: r37707
2000-11-24 14:22:01 +00:00
Bernd Schmidt
235cfbc40f Overhaul sequence point warnings (again)
From-SVN: r37706
2000-11-24 11:49:46 +00:00
Richard Sandiford
58ecb5e2cd Avoid a bit of copy propagation when there's a REG_EQUIV note
From-SVN: r37705
2000-11-24 11:36:27 +00:00
Bernd Schmidt
c34102419d Avoid hard register combinations
From-SVN: r37704
2000-11-24 11:28:51 +00:00
Nathan Sidwell
2f401cc807 c-parse.in (unary_expr): Move VA_ARG from here ...
* c-parse.in (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.
cp:
        * parse.y (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.

testsuite:
        * g++.old-deja/g++.other/vaarg4.C: New test.
        * gcc.c-torture/compile/20001123-1.c: New test.

From-SVN: r37703
2000-11-24 10:30:46 +00:00
Nathan Sidwell
3d7e9ba41e semantics.c (finish_id_expr): If type is error_mark, return error_mark.
cp:
	* semantics.c (finish_id_expr): If type is error_mark, return
	error_mark.
testsuite:
	* g++.other/crash24.C: Adjust and remove XFAIL.
	* g++.other/crash37.C: New test.

From-SVN: r37702
2000-11-24 09:56:27 +00:00
Jeff Law
f4f6bd8d30 Daily bump.
From-SVN: r37701
2000-11-24 01:45:08 -07:00
Graham Stott
963a2a84a4 expr.c (store_constructor): If a field is non addressable and the target is a MEM use MEM_ALIAS_SET...
* expr.c (store_constructor): If a field is non addressable and
	the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.

From-SVN: r37700
2000-11-23 20:15:36 +00:00
Bernd Schmidt
f9b697bfa1 Try to dump some information before aborting.
From-SVN: r37699
2000-11-23 18:19:18 +00:00
Nathan Sidwell
ab09753510 pt.c (lookup_template_class): Simplify loop exit constructs.
cp:
	* pt.c (lookup_template_class): Simplify loop exit constructs.
	Cope when there is no partial instantiation of a template
	template member.
testsuite:
	* g++.old-deja/g++.pt/instantiate9.C: New test.

From-SVN: r37698
2000-11-23 15:19:36 +00:00
Alexandre Oliva
8d4af2d7a9 Use UNSPEC_MOVA in newly-introduced mova_const
From-SVN: r37697
2000-11-23 13:24:28 +00:00
Alexandre Oliva
69295d6d26 emit-rtl.c (gen_lowpart_common): Use word 0 if register mode is narrower than requested mode.
* emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
is narrower than requested mode.
(gen_highpart): Abort if register mode is narrower than
requested mode.

From-SVN: r37696
2000-11-23 13:23:04 +00:00
Hans-Peter Nilsson
d0c3e4f498 os_defines.h: Include <features.h>.
* config/os/gnu-linux/bits/os_defines.h: Include <features.h>.
	If not glibc 2.1 or higher, include <gnu/types.h> and define
	__off64_t as __loff_t and #define __THROW as empty.

	* libio/libio.h [__P]: Move __THROW and __PMT into their own
	ifndef:s.

From-SVN: r37695
2000-11-23 11:30:46 +00:00
Graham Stott
99a9c9460d cse.c (cse_insn): Initialise all regcost variables.
* cse.c (cse_insn): Initialise all regcost variables.
        Fix a typo add missing '='.
        Only compare costs if there is a replacement insn.

From-SVN: r37694
2000-11-23 11:04:45 +00:00
Jeff Law
f9b383f20f Daily bump.
From-SVN: r37693
2000-11-23 01:45:07 -07:00
Benjamin Kosnik
4ce69c7f61 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37692
2000-11-23 06:46:31 +00:00
Alexandre Oliva
422be3c3cc final.c (output_addr_const): Simplify.
* final.c (output_addr_const) [LABEL_REF]: Simplify.
[MINUS]: Enclose non-CONST_INTs in parentheses.
[default]: Try OUTPUT_ADDR_CONST_EXTRA.
* tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
* varasm.c (decode_rtx_const) [CONST]: If it's not something
PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
instead of abort()ing.
* sh.c (output_pic_addr_const): Removed.  Fixed all callers.
* sh.h (OUTPUT_ADDR_CONST_EXTRA): New.  Handle the UNSPECs
formerly handled in output_pic_addr_const.
* sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
operands of MINUS in CONSTs so that decode_rtx_const() will
accept them.

From-SVN: r37691
2000-11-23 06:37:23 +00:00
Alexandre Oliva
43c0563453 sh.md (mova_const): New pattern.
* config/sh/sh.md (mova_const): New pattern.
(GOTaddr2picreg): Use it.
* config/sh/sh.c (broken_move): Match it.
(mova_p): Don't match it.
(machine_dependent_reorg): Adjust it.

From-SVN: r37690
2000-11-23 06:20:16 +00:00
Alexandre Petit-Bianco
5e18f6d629 parse.y (build_outer_field_access): New local `decl_ctx', use it.
2000-11-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (build_outer_field_access): New local `decl_ctx', use
	it. Check for field's context and current class immediate outer
	context inheritance.
	(outer_field_access_p): Consider fields inherited from the last
	enclosing context.
	(build_access_to_thisn): Stop at the last enclosing context if
	necessary.
	Fixes gcj/367.

(http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01335.html)

From-SVN: r37689
2000-11-22 22:04:16 -08:00
David Edelsohn
54214152bd * porting.texi: Expand libtool information.
From-SVN: r37688
2000-11-23 00:51:07 -05:00
Mark Wielaard
abb32cf595 name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup.
2000-11-23  Mark Wielaard  <mark@klomp.org>

	* name-finder.cc (lookup): Check for a NULL _Jv_argv before
	attempting lookup.

From-SVN: r37687
2000-11-23 05:45:47 +00:00
Alexandre Oliva
e11cddecea Formatting and coment changes
From-SVN: r37686
2000-11-23 05:40:27 +00:00
Bryce McKinlay
ebb66eb5fa Vector.java: Improve exception messages.
2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/Vector.java: Improve exception messages.
	(Vector): Check initialCapacity for IllegalArgumentException.
	(tromToSize): Don't check for elementCount == elementData.length
	case.
	(toArray): Don't try to set null marker if target array is the same
	length as the vector.

From-SVN: r37685
2000-11-23 05:18:41 +00:00
Gabriel Dos Reis
23a5b4448c ios_base.h (ios_base::failure::~failure, [...]): Move defintion to ...
* include/bits/ios_base.h (ios_base::failure::~failure,
	ios_base::failure::what): Move defintion to ...

	* src/ios.cc (ios_base::failure::~failure): ... here.
	src/ios.cc (ios::failure::what): Likewise.

From-SVN: r37684
2000-11-23 04:53:40 +00:00
Alexandre Oliva
4773afa487 sh.h (FIRST_GENERAL_REG, [...]): New.
* config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
Moved most register-number #defines...
* config/sh/sh.md (define_constants): ... here.  Use macros to
refer to registers and unspecs.
* config/sh/sh.c: Likewise.

From-SVN: r37683
2000-11-23 04:22:48 +00:00
Benjamin Kosnik
27ddcd48c1 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37682
2000-11-23 03:25:47 +00:00
Richard Henderson
ea88c0f77e ctype_inline.h (is): Fix order of expressions.
2000-11-22  Richard Henderson  <rth@redhat.com>

	* config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.

From-SVN: r37681
2000-11-23 03:03:33 +00:00
J"orn Rennecke
9196ece5c2 gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
	(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
	(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(splay-tree.o, hash.o): Likewise.
	GCONFIG_H: New.
	(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
	(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(hashtab.o): Likewise.
	(gcov.o): Depend on $(CONFIG_H).
	* configure.in: #include insn-codes.h in tm.h.

	f:

	* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).

	java:

	* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).

	cp:

	* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).

From-SVN: r37680
2000-11-23 02:22:03 +00:00
H.J. Lu
3b3bd9a786 * cplus-dem.c (main): Handle gnat_demangling.
From-SVN: r37679
2000-11-22 23:57:50 +00:00
Mark Mitchell
6e1b44bce7 mangle.c (mangle_conv_op_name_for_type): Don't use `__op' prefix.
* mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
	prefix.

From-SVN: r37678
2000-11-22 23:53:03 +00:00
Nick Clifton
dc60a41bed Fix typo
From-SVN: r37677
2000-11-22 23:30:37 +00:00
Mark Mitchell
a862e95888 decl4.C: Tweak so that it fails with the new ABI, too.
* g++.old-deja/g++.other/decl4.C: Tweak so that it fails with the
	new ABI, too.

From-SVN: r37676
2000-11-22 23:24:43 +00:00
Phil Edwards
c361fee040 porting.texi: Minor tweaks to vocabulary.
2000-11-22  Phil Edwards  <pme@sources.redhat.com>

	* porting.texi:  Minor tweaks to vocabulary.

From-SVN: r37675
2000-11-22 23:23:53 +00:00
Mark Mitchell
71ca6fe964 p6610a.C: This test no longer fails.
* g++.old-deja/g++.mike/p6610a.C: This test no longer fails.
	* g++.old-deja/g++.robertl/eb55.C: Likewise.

From-SVN: r37674
2000-11-22 23:10:04 +00:00
Mark Mitchell
cac78ea281 pt.c (do_decl_instantiate): Explicitly clone constructors and destructors that haven't already been cloned.
* pt.c (do_decl_instantiate): Explicitly clone constructors and
	destructors that haven't already been cloned.

From-SVN: r37673
2000-11-22 22:43:49 +00:00
Nick Clifton
57f56af4c5 Make 'newstr' a const char * to avoid a compile time warning.
From-SVN: r37672
2000-11-22 20:51:18 +00:00
Nick Clifton
48a08b9cab Define symbolic names for the link register, last integer register and the fake CC register.
Define symbolic names for the link register, last integer register and the
fake CC register.  Update patterns to use these symbolic names.

From-SVN: r37671
2000-11-22 20:46:40 +00:00
Neil Booth
a16f893b63 * gcc.gd/cpp/Wtrigraphs.c: New test.
From-SVN: r37670
2000-11-22 20:37:44 +00:00
Neil Booth
4a5b68a2f7 cpplex.c (trigraph_ok): Ensure we don't warn twice.
* cpplex.c (trigraph_ok): Ensure we don't warn twice.
	* cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.

From-SVN: r37669
2000-11-22 20:36:10 +00:00
Richard Henderson
a165f034f9 haifa-sched.c (sched_analyze_1): Don't special-case calls for clobbering registers.
* haifa-sched.c (sched_analyze_1): Don't special-case calls
        for clobbering registers.
        (sched_analyze_2): Likewise.
        (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.

From-SVN: r37668
2000-11-22 11:22:58 -08:00
Neil Booth
10ebf5fe40 gcc.c (validate_switches): Validate multiple switches named in '|' (or) expressions in specs.
* gcc.c (validate_switches): Validate multiple switches named
        in '|' (or) expressions in specs.
        (handle_braces): If more than 1 alternative in a '|' spec
        matches, call do_spec1 just once.

From-SVN: r37667
2000-11-22 19:17:14 +00:00
Mark Mitchell
4f3d0af4a4 Compensate for V3 changes
From-SVN: r37666
2000-11-22 19:05:42 +00:00
Joern Rennecke
9f6709e04b Add blank lines between function comment and function return type.
From-SVN: r37665
2000-11-22 18:50:41 +00:00
Joern Rennecke
1c32dd2b28 Comment typo fix.
From-SVN: r37664
2000-11-22 18:49:02 +00:00
Loren J. Rittle
7686cadfb2 ltcf-cxx.sh: Support creation of C++ shared libraries on recent versions of FreeBSD (release...
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * ltcf-cxx.sh: Support creation of C++ shared libraries on
        recent versions of FreeBSD (release 3 or later).
        * ltconfig: On FreeBSD, -lc must not be provided when building
        a shared library or else the standard -pthread gcc option is
        rendered worthless to later users of the built library.

From-SVN: r37663
2000-11-22 18:31:25 +00:00
Loren J. Rittle
b60585a03c eb39.C: Don't include libio.h.
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * g++.old-deja/g++.robertl/eb39.C: Don't include libio.h.

From-SVN: r37662
2000-11-22 18:16:29 +00:00
Michael Meissner
fb0b2546c2 Paper over problem with -frename-registers; Provide help for options
From-SVN: r37661
2000-11-22 18:07:05 +00:00
Loren J. Rittle
5789a524a6 strstream.h: Reinstate the `using' statements.
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * include/backward/strstream.h: Reinstate the `using'
        statements.

From-SVN: r37660
2000-11-22 18:06:53 +00:00