X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=driver%2Ffirm_cmdline.c;h=5bcb2cae0d2818792bb5cef2757b0c74ce411c2c;hb=688d947320fffe9930ea01d84f57d261baea6d2a;hp=4195c6f9c30c1294244f506e2f39ffbeaacd2106;hpb=d9f918c846087ee7fc1b97e83671181c1ecf2fff;p=cparser diff --git a/driver/firm_cmdline.c b/driver/firm_cmdline.c index 4195c6f..5bcb2ca 100644 --- a/driver/firm_cmdline.c +++ b/driver/firm_cmdline.c @@ -59,6 +59,7 @@ struct a_firm_opt firm_opt = { /* lower = */ TRUE, /* os_support = */ OS_SUPPORT_LINUX, /* honor_restrict = */ TRUE, + /* lower_bitfields = */ TRUE, /* ycomp_dbg = */ FALSE, /* ycomp_host = */ FIRM_YCOMP_DEFAULT_HOST, /* ycomp_port = */ FIRM_YCOMP_DEFAULT_PORT, @@ -104,7 +105,7 @@ static const struct params { const char *option; /**< name of the option */ int opt_len; /**< length of the option string */ a_byte *flag; /**< address of variable to set/reset */ - int set; /**< iff true, variable will be set, else reset */ + a_byte set; /**< iff true, variable will be set, else reset */ const char *description; /**< description of this option */ } firm_options[] = { /* this must be first */ @@ -358,7 +359,7 @@ int firm_option(const char *opt) } /* statistic options do accumulate */ if (firm_options[i].flag == &firm_dump.statistic) - *firm_options[i].flag |= firm_options[i].set; + *firm_options[i].flag = (a_byte) (*firm_options[i].flag | firm_options[i].set); else *firm_options[i].flag = firm_options[i].set; @@ -409,7 +410,7 @@ void print_firm_version(FILE *f) { firm_get_version(&version); - fprintf(f, "Firm C-Compiler using libFirm (%d.%d", version.major, version.minor); + fprintf(f, "Firm C-Compiler using libFirm (%u.%u", version.major, version.minor); if(version.revision[0] != 0) { fputc(' ', f); fputs(version.revision, f);