diff options
author | Graham Stott <grahams@redhat.com> | 2001-12-01 02:11:25 +0000 |
---|---|---|
committer | Laurent Guerby <guerby@gcc.gnu.org> | 2001-12-01 02:11:25 +0000 |
commit | 58d07d8f3eda79bbe4580fa1e2fa35386977fd59 (patch) | |
tree | cdc298f8dd9205a0874a90080398b2b650fb1a4e /gcc/ada/misc.c | |
parent | f18c054f039f8d5642a4bfb89db758f3abf3acfd (diff) | |
download | gcc-58d07d8f3eda79bbe4580fa1e2fa35386977fd59.tar.gz |
Makefile.in (misc.o): Add missing $(srcdir) prefix and add optabs.h dependency.
2001-12-01 Graham Stott <grahams@redhat.com>
* Makefile.in (misc.o): Add missing $(srcdir) prefix
and add optabs.h dependency.
* misc.c: Include optabs.h
(gnat_tree_code_type): Make static and const.
(gnat_tree_code_length): Likewise.
(gnat_tree_code_name): Likewise.
(update_setjmp_buf): Obtain operands mode from insn_data.
From-SVN: r47503
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r-- | gcc/ada/misc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index f3c9cbce204..cba0be562f9 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * * * Copyright (C) 1992-2001 Free Software Foundation, Inc. * * * @@ -47,6 +47,7 @@ #include "flags.h" #include "insn-flags.h" #include "insn-config.h" +#include "optabs.h" #include "recog.h" #include "toplev.h" #include "output.h" @@ -81,7 +82,7 @@ extern char **save_argv; #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE, -char gnat_tree_code_type[] = { +static char const gnat_tree_code_type[] = { 'x', #include "ada-tree.def" }; @@ -93,7 +94,7 @@ char gnat_tree_code_type[] = { #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH, -int gnat_tree_code_length[] = { +static int const gnat_tree_code_length[] = { 0, #include "ada-tree.def" }; @@ -103,7 +104,7 @@ int gnat_tree_code_length[] = { Used for printing out the tree and error messages. */ #define DEFTREECODE(SYM, NAME, TYPE, LEN) NAME, -const char *gnat_tree_code_name[] = { +static const char *gnat_tree_code_name[] = { "@@dummy", #include "ada-tree.def" }; @@ -743,8 +744,9 @@ update_setjmp_buf (buf) #ifdef HAVE_save_stack_nonlocal if (HAVE_save_stack_nonlocal) - sa_mode = insn_operand_mode[(int) CODE_FOR_save_stack_nonlocal][0]; + sa_mode = insn_data [(int) CODE_FOR_save_stack_nonlocal].operand[0].mode; #endif + #ifdef STACK_SAVEAREA_MODE sa_mode = STACK_SAVEAREA_MODE (SAVE_NONLOCAL); #endif |