summaryrefslogtreecommitdiff
path: root/gcc/lto-opts.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-03-29 22:59:34 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2011-03-29 22:59:34 +0100
commiteb50f63aff735be65ee1fe087130c0961ceea01c (patch)
treef8a59988b63f685135bf3e79f824509beb0df5e9 /gcc/lto-opts.c
parent76763a6d3f5a93616c92e089a2391611319650a0 (diff)
downloadgcc-eb50f63aff735be65ee1fe087130c0961ceea01c.tar.gz
lto-opts.c (register_user_option_p, [...]): Make type argument unsigned.
* lto-opts.c (register_user_option_p, lto_register_user_option): Make type argument unsigned. * lto-streamer.h (lto_register_user_option): Make type argument unsigned. * opth-gen.awk: Make CL_* macros unsigned. * opts-common.c (find_opt): Make lang_mask argument unsigned. * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED, CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE, CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned. (find_opt): Make lang_mask argument unsigned. From-SVN: r171701
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r--gcc/lto-opts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c
index 9979e8da821..3cff0ee7430 100644
--- a/gcc/lto-opts.c
+++ b/gcc/lto-opts.c
@@ -194,7 +194,7 @@ input_string_block (struct lto_input_block *ib)
Among others, optimization options may well be appropriate here. */
static bool
-register_user_option_p (size_t code, int type)
+register_user_option_p (size_t code, unsigned int type)
{
if (type == CL_TARGET)
return true;
@@ -215,7 +215,8 @@ register_user_option_p (size_t code, int type)
If relevant to LTO, save it in the user options vector. */
void
-lto_register_user_option (size_t code, const char *arg, int value, int type)
+lto_register_user_option (size_t code, const char *arg, int value,
+ unsigned int type)
{
if (register_user_option_p (code, type))
{