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