30 "--print-rejected-preprocessed-source",
38 "--show-symbol-table",
39 "--show-function-table",
45 "--string-abstraction",
53 "--validate-goto-model",
55 "--export-file-local-symbols",
57 "--export-function-local-symbols",
112 "-compatibility_version",
146 "-no-integrated-cpp",
168 "-print-libgcc-file-name",
169 "-print-multi-directory",
171 "-print-search-dirs",
173 "-print-sysroot-headers-suffix",
197 "-mno-unaligned-access",
237 for(
int i=1; i<argc; i++)
255 const std::string &
argv_i=*it;
269 line.erase(0, line.find_first_not_of(
"\t "));
287 argst::const_iterator next=it;
301 *o!=
nullptr && !
found;
342 std::string value=
argv_i.substr(4);
366 argst::const_iterator next=it;
373 *o!=
nullptr && !
found;
399 *o!=
nullptr && !
found;
424 *o!=
nullptr && !
found;
437 std::cerr <<
"Warning: uninterpreted gcc option '" <<
argv_i
480 line.erase(0, line.find_first_not_of(
"\t "));
486 (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)
size_t strlen(const char *s)