Commit Graph

22317 Commits

Author SHA1 Message Date
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
Mark Mitchell
87533b37c7 cp-tree.h (make_ptrmem_cst): New function.
* cp-tree.h (make_ptrmem_cst): New function.
	* expr.c (cplus_expand_constant): Split out from ...
	(cplus_expand_expr): Here.  Use cplus_expand_constant.
	(init_cplus_expand): Set lang_expand_constant.
	* pt.c (convert_nontype_argument): Use make_ptrmem_cst.
	* tree.c (make_ptrmem_cst): Define.
	* typeck.c (unary_complex_lvalue): Use make_ptrmem_cst.
	* typeck2.c (initializer_constant_valid_p): Use make_ptrmem_cst.

From-SVN: r27060
1999-05-20 10:44:47 +00:00
Mark Mitchell
e697e20a89 expr.h (lang_expand_constant): Declare.
* expr.h (lang_expand_constant): Declare.
	* toplev.c (lang_expand_constant): Define it.
	* varasm.c (output_constant): Use it.

From-SVN: r27058
1999-05-20 10:37:50 +00:00
Kaveh R. Ghazi
f96b337ae4 optabs.c (expand_cmplxdiv_straight, [...]): Change function definitions to K&R style.
* optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
        Change function definitions to K&R style.

From-SVN: r27057
1999-05-20 08:29:52 +00:00
Andrew Haley
554b61bb30 prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.
1999-05-20  Andrew Haley  <aph@cygnus.com>
        * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
        added.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
        (INIT_FPE): Exception string made more informative.
        * include/sparc-signal.h (INIT_FPE): Exception string made more
        informative.
        * testsuite/libjava.lang/Divide_1.java: New file.
        * testsuite/libjava.lang/Divide_1.out: New file.

From-SVN: r27056
1999-05-20 08:26:55 +00:00
Bruce Korb
bf3118d04b A fix for one breaks another :( - do not ignore SIGCLD!
From-SVN: r27055
1999-05-20 08:19:05 +00:00
Alexandre Oliva
48ac9ce28c static initialization removal & K&R-ification
From-SVN: r27052
1999-05-20 07:10:41 +00:00
Jeff Law
6de94858b9 libchill, libf2c, libobjc:
* configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.
libio, libstdc++
        * configure.in: Test for ${compiler_name}.exe as well.

From-SVN: r27050
1999-05-19 20:27:28 -06:00
Andreas Schwab
3d3fcaef67 dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the label name.
* config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
        asm_fprintf and %L to generate the label name.
        * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
        (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.

From-SVN: r27048
1999-05-19 19:54:28 -06:00
Jeff Law
eacc0666b0 Daily bump.
From-SVN: r27046
1999-05-19 18:52:36 -06:00
Jeff Law
f8d41a69ee jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.
p
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27043
1999-05-19 18:41:26 -06:00
Jeff Law
b87bc8f3ad jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.
�
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27042
1999-05-19 18:41:24 -06:00
Jeff Law
13b6b42c3f mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...
x
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27038
1999-05-19 17:06:13 -06:00
Jeff Law
1945961b39 mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...
�
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27037
1999-05-19 17:06:09 -06:00
Mark Mitchell
11f9878883 * pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.
From-SVN: r27034
1999-05-19 20:01:04 +00:00
Tom Tromey
550c249201 aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.

From-SVN: r27033
1999-05-19 12:55:15 +00:00