aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-c-fe.def
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-02-20 17:15:03 -0700
committerTom Tromey <tom@tromey.com>2024-02-29 15:34:38 -0700
commitf9771d0e80c3a98e865c7ee5139cadf9d73db436 (patch)
tree8aaa399ed59ae4bb3bd5bb4633403bf46093b1d7 /include/gcc-c-fe.def
parent4b067447e1b70dcf834ad65f03fd953178c30850 (diff)
downloadgdb-f9771d0e80c3a98e865c7ee5139cadf9d73db436.zip
gdb-f9771d0e80c3a98e865c7ee5139cadf9d73db436.tar.gz
gdb-f9771d0e80c3a98e865c7ee5139cadf9d73db436.tar.bz2
Synchronize GCC compile plugin headers
This patch copies some changes to the compile headers from GCC's include/ directory. It is the gdb equivalent of the GCC commit bc0e18a9 -- however, while that commit also necessarily touched libcc1, this one of course does not. Tested by rebuilding and also running the gdb.compile tests. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31397
Diffstat (limited to 'include/gcc-c-fe.def')
-rw-r--r--include/gcc-c-fe.def13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/gcc-c-fe.def b/include/gcc-c-fe.def
index 36a7654..cb7cf19 100644
--- a/include/gcc-c-fe.def
+++ b/include/gcc-c-fe.def
@@ -89,7 +89,10 @@ GCC_METHOD5 (int /* bool */, build_add_field,
/* After all the fields have been added to a struct or union, the
struct or union type must be "finished". This does some final
- cleanups in GCC. */
+ cleanups in GCC.
+
+ Note that when using GCC_C_FE_VERSION_2, it is preferable to call
+ finish_record_with_alignment instead. */
GCC_METHOD2 (int /* bool */, finish_record_or_union,
gcc_type, /* Argument RECORD_OR_UNION_TYPE. */
@@ -220,3 +223,11 @@ GCC_METHOD2 (gcc_type, float_type,
unsigned long, /* Argument SIZE_IN_BYTES. */
const char *) /* Argument BUILTIN_NAME. */
+/* New in GCC_FE_VERSION_2. Like finish_record_or_union but the caller also
+ supplies the alignment. If the alignment is 0, this acts identically to
+ finish_record_or_union. */
+
+GCC_METHOD3 (int /* bool */, finish_record_with_alignment,
+ gcc_type, /* Argument RECORD_OR_UNION_TYPE. */
+ unsigned long, /* Argument SIZE_IN_BYTES. */
+ unsigned long) /* Argument ALIGNMENT. */