diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-07-03 17:09:09 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-07-03 17:09:09 -0400 |
commit | 4689ad58a187bc99c5cc2299fdd07bcd3363f09b (patch) | |
tree | 7dc83ddad5f983d25690a8cbd7f91c27d95ec6b6 /gcc/gcc.c | |
parent | d6b0bb68f0e544bf7247e68b62df9cf27c11a461 (diff) | |
download | gcc-4689ad58a187bc99c5cc2299fdd07bcd3363f09b.zip gcc-4689ad58a187bc99c5cc2299fdd07bcd3363f09b.tar.gz gcc-4689ad58a187bc99c5cc2299fdd07bcd3363f09b.tar.bz2 |
(default_compilers): Add null entries for languages we heard of.
(main): If found one of those entries, say compiler not installed.
From-SVN: r12388
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -558,6 +558,14 @@ static int n_compilers; static struct compiler default_compilers[] = { + /* Add lists of suffixes of known languages here. If those languages + were no present when we built the driver, we will hit these copies + and given a more meaningful error than "file not used since + linking is not done". */ + {".cc", "#C++"}, {".cxx", "#C++"}, {".cpp", "#C++"}, {".c++", "#C++"}, + {".C", "#C++"}, {".ads", "#Ada"}, {".adb", "#Ada"}, {".ada", "#Ada"}, + {".f", "#Fortran"}, + /* Next come the entries for C. */ {".c", "@c"}, {"@c", "cpp -lang-c%{ansi:89} %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ @@ -4259,6 +4267,10 @@ main (argc, argv) register char *p; int len; + if (cp->spec[0][0] == '#') + error ("%s: %s compiler not installed on this system", + input_filename, &cp->spec[0][1]); + input_basename = input_filename; for (p = input_filename; *p; p++) if (*p == '/' || *p == DIR_SEPARATOR) |