case EXPR_BUILTIN_SYMBOL:
case EXPR_CALL:
- case EXPR_REFERENCE:
case EXPR_SELECT:
case EXPR_VA_START:
case EXPR_VA_ARG:
return is_constant_expression(expression->array_access.array_ref)
&& is_constant_expression(expression->array_access.index);
+ case EXPR_REFERENCE: {
+ declaration_t *declaration = expression->reference.declaration;
+ if(declaration->storage_class == STORAGE_CLASS_ENUM_ENTRY)
+ return true;
+
+ return false;
+ }
+
case EXPR_UNKNOWN:
case EXPR_INVALID:
break;
} else if(arg[0] == '-' && arg[1] == 'f') {
const char *opt;
GET_ARG_AFTER(opt, "-f");
- int res = firm_option(opt);
- if (res == 0) {
- fprintf(stderr, "error: unknown Firm option '-f %s'\n", opt);
- argument_errors = true;
- continue;
- } else if (res == -1) {
- help_displayed = true;
+
+ if(strcmp(opt, "omit-frame-pointer") == 0) {
+ firm_be_option("omitfp");
+ } else if(strcmp(opt, "no-omit-frame-pointer") == 0) {
+ firm_be_option("omitfp=no");
+ } else {
+ int res = firm_option(opt);
+ if (res == 0) {
+ fprintf(stderr, "error: unknown Firm option '-f %s'\n",
+ opt);
+ argument_errors = true;
+ continue;
+ } else if (res == -1) {
+ help_displayed = true;
+ }
}
} else if(arg[0] == '-' && arg[1] == 'b') {
const char *opt;
if (value != 16 && value != 32 && value != 64) {
fprintf(stderr, "error: option -m supports only 16, 32 or 64\n");
argument_errors = true;
- } else
+ } else {
machine_size = (unsigned int)value;
+ }
} else if(arg[0] == '-') {
if (arg[1] == '\0') {
if(input != NULL) {
} else if(strcmp(arg, "-pedantic") == 0) {
fprintf(stderr, "warning: ignoring gcc option '%s'\n", arg);
} else if(arg[1] == 'O' ||
- arg[1] == 'f' ||
arg[1] == 'W' ||
arg[1] == 'g' ||
strncmp(arg + 1, "std=", 4) == 0) {