30 "--print-rejected-preprocessed-source",
39 "--show-symbol-table",
40 "--show-function-table",
46 "--string-abstraction",
54 "--validate-goto-model",
56 "--export-file-local-symbols",
58 "--export-function-local-symbols",
113 "-compatibility_version",
147 "-no-integrated-cpp",
169 "-print-libgcc-file-name",
170 "-print-multi-directory",
172 "-print-search-dirs",
174 "-print-sysroot-headers-suffix",
198 "-mno-unaligned-access",
238 for(
int i=1; i<argc; i++)
256 const std::string &
argv_i=*it;
270 line.erase(0, line.find_first_not_of(
"\t "));
288 argst::const_iterator next=it;
302 *o!=
nullptr && !
found;
343 std::string value=
argv_i.substr(4);
367 argst::const_iterator next=it;
374 *o!=
nullptr && !
found;
400 *o!=
nullptr && !
found;
425 *o!=
nullptr && !
found;
438 std::cerr <<
"Warning: uninterpreted gcc option '" <<
argv_i
481 line.erase(0, line.find_first_not_of(
"\t "));
487 (line==
"*link_libgcc:" ||
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
std::string get_value(char option) const
bool parse_arguments(const argst &args_to_parse, bool in_spec_file)
void parse_specs()
Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html.
std::vector< std::string > argst
virtual bool parse(int, const char **)
parses the command line options into a cmdlinet
void parse_specs_line(const std::string &line, bool in_spec_file)
Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html.
void set(const std::string &opt, const char *value) override
Set option option to value.
void add_infile_arg(const std::string &arg)
static bool in_list(const char *option, const char **list)
void add_arg(const std::string &arg)
bool has_prefix(const std::string &s, const std::string &prefix)
const char * gcc_options_with_concatenated_argument[]
const char * gcc_options_with_separated_argument[]
const char * goto_cc_options_with_separated_argument[]
const char * gcc_options_without_argument[]
const char * goto_cc_options_without_argument[]
const char * gcc_options_with_argument[]
A special command line object for the gcc-like options.
#define PRECONDITION(CONDITION)