Lines Matching +defs:c +defs:compiler

20 /* This program is the user interface to the C compiler and possibly to
209 /* Flag set by cppspec.c to 1. */
259 /* Nonzero means pass the updated target_system_root to the compiler. */
284 /* The compiler version. */
321 pass the compiler in building the list of pointers to constructors
336 static struct compiler *lookup_compiler (const char *, size_t, const char *);
625 allow each compiler's spec to say which switches take arguments. But
632 treated as compiler output files, and passed to the linker in their
650 %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} \
651 %{c:%{o*:%:replace-extension(%{o*:%*} .dwo)}%{!o*:%b.dwo}}%{!c:%b.dwo} \n\
653 %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} \
1042 %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
1156 %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}}%{!c:%{!S:-auxbase %b}} \
1178 "%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}";
1258 struct compiler
1260 const char *suffix; /* Use this compiler for input files
1263 const char *spec; /* To use this compiler, run this spec. */
1268 int combinable; /* If nonzero, compiler can deal with
1274 /* Pointer to a vector of `struct compiler' that gives the spec for
1283 static struct compiler *compilers;
1291 static const struct compiler default_compilers[] =
1302 {".c++", "#C++", 0, 0, 0}, {".C", "#C++", 0, 0, 0},
1317 {".c", "@c", 0, 0, 1},
1318 {"@c",
1335 {".h", "@c-header", 0, 0, 0},
1336 {"@c-header",
1484 #ifdef CROSS_DIRECTORY_STRUCTURE /* Don't use these prefixes for a cross compiler. */
1505 compiler has been installed, and use paths relative to that
1527 /* A prefix to be used when this is an accelerator compiler. */
1547 These are accessed using %(specname) in a compiler or link
1957 /* Were the options -c, -S or -E passed. */
2141 char c = *buffer_p;
2142 if (c == '\r')
2149 c = '\n';
2152 *specs_p++ = c;
2405 = XRESIZEVEC (struct compiler, compilers, n_compilers + 2);
2523 int i, c;
2529 while ((c = getchar ()) != '\n' && c != EOF)
3290 thinking there's a compiler bug. Much more likely is
3301 when the compiler dies before the preprocessor is
3302 done, or the assembler dies before the compiler is
3356 int c = 0;
3361 for (j = &commands[i].prog; *j; j = &commands[i].argv[++c])
3476 struct compiler *incompiler;
3580 fputs (_(" --version Display compiler version information.\n"), stdout);
3582 fputs (_(" -dumpversion Display the version of the compiler.\n"), stdout);
3583 fputs (_(" -dumpmachine Display the compiler's target processor.\n"), stdout);
3584 fputs (_(" -print-search-dirs Display the directories in the compiler's search path.\n"), stdout);
3585 fputs (_(" -print-libgcc-file-name Display the name of the compiler's companion library.\n"), stdout);
3587 fputs (_(" -print-prog-name=<prog> Display the full path to compiler component <prog>.\n"), stdout);
3616 fputs (_(" -B <directory> Add <directory> to the compiler's search paths.\n"), stdout);
3617 fputs (_(" -v Display the programs invoked by the compiler.\n"), stdout);
3621 fputs (_(" -c Compile and assemble, but do not link.\n"), stdout);
3628 Permissible languages include: c c++ assembler none\n\
3765 /* Leave unknown -Wno-* options for the compiler proper, to be
3815 const char *c, *cur, *n, *next, *end;
3849 c = OFFLOAD_TARGETS;
3850 while (c)
3852 n = strchr (c, ',');
3854 n = strchr (c, '\0');
3856 if (next - cur == n - c && strncmp (target, c, n - c) == 0)
3859 c = *n ? n + 1 : NULL;
3862 if (!c)
3875 c = offload_targets;
3878 n = strchr (c, ':');
3880 n = strchr (c, '\0');
3882 if (next - cur == n - c && strncmp (c, target, n - c) == 0)
3885 c = n + 1;
3890 if (c > n)
4306 /* These are always valid, since gcc.c itself understands the
4307 first two, gfortranspec.c understands -static-libgfortran and
4308 g++spec.c understands -static-libstdc++ */
4371 /* Figure compiler version from version string. */
4795 add_infile ("help-dummy", "c");
4834 the compiler. */
4891 of characters starting there excluding the suffix .c or whatever. */
4905 /* The compiler used to process the current input file. */
4906 static struct compiler *input_file_compiler;
5323 int c;
5331 while ((c = *p++))
5334 switch (inswitch ? 'a' : c)
5376 obstack_1grow (&obstack, c);
5392 switch (c = *p++)
5545 "spec %qs has invalid %<%%0%c%>", spec, *p);
5653 && t->unique == (c == 'u' || c == 'U' || c == 'j'))
5658 if (t == 0 || c == 'u' || c == 'j')
5674 t->unique = (c == 'u' || c == 'U' || c == 'j');
5822 "spec %qs has invalid %<%%W%c%>", spec, *p);
5838 "spec %qs has invalid %<%%@%c%>", spec, *p);
5859 "spec %qs has invalid %<%%x%c%>", spec, *p);
6022 if (c == '>')
6113 error ("spec failure: unrecognized spec option %qc", c);
6120 c = *p++;
6125 obstack_1grow (&obstack, c);
6724 send the conflicting switches to the compiler phase. */
6939 /* Check that compiler's output doesn't differ across runs.
6941 stdout and stderr for each compiler run. Return true if all of
6968 /* Run compiler with arguments NEW_ARGV to reproduce the ICE, storing stdout
6972 compiler failed to run, ATTEMPT_STATUS_ICE if compiled ICE-ed and
7096 containing GCC configuration, backtrace, compiler's command line options
7112 /* Only retry compiler ICEs, not preprocessor ones. */
7122 /* If the compiler is going to output any time information,
7178 /* In final attempt we append compiler options and preprocesssed code to last
7628 compilers = XNEWVAR (struct compiler, sizeof default_compilers);
8124 /* Make a place to record the compiler output file names
8140 struct compiler *compiler = lookup_compiler (name,
8144 if (compiler && !(compiler->combinable))
8147 if (lang_n_infiles > 0 && compiler != input_file_compiler
8149 infiles[i].incompiler = compiler;
8150 else if (compiler)
8153 input_file_compiler = compiler;
8154 infiles[i].incompiler = compiler;
8158 /* Since there is no compiler for this input file, assume it is a
8169 "cannot specify %<-o%> with %<-c%>, %<-S%> or %<-E%> "
8199 /* Figure out which compiler from the file's suffix. */
8207 /* Ok, we found an applicable compiler. Run its spec. */
8211 error ("%s: %s compiler not installed on this system",
8298 a compiler to compile it instead of using infiles.language since for
8338 /* Run ld to link all the compiler output files. */
8460 static struct compiler *
8463 struct compiler *cp;
8476 && (strcmp (cp->suffix, "@c-header") == 0
8477 || strcmp (cp->suffix, "@c++-header") == 0)
8554 char c;
8555 while ((c = *p++))
8556 if (c == '%'
8568 struct compiler *comp;
9855 do_spec_2 ("%{c|S:%{o*:%*}}", NULL);
10065 installed by the compiler (similar to omp_lib.h). */
10141 /* Restore all state within gcc.c to the initial state, so that the driver
10152 from opts.c.
10181 obstack_free (&opts_obstack, NULL); /* in opts.c */