Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / rust / rust-target.h
blob7fcdfc99b81e23be06f514d5045ddbf8e20a3ad0
1 /* Data structure definitions for target-specific Rust behavior.
2 Copyright (C) 2022 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 3, or (at your option) any
7 later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
18 #ifndef GCC_RUST_TARGET_H
19 #define GCC_RUST_TARGET_H
21 #define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME;
22 #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (*NAME) PARAMS;
23 #define DEFHOOK_UNDOC DEFHOOK
24 #define HOOKSTRUCT(FRAGMENT) FRAGMENT
26 #include "rust-target.def"
28 /* Used by target to add target-related info. */
29 extern void
30 rust_add_target_info (const char *, const char *);
32 /* Each target can provide their own. */
33 extern struct gcc_targetrustm targetrustm;
35 #endif /* GCC_RUST_TARGET_H */