summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index b8ae8756b4f..17d91988ada 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1844,7 +1844,7 @@ common_handle_option (struct gcc_options *opts,
{
size_t scode = decoded->opt_index;
const char *arg = decoded->arg;
- int value = decoded->value;
+ HOST_WIDE_INT value = decoded->value;
enum opt_code code = (enum opt_code) scode;
gcc_assert (decoded->canonical_option_num_elements <= 2);
@@ -2107,22 +2107,11 @@ common_handle_option (struct gcc_options *opts,
opts, opts_set, loc, dc);
break;
- case OPT_Wlarger_than_:
- opts->x_larger_than_size = value;
- opts->x_warn_larger_than = value != -1;
- break;
-
case OPT_Wfatal_errors:
dc->fatal_errors = value;
break;
- case OPT_Wframe_larger_than_:
- opts->x_frame_larger_than_size = value;
- opts->x_warn_frame_larger_than = value != -1;
- break;
-
case OPT_Wstack_usage_:
- opts->x_warn_stack_usage = value;
opts->x_flag_stack_usage_info = value != -1;
break;
@@ -2282,7 +2271,7 @@ common_handle_option (struct gcc_options *opts,
case OPT_fpack_struct_:
if (value <= 0 || (value & (value - 1)) || value > 16)
error_at (loc,
- "structure alignment must be a small power of two, not %d",
+ "structure alignment must be a small power of two, not %wu",
value);
else
opts->x_initial_max_fld_align = value;
@@ -2465,7 +2454,7 @@ common_handle_option (struct gcc_options *opts,
/* FALLTHRU */
case OPT_gdwarf_:
if (value < 2 || value > 5)
- error_at (loc, "dwarf version %d is not supported", value);
+ error_at (loc, "dwarf version %wu is not supported", value);
else
opts->x_dwarf_version = value;
set_debug_level (DWARF2_DEBUG, false, "", opts, opts_set, loc);