Lines Matching refs:spec

36 compilation is specified by a string called a "spec".  */
461 %a process ASM_SPEC as a spec.
462 This allows config.h to specify part of the spec for running as.
463 %A process ASM_FINAL_SPEC as a spec. A capital A is actually
468 %l process LINK_SPEC as a spec.
469 %L process LIB_SPEC as a spec.
470 %G process LIBGCC_SPEC as a spec.
473 %S process STARTFILE_SPEC as a spec. A capital S is actually used here.
474 %E process ENDFILE_SPEC as a spec. A capital E is actually used here.
475 %C process CPP_SPEC as a spec.
476 %1 process CC1_SPEC as a spec.
477 %2 process CC1PLUS_SPEC as a spec.
483 spec string before this one will see -S, % commands in the
484 spec string after this one will not.
489 first processed as a nested spec string, then split into an
492 as part of the current spec.
502 of S and T in the spec is not significant). Can be any number
548 allow each compiler's spec to say which switches take arguments. But
650 /* Define ASM_DEBUG_SPEC to be a spec suitable for translating '-g'
672 /* Here is the spec for running the linker, after compiling all files. */
710 %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
801 only when preprocessing only to avoid duplication. We pass the cc1 spec
802 options to the preprocessor so that it the cc1 spec may manipulate
876 const char *spec;
917 const char *spec; /* To use this compiler, run this spec. */
919 const char *cpp_spec; /* If non-NULL, substitute this spec
928 /* Pointer to a vector of `struct compiler' that gives the spec for
1530 or link spec. */
1536 const char *name; /* name of the spec. */
1541 const char **ptr_spec; /* pointer to the spec itself. */
1542 struct spec_list *next; /* Next spec in linked list. */
1614 /* List of static spec functions. */
1830 /* Change the value of spec NAME to SPEC. If SPEC is empty, then the spec is
1831 removed; If the spec starts with a + then SPEC is added to the end of the
1832 current spec. */
1835 set_spec (const char *name, const char *spec)
1855 /* See if the spec already exists. */
1874 *(sl->ptr_spec) = ((spec[0] == '+' && ISSPACE ((unsigned char)spec[1]))
1875 ? concat (old_spec, spec + 1, NULL)
1876 : xstrdup (spec));
1880 notice ("Setting spec %s to '%s'\n\n", name, *(sl->ptr_spec));
1883 /* Free the old spec. */
2045 The corresponding spec is stored in asm_spec, etc.,
2063 char *spec;
2158 /* Get new spec name. */
2173 fatal ("specs %s spec was not found to be renamed", p1);
2180 fatal ("%s: attempt to rename spec '%s' to already defined spec '%s'",
2185 notice ("rename spec %s to %s\n", p1, p2);
2187 notice ("spec is '%s'\n\n", *(sl->ptr_spec));
2233 spec = save_string (p, p1 - p);
2236 /* Delete backslash-newline sequences from the spec. */
2237 in = spec;
2238 out = spec;
2255 link_command_spec = spec;
2257 set_spec (suffix + 1, spec);
2267 compilers[n_compilers].spec = spec;
2273 link_command_spec = spec;
2277 fatal ("spec file has no spec for linking");
2286 It is substituted into a spec by %g or %j.
2826 /* Execute the command specified by the arguments on the current line of spec.
2926 /* verbose_only_flag should act as if the spec was
3092 1 if the switch is true in a conditional spec,
3095 The `validated' field is nonzero if any spec has looked at this switch;
3222 fputs (_(" -dumpspecs Display all of the built in spec strings\n"), stdout);
4375 /* Store switches not filtered out by %<S in spec in COLLECT_GCC_OPTIONS
4433 /* Process a spec string, accumulating and running commands. */
4483 /* Process the spec SPEC and run the commands specified therein.
4484 Returns 0 if the spec is successfully processed; -1 if failed. */
4487 do_spec (const char *spec)
4491 value = do_spec_2 (spec);
4510 do_spec_2 (const char *spec)
4523 result = do_spec_1 (spec, 0, NULL);
4542 /* Process the given spec string and add any new options to the end
4546 do_option_spec (const char *name, const char *spec)
4564 /* Compute the size of the final spec. */
4566 p = spec;
4574 tmp_spec = alloca (strlen (spec) + 1
4577 q = spec;
4591 /* Process the given spec string and add any new options to the end
4595 do_self_spec (const char *spec)
4597 do_spec_2 (spec);
4679 /* Process the sub-spec SPEC as a portion of a larger spec.
4680 This is like processing a whole spec except that we do
4692 do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part)
4694 const char *p = spec;
4793 fatal ("spec '%s' invalid", spec);
4932 fatal ("spec '%s' has invalid '%%0%c'", spec, *p);
5143 fatal ("spec '%s' has invalid '%%W%c", spec, *p);
5174 fatal ("spec '%s' has invalid '%%x%c'", spec, *p);
5223 a certain constant string as a spec. */
5251 const char *const spec
5255 value = do_spec_1 (spec, 0, NULL);
5366 /* Catch the case where a spec string contains something like
5369 error ("spec failure: '%%*' has not been initialized by pattern match");
5372 /* Process a string found as the value of a spec given by name.
5376 %(...) uses the spec unmodified. */
5385 /* The string after the S/P is the name of a spec that is to be
5396 notice ("Processing spec %c%s%c, which is '%s'\n",
5459 error ("spec failure: unrecognized spec option '%c'", c);
5475 /* End of string. If we are processing a spec function, we need to
5492 /* Look up a spec function. */
5506 /* Evaluate a spec function. */
5514 /* Saved spec processing context. */
5529 fatal ("unknown spec function '%s'", func);
5531 /* Push the spec processing context. */
5543 /* Create a new spec processing context, and build the function
5548 fatal ("error in args to spec function '%s'", func);
5555 /* Pop the spec processing context. */
5571 /* Handle a spec function call of the form:
5575 ARGS is processed as a spec in a separate context and split into an
5577 containing a spec which we then process in the caller's context, or
5596 fatal ("malformed spec function name");
5599 fatal ("no arguments for spec function");
5618 fatal ("malformed spec function arguments");
5622 /* p now points to just past the end of the spec function expression. */
5857 fatal ("braced spec '%s' is invalid at '%c'", orig, *p);
5945 fatal ("braced spec body '%s' is invalid", body);
5951 spec, or -1 if either exact match or %* is used.
6164 /* If a spec for 'g', 'u', or 'U' is seen with -save-temps then
6345 option_default_specs[i].spec);
6369 error ("spec failure: more than one arg to SYSROOT_SUFFIX_SPEC");
6392 error ("spec failure: more than one arg to SYSROOT_HEADERS_SUFFIX_SPEC");
6471 Set the `valid' bits for switches that match anything in any spec. */
6678 if (input_file_compiler->spec[0] == '#')
6681 input_filename, &input_file_compiler->spec[1]);
6686 value = do_spec (input_file_compiler->spec);
6689 fatal ("spec '%s' is invalid", input_file_compiler->spec);
6724 /* Use the same thing in %o, unless cp->spec says otherwise. */
6739 /* Ok, we found an applicable compiler. Run its spec. */
6741 if (input_file_compiler->spec[0] == '#')
6744 input_filename, &input_file_compiler->spec[1]);
6749 value = do_spec (input_file_compiler->spec);
6855 /* Find the proper compilation spec for the file name NAME,
6868 /* Otherwise, look for the language, if one is spec'd. */
6913 if (cp->spec[0] != '@')
6920 return lookup_compiler (NULL, 0, cp->spec + 1);
7022 validate_switches_from_spec (const char *spec)
7024 const char *p = spec;
7028 /* We have a switch spec. */
7036 struct spec_list *spec;
7038 for (comp = compilers; comp->spec; comp++)
7039 validate_switches_from_spec (comp->spec);
7042 for (spec = specs; spec; spec = spec->next)
7043 validate_switches_from_spec (*spec->ptr_spec);
7173 fatal ("multilib spec '%s' is invalid", multilib_matches);
7789 /* if-exists built-in spec function.
7807 /* if-exists-else built-in spec function.
7825 /* replace-outfile built-in spec function.
7874 /* version_compare built-in spec function.
7964 /* %:include builtin spec function. This differs from %include in that it
7965 can be nested inside a spec, and thus be conditionalized. It takes