00001 /* Generate from machine description: 00002 - some macros CODE_FOR_... giving the insn_code_number value 00003 for each of the defined standard insn names. 00004 Copyright (C) 1987, 1991, 1995, 1998, 00005 1999, 2000, 2001 Free Software Foundation, Inc. 00006 00007 This file is part of GCC. 00008 00009 GCC is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2, or (at your option) 00012 any later version. 00013 00014 GCC is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with GCC; see the file COPYING. If not, write to 00021 the Free Software Foundation, 59 Temple Place - Suite 330, 00022 Boston, MA 02111-1307, USA. */ 00023 00024 #include "hconfig.h" 00025 #include "system.h" 00026 00027 #define NO_GENRTL_H 00028 #include "rtl.h" 00029 00030 static void output_predicate_decls PARAMS ((void)); 00031 extern int main PARAMS ((void)); 00032 00033 static void 00034 output_predicate_decls () 00035 { 00036 #ifdef PREDICATE_CODES 00037 static const struct { 00038 const char *const name; 00039 const RTX_CODE codes[NUM_RTX_CODE]; 00040 } predicate[] = { 00041 PREDICATE_CODES 00042 }; 00043 size_t i; 00044 00045 puts ("#ifdef RTX_CODE\n"); 00046 for (i = 0; i < ARRAY_SIZE (predicate); i++) 00047 printf ("extern int %s PARAMS ((rtx, enum machine_mode));\n", 00048 predicate[i].name); 00049 puts ("\n#endif /* RTX_CODE */\n"); 00050 #endif 00051 } 00052 00053 int 00054 main () 00055 { 00056 puts ("/* Generated automatically by the program `genpreds'. */\n"); 00057 puts ("#ifndef GCC_TM_PREDS_H"); 00058 puts ("#define GCC_TM_PREDS_H\n"); 00059 00060 output_predicate_decls (); 00061 00062 puts ("#endif /* GCC_TM_PREDS_H */"); 00063 00064 if (ferror (stdout) || fflush (stdout) || fclose (stdout)) 00065 return FATAL_EXIT_CODE; 00066 00067 return SUCCESS_EXIT_CODE; 00068 }
1.5.6