public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] set underlying type for hardened booleans
@ 2023-06-09 8:07 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-06-09 8:07 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:98b715949f8ca616bc0d426a00cbb465fa5f6393
commit 98b715949f8ca616bc0d426a00cbb465fa5f6393
Author: Alexandre Oliva <oliva@gnu.org>
Date: Fri Jun 9 05:04:38 2023 -0300
set underlying type for hardened booleans
Diff:
---
gcc/c-family/c-attribs.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/c-family/c-attribs.cc b/gcc/c-family/c-attribs.cc
index f121ce737a4..77145ca160e 100644
--- a/gcc/c-family/c-attribs.cc
+++ b/gcc/c-family/c-attribs.cc
@@ -1021,6 +1021,7 @@ handle_hardbool_attribute (tree *node, tree name, tree args,
*node = build_duplicate_type (orig);
TREE_SET_CODE (*node, ENUMERAL_TYPE);
+ ENUM_UNDERLYING_TYPE (*node) = orig;
tree false_value;
if (args)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-09 8:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 8:07 [gcc(refs/users/aoliva/heads/testme)] set underlying type for hardened booleans Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).