Commit Graph

26 Commits

Author SHA1 Message Date
John David Anglin
0ca179b2de * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
From-SVN: r44725
2001-08-08 20:57:38 +00:00
Mark Mitchell
049f6ec972 gcc.c (init_gcc_specs): New function.
* gcc.c (init_gcc_specs): New function.  Make -shared-libgcc
	the default when building a shared object.
	(init_spec): Use it.
	* testsuite/lib/g++.exp: Include the directory where libgcc
	is located to the LD_LIBRARY_PATH list.
	* inovke.texi (-shared-libgcc): Document the cases in which

	* Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
	of macros used when compiling g++spec.c.
	* g++spec.c (lang_specific_driver): Link with the shared
	libgcc by default.

From-SVN: r39408
2001-02-02 17:42:00 +00:00
Jason Merrill
60696c53ec decl2.c (arg_assoc_class): Fix double iteration logic.
* decl2.c (arg_assoc_class): Fix double iteration logic.

        * init.c (build_delete): Always call convert_force to strip cv-quals.

        * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
        * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
        * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.

From-SVN: r39133
2001-01-19 10:12:33 -05:00
Phil Edwards
a26e7fb5aa g++spec.c: Don't add libraries needlessly if -fsyntax-only was given.
2001-01-16  Phil Edwards  <pme@sources.redhat.com>

	* g++spec.c:  Don't add libraries needlessly if -fsyntax-only
	  was given.

From-SVN: r39069
2001-01-16 16:10:47 +00:00
Zack Weinberg
37620334d9 gcc.h (lang_specific_driver): Constify second argument.
* gcc.h (lang_specific_driver): Constify second argument.
	* gcc.c (translate_options, process_command, main): Likewise.
	Constify variables to match.  Cast second argument to
	pexecute.

	* cppspec.c, gccspec.c, g++spec.c, g77spec.c, jvspec.c: Adjust
	type of second argument to lang_specific_driver, and update
	code as necessary.

From-SVN: r35433
2000-08-02 20:21:27 +00:00
Mark Mitchell
834c6dff7b * tree.h (TYPE_ALIGN_UNIT): New macro.
From-SVN: r32302
2000-03-03 02:27:15 +00:00
Nathan Sidwell
eeb109f2cf g++spec.c (lang_specific_driver): Add -fnew-abi if ENABLE_NEW_GXX_ABI defined.
* g++spec.c (lang_specific_driver): Add -fnew-abi if
	ENABLE_NEW_GXX_ABI defined.
	* Make-lang.in (tinfo.o, tinfo2.o, exception.o, new.o,
	opnew.o, opnewnt.o, opvnew.o, opvnewnt.o, opdel.o, opdelnt.o,
	opvdel.o, opvdelnt.o): Use GXX_ABI_FLAG switch.

From-SVN: r31388
2000-01-13 15:37:03 +00:00
Kaveh R. Ghazi
9257393c20 Makefile.in (gcc.o, [...]): Depend on gcc.h.
* Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.

	* gcc.h: New file.
	(lang_specific_driver): Don't take a function pointer parameter.
	All callers changed.

	* gcc.c: Include gcc.h.
	(do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
	lang_specific_extra_outfiles, fatal): Don't declare.
	(multilib_defaults_raw): Constify.
	(read_specs): Call memset, rather than bzero.
	(main): Call return, not exit.
	(lookup_compiler): Call memcpy, not bcopy.
	(fatal): Make extern.

	* cppspec.c: Include gcc.h.
	(lang_specific_driver): Initialize variable `quote'.  Constify a
	char*.  All calls to the function pointer parameter now
	explicitly call `fatal'.

	* gccspec.c (lang_specific_driver): Include gcc.h.

cp:

	* Make-lang.in (g++spec.o): Depend on system.h and gcc.h.

	* g++spec.c: Include gcc.h.
	(lang_specific_driver): Constify a char*.  Call xcalloc, not
 	xmalloc/bzero.  All calls to the function pointer parameter now
 	explicitly call `fatal'.

f:

	* Make-lang.in (g77spec.o): Depend on system.h and gcc.h.

	* g77spec.c: Include gcc.h.
	(g77_xargv): Constify.
	(g77_fn): Add parameter prototypes.
	(lookup_option, append_arg): Add static prototypes.
	(g77_newargv): Constify.
	(lookup_option, append_arg, lang_specific_driver): Constify a char*.
	(lang_specific_driver): All calls to the function pointer
 	parameter now explicitly call `fatal'.

java:

	* Make-lang.in (jvspec.o): Depend on system.h and gcc.h.

	* jvspec.c: Include gcc.h.  Don't include gansidecl.h.
	(do_spec, lang_specific_pre_link, lang_specific_driver,
	input_filename, input_filename_length): Don't declare.
	(main_class_name, jvgenmain_spec, lang_specific_driver):
	Constify a char*.
	(lang_specific_driver): All calls to the function pointer
	parameter now explicitly call `fatal'.

From-SVN: r29367
1999-09-13 03:57:40 +00:00
Mumit Khan
732d9b8ce2 * g++spec.c (lang_specific_driver): Add room for NULL in arglist.
From-SVN: r28812
1999-08-23 22:20:18 -06:00
Jeff Law
c12f524223 Copyright fixes.
From-SVN: r24537
1999-01-06 13:57:36 -07:00
Mark Elbrecht
18cd4dedd4 g++spec.c (LIBSTDCXX): Provide default definition.
* g++spec.c (LIBSTDCXX): Provide default definition.
        (lang_specific_driver): Use LIBSTDCXX instead of "-lstdc++".

From-SVN: r24509
1999-01-05 19:23:10 -07:00
Kaveh R. Ghazi
9d483bc479 * g++spec.c: Don't prototype xmalloc.
From-SVN: r23932
1998-11-27 10:10:02 +00:00
Jason Merrill
0b5be8972f update copyrights
From-SVN: r23764
1998-11-22 22:12:41 -05:00
Kaveh R. Ghazi
93d34cacab cp-tree.h: Don't include gansidecl.h.
* cp-tree.h: Don't include gansidecl.h.
        * exception.cc: Include gansidecl.h (since we don't include config.h)
        * g++spec.c: Don't include gansidecl.h.

From-SVN: r23557
1998-11-07 12:54:34 +00:00
Jason Merrill
b54ccf71d5 class.c (get_enclosing_class): New function.
* class.c (get_enclosing_class): New function.
	(is_base_of_enclosing_class): Likewise.
	* cp-tree.h (get_enclosing_class): Declare.
	(is_base_of_enclosing_class): Likewise.
	* pt.c (coerce_template_parms): Use them.
	* g++spec.c (lang_specific_driver): Check whether MATH_LIBRARY is
	null to decide whether to use it.

From-SVN: r22343
1998-09-08 22:14:55 -04:00
Fred Fish
17294adfeb g++spec.c (NEED_MATH_LIBRARY): Define to 1 if not already defined.
* g++spec.c (NEED_MATH_LIBRARY): Define to 1 if not already defined.
        (lang_specific_driver): Initialize need_math with NEED_MATH_LIBRARY.
        (lang_specific_driver): Only add -lm automatically if need_math is
        nonzero.

From-SVN: r20765
1998-06-27 16:36:57 -06:00
Per Bothner
8db79477cd Fix typo.
From-SVN: r20260
1998-06-05 17:49:35 -07:00
Per Bothner
240661ba4d g++spec (lang_specific_pre_link, [...]): Define - update needed by gcc.c change.
(
	* g++spec (lang_specific_pre_link, lang_specific_extra_ofiles):
	Define - update needed by gcc.c change.

From-SVN: r20246
1998-06-05 08:51:31 -07:00
Jim Wilson
8491463400 Patches to give useful error when no files specified.
* g++spec.c (lang_specific_driver): New argument in_added_libraries.
	New local added_libraries.  Increment count when add library to
	arglist.

From-SVN: r19279
1998-04-18 08:26:22 -07:00
Jeffrey A Law
8d052bc70c call.c: Include system.h.
* call.c: Include system.h.  Remove includes, declarations and
        defines provided by system.h.
        * class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise.
        * except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise.
        * lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise.
        * semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise.
        * typeck2.c, xref.c: Likewise.
        * Makefile.in: Dependencies updated as appropriate.
        * Make-lang.in: Likewise.
system.h cutover from the cp subdir

From-SVN: r18917
1998-03-31 06:25:46 -07:00
Brendan Kehoe
5b76d03baa add GPL comment at the top
From-SVN: r15884
1997-10-09 21:18:29 -04:00
Jason Merrill
49c249e1c8 [multiple changes]
Wed Aug 20 17:25:08 1997  Jason Merrill  <jason@yorick.cygnus.com>

	* call.c (is_subseq): Don't try to be clever.

Wed Aug 20 03:13:36 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)

	* parse.y, pt.c: Include "except.h".
	* call.c, class.c, class.h, cp-tree.h, cvt.c, decl.c, decl2.c,
 	error.c, except.c, expr.c, friend.c, g++spec.c, init.c, input.c,
 	lex.c, lex.h, method.c, parse.y, pt.c, repo.c, rtti.c, search.c,
 	sig.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c: Finish
 	prototyping.

Wed Aug 20 01:34:40 1997  Jason Merrill  <jason@yorick.cygnus.com>

	* decl2.c (mark_vtable_entries): Instead of replacing pure
	virtuals with a reference to __pure_virtual, copy the decl and
	change the RTL.

From-SVN: r14868
1997-08-20 20:50:39 -04:00
Jason Merrill
da20811c09 merge
From-SVN: r14852
1997-08-19 18:37:19 -04:00
Mike Stump
2ba25f504d 90th Cygnus<->FSF quick merge
From-SVN: r13673
1997-02-21 20:28:30 +00:00
Brendan Kehoe
1bf2b2d2a8 g++spec.c (lang_specific_driver): Put missing hyphen in front of arguments we compare against.
* g++spec.c (lang_specific_driver): Put missing hyphen in front of
        arguments we compare against.  Start the count of I at 1, not 0,
        since argv[0] is still the command.

From-SVN: r13338
1996-12-20 15:26:35 -05:00
Mike Stump
f442f7234e Initial revision
From-SVN: r13320
1996-12-18 02:45:53 +00:00