Commit Graph

15741 Commits

Author SHA1 Message Date
Robert Lipe
8600f90403 From Bruno Haible <haible@ilog.fr>:
* execute/980223.c: New test.

From-SVN: r18210
1998-02-23 13:42:53 +00:00
Bruno Haible
3e07bdbd6c * config.sub (sco5): Fix typo.
From-SVN: r18209
1998-02-23 13:16:17 +00:00
Jason Merrill
5633bac1fd tweak
From-SVN: r18208
1998-02-23 07:00:16 -05:00
Jason Merrill
2d6df019f8 comment
From-SVN: r18207
1998-02-23 07:00:04 -05:00
Manfred Hollstein
49f9cda8a2 t-linux (LIBGCC1, [...]): Add macros and set to empty.
e
	* config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and
	set to empty.
	* config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise.
	* config/alpha/t-linux: Remove file.
	* config/sparc/t-linux: Remove file.
	* config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove.
	* config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise.
	* configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux
	for tmake_file.
	(alpha*-*-linux-gnu*): Likewise.
	(sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file.
	(sparc-*-linux-gnu*): Likewise.

From-SVN: r18206
1998-02-23 09:41:10 +00:00
Manfred Hollstein
650036588e t-linux (LIBGCC1, [...]): Add macros and set to empty.
#
	* config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and
	set to empty.
	* config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise.
	* config/alpha/t-linux: Remove file.
	* config/sparc/t-linux: Remove file.
	* config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove.
	* config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise.
	* configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux
	for tmake_file.
	(alpha*-*-linux-gnu*): Likewise.
	(sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file.
	(sparc-*-linux-gnu*): Likewise.

From-SVN: r18205
1998-02-23 09:41:09 +00:00
Manfred Hollstein
3e88bbdb0f t-linux (LIBGCC1, [...]): Add macros and set to empty.
a
	* config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and
	set to empty.
	* config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise.
	* config/alpha/t-linux: Remove file.
	* config/sparc/t-linux: Remove file.
	* config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove.
	* config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise.
	* configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux
	for tmake_file.
	(alpha*-*-linux-gnu*): Likewise.
	(sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file.
	(sparc-*-linux-gnu*): Likewise.

From-SVN: r18204
1998-02-23 09:41:03 +00:00
Manfred Hollstein
9d1ebd25c9 t-linux (LIBGCC1, [...]): Add macros and set to empty.
d
	* config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and
	set to empty.
	* config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise.
	* config/alpha/t-linux: Remove file.
	* config/sparc/t-linux: Remove file.
	* config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove.
	* config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise.
	* configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux
	for tmake_file.
	(alpha*-*-linux-gnu*): Likewise.
	(sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file.
	(sparc-*-linux-gnu*): Likewise.

From-SVN: r18203
1998-02-23 09:41:01 +00:00
Robert Lipe
84bc3b4f02 collect2.c (ldd_file_name): Bracket declaration with same manifests as use.
* collect2.c (ldd_file_name): Bracket declaration with same
        manifests as use.
        (full_real_ld_suffix): Deleted.  Variable was calloced and
        written into, but never read.

From-SVN: r18202
1998-02-23 08:58:16 +00:00
Jason Merrill
f7d98d58fb pt.c, [...]: Remove unused NARGS argument to tsubst and friends.
* pt.c, call.c, decl.c, method.c, cp-tree.h: Remove unused NARGS
	argument to tsubst and friends.

From-SVN: r18201
1998-02-23 00:11:57 -05:00
Jason Merrill
a221d52f55 * pt.c (tsubst, FUNCTION_DECL): Tidy.
From-SVN: r18200
1998-02-22 23:55:44 -05:00
Jason Merrill
138928a696 new
From-SVN: r18199
1998-02-22 22:18:11 -05:00
Jason Merrill
f84b4be9a7 Support for friend templates.
* typeck.c (build_x_function_call): Handle static member function
	templates like non-templates.  Handle friend templates like normal
	function templates.
	* pt.c (tsubst, *_PARM): Don't use orig_level.
	(get_bindings): Don't call add_to_template_args.
	(instantiate_template): Likewise.
	(tsubst, FUNCTION_DECL): Call add_to_template_args as appropriate.
	* ptree.c (print_lang_type): Print index/level for template parms.
	* Make-lang.in (cc1plus): Note that cc1plus depends on
	cp/cp-tree.h and cp/cp-tree.def.
	* cp-tree.def (TEMPLATE_CONST_PARM): Remove.
	(TEMPLATE_PARM_INDEX): New tree code, used to indicate a
	position in a template parameter list.
	* cp-tree.h (template_parm_index): New structure, used as the tree
	structure for a TEMPLATE_PARM_INDEX.
	(TEMPLATE_PARM_IDX): New macro.
	(TEMPLATE_PARM_LEVEL): Likewise.
	(TEMPLATE_PARM_DESCENDANTS): Likewise.
	(TEMPLATE_PARM_ORIG_LEVEL): Likewise.
	(TEMPLATE_PARM_DECL): Likewise.
	(TEMPLATE_TYPE_PARM_INDEX): Likewise.
	(TEMPLATE_TYPE_ORIG_LEVEL): Likewise.
	(TEMPLATE_TYPE_DECL): Likewise.
	(TEMPLATE_CONST_IDX): Remove.
	(TEMPLATE_CONST_LEVEL): Likewise.
	(TEMPLATE_CONST_SET_INFO): Likewise.
	(TEMPLATE_TYPE_SET_INFO): Likewise.
	(TEMPLATE_TYPE_IDX): Redefine in terms of TEMPLATE_PARM_INDEX
	node.
	(TEMPLATE_TYPE_LEVEL): Likewise.
	* decl.c (decls_match): Call comp_template_parms, rather than
	expanding it inline.
	(duplicate_decls): If two template declarations are being merged,
	then their TEMPLATE_INFOs should be merged as well.
	(grokfndecl): Save template-id information when declaring a friend
	with explicit template arguments.  Pass arguments to
	check_explicit_specialization via correct convention; at some
	point check_explicit_specialization changed, but these call-sites
	did not.
	(grokdeclarator): Tidy up slightly.
	* decl2.c (check_classfn): Tidy up slightly.  Don't assume that
	two template functions with the same DECL_ASSEMBLER_NAME the same,
	since the names are not yet mangled.
	* error.c (dump_decl): Use TEMPLATE_PARM_INDEX instead of
	TEMPLATE_CONST_PARM.
	(dump_expr): Likewise.  Use the TEMPLATE_PARM_DECL to get at the
	decl for a non-type parameter, rather than printing `<tparm ...>'.
	* friend.c (is_friend): Handle TEMPLATE_DECL friends.
	(do_friend): Deal with template friends.
	* lex.c (do_pending_inlines): Call
	maybe_begin_member_template_processing, rather than
	conditionally calling begin_member_template_processing.
	(process_next_inline): Likewise.  Call
	maybe_end_member_template_processing, rather than
	conditionally calling end_member_template_processing.
	(do_pending_defargs): Likewise.
	(do_identifier): Use TEMPLATE_PARM_INDEX instead of
	TEMPLATE_CONST_PARM.
	* method.c (build_mangled_template_parm_index): New function.
	(build_overload_value): Use it.
	(build_overload_name): Likewise.
	* pt.c (finish_member_template_decl): Allow friend declarations.
	(template_class_depth): New function.
	(is_member_template): Rename, and modify, to become...
	(is_member_or_friend_template): New function.
	(end_member_template_processing): Rename, and modify, to become...
	(maybe_end_member_template_processing).
	(build_template_parm_index): New function.
	(reduce_template_parm_level): New function.
	(process_template_parm): Modify to use build_template_parm_index.
	(current_template_args): Change name to current_template_parms.
	(push_template_decl): Deal with friend templates.
	(uses_template_parms): Use TEMPLATE_PARM_INDEX instead of
	TEMPLATE_CONST_PARM.
	(tsubst_friend_function): New function.
	(instantiate_class_template): Generate the DECL_FRIENDLIST
	for a new instantiation by using tsubst_friend_function rather
	than just tsubst.
	(tsubst): Don't tsubst into a type which is a TEMPLATE_DECL.
	Use TEMPLATE_PARM_INDEX instead of TEMPLATE_CONST_PARM, and the
	appropriate new macros.  Use reduce_template_parm_level to
	generate lower-level template parameters.  Handle tsubst'ing into
	TEMPLATE_DECLS that declare TEMPLATE_TEMPLATE_PARMS.  Don't forget
	to tsubst the DECL_CONTEXT and DECL_CLASS_CONTEXT of newly created
	templates.  Similarly for the template parameters for a new
	template.
	(tsubst_copy): Tidy up slightly.  Use TEMPLATE_PARM_INDEX instead
	of TEMPLATE_CONST_PARM.  Handle TYPE_DECLs by tsubsting into them.
	(unify): Use TEMPLATE_PARM_INDEX instead of TEMPLATE_CONST_PARM.
	(get_bindings): Call add_to_template_args if necessary.
	(instantiate_decl): Handle instantiations of friend templates.
	* search.c (lookup_field_1): Don't treat the TYPE_FIELDS of a
	TEMPLATE_TYPE_PARM as a list of fields; it's not!
	* spew.c (yylex): Do a little manual constant propogation to
	clarify the code.

From-SVN: r18198
1998-02-22 22:17:44 -05:00
Mike Stump
9e89df5017 configure.in: Add support for i386-wrs-vxworks configuration.
* configure.in: Add support for i386-wrs-vxworks configuration.
        * i386/vxi386.h: New file.

From-SVN: r18197
1998-02-22 16:10:06 -07:00
Bruno Haible
1160f9ec40 tree.c (contains_placeholder_p): Ensure function always returns a value.
* tree.c (contains_placeholder_p): Ensure function always returns
        a value.
        * sparc.md (movdi_sp64_insn): Add default case in enumeration switch.
        (movsf_const_insn, movdf_const_insn, movtf_const_insn): Likewise.

From-SVN: r18196
1998-02-22 13:17:30 -07:00
Jeffrey A Law
328da75c23 * vms.h (SELECT_SECTION): Use TREE_CODE_CLASS correctly.
From-SVN: r18195
1998-02-22 12:55:58 -07:00
Craig Burley
b50fa387cb expr.c (ffeexpr_token_arguments_): Make sure outer exprstack isn't null.
* expr.c (ffeexpr_token_arguments_): Make sure
	outer exprstack isn't null.

From-SVN: r18190
1998-02-22 12:39:08 -07:00
Craig Burley
a52ad720f4 * Make-lang.in (f77.install-info): Fix typo in script.
From-SVN: r18189
1998-02-22 12:37:26 -07:00
Jeff Law
56a0044b23 Another bunch of patches from Craig. See ChangeLogs for details.
From-SVN: r18188
1998-02-22 12:36:33 -07:00
Craig Burley
86fc7a6c5d Improve run-time diagnostic for "PRINT '(I1', 42":
* com.c (ffecom_char_args_x_): Renamed from ffecom_char_args_,
        which is now a macro (to avoid lots of changes to other code)
        with new arg, ffecom_char_args_with_null_ being another new
        macro to call same function with different value for new arg.
        This function now appends a null byte to opCONTER expression
        if the new arg is TRUE.
        (ffecom_arg_ptr_to_expr): Support NULL length pointer.
        * ste.c (ffeste_io_cilist_):
        (ffeste_io_icilist_): Pass NULL length ptr for
        FORMAT expression, so null byte gets appended where
        feasible.
        * target.c (ffetarget_character1):
        (ffetarget_concatenate_character1):
        (ffetarget_substr_character1):
        (ffetarget_convert_character1_character1):
        (ffetarget_convert_character1_hollerith):
        (ffetarget_convert_character1_integer4):
        (ffetarget_convert_character1_logical4):
        (ffetarget_convert_character1_typeless):
        (ffetarget_hollerith): Append extra phantom null byte as
        part of FFETARGET-NULL-BYTE kludge.
Yes, even more patches from Craig :-)

From-SVN: r18187
1998-02-22 12:31:54 -07:00
Craig Burley
99ce4a1111 intrin.c (ffeintrin_check_): No longer ignore explicit omitted trailing args.
* intrin.c (ffeintrin_check_): No longer ignore explicit
        omitted trailing args.
        * intrin.c (ffeintrin_fulfill_generic): Don't generate
        FFEBAD_INTRINSIC_TYPE for CHARACTER*(*) intrinsic.
More patches from Craig

From-SVN: r18186
1998-02-22 12:29:55 -07:00
Craig Burley
30286a3690 Make-lang.in (f77.install-common): Don't install, and don't uninstall existing, Info files if f/g77.info doesn't exit.
* Make-lang.in (f77.install-common): Don't install, and
        don't uninstall existing, Info files if f/g77.info
        doesn't exit.  (This is a somewhat modified version
        of an egcs patch on 1998-01-07 12:05:51 by Bruno Haible
        <bruno@linuix.mathematik.uni-karlsruhe.de>.

From-SVN: r18185
1998-02-22 12:28:41 -07:00
Craig Burley
66172faaa8 * intrin.def: Fix up spacing a bit.
From-SVN: r18184
1998-02-22 12:27:44 -07:00
Jeff Law
e2fa159e1d com.c (ffecom_arglist_expr_): Crash if non-supplied optional arg isn't passed as an address.
* com.c (ffecom_arglist_expr_): Crash if non-supplied
        optional arg isn't passed as an address.
        Pass null pointer explicitly, instead of via ffecom routine.
        If incoming argstring is NULL, substitute pointer to "0".
        Recognize '0' as ending the usual arg stuff, just like '\0'.
        * com.c (ffecom_arglist_expr_): Pass null pointers for optional
        args which aren't supplied.
More patches from Craig.

From-SVN: r18183
1998-02-22 12:26:46 -07:00
Craig Burley
6d43319624 Various changes from Craig. See the appropriate ChangeLog files.
From-SVN: r18182
1998-02-22 12:25:07 -07:00
Craig Burley
575094a2d6 Support FORMAT(I<1+2>) (constant variable-FORMAT expressions):
Support FORMAT(I<1+2>) (constant variable-FORMAT
        expressions):
        * bad.def (FFEBAD_FORMAT_VARIABLE): New diagnostic.
        * std.c (ffestd_R1001rtexpr_): New function.
        (ffestd_R1001dump_, ffestd_R1001dump_1005_1_,
        ffestd_R1001dump_1005_2_, ffestd_R1001dump_1005_3_,
        ffestd_R1001dump_1005_4_, ffestd_R1001dump_1005_5_,
        ffestd_R1001dump_1010_2_, ffestd_R1001dump_1010_3_,
        ffestd_R1001dump_1010_4_, ffestd_R1001dump_1010_5_):
        Use new function instead of ffestd_R1001error_.
        * stb.c (ffestb_R10014_, ffestb_R10016_, ffestb_R10018_,
        ffestb_R100110_): Restructure `for' loop for style.
Change from Craig.

From-SVN: r18181
1998-02-22 12:21:21 -07:00
Jeff Law
45c4886986 sol2-sld.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Define this new symbol.
/
	* config/sparc/sol2-sld.h (LINKER_DOES_NOT_WORK_WITH_DWARF2):
	Define this new symbol.
	(DWARF2_DEBUGGING_INFO, DWARF_DEBUGGING_INFO): Do not #undef.
	* toplev.c (main): Do not default to DWARF2_DEBUG with -ggdb if
	LINKER_DOES_NOT_WORK_WITH_DWARF2 is defined.

From-SVN: r18180
1998-02-22 12:09:19 -07:00
Paul Eggert
deabc777da sol2-sld.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Define this new symbol.
d
	* config/sparc/sol2-sld.h (LINKER_DOES_NOT_WORK_WITH_DWARF2):
	Define this new symbol.
	(DWARF2_DEBUGGING_INFO, DWARF_DEBUGGING_INFO): Do not #undef.
	* toplev.c (main): Do not default to DWARF2_DEBUG with -ggdb if
	LINKER_DOES_NOT_WORK_WITH_DWARF2 is defined.

From-SVN: r18179
1998-02-22 12:09:18 -07:00
Jim Wilson
0e84e8fbca iris5.h (DWARF2_UNWIND_INFO): Define to 0.
* iris5.h (DWARF2_UNWIND_INFO): Define to 0.
        * iris5gas.h (DWARF2_UNWIND_INFO): Define to 1.

From-SVN: r18178
1998-02-22 12:05:13 -07:00
Jeffrey A Law
e30416cfd9 * error.c: Include sys/types.h.
From-SVN: r18176
1998-02-22 11:57:30 -07:00
Jeff Law
1ce26fc44c Tweak various entries to make them match devo.
From-SVN: r18175
1998-02-22 09:58:47 -07:00
Jeff Law
aa0e164e1d vmsbuild.com [...]: Synchronized with Makefile.in: Add fnmatch.o and objalloc.o; remove vasprintf.o.
�
        * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
        Add fnmatch.o and objalloc.o; remove vasprintf.o.
        [config.h]: Define NEED_strsignal.
        * functions.def: Correct argument types for strerror and
        strsignal.  Reported by Alex Gutman <agutman@emc.com>.

From-SVN: r18174
1998-02-22 09:55:25 -07:00
Jeff Law
a1d73ea061 vmsbuild.com [...]: Synchronized with Makefile.in: Add fnmatch.o and objalloc.o; remove vasprintf.o.
$
        * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
        Add fnmatch.o and objalloc.o; remove vasprintf.o.
        [config.h]: Define NEED_strsignal.
        * functions.def: Correct argument types for strerror and
        strsignal.  Reported by Alex Gutman <agutman@emc.com>.

From-SVN: r18173
1998-02-22 09:55:24 -07:00
Jeff Law
76a8b46efe vmsbuild.com [...]: Synchronized with Makefile.in: Add fnmatch.o and objalloc.o; remove vasprintf.o.
P
        * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
        Add fnmatch.o and objalloc.o; remove vasprintf.o.
        [config.h]: Define NEED_strsignal.
        * functions.def: Correct argument types for strerror and
        strsignal.  Reported by Alex Gutman <agutman@emc.com>.

From-SVN: r18172
1998-02-22 09:55:23 -07:00
Jeff Law
5890bc92d4 cplus-dem.c (gnu_special): Don't get confused by .<digits> strings that are not actually lengths.
* cplus-dem.c (gnu_special): Don't get confused by .<digits>
	strings that are not actually lengths.
	* config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
	since it gets built automatically
	* vasprintf.c (int_vasprintf): Increase buffer size for float/double
	values.

From-SVN: r18171
1998-02-22 09:53:40 -07:00
Jeff Law
8b715b2abc alloca-norm.h (alloca, GCC case): Don't redefine alloca if it was alr eady defined previously.
* alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
        was alr eady defined previously.
        * Makefile.in (INSTALL): Use ../install-sh, not install.

From-SVN: r18170
1998-02-22 09:46:27 -07:00
Ian Lance Taylor
b134508bdf getopt.c: Update to latest FSF version.
* getopt.c: Update to latest FSF version.
        * getopt1.c: Likewise.
Bring over from devo.

From-SVN: r18169
1998-02-22 09:44:13 -07:00
Jeff Law
2b63596afe configure.in: For *-*-cygwin32*, add a -I for winsup to both XCINCLUDES and XCXXINCLUDES.
* configure.in: For *-*-cygwin32*, add a -I for winsup to both
	XCINCLUDES and XCXXINCLUDES.
	* config.shared: Use ${host_includes} when setting CXXINCLUDES in
	the DOING_LIBGXX case.
	* Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and
	$(CXXINCLUDES) in CXX when running gen-params.
	* config.shared (THIS_FILE): Really found via TOLIBIO instead
	of TOLIBCXX, which is empty when configuring gperf.
	(LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR
	instead of hardcoded "../".

From-SVN: r18168
1998-02-22 09:31:03 -07:00
Richard Henderson
9c37957a85 * objc/Object.m (-error): Call objc_verror with our va_list.
From-SVN: r18167
1998-02-22 07:33:39 -08:00
David Edelsohn
e3c49f52e9 collect2.c (scan_prog_file): Completely cover uses of variable `exports' with macro COLLECT_EXPORT_LIST.
* collect2.c (scan_prog_file): Completely cover uses of variable
        `exports' with macro COLLECT_EXPORT_LIST.

From-SVN: r18163
1998-02-22 04:48:22 -05:00
Jeff Law
9ae83aa02c Didn't belong in the egcs sources.
From-SVN: r18162
1998-02-21 14:09:28 -07:00
Jeffrey A Law
d935d60e37 Bump for snapshot
From-SVN: r18159
1998-02-21 13:36:25 -07:00
Michael Meissner
3c6748574a Remove old code to get arguments in regs into pseudos early.
From-SVN: r18148
1998-02-20 13:24:50 +00:00
Jason Merrill
b51829099d oops
From-SVN: r18141
1998-02-20 07:31:00 -05:00
Jason Merrill
63f38a9064 oops
From-SVN: r18140
1998-02-20 07:30:20 -05:00
Jason Merrill
c2d731c4e9 * collect2.c (main): Still handle !do_collecting for non-AIX targets.
From-SVN: r18139
1998-02-20 07:28:16 -05:00
Jason Merrill
96abf60005 ropeimpl.h: Check __STL_PTHREADS instead of _PTHREADS.
* ropeimpl.h: Check __STL_PTHREADS instead of _PTHREADS.
	* stl_alloc.h: Ditto.
	* stl_config.h: Ditto.
	* stl_rope.h: Ditto.
	* stl_config.h: include <_G_config.h> if __GNUG__ is defined.
	(__STL_PTHREADS): Defined if _PTHREADS is defined or
	__GLIBC__ >= 2.

From-SVN: r18138
1998-02-20 06:13:44 -05:00
Michael Tiemann
9766dbcffc Patch from Michael Tiemann to fix typo.
* ginclude/va-mips.h (va_arg): Remove trailing space after '\'
	continuation character (line 243).

From-SVN: r18136
1998-02-20 02:42:11 -08:00
Andreas Schwab
01a7aaeade * genrecog.c (main): Remove duplicated sentence in emitted comment.
From-SVN: r18134
1998-02-20 03:17:40 +00:00
David Edelsohn
db126753a6 [multiple changes]
Thu Feb 19 22:36:53 1998  Andrey Slepuhin  <pooh@msu.net>
			  David Edelsohn  <edelsohn@mhpcc.edu>
	* collect2.c (XCOFF_SCAN_LIBS): Remove.
	(export_flag): New variable.
	(export_file): #ifdef COLLECT_EXPORT_LIST.
	(import_file, exports, imports, undefined): New variables.
	(libs, cmdline_lib_dirs, libpath_lib_dirs, libpath, libexts): Same.
	(dump_list, dump_prefix_list, is_in_list): New functions.
	(write_export_file): $ifdef COLLECT_EXPORT_LIST.
	(write_import_file, resolve_lib_name): New functions.
	(use_import_list, ignore_library): Same.
	(collect_exit): maybe_unlink import_file and #ifdef.
	(handler): Same.
	(main): New variable importf, #ifdef exportf.  Move parsing of
 	-shared before general argument parsing.  Resolve AIX library
 	paths and import libgcc.a symbols.  Treat .so shared libraries the
 	same as objects and .a libraries.  Create alias for object_lst and
 	increment it instead of original pointer.  Scan AIX libraries as
 	objects earlier instead of using scan_libraries.  Perform AIX
 	tlink later to resolve templates instead of forking ld.
	(GCC_OK_SYMBOL): Ensure symbol not in undef section.
	(GCC_UNDEF_SYMBOL): New macro.
	(scan_prog_file): Loop for members of AIX libraries.  Handle
 	export/import of ctors/dtors.
	(aix_std_libs): New variable.
	(scan_libraries, XCOFF): Delete.
Fri Feb 19 22:36:52 1998  Robert Lipe   <robertl@dgii.com>
	* collect2.c (full_real_ld_suffix): #ifdef CROSS_COMPILE.

From-SVN: r18128
1998-02-19 14:41:03 -05:00