]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add an explicit value to proc macro enum kind
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 27 Sep 2023 14:21:25 +0000 (16:21 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:33 +0000 (19:09 +0100)
We'll need this value in the final binary, it should therefore be kept
explicit.

libgrust/ChangeLog:

* libproc_macro_internal/proc_macro.h (enum ProcmacroTag): Add
explicit value for proc macro tag enum.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
libgrust/libproc_macro_internal/proc_macro.h

index 457ec4693f64ddb8b3251fbde5fe27d9592c8b79..9e142ffa79ffa1f2855d9db7a2f9a5453f8f40c6 100644 (file)
@@ -66,7 +66,7 @@ struct Bang
 
 enum ProcmacroTag
 {
-  CUSTOM_DERIVE,
+  CUSTOM_DERIVE = 0,
   ATTR,
   BANG,
 };