Commit Graph

22482 Commits

Author SHA1 Message Date
Nick Clifton
671d0648e0 Tidied up case statements
From-SVN: r27127
1999-05-24 15:24:52 +00:00
Tom Tromey
a81eb01077 ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.
* java/util/ResourceBundle.java (getBundle): Throw
	NullPointerException if baseName is null.

From-SVN: r27126
1999-05-24 15:00:02 +00:00
Jeffrey A Law
ae188a870e loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the last CODE_LABEL in a loop if...
* loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
	last CODE_LABEL in a loop if we have previously passed a jump
	to the top of the loop.

From-SVN: r27125
1999-05-24 07:43:22 -06:00
Jeffrey A Law
79d6c91640 * gcc.c-torture/execute/990524-1.c: New test.
From-SVN: r27122
1999-05-24 07:27:14 -06:00
Nick Clifton
687f77a15c Fix blunder made when applying patch to arm.h
From-SVN: r27121
1999-05-24 07:58:01 +00:00
Nathan Sidwell
569c1d8ba0 anon3.C: New test.
* g++.old-deja/g++.other/anon3.C: New test.
	* g++.old-deja/g++.other/anon4.C: New test.
	* g++.old-deja/g++.ext/anon1.C: Inhibit -pedantic option.
	* g++.old-deja/g++.g++.robertl/eb131.C/: Remove unrequired ERROR tag,
	after downgrade to warning (cp/ChangeLog: 1999-05-20 Jason
	Merrill).

From-SVN: r27120
1999-05-24 04:24:30 +00:00
Mark Mitchell
e97b5c125c stmt.c (expand_end_bindings): Ignore any elements of VARS that are not VAR_DECLs.
* stmt.c (expand_end_bindings): Ignore any elements of VARS that
	are not VAR_DECLs.

From-SVN: r27118
1999-05-24 00:58:56 +00:00
Mark Mitchell
8bcc97de27 decl.c (lookup_tag): Remove code no longer needed after name-lookup improvements.
* decl.c (lookup_tag): Remove code no longer needed after
	name-lookup improvements.
	* decl2.c (handle_class_head): Make error-recovery more robust.
	* friend.c (make_friend_class): Reject templated typename types.
	* lex.c (is_global): A template parameter isn't global.
	* parse.y (class_head): Robustify.
	* parse.c: Regenerated.

From-SVN: r27117
1999-05-24 00:47:01 +00:00
Jeff Law
480e228634 Daily bump.
From-SVN: r27116
1999-05-23 18:45:33 -06:00
Jeffrey A Law
35676551af * gcc.dg/990524-1.c: New test.
From-SVN: r27114
1999-05-23 17:12:23 -06:00
Franz Sirl
9208b154a2 * gcc.c-torture/compile/990523-1.c: New test.
From-SVN: r27113
1999-05-23 15:26:27 -06:00
Jeff Law
a366a40a7e [multiple changes]
Sun May 23 20:31:16 1999  Jeffrey A Law  (law@cygnus.com)
        * loop.c (strength_reduce): Grow reg_single_usage as needed.
Sun May 23 10:13:20 1999  David O'Brien <obrien@FreeBSD.org>
        * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
        Also remove a useless comment.
Sun May 23 10:05:23 1999  Jerry Quinn <jquinn@nortelnetworks.com>
        * pa.md (negdf2,negsf2):  Use fneg instead of fsub on pa 2.0.

From-SVN: r27111
1999-05-23 13:37:42 -06:00
Jeff Law
1ba5d5ce7a Daily bump.
From-SVN: r27109
1999-05-22 18:45:05 -06:00
Mark Mitchell
4699c56180 pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs, INDIRECT_REFs, and COMPONENT_REFs.
* pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs,
	INDIRECT_REFs, and COMPONENT_REFs.  Handle FIELD_DECLs.

From-SVN: r27108
1999-05-22 19:00:23 +00:00
Jason Merrill
ba50acac81 expected
From-SVN: r27107
1999-05-22 14:44:19 -04:00
David Edelsohn
9d4d5d58b2 collect2.c (main): Only generate import or export file and add to link arguments if non-empty.
* collect2.c (main): Only generate import or export file and add
        to link arguments if non-empty.  Use xmalloc not alloca.
        (write_{export,import}_file): Delete.
        (write_aix_file): New function.
        (locatelib): Use xmalloc not malloc.
        (GCC_OK_SYMBOL): Do not check type if aix64.

From-SVN: r27106
1999-05-22 14:14:31 -04:00
Tom Tromey
93d627acaa ZipInputStream.java (fill): New method.
* java/util/zip/ZipInputStream.java (fill): New method.
	(compressed_len): New instance variable.
	(getNextStream): Set it.
	(read): Reset inflater on EOF.  Only read via `super' if entry is
	deflated.
	(skip): Only skip via `super' if entry is deflated.
	* java/util/zip/Deflater.java (last_input_count): Removed.
	* java/util/zip/natDeflater.cc (deflate): Return 0 if input array
	is length 0.
	(needsInput): Don't use last_input_count.
	(setInput): Don't set last_input_count.
	* java/util/zip/natInflater.cc (getRemaining): Return correct
	result.
	(inflate): Return 0 if input array is length 0.
	(setInput): Don't set last_input_count.
	* java/util/zip/Inflater.java (last_input_count): Removed.

From-SVN: r27105
1999-05-22 18:08:46 +00:00
Alexandre Petit-Bianco
5256aa37b4 [multiple changes]
Sat May 22 13:54:41 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (formal_parameter:): Construct argument tree list
 	element even if a yet unsupported final parameter was encountered.
Tue May 18 00:28:58 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (finish_method_declaration): Issue errors for native or
 	abstract methods declared with a method body, as well as for non
 	native or non abstract methods with no method body.

From-SVN: r27104
1999-05-22 07:38:13 -07:00
Mark Mitchell
61fc8c9e2b cp-tree.h (push_nested_namespace): Declare.
* cp-tree.h (push_nested_namespace): Declare.
	(pop_nested_namespace): Likewise.
	* decl.c (push_nested_namespace): New function.
	(pop_nested_namespace): Likewise.
	* pt.c (instantiate_class_template): Use them.

From-SVN: r27103
1999-05-22 14:26:55 +00:00
Mark Mitchell
9dd03dd98b * tree.c (mapcar): Handle LVALUE_EXPR.
From-SVN: r27101
1999-05-22 11:24:43 +00:00
Philip Blundell
13bd191d0e Apply patch from Philip Blundell <pb@nexus.co.uk> to fix PIC support for
constant tables.

From-SVN: r27100
1999-05-22 09:40:04 +00:00
Philip Blundell
ed4e4c7441 Fix erroneous warning message
From-SVN: r27099
1999-05-22 09:11:10 +00:00
Nick Clifton
d1fbba3887 oops - omitted from previous delta
From-SVN: r27098
1999-05-22 09:07:56 +00:00
Nick Clifton
e2723c6276 Only defined NEED_PLT_GOT if it is not already defined.
From-SVN: r27097
1999-05-22 09:07:33 +00:00
Nick Clifton
c980b85bdc Fix description of a stack element in a PARALLEL generated by FUNCTION_ARG
From-SVN: r27096
1999-05-22 07:18:02 +00:00
Jeff Law
36a2945345 Fix comment (insns -> bytes).
From-SVN: r27095
1999-05-21 23:54:15 -06:00
Ben Elliston
51ccbd8d03 config.guess: Handle NEC UX/4800.
1999-05-22  Ben Elliston  <bje@cygnus.com>
	* config.guess: Handle NEC UX/4800. Contributed by Jiro Takabatake
	<jiro@din.or.jp>.

From-SVN: r27094
1999-05-22 15:41:47 +10:00
Ben Elliston
b1345c7213 config.guess: Merge with FSF version.
1999-05-22  Ben Elliston  <bje@cygnus.com>
	* config.guess: Merge with FSF version. Future changes will be
	more accurately recorded in this ChangeLog.
	* config.sub: Likewise.

From-SVN: r27093
1999-05-22 15:17:55 +10:00
Mark Mitchell
b928a6517e cp-tree.h (cplus_expand_constant): Declare.
* cp-tree.h (cplus_expand_constant): Declare.
	* cvt.c (convert_to_pointer): Expand PTRMEM_CSTs when they're
	converted from one pointer-to-object type to another.
	* expr.c (cplus_expand_constant): Don't make it static.
	* typeck.c (build_component_ref): Don't crash when presented with
	a component which is a TEMPLATE_DECL.
	(build_ptrmemfunc): Tidy.  Clarify comment.  Make sure that even a
	cast from a pointer-to-member constant to its own type does not
	result in a valid non-type template argument.

From-SVN: r27092
1999-05-22 01:30:11 +00:00
Mark Mitchell
4d49638c24 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
From-SVN: r27090
1999-05-22 01:24:58 +00:00
Jeff Law
5e7ccc0cc2 Daily bump.
From-SVN: r27089
1999-05-21 18:45:33 -06:00
Franz Sirl
22b4a3b0b9 rs6000.c (output_mi_thunk): Enable full support again.
Fri May 21 21:19:02 1999  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
        * rs6000.c (output_mi_thunk): Enable full support again.

From-SVN: r27087
1999-05-21 14:23:29 -04:00
Mark Mitchell
adecb3f41f Make-lang.in (cc1plus): Make it depend on gxx.gperf.
* Make-lang.in (cc1plus): Make it depend on gxx.gperf.
	* cp-tree.h: Fix typo in documentation on pointers-to-members.
	(cp_build_qualified_type): Make it a macro.
	(cp_build_qualified_type_real): Declare.
	* decl.c (grokdeclarator): Remove misleading comment.  Avoid
	problem with template parameters and restrict-qualification.
	* gxx.gperf: Replace NORID with RID_UNUSED throughout.
	* hash.h: Regenerated.
	* lex.h (rid): Move RID_FIRST_MODIFIER and RID_LAST_MODIFIER into
	the enumeration.
	(NORID): Remove definition.
	* pt.c (tsubst_aggr_type): Use cp_build_qualified_type_real.
	(tsubst): Likewise.  Remove special handling for FUNCTION_TYPEs.
	(fn_type_unification): Check that the function type resulting from
	the deduction is legal.
	(check_cv_quals_for_unify): Don't handle FUNCTION_TYPEs specially.
	(unify): Use cp_build_qualified_type_real.
	* tree.c (build_cplus_array_type_1): Handle error_marks as inputs.
	(cp_build_qualified_type): Rename to ...
	(cp_build_qualified_type_real): Add additional COMPLAIN parameter
	and modify appropriately.

Co-Authored-By: Nathan Sidwell <nathan@acm.org>

From-SVN: r27086
1999-05-21 15:55:56 +00:00
Mark Mitchell
7133357a34 typeck.c (build_ptrmemfunc): Handle PTRMEM_CSTs carefully to reveal optimization opportunities.
* typeck.c (build_ptrmemfunc): Handle PTRMEM_CSTs carefully to
	reveal optimization opportunities.

From-SVN: r27084
1999-05-21 15:42:55 +00:00
Tom Tromey
41e0e0cdbb Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (INCLUDES): Added $(ZINCS).
	* configure: Rebuilt.
	* configure.in (ZINCS): New subst.

From-SVN: r27083
1999-05-21 13:09:54 +00:00
Joern Rennecke
7df879395a Typo fix in last patch.
From-SVN: r27082
1999-05-21 13:23:23 +01:00
J"orn Rennecke
ec4c28e5b8 * sh.h (BRANCH_COST): Define.
From-SVN: r27081
1999-05-21 13:14:10 +01:00
Mark Mitchell
ef6372557a pt.c (tsubst): Don't issue error messages when we're not complaining...
* pt.c (tsubst): Don't issue error messages when we're not
	complaining, even if we see a qualified function type.
	(check_cv_quals_for_unify): Don't allow a qualified function
	type.

From-SVN: r27080
1999-05-21 09:55:50 +00:00
Andrew Haley
21635bd688 sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to allow the same exceptions to be rethrown...
1999-05-21  Andrew Haley  <aph@cygnus.com>
        * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
        to signal options to allow the same exceptions to be rethrown
        later.

From-SVN: r27079
1999-05-21 06:03:30 +00:00
Jeff Law
9c2553ff59 Daily bump.
From-SVN: r27077
1999-05-20 18:45:03 -06:00
Stephen L Moshier
2caf864f82 Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
Thu May 20 10:00:42 1999   Stephen L Moshier  <moshier@world.std.com>
         * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.

From-SVN: r27074
1999-05-20 16:24:35 -06:00
Jeff Law
1474e30354 [multiple changes]
Thu May 20 10:00:42 1999   Stephen L Moshier  <moshier@world.std.com>
        * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
Thu May 20 09:58:57 1999  Jan Hubicka <hubicka@freesoft.cz>
        * function.c (assign_stack_local): Align stack slot propertly.
        (assign_outer_stack_local): Likewise.

From-SVN: r27073
1999-05-20 16:22:34 -06:00
Jason Merrill
d08940b2c2 class.c (instantiate_type): Downgrade errors for object-dependent memfn refs to pedwarn.
* class.c (instantiate_type): Downgrade errors for object-dependent
	memfn refs to pedwarn.

From-SVN: r27072
1999-05-20 16:19:42 -04:00
Mark Mitchell
e8ea7036e9 decl.c (grokdeclarator): Don't treat [] as indicating a zero-sized array in a typedef.
* decl.c (grokdeclarator): Don't treat [] as indicating a
	zero-sized array in a typedef.

From-SVN: r27070
1999-05-20 18:10:28 +00:00
Mark Mitchell
f0bcd16877 call.c (build_object_call): Don't look at DECL_NAME for a type.
* call.c (build_object_call): Don't look at DECL_NAME for a type.
	(pt.c): Or CP_TYPE_QUALS for an ERROR_MARK.
	(typeck.c): Or TYPE_MAIN_VARIANT for a type.

From-SVN: r27068
1999-05-20 17:19:29 +00:00
Mark Mitchell
06315a9a89 Remove duplicate parameter name
From-SVN: r27067
1999-05-20 17:07:28 +00:00
Mark Mitchell
b886540796 pt.c (for_each_template_parm): Rework to match documentation.
* pt.c (for_each_template_parm): Rework to match documentation.
	Don't be fooled by a COMPONENT_REF with no TREE_TYPE.

From-SVN: r27066
1999-05-20 14:58:40 +00:00
Jason Merrill
6d813d4d85 class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
* class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
	* class.c (finish_base_struct): Allow non-COM bases for COM classes
	except at the leftmost position.
	(modify_one_vtable, fixup_vtable_deltas1, override_one_vtable):
	Pass the binfo's class, not the most derived, to skip_rtti_stuff.
	* search.c (get_abstract_virtuals, expand_upcast_fixups): Likewise.

From-SVN: r27065
1999-05-20 08:21:53 -04:00
Jason Merrill
75153fba81 new
From-SVN: r27064
1999-05-20 08:21:15 -04:00
Jason Merrill
06126ca285 tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
* tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
	(build_cplus_new): Make sure that what we return is of the right type.

From-SVN: r27063
1999-05-20 08:17:36 -04:00