aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-25 15:43:13 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-25 20:24:57 -0400
commita90fb5e33ba890eb9427b9ba3d529729b018b474 (patch)
tree9ab61cd16039e26911d3c157f2ed5b82d0b8ca89 /gas/as.c
parent099b880550fc1b7e1090c31e8dfb77ca1e2f07ad (diff)
downloadgdb-a90fb5e33ba890eb9427b9ba3d529729b018b474.zip
gdb-a90fb5e33ba890eb9427b9ba3d529729b018b474.tar.gz
gdb-a90fb5e33ba890eb9427b9ba3d529729b018b474.tar.bz2
rename flag_size_check to flag_allow_nonconst_size and make it a bool
This name describes what the variable means slightly better, and the enum with two values that is only used for this one variable is kind of silly. gas/ChangeLog: 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * as.c (parse_args): Adjust. * as.h (flag_size_check): Rename to flag_allow_nonconst_size. * config/obj-elf.c (elf_frob_symbol): Adjust.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/as.c b/gas/as.c
index 14980b9..ad3d3a6 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -870,9 +870,9 @@ This program has absolutely no warranty.\n"));
case OPTION_SIZE_CHECK:
if (strcasecmp (optarg, "error") == 0)
- flag_size_check = size_check_error;
+ flag_allow_nonconst_size = FALSE;
else if (strcasecmp (optarg, "warning") == 0)
- flag_size_check = size_check_warning;
+ flag_allow_nonconst_size = TRUE;
else
as_fatal (_("Invalid --size-check= option: `%s'"), optarg);
break;