From b3937ebd02266e1056e8fa44591abd162da435a8 Mon Sep 17 00:00:00 2001 From: dj Date: Fri, 29 Apr 2005 00:47:27 +0000 Subject: [PATCH] * opt-functions.awk (var_set): Emit proper initializer for non-target bitfields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98962 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/opt-functions.awk | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac8ac4ee7d1..0476f7d2284 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-28 DJ Delorie + + * opt-functions.awk (var_set): Emit proper initializer for + non-target bitfields. + 2005-04-28 Devang Patel * dbxout.c (have_used_extensions): Remove. diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk index 91628213696..4d9c74f73b2 100644 --- a/gcc/opt-functions.awk +++ b/gcc/opt-functions.awk @@ -97,8 +97,13 @@ function var_set(flags) if (s != "") return "CLVC_EQUAL, " s s = opt_args("Mask", flags); - if (s != "") - return "CLVC_BIT_SET, MASK_" s + if (s != "") { + vn = var_name(flags); + if (vn) + return "CLVC_BIT_SET, OPTION_MASK_" s + else + return "CLVC_BIT_SET, MASK_" s + } s = nth_arg(0, opt_args("InverseMask", flags)); if (s != "") return "CLVC_BIT_CLEAR, MASK_" s -- 2.11.4.GIT