aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r--gcc/optabs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h
index 0c488b8..08dbec1 100644
--- a/gcc/optabs.h
+++ b/gcc/optabs.h
@@ -38,14 +38,15 @@ Boston, MA 02111-1307, USA. */
A few optabs, such as move_optab and cmp_optab, are used
by special code. */
-typedef struct optab
+struct optab GTY(())
{
enum rtx_code code;
- struct {
+ struct optab_handlers {
enum insn_code insn_code;
rtx libfunc;
} handlers [NUM_MACHINE_MODES];
-} * optab;
+};
+typedef struct optab * optab;
/* Given an enum insn_code, access the function to construct
the body of that kind of insn. */
@@ -152,7 +153,7 @@ enum optab_index
OTI_MAX
};
-extern optab optab_table[OTI_MAX];
+extern GTY(()) optab optab_table[OTI_MAX];
#define add_optab (optab_table[OTI_add])
#define sub_optab (optab_table[OTI_sub])