Lines Matching defs:switches

31 them, forwarding the users switches to those programs selectively,
277 collect2 that describes all of the relevant switches of what to
485 %<S* remove all occurrences of all switches beginning with -S from the
496 %{S*} substitutes all the switches specified to CC whose names start
497 with -S. This is used for -o, -I, etc; switches that take
508 %{S*:X} substitutes X if one or more switches whose names start
510 once, no matter how many such switches appeared. However,
536 The -O, -f, -m, and -W switches are handled specifically in these
546 Note that it is built into CC which switches take arguments and which
548 allow each compiler's spec to say which switches take arguments. But
550 which input files have been specified without knowing which switches
900 /* This defines which switches stop a full compilation. */
3084 /* Find all the switches given to us
3112 static struct switchstr *switches;
3210 /* Display the command line switches accepted by gcc. */
3319 /* Create the vector `switches' and its contents.
3615 /* Scan argv twice. Here, the first time, just count how many switches
3617 Here we also parse the switches that cc itself uses (e.g. -v). */
3819 /* -pipe has to go into the switches array as well as
4128 switches = XNEWVEC (struct switchstr, n_switches + 1);
4135 to the copy in the vector of switches.
4140 /* Just skip the switches that were handled by the preceding loop. */
4188 switches[n_switches].part1 = &argv[i][0];
4189 switches[n_switches].args = 0;
4190 switches[n_switches].live_cond = SWITCH_OK;
4191 switches[n_switches].validated = 0;
4263 switches[n_switches].part1 = p;
4278 switches[n_switches].args
4281 switches[n_switches].args[j++] = argv[++i];
4283 switches[n_switches].args[j] = 0;
4293 switches[n_switches].part1 = part1;
4294 switches[n_switches].args = XNEWVEC (const char *, 2);
4295 switches[n_switches].args[0] = xstrdup (p+1);
4296 switches[n_switches].args[1] = 0;
4299 switches[n_switches].args = 0;
4301 switches[n_switches].live_cond = SWITCH_OK;
4302 switches[n_switches].validated = 0;
4303 switches[n_switches].ordering = 0;
4309 switches[n_switches].validated = 1;
4312 char ch = switches[n_switches].part1[0];
4314 switches[n_switches].validated = 1;
4352 switches[n_switches].part1 = "--target-help";
4353 switches[n_switches].args = 0;
4354 switches[n_switches].live_cond = SWITCH_OK;
4355 switches[n_switches].validated = 0;
4362 switches[n_switches].part1 = "--help";
4363 switches[n_switches].args = 0;
4364 switches[n_switches].live_cond = SWITCH_OK;
4365 switches[n_switches].validated = 0;
4371 switches[n_switches].part1 = 0;
4375 /* Store switches not filtered out by %<S in spec in COLLECT_GCC_OPTIONS
4399 /* Ignore elided switches. */
4400 if (switches[i].live_cond == SWITCH_IGNORE)
4404 q = switches[i].part1;
4414 for (args = switches[i].args; args && *args; args++)
4479 /* Nonnull means substitute this for any suffix when outputting a switches
4543 of the switches/n_switches array. */
4592 of the switches/n_switches array. */
4606 switches = xrealloc (switches,
4609 switches[n_switches] = switches[first];
4618 sw = &switches[i + first];
4685 This is used while substituting switches.
5348 if (!strncmp (switches[i].part1, p, len - have_wildcard)
5349 && (have_wildcard || switches[i].part1[len] == '\0'))
5351 switches[i].live_cond = SWITCH_IGNORE;
5352 switches[i].validated = 1;
5673 if (!strncmp (switches[i].part1, atom, len)
5674 && (starred || switches[i].part1[len] == '\0')
5681 /* Inline subroutine of handle_braces. Mark all of the switches which
5692 if (!strncmp (switches[i].part1, atom, len)
5693 && (starred || switches[i].part1[len] == '\0')
5695 switches[i].ordering = 1;
5699 marked switches through give_switch, and clear the marks. */
5706 if (switches[i].ordering == 1)
5708 switches[i].ordering = 0;
5929 if (!strncmp (switches[i].part1, atom, hard_match_len)
5933 &switches[i].part1[hard_match_len]) < 0)
5960 const char *name = switches[switchnum].part1;
5965 send the conflicting switches to the compiler phase. */
5971 if (switches[switchnum].live_cond != 0)
5972 return switches[switchnum].live_cond > 0;
5979 if (switches[i].part1[0] == 'O')
5981 switches[switchnum].validated = 1;
5982 switches[switchnum].live_cond = SWITCH_FALSE;
5992 if (switches[i].part1[0] == name[0]
5993 && ! strcmp (&switches[i].part1[1], &name[4]))
5995 switches[switchnum].validated = 1;
5996 switches[switchnum].live_cond = SWITCH_FALSE;
6004 if (switches[i].part1[0] == name[0]
6005 && switches[i].part1[1] == 'n'
6006 && switches[i].part1[2] == 'o'
6007 && switches[i].part1[3] == '-'
6008 && !strcmp (&switches[i].part1[4], &name[1]))
6010 switches[switchnum].validated = 1;
6011 switches[switchnum].live_cond = SWITCH_FALSE;
6019 switches[switchnum].live_cond = SWITCH_LIVE;
6027 the vector of switches gcc received, which is `switches'.
6035 if (switches[switchnum].live_cond == SWITCH_IGNORE)
6041 do_spec_1 (switches[switchnum].part1, 1, NULL);
6044 if (switches[switchnum].args != 0)
6047 for (p = switches[switchnum].args; *p; p++)
6075 switches[switchnum].validated = 1;
6298 /* Make a table of what switches there are (switches, n_switches).
6300 Decode switches that are handled locally. */
6471 Set the `valid' bits for switches that match anything in any spec. */
6475 /* Now that we have the switches and the specs, set
6479 /* Warn about any switches that no pass was interested in. */
6482 if (! switches[i].validated)
6483 error ("unrecognized option '-%s'", switches[i].part1);
7049 and mark as valid all supplied switches that match it. */
7086 /* Mark all matching switches as valid. */
7088 if (!strncmp (switches[i].part1, atom, len)
7089 && (starred || switches[i].part1[len] == 0))
7090 switches[i].validated = 1;
7133 canonicalize the switches to keep only the ones we care about. */
7192 /* Now build a list of the replacement string for switches that we care
7199 if (switches[i].live_cond != SWITCH_IGNORE)
7201 int xlen = strlen (switches[i].part1);
7204 && ! strncmp (switches[i].part1, matches[j].str, xlen))
7215 /* Add MULTILIB_DEFAULTS switches too, as long as they were not present
7919 if (!strncmp (switches[i].part1, argv[nargs + 1], switch_len)
7921 switch_value = switches[i].part1 + switch_len;