Commit Graph

234 Commits

Author SHA1 Message Date
Mumit Khan a3105a8956 pexecute.c (pexecute): New function for mingw32.
* pexecute.c (pexecute): New function for mingw32. Supports pipes.
        (pwait): New function for mingw32.
        * gcc.c (execute): Mingw32 pexecute() supports pipes, but cygwin32
        pipe support is broken for now.

Co-Authored-By: J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>

From-SVN: r17396
1998-01-17 14:33:56 -07:00
Jeff Law 956d69504d Merge from gcc-2.8
From-SVN: r16987
1997-12-06 17:31:01 -07:00
Jeff Law da932f04bf m68k.c: Include tree.h for dwarf2out_cfi_label.
* m68k.c: Include tree.h for dwarf2out_cfi_label.

        * gcc.c (process_command): Do not take address of function fatal when
        calling lang_specific_driver.

        * config/i386/cygwin32.h (DWARF2_UNWIND): Exception handling
        doesn't work with it yet, so set it to 0.
        * config/i386/xm-cygwin32.h (NO_SYS_SIGLIST): Define.

        * cse.c (cse_insn): Check for invalid entries when taking references.
More assorted pending patches.

From-SVN: r16978
1997-12-06 08:48:29 -07:00
Jeff Law e9a25f70a0 Update mainline egcs to gcc2 snapshot 971021.
From-SVN: r16278
1997-11-02 14:19:36 -07:00
Jeffrey A Law a63d08e606 cccp.c (sys_errlist): Remove special 4.4bsd declaration.
* cccp.c (sys_errlist): Remove special 4.4bsd declaration.
        * collect2.c (sys_errlist): Likewise.
        * cpplib.c (sys_errlist): Likewise.
        * gcc.c (sys_errlist): Likewise.
        * protoize (sys_errlist): Likewise.
        * configure.in: Check for strerror.
        * xm-freebsd.h (HAVE_STRERROR): Remove definition.
        * xm-gnu.h (HAVE_STRERROR): Likewise.
        * xm-linux.h (HAVE_STRERROR): Likewise.
        * xm-netbsd.h (HAVE_STRERROR): Likewise.
        * xm-bsd386.h (HAVE_STRERROR): Likewise.
        * xm-cygwin32.h (HAVE_STRERROR): Likewise.
        * xm-dos.h (HAVE_STRERROR): Likewise.
        * xm-mingw32.h (HAVE_STRERROR): Likewise.
        * xm-pa.h (HAVE_STRERROR): Likewise.
        * xm-papro.h (HAVE_STRERROR): Likewise.
        * xm-sysv4.h (HAVE_STRERROR): Likewise.
        * configure, config.in: Rebuilt.
Remove the need to define HAVE_STRERROR for each host port.

From-SVN: r15011
1997-09-01 11:02:53 -06:00
Jeff Law 45832e2182 Take out __EGCS__ and __EGCS_MINOR__.
From-SVN: r14839
1997-08-18 21:42:44 -06:00
Jeffrey A Law 094420edc0 gcc.c (default_compilers): Add __EGCS__ and __EGCS_MINOR__ predefines.
* gcc.c (default_compilers): Add __EGCS__ and __EGCS_MINOR__
        predefines.

From-SVN: r14822
1997-08-17 15:15:15 -06:00
Jeffrey A Law 9af0625405 version.c: Change the version string to look like...
* version.c: Change the version string to look like:
        egcs-1.0.0 970814 (gcc2-970802 experimental).

        * gcc.c: Take out experimental snapshot warning message.

From-SVN: r14811
1997-08-15 12:50:36 -06:00
Jeffrey A Law aa32d84158 * Integrate tlink patch from jason@cygnus.com
* gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
        (process_command): Increment n_switches for them.  Don't discard
        their args.  Validate them.
        (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
        From Rohan Lenard.
        (process_command): Set include_prefixes from COMPILER_PATH.
        (main): Set COLLECT_GCC_OPTIONS sooner.
        * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
        * tlink.c, hash.c, hash.h: New files.
        * Makefile.in (USE_COLLECT2): Always use collect2.
        (collect2): Depend on and link in hash.o and tlink.o.
        (tlink.o, hash.o): Add dependencies.

tlink patches from Jason.

From-SVN: r14769
1997-08-11 14:23:53 -06:00
Jeff Law 861bb6c1b0 Initial revision
From-SVN: r14764
1997-08-11 09:56:58 -06:00
Richard Kenner bdc5ed93ce (convert_filename): Fix typo.
From-SVN: r14440
1997-07-14 08:17:39 -04:00
Richard Kenner a23ea59844 (process_command): If -save-temps and -pipe were specified together,
don't do -pipe.

From-SVN: r14415
1997-07-13 14:03:18 -04:00
Doug Evans 7ad9ff7a2b gcc.c (main): Handle blank in version_string when comparing with compiler_version.
* gcc.c (main): Handle blank in version_string when comparing
	with compiler_version.

From-SVN: r14414
1997-07-13 16:21:56 +00:00
Richard Kenner 5bb67e36f6 Check for and read ${libdir}/gcc-lib/specs to override the default specs.
From-SVN: r14278
1997-06-21 06:29:14 -04:00
Michael Meissner 20df0482b5 Add %include, %include_noerr, %rename support to specs
From-SVN: r13803
1997-03-25 22:03:18 +00:00
Jim Wilson 03fc162077 (init_spec): Delete parameter. Always initialize extra_specs.
(process_command, main): Change all callers.

From-SVN: r13737
1997-03-18 13:19:22 -08:00
Richard Kenner a34259fc5b (set_spec): Fix comment-in-comment typo.
From-SVN: r13643
1997-02-15 18:26:43 -05:00
Richard Kenner eb2be0e656 (process_command): Allocate space for terminating null.
From-SVN: r13641
1997-02-15 17:25:35 -05:00
Richard Kenner 853f1cc30f (process_command): Fix improper use of strncpy.
From-SVN: r13574
1997-02-01 18:53:54 -05:00
Michael Meissner fcc9ad83f6 Fix typo.
From-SVN: r13504
1997-01-16 23:59:37 +00:00
Michael Meissner 79aff5ac0d Cleanup specs support
From-SVN: r13502
1997-01-16 22:15:53 +00:00
Richard Kenner 9f3c45fd62 (handle_braces): Rework last change.
From-SVN: r13241
1996-12-07 18:29:21 -05:00
Richard Kenner 1ba9a4871f (give_switch): Add new arg, INCLUDE_BLANKS.
(handle_braces): All callers changed.
Add support for new construct: %{S*^}.

From-SVN: r13223
1996-12-07 17:26:06 -05:00
Brendan Kehoe 610c62ac70 Makefile.in (DRIVER_DEFINES): New macro, with the macro definitions for the driver.
* Makefile.in (DRIVER_DEFINES): New macro, with the macro
        definitions for the driver.
        (gcc.o): Make rule use $(DRIVER_DEFINES).
        * gcc.c (process_command) [LANG_SPECIFIC_DRIVER]: Call
        lang_specific_driver, passing along the addr of FATAL for errors
        along with our ARGC and ARGV.

From-SVN: r13222
1996-12-07 11:53:42 -05:00
Richard Kenner 5a570aded7 (exit): If VMS, define as __posix_exit.
(option_map): Add define-macro and undefine-macro.

From-SVN: r13150
1996-11-12 18:24:31 -05:00
Michael Meissner d9ac3a0784 Add -specs support
From-SVN: r13075
1996-10-29 21:21:57 +00:00
Richard Kenner d348bc3450 (default_compilers): -ansi no longer implies -$ to cpp.
From-SVN: r12926
1996-10-09 16:18:50 -04:00
Jim Wilson 71591a1d69 (used_arg): When call xmalloc for mswitches, pass 1 if
n_switches is zero.

From-SVN: r12885
1996-10-01 11:18:44 -07:00
Stan Cox 51c0d897d4 (do_spec_1): Allow -A in %[Spec].
From-SVN: r12852
1996-09-27 16:54:10 +00:00
Richard Kenner 1a0bdd2991 (used_arg): Fix multilib_matches parsing to not corrupt entry parameter.
From-SVN: r12834
1996-09-24 08:28:52 -04:00
Jim Wilson 1bdf86c3ba (link_command_spec): Move -T options to end of link command
line.

From-SVN: r12728
1996-09-16 19:37:51 -07:00
Richard Kenner e0040a8ede (convert_filename): Don't start looking for '.' until after last
directory separator.

From-SVN: r12724
1996-09-14 20:55:05 -04:00
Richard Kenner 853e0b2def (HAVE_EXECUTABLE_SUFFIX): New macro.
(convert_filename): New function.
(process_command, case 'o'): Call it.
(process_command, default case): Likewise; delete old code.

From-SVN: r12713
1996-09-14 20:40:31 -04:00
Doug Evans b8a8c83b10 gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when...
* gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when deciding
	whether to include sys/file.h.
	(execute): -pipe is supported for cygwin32.

From-SVN: r12652
1996-08-18 01:32:53 +00:00
Michael Meissner f7fba6aa12 mp/load version # in specs file so __GNUC_MINOR__ will be correct
From-SVN: r12635
1996-08-13 22:21:04 +00:00
Michael Meissner c8c2dcdce1 Fix typo
From-SVN: r12629
1996-08-12 22:15:13 +00:00
Michael Meissner 961b7009ee Speed up genmultilib; Add MULTIB_EXTRA_OPTS
From-SVN: r12623
1996-08-12 16:36:42 +00:00
Richard Kenner c26383a78b (default_compilers): Extra Fortran extensions.
From-SVN: r12513
1996-07-18 17:45:48 -04:00
Mike Stump 0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner 4689ad58a1 (default_compilers): Add null entries for languages we heard of.
(main): If found one of those entries, say compiler not installed.

From-SVN: r12388
1996-07-03 17:09:09 -04:00
Doug Evans 1c87477348 gcc.c (PEXECUTE_VERBOSE): Define.
* gcc.c (PEXECUTE_VERBOSE): Define.
(execute): Pass PEXECUTE_VERBOSE to pexecute if -v.

From-SVN: r12332
1996-06-26 02:35:26 +00:00
Doug Evans fe628d0932 * gcc.c (pfatal_pexecute): Delete code to check errno < sys_nerr.
From-SVN: r12281
1996-06-13 14:45:59 +00:00
Doug Evans c10d53dd60 gcc.c (_WIN32): Don't include process.h or declare spawnv{,p}.
* gcc.c (_WIN32): Don't include process.h or declare spawnv{,p}.
	(pexecute,pwait): Add prototypes.
	(PEXECUTE_{FIRST,LAST,SEARCH}): Define.
	(execv,execvp): Delete decls.
	(perror_exec): Delete.
	(pfatal_pexecute): New function.
	(pexecute support): Delete.
	(execute): -pipe not supported if _WIN32 or OS2.
	Update call to pexecute.  Fatal error if pexecute fails.  Call pwait.

From-SVN: r12269
1996-06-10 20:02:26 +00:00
Doug Evans fd5e7009f6 gcc.c (do_spec_1): Allow leading text in version string.
* gcc.c (do_spec_1): Allow leading text in version string.
	Delete support for default minor number = 0.

From-SVN: r12264
1996-06-10 18:53:21 +00:00
Jim Wilson ffd8633682 (MULTILIB_SELECT): Delete definition.
(multilib_select): Delete static initializer.
(multilib_obstack, multilib_raw): New global variables.
(multilib.h): Include inside multilib_raw definition.
(main): Set multilib_select from multilib_raw.

From-SVN: r12239
1996-06-07 19:44:31 -07:00
Doug Evans 2ff43a3340 (MSDOS pexecute): Call xmalloc, not malloc.
From-SVN: r12119
1996-05-27 00:05:23 +00:00
Doug Evans 6aa62cff4e gcc.c: #include "gansidecl.h".
* gcc.c: #include "gansidecl.h".
	(PROTO,VPROTO,PVPROTO,VPROTO,VA_START,NULL): Delete.
	(GENERIC_PTR,NULL_PTR,P_tmpdir): Delete.
	(choose_temp_base): Declare as extern, delete internal copy.
	(concat): Rewrite to take a variable number of arguments.
	(choose_temp_base_try,concat[346]): Delete.
	(translate_options,set_spec,process_command,do_spec_1,
	is_directory,main): Always use concat, not concat[346].  Pass
	NULL_PTR as trailing arg to concat.

From-SVN: r11794
1996-04-15 17:59:56 +00:00
Richard Kenner bb9da76848 (process_command): Instead of hardcoding non-empty switches_need_spaces to turn on "o" and "L"...
(process_command): Instead of hardcoding non-empty
switches_need_spaces to turn on "o" and "L", make the string contain
the switches that need the spaces.

From-SVN: r11609
1996-03-24 07:28:21 -05:00
Richard Kenner 815cf875cb (DEFAULT_SWITCH_TAKES_ARG): New macro, from SWITCH_TAKES_ARG.
(SWITCH_TAKES_ARG): Use it.

From-SVN: r11265
1996-02-13 17:55:17 -05:00
Richard Kenner b27804a876 (warn_std_ptr): Initialize with 0 instead of NULL_PTR.
From-SVN: r11128
1996-01-31 07:15:10 -05:00