Lines Matching defs:specs
336 When -b is used, the value comes from the `specs' file. */
457 /* The Specs Language
459 Specs are strings containing lines, each of which (if not blank)
466 In addition, the specs can contain %-sequences to substitute variable text
542 %o is for use in the specs for running the linker.
650 %(Spec) processes a specification defined in a specs file as *Spec:
688 /* Define the macros used for specs %a, %l, %L, %S, %C, %1. */
1231 /* Standard options to cpp, cc1, and as, to reduce duplication in specs.
1233 but we need to copy them to the specs file so that newer versions
1238 call cc1 (or cc1obj in objc/lang-specs.h) from the main specs so
1272 %:dumps specs function call. */
1385 /* Record the mapping from file suffixes for compilation specs. */
1418 /* The default list of file name suffixes and their compilation specs. */
1504 #include "specs.h"
1675 /* Structure to keep track of the specs that have been defined so far.
1700 /* List of statically defined specs. */
1750 #ifdef EXTRA_SPECS /* additional specs needed */
1763 /* List of dynamically allocates specs that have been defined so far. */
1765 static struct spec_list *specs = (struct spec_list *) 0;
1801 /* Add appropriate libgcc specs to OBSTACK, taking into account
1849 /* Initialize the specs lookup routines. */
1858 if (specs)
1862 fnotice (stderr, "Using built-in specs.\n");
2008 specs = sl;
2069 /* If this is the first call, initialize the statically allocated specs. */
2070 if (!specs)
2079 specs = sl;
2083 for (sl = specs; sl; sl = sl->next)
2096 sl->next = specs;
2098 specs = sl;
2300 /* Load specs from a file name named FILENAME, replacing occurrences of
2312 char *specs;
2316 fnotice (stderr, "Reading specs
2338 specs = XNEWVEC (char, readlen + 1);
2339 specs_p = specs;
2359 return (specs);
2362 /* Read compilation specs from a file named FILENAME,
2366 one of the machine-specific sub-specs. The "suffix" should be
2381 /* Scan BUFFER for specs, putting them in the vector. */
2395 /* Don't allow this for the main specs file, since it would
2418 "specs %%include syntax malformed after "
2439 "specs %%include syntax malformed after "
2448 fnotice (stderr, "could not find specs file %s\n", p1);
2466 "specs %%rename syntax malformed after "
2476 "specs %%rename syntax malformed after "
2487 "specs %%rename syntax malformed after "
2498 "specs %%rename syntax malformed after "
2503 for (sl = specs; sl; sl = sl->next)
2509 "specs %s spec was not found to be renamed", p1);
2514 for (newsl = specs; newsl; newsl = newsl->next)
2539 "specs unknown %% command after %ld characters",
2551 "specs file malformed after %ld characters",
2565 "specs file malformed after %ld characters",
2573 /* Specs end at the blank line and do not include the newline. */
3622 in all do_spec calls afterwards. Used for %<S from self specs.
3824 fputs (_(" -specs=<file> Override built-in specs with the contents of <file>.\n"), stdout);
4005 be passed down by specs) unless marked to be rejected by the
4222 for (sl = specs; sl; sl = sl->next)
4522 /* Saving this option is useful to let self-specs decide to
4640 handled by specs. */
5473 /* More prefixes are enabled in main, after we read the specs file
5497 /* Decide if undefined variable references are allowed in specs. */
5502 from self-specs. Note also that the command name is counted in
5884 /* Specs should only generate options, not input
5900 compare-debug specs; just save them here. */
5922 /* Callback for processing %D and %I specs. */
6804 to add and use their own specs. */
6817 for (len = p - name, sl = specs; sl; sl = sl->next)
7489 /* --specs are validated with the validate_switches mechanism. */
7506 /* --specs are validated with the validate_switches mechanism. */
8372 /* Initialize the vector of specs to just the default.
8379 /* Read specs from a file if there is one. */
8385 specs_file = find_a_file (&startfile_prefixes, "specs", R_OK, true);
8386 /* Read the specs file unless it is a default one. */
8387 if (specs_file != 0 && strcmp (specs_file, "specs"))
8399 /* We need to check standard_exec_prefix/spec_machine_suffix/specs
8402 + strlen (spec_machine_suffix) + sizeof ("specs"));
8405 strcat (specs_file, "specs");
8528 /* Process any user specified specs in the order given on the command
8537 /* Process any user self specs. */
8540 for (sl = specs; sl; sl = sl->next)
8595 /* Now we have the specs.
8600 /* Now that we have the switches and the specs, set
9363 /* Look through the linked list of specs read from the specs file. */
9364 for (spec = specs; spec; spec = spec->next)
9372 switches after '|' and '&', and specs after ':' until ';' or '}',
10228 return value. Assume variable names used in specs strings don't contain
10776 the specs-provided overrider. */
11088 Many const char * variables are referenced by static specs (see
11090 values by a simple loop over the static specs.
11172 /* Free any specs dynamically-allocated by set_spec.
11175 if (specs)
11177 while (specs != static_specs)
11179 spec_list *next = specs->next;
11180 free (const_cast <char *> (specs->name));
11181 XDELETE (specs);
11182 specs = next;
11184 specs = 0;
11273 specs, and then call the callback CB on each