From c8b4eac6184e0265919e8278d39ab879390bd291 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 29 Aug 2013 07:56:22 -0400 Subject: [PATCH] Make -fshort-logic -funtyped-nil -fvariadic-args default for -std=gmqcc --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 652ee61..eab582d 100644 --- a/main.c +++ b/main.c @@ -165,6 +165,9 @@ static bool options_parse(int argc, char **argv) { opts_set(opts.flags, ADJUST_VECTOR_FIELDS, true); opts_set(opts.flags, CORRECT_LOGIC, true); + opts_set(opts.flags, SHORT_LOGIC, true); + opts_set(opts.flags, UNTYPED_NIL, true); + opts_set(opts.flags, VARIADIC_ARGS, true); opts_set(opts.flags, FALSE_EMPTY_STRINGS, false); opts_set(opts.flags, TRUE_EMPTY_STRINGS, true); opts_set(opts.flags, LOOP_LABELS, true); @@ -176,6 +179,7 @@ static bool options_parse(int argc, char **argv) { opts_set(opts.warn, WARN_BREAKDEF, true); + OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_GMQCC; } else if (!strcmp(argarg, "qcc")) { -- 2.39.2