Commit Graph

751 Commits

Author SHA1 Message Date
Richard Kenner
d18225c493 Use PVPROTO for varargs prototypes.
From-SVN: r6744
1994-03-11 08:01:45 -05:00
Richard Kenner
4b19dee8c6 ([__MSDOS__]): Use #ifdef, not #if.
From-SVN: r6739
1994-03-10 15:18:00 -05:00
Richard Kenner
870bc05205 (execute): Initialize PROG.
From-SVN: r6644
1994-02-27 10:48:25 -05:00
Richard Kenner
7aaf8abb28 (default_compilers): Generate and use .ii files in the intermediate
stage of compiling C++ source.

From-SVN: r6553
1994-02-14 19:13:05 -05:00
Doug Evans
fd2c2b2b62 (fatal, error): Fix declarations (make dependant on HAVE_VPRINTF).
From-SVN: r6545
1994-02-13 07:34:55 +00:00
Doug Evans
99360286e5 (PROTO): Define.
Add prototypes for static functions.

From-SVN: r6542
1994-02-12 16:34:43 +00:00
Doug Evans
b67b29cd33 (VPROTO, VA_START): Define.
From-SVN: r6532
1994-02-12 00:51:50 +00:00
Richard Kenner
4f90e4a0f7 If __STDC__, include gstdarg and use ANSI form of varargs.
From-SVN: r6514
1994-02-10 08:07:10 -05:00
Richard Kenner
4aea22caf1 (default_compilers, @ada): Don't duplicate "-gnat" parameters; pass
-quiet unless -Q is specified.

From-SVN: r6456
1994-02-01 08:32:46 -05:00
Jim Wilson
fb99c21cfa (translate_options): Skip arguments of -B, -b, -V, -x,
and -Xlinker options.

From-SVN: r6289
1993-12-23 16:26:16 -08:00
Richard Kenner
c1a9a99cd0 (default_compilers, gnat1): Don't write -gnatb.
From-SVN: r6285
1993-12-23 17:49:04 -05:00
Richard Kenner
53117a2f4d (compiler_version): New variable.
(spec_version): Initialize from DEFAULT_TARGET_VERSION.
(main): Distinguish COMPILER_VERSION from TARGET_VERSION.
(process_command): Use COMPILER_VERSION for %v.
Guard against a COMPILER_VERSION that lacks a minor.

From-SVN: r6264
1993-12-22 13:39:29 -05:00
Richard Kenner
cc70323d03 (default_compilers): Treat ".cpp" as C++.
From-SVN: r6260
1993-12-22 07:42:29 -05:00
Richard Stallman
dc476ce26f (default_compilers): Do define __GNUC_MINOR__ if input is `-'.
From-SVN: r6166
1993-11-26 20:58:04 +00:00
Richard Stallman
500c9e81dc (do_spec_1): Use spec_version for %v, not version_string.
Distinguish %v1 and %v2.
(default_compilers): For __GNUC_MINOR__, use %v2.
For __GNUC__ and __GNUG__, use %v1.

From-SVN: r5976
1993-11-02 23:05:13 +00:00
Richard Stallman
829407e190 (default_compilers): Define __GNUC_MINOR__, using %v.
(do_spec_1): Implement %v.

From-SVN: r5899
1993-10-26 19:04:27 +00:00
Jim Wilson
5d672cd7e6 (sys_errlist): Conditionalize declaration for BSD 4.4.
From-SVN: r5843
1993-10-20 16:20:09 -07:00
Richard Stallman
cbc580f02b (read_specs): Fix call to bzero.
From-SVN: r5656
1993-10-07 15:27:56 +00:00
Richard Kenner
6710c3bdf8 (read_specs): Make a null entry at end of `compilers' when reading new
entry from file.

From-SVN: r5615
1993-10-05 16:25:24 -04:00
Richard Kenner
da6d85c045 (choose_temp_base): Correct size allocated for temp_filename.
From-SVN: r5604
1993-10-05 14:08:10 -04:00
Richard Kenner
c1de946da1 (default_compilers): Add rules for Ada.
From-SVN: r5587
1993-10-03 22:10:24 -04:00
Jim Wilson
fa0d53694e (process_command): Don't warn for -x after last input file
if spec_lang is zero.

From-SVN: r5288
1993-09-08 12:08:15 -07:00
Ian Lance Taylor
7560d6cb1e Correct last change.
From-SVN: r5190
1993-08-20 16:25:56 +00:00
Ian Lance Taylor
4dbc7773ff Permit relative path for standard_startfile_prefix
From-SVN: r5091
1993-08-06 20:45:36 +00:00
Richard Stallman
14553b7569 (process_command): Don't check whether file `-' exists.
From-SVN: r5066
1993-08-04 03:57:21 +00:00
Richard Stallman
1df80ae415 (main): Improve "No input files" error message.
From-SVN: r4971
1993-07-23 18:36:41 +00:00
Jim Wilson
a2dfec996f (link_command_spec): Move %{T*} after %{L*} and %D.
From-SVN: r4951
1993-07-21 13:43:56 -07:00
Richard Stallman
1e72f68fc5 (choose_temp_base): Try multiple variables.
(choose_temp_base): Try multiple variables.  Don't
assume that the variable points to a valid directory.

(pexecute): Handle the MS-DOS return codes correctly.
Add .exe to file name when appropriate.

From-SVN: r4822
1993-07-01 23:30:43 +00:00
Richard Stallman
8b3d02513e (DEFAULT_WORD_SWITCH_TAKES_ARG): Check for -iwithprefixbefore.
(option_map): Add --include-with-prefix-before and
--include-with-prefix-after.

From-SVN: r4782
1993-06-28 04:54:15 +00:00
Richard Stallman
fff26804c9 (translate_options): `*' inhibits warning of extraneous arg.
From-SVN: r4758
1993-06-26 19:43:09 +00:00
Doug Evans
5e3f49d1ce (option_map): Add missing comma.
From-SVN: r4740
1993-06-26 07:14:53 +00:00
Richard Stallman
f7f1b4a40e (option_map): Make --version alias for -dumpversion.
From-SVN: r4721
1993-06-24 04:32:25 +00:00
Richard Stallman
cc198f10a7 (translate_options): Don't assume option_map[j].arg_info != 0.
From-SVN: r4658
1993-06-10 17:47:20 +00:00
Richard Stallman
e1027c772e (translate_options): Don't assume option_map[j].arg_info != 0.
From-SVN: r4644
1993-06-07 03:41:21 +00:00
Richard Stallman
c648ab8a1a (process_command): When GCC_EXEC_PREFIX is defined and tooldir is relative...
(process_command): When GCC_EXEC_PREFIX is defined and
tooldir is relative, add it to search path in addition to standard
directory rather than instead of.

From-SVN: r4588
1993-05-28 22:55:11 +00:00
Richard Stallman
8e06366547 (option_map): Renamed --version to --use-version.
From-SVN: r4462
1993-05-14 22:10:11 +00:00
Ian Lance Taylor
0ad5835e0b If SMALL_ARG_MAX is defined don't pass non-directories in environment
From-SVN: r4278
1993-04-29 21:11:44 +00:00
Richard Stallman
4782d5b5ad (default_compilers): Inhibit -D__OPTIMIZE__ if -O0.
From-SVN: r4272
1993-04-29 16:39:56 +00:00
Ian Lance Taylor
3b39b94f84 Base WORD_SWITCH_TAKES_ARG on new macro DEFAULT_WORD_SWITCH_TAKES_ARG
From-SVN: r4247
1993-04-27 14:58:13 +00:00
Richard Kenner
2a353d3a5e (putenv): Make result type void.
(main): Don't call signal for undefined signal names.

From-SVN: r4139
1993-04-13 17:17:19 -04:00
Jim Wilson
8cacec76fd (library_prefix): Delete variable.
(process_command): Delete uses of library_prefix.
(do_spec_1, D case): Delete use of library_prefix.

From-SVN: r4105
1993-04-12 12:50:01 -07:00
Richard Stallman
ac50959202 (link_command_spec): New option -nostartfiles.
From-SVN: r3690
1993-03-10 07:11:33 +00:00
Richard Stallman
f2faf549d4 Handle long options by translation to old-style ones.
(translate_options): New function.
(option_map): New table.

From-SVN: r3686
1993-03-09 05:47:14 +00:00
Jim Wilson
1d23c208bd (main): Put argv[0] in collect_obstack instead of programname.
From-SVN: r3655
1993-03-05 09:47:54 -08:00
Michael Meissner
1763b229fd Add missing \ before return inside string.
From-SVN: r3627
1993-03-04 15:39:20 +00:00
Jim Wilson
afcd8a020f (main): Truncate programname to what is after last slash.
From-SVN: r3612
1993-03-02 13:19:37 -08:00
Richard Stallman
4b3f0a5b28 (link_command_spec): Do nothing if -fsyntax-only.
From-SVN: r3598
1993-03-02 19:57:36 +00:00
Richard Stallman
dd30a199df (process_command): Fix typo in last change.
From-SVN: r3260
1993-01-18 05:34:03 +00:00
Brendan Kehoe
cb25ac928c With previous change, don't fail on `-l'.
From-SVN: r3253
1993-01-15 16:30:53 -05:00
Brendan Kehoe
48fb792a91 gcc.c (process_command): Only accept input files which exist and can be read...
* gcc.c (process_command): Only accept input files which exist and
        can be read; prevent link phase if an input file was rejected.
        (error_count): Make into a static global variable.

From-SVN: r3249
1993-01-14 19:19:25 -05:00
Ian Lance Taylor
53cc3d6317 Use TOOLDIR_BASE_PREFIX, not TOOLDIR_PREFIX
From-SVN: r3227
1993-01-13 22:37:01 +00:00
Paul Eggert
a1c3776604 # Fix misspellings in comments.
From-SVN: r3182
1993-01-10 22:33:45 +00:00
Richard Stallman
4cf3301cf5 (lookup_compiler): Fix special code for `-' suffix.
From-SVN: r3174
1993-01-09 15:10:30 +00:00
Richard Kenner
3ae7de4ed7 (putenv_from_prefixes): Use PATH_SEPARATOR.
Properly use JUST_MACHINE_SUFFIX when desired; always make path the same as
find_a_file will use.

From-SVN: r3065
1993-01-03 07:28:19 -05:00
Richard Stallman
f18fd95634 (TOOLDIR_PREFIX): Define if not defined.
(tooldir_prefix, tooldir_base_prefix): New variables.
(main): Set tooldir_prefix.  Add it (plus `bin' or `lib') to search paths.

From-SVN: r3057
1993-01-02 09:53:53 +00:00
Richard Stallman
3279bba682 (do_spec_1): Propagate failure from recursive calls.
From-SVN: r3033
1992-12-31 22:38:58 +00:00
Jim Wilson
a99bf70c25 (input_from_pipe): New variable.
(do_spec): Set/clear input_from_pipe as appropriate.  Translate %|
to "-" if input_from_pipe is true.

From-SVN: r3018
1992-12-31 13:05:40 -08:00
Tom Wood
fb2660307d (temp_names): New variable.
(do_spec_1): Rewrite MKTEMP_EACH_FILE for %g/%u/%U.
	(choose_temp_base): Abort if mktemp yields a null string.

From-SVN: r2847
1992-12-08 13:34:05 +00:00
Richard Stallman
49003ff65a (LINK_LIBGCC_SPECIAL_1): New parameter.
From-SVN: r2818
1992-11-30 23:03:05 +00:00
Richard Stallman
b9490a6ec1 (default_compilers): Pass -i* after -U*.
(default_compilers): When running cpp,
move %{D*} and %{U*} (in that order) just before %i.

(do_spec_1): Handle MKTEMP_EACH_FILE.

From-SVN: r2779
1992-11-23 22:44:40 +00:00
Richard Stallman
05d32ae0e0 (process_command): Check that we have enough arguments.
From-SVN: r2636
1992-10-28 21:20:57 +00:00
Richard Stallman
2484b6d2a9 (process_command): Discard after first space in spec_version.
From-SVN: r2583
1992-10-24 00:50:54 +00:00
Jim Wilson
ebb8e0c6c6 (WORD_SWITCH_TAKES_ARG): Handle -Ttext and -Tbss in addition to -Tdata.
From-SVN: r2529
1992-10-20 13:54:08 -07:00
Richard Stallman
0e14ddbcfc Comment added.
From-SVN: r2146
1992-09-17 19:47:09 +00:00
Richard Stallman
f396d2783c (SIGNED_CHAR_SPEC): Use #if rather than ?...
(SIGNED_CHAR_SPEC): Use #if rather than ?: to handle
setting the default SIGNED_CHAR_SPEC macro, since the 3.0 version
of the MIPS C compiler doesn't like ?: in initializers.

From-SVN: r2145
1992-09-17 19:45:49 +00:00
Richard Stallman
3b9b4d3fa6 (main): No program should return the error_count!
Return 2 if failure due to signal, 1 if just errors.
(execute): Increment signal_count.

From-SVN: r2068
1992-09-07 06:04:38 +00:00
Richard Stallman
cc6fc442d8 (process_command): Correct for spaz by patch, installing last change.
From-SVN: r2045
1992-09-03 08:40:32 +00:00
Richard Stallman
058d85217a (main): Use new loop var J to avoid conflict with I.
From-SVN: r2043
1992-09-03 07:15:21 +00:00
Richard Stallman
20eec2c268 (default_compilers): Add missing comma between strings, so that traditional compilers can compile gcc.c.
(default_compilers): Add missing comma between strings, so
that traditional compilers can compile gcc.c.
(main): Don't pass strcpy or strlen a NULL pointer if some of the
spec strings in default_compilers are NULL.
(validate_all_switches): Don't dereference a NULL pointer if some of
the spec strings in defalut_compilers are NULL.

From-SVN: r2039
1992-09-02 23:19:20 +00:00
Brendan Kehoe
301a5c0b57 (default_compilers, ".C" and ".ii"): Pass `+e*' into cc1plus.
(process_command): Allow +e[012] to be passed down into cc1plus.

From-SVN: r2036
1992-09-02 16:10:54 -04:00
Richard Stallman
ec32609a58 (struct compiler): spec field is now array of 4 elements.
(read_specs): Clear the entire new element of compilers.
(lookup_compiler): Copy all of spec array.  Check element 0 for @.
(main): Concatenate all elements of compiler spec.
(validate_all_switches): Validate from all elements of compiler spec.
(default_compilers): Split CPP commands into separate strings.

From-SVN: r2005
1992-08-31 20:00:19 +00:00
Michael Meissner
4401b31c0e Add %U to give last %u name.
From-SVN: r1942
1992-08-25 17:40:04 +00:00
Richard Stallman
8436fe3532 (process_command): Don't set verbose_flag if they make a
typo (e.g., `-v-E'); only when it's exactly "-v".

From-SVN: r1940
1992-08-25 03:07:57 +00:00
Richard Kenner
f8d97cf472 Put include of stdio.h after GCC header files (for i860-stardent-sysv4).
From-SVN: r1905
1992-08-20 05:58:18 -04:00
Richard Stallman
2ef32c884e (process_command): In second loop over all switches,
don't increment I for switches that don't have separate arguments.

From-SVN: r1856
1992-08-15 07:49:48 +00:00
Tom Wood
26ba9d2636 Really install NULL_PTR change
From-SVN: r1854
1992-08-15 00:20:19 +00:00
Tom Wood
d887e8089b (do_spec_1): Add %u.
(default_compilers): For output of as when -c is not used, use %u
	rather than %g so each object filename will be unique.

(NULL_PTR): Use the same definition as
	rtl.h and tree.h.

From-SVN: r1845
1992-08-14 22:51:05 +00:00
Richard Stallman
a6bf434760 Improve err msg for unknown config.
(read_specs): Cast args of xmalloc and read to unsigned.

From-SVN: r1792
1992-08-11 08:26:06 +00:00
Richard Stallman
5f31db15fb (default_compilers): For output of as when -c is not used,
use %g, rather than %b, because the file is going to be deleted anyway.

From-SVN: r1783
1992-08-07 07:17:12 +00:00
Richard Stallman
7ede72fcf2 (link_command_spec): Accept -static but do nothing with it.
From-SVN: r1715
1992-07-29 22:55:25 +00:00
Richard Stallman
c9ebacb820 (process_command): Handle -Wl,' and -Wa,'.
(do_spec_1): Handle %Y.
(default_compilers): Use %Y in assembler commands.

From-SVN: r1637
1992-07-20 02:49:26 +00:00
Charles Hannum
ae04227b3a entered into RCS
From-SVN: r1511
1992-07-08 03:40:47 +00:00
Richard Kenner
7471ffd8a6 *** empty log message ***
From-SVN: r1478
1992-07-06 16:25:01 -04:00
Richard Kenner
906c4e36c6 *** empty log message ***
From-SVN: r1473
1992-07-06 16:04:13 -04:00
Richard Stallman
ac88fc9055 *** empty log message ***
From-SVN: r1352
1992-06-30 01:52:47 +00:00
Richard Stallman
7558fb2af5 *** empty log message ***
From-SVN: r1304
1992-06-27 05:23:20 +00:00
Richard Stallman
00f7e60311 *** empty log message ***
From-SVN: r1187
1992-06-10 21:23:54 +00:00
Richard Stallman
6196c52839 *** empty log message ***
From-SVN: r1182
1992-06-08 03:09:12 +00:00
Richard Stallman
efb1933019 *** empty log message ***
From-SVN: r1172
1992-06-06 19:22:12 +00:00
Richard Stallman
14be024e77 *** empty log message ***
From-SVN: r1076
1992-05-25 02:25:35 +00:00
Richard Stallman
4c64aaf6a4 *** empty log message ***
From-SVN: r1072
1992-05-24 06:33:48 +00:00
Richard Stallman
607a4f7de3 *** empty log message ***
From-SVN: r1065
1992-05-23 21:04:29 +00:00
Richard Stallman
8eebb25825 *** empty log message ***
From-SVN: r983
1992-05-15 02:18:01 +00:00
Richard Stallman
2dcb563f6c *** empty log message ***
From-SVN: r945
1992-05-09 07:00:44 +00:00
Richard Stallman
6dc42e49d3 *** empty log message ***
From-SVN: r930
1992-05-07 06:41:23 +00:00
Richard Stallman
f6ec7e54c8 *** empty log message ***
From-SVN: r870
1992-05-03 21:39:50 +00:00
Richard Stallman
59014d0a6f *** empty log message ***
From-SVN: r678
1992-04-04 08:44:53 +00:00
Per Bothner
2378088aa6 *** empty log message ***
From-SVN: r649
1992-03-31 14:12:10 -08:00
Richard Stallman
b3865ca9f8 *** empty log message ***
From-SVN: r551
1992-03-21 22:50:43 +00:00
Richard Stallman
004fd4d55e *** empty log message ***
From-SVN: r459
1992-03-12 19:24:40 +00:00
Richard Stallman
ed1f651bed Initial revision
From-SVN: r262
1992-02-01 05:15:32 +00:00