summaryrefslogtreecommitdiff
path: root/gcc/recog.h
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-20 02:14:45 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-20 02:14:45 +0000
commit0799286bb5af2ddcd040b83c2fc547f24c91cf6c (patch)
tree4ba26fea29758f2a625f05cad5d607bed5172e39 /gcc/recog.h
parent880d94ecf84ceac4252e6f7ea86e06403aa840b7 (diff)
downloadgcc-0799286bb5af2ddcd040b83c2fc547f24c91cf6c.tar.gz
Add prototypes.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.h')
-rw-r--r--gcc/recog.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/gcc/recog.h b/gcc/recog.h
index 65057394454..8fc2efb4772 100644
--- a/gcc/recog.h
+++ b/gcc/recog.h
@@ -17,28 +17,37 @@ You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+/* Add prototype support. */
+#ifndef PROTO
+#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
+#define PROTO(ARGS) ARGS
+#else
+#define PROTO(ARGS) ()
+#endif
+#endif
+
/* Recognize an insn and return its insn-code,
which is the sequence number of the DEFINE_INSN that it matches.
If the insn does not match, return -1. */
-extern int recog_memoized ();
+extern int recog_memoized PROTO((rtx));
/* Determine whether a proposed change to an insn or MEM will make it
invalid. Make the change if not. */
-extern int validate_change ();
+extern int validate_change PROTO((rtx, rtx *, rtx, int));
/* Apply a group of changes if valid. */
-extern int apply_change_group ();
+extern int apply_change_group PROTO((void));
/* Return the number of changes so far in the current group. */
-extern int num_validated_changes ();
+extern int num_validated_changes PROTO((void));
/* Retract some changes. */
-extern void cancel_changes ();
+extern void cancel_changes PROTO((int));
/* Nonzero means volatile operands are recognized. */
@@ -46,7 +55,7 @@ extern int volatile_ok;
/* Extract the operands from an insn that has been recognized. */
-extern void insn_extract ();
+extern void insn_extract PROTO((rtx));
/* The following vectors hold the results from insn_extract. */