1991-11-30 01:21:16 -05:00
|
|
|
/* Define constants for communication with c-parse.y.
|
1992-01-17 17:47:27 -05:00
|
|
|
Copyright (C) 1987, 1992 Free Software Foundation, Inc.
|
1991-11-30 01:21:16 -05:00
|
|
|
|
|
|
|
This file is part of GNU CC.
|
|
|
|
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GNU CC; see the file COPYING. If not, write to
|
1995-06-15 07:33:25 -04:00
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
1991-11-30 01:21:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum rid
|
|
|
|
{
|
|
|
|
RID_UNUSED,
|
|
|
|
RID_INT,
|
|
|
|
RID_CHAR,
|
|
|
|
RID_FLOAT,
|
|
|
|
RID_DOUBLE,
|
|
|
|
RID_VOID,
|
|
|
|
RID_UNUSED1,
|
|
|
|
|
|
|
|
RID_UNSIGNED,
|
|
|
|
RID_SHORT,
|
|
|
|
RID_LONG,
|
|
|
|
RID_AUTO,
|
|
|
|
RID_STATIC,
|
|
|
|
RID_EXTERN,
|
|
|
|
RID_REGISTER,
|
|
|
|
RID_TYPEDEF,
|
|
|
|
RID_SIGNED,
|
|
|
|
RID_CONST,
|
|
|
|
RID_VOLATILE,
|
|
|
|
RID_INLINE,
|
|
|
|
RID_NOALIAS,
|
1993-03-01 21:33:39 -05:00
|
|
|
RID_ITERATOR,
|
1993-03-04 12:59:30 -05:00
|
|
|
RID_COMPLEX,
|
1991-11-30 01:21:16 -05:00
|
|
|
|
1993-04-09 19:06:58 -04:00
|
|
|
RID_IN,
|
|
|
|
RID_OUT,
|
|
|
|
RID_INOUT,
|
|
|
|
RID_BYCOPY,
|
|
|
|
RID_ONEWAY,
|
|
|
|
RID_ID,
|
|
|
|
|
1991-11-30 01:21:16 -05:00
|
|
|
RID_MAX
|
|
|
|
};
|
|
|
|
|
1991-12-22 16:51:18 -05:00
|
|
|
#define NORID RID_UNUSED
|
|
|
|
|
1991-11-30 01:21:16 -05:00
|
|
|
#define RID_FIRST_MODIFIER RID_UNSIGNED
|
1991-12-22 16:51:18 -05:00
|
|
|
|
|
|
|
/* The elements of `ridpointers' are identifier nodes
|
|
|
|
for the reserved type names and storage classes.
|
|
|
|
It is indexed by a RID_... value. */
|
|
|
|
extern tree ridpointers[(int) RID_MAX];
|
1991-12-23 21:15:13 -05:00
|
|
|
|
|
|
|
/* the declaration found for the last IDENTIFIER token read in.
|
|
|
|
yylex must look this up to detect typedefs, which get token type TYPENAME,
|
|
|
|
so it is left around in case the identifier is not a typedef but is
|
|
|
|
used in a context which makes it a reference to a variable. */
|
|
|
|
extern tree lastiddecl;
|
|
|
|
|
|
|
|
extern char *token_buffer; /* Pointer to token buffer. */
|
|
|
|
|
1998-04-08 05:57:52 -04:00
|
|
|
extern tree make_pointer_declarator PROTO((tree, tree));
|
|
|
|
extern void reinit_parse_for_function PROTO((void));
|
c-lex.c (is_class_name): Delete declaration.
* c-lex.c (is_class_name): Delete declaration.
(whitespace_cr): Make static and add prototype.
* c-lex.h (make_pointer_declarator, reinit_parse_for_function,
yylex, get_directive_line): Turn declarations into prototypes.
(position_after_whitespace, check_newline, yyerror,, is_class_name,
forget_protocol_qualifiers, remember_protocol_qualifiers): Add
prototypes.
* genattr.c (extend_range, write_upcase, gen_attr, write_units): Add
prototypes.
* gencodes.c (gen_insn): Add prototype.
* genconfig.c (walk_insn, gen_insn, gen_expand, gen_split,
gen_peephole): Add prototypes.
* genflags.c (num_operands, gen_proto, gen_nonproto, gen_insn): Add
prototypes.
* gengenrtl.c (type_from_format, accessor_from_format, special_rtx,
special_format, find_formats, gendecl, genmacro, gendef, genlegend,
genheader, gencode): Add prototypes.
* genopinit.c (gen_insn): Add prototype.
* genoutput.c (output_prologue, output_epilogue, scan_operands,
process_template, validate_insn_alternatives, gen_insn, gen_peephole,
gen_expand, gen_split, n_occurrences): Add prototypes.
* genpeep.c (gen_peephole): Add prototype.
* loop.c (find_and_verify_loops, mark_loop_jump, prescan_loop,
reg_in_basic_block_p, consec_sets_invariant_p, libcall_other_reg,
labels_in_range_p, count_loop_regs_set, note_addr_stored,
loop_reg_used_before_p, scan_loop, replace_call_address,
skip_consec_insns, libcall_benefit, ignore_some_movables,
force_movables, combine_movables, rtx_equal_for_loop_p, move_movables,
strength_reduce, valid_initial_value_p, find_mem_givs, record_biv,
check_final_value, record_giv, update_giv_derive, basic_induction_var,
simplify_giv_expr, general_induction_var, consec_sets_giv,
check_dbra_loop, express_from, combine_givs_p, combine_givs,
product_cheap_p, maybe_eliminate_biv, maybe_eliminate_biv_1,
last_use_this_basic_block, record_initial, update_reg_last_use,
iteration_info, analyze_loop_iterations, insert_bct,
instrument_loop_bct, indirect_jump_in_function_p): Turn declarations
into prototypes.
From-SVN: r19038
1998-04-07 19:47:11 -04:00
|
|
|
extern void position_after_whitespace PROTO((void));
|
|
|
|
extern int check_newline PROTO((void));
|
|
|
|
|
|
|
|
extern int yylex PROTO((void));
|
|
|
|
extern void yyerror PROTO((char *));
|
|
|
|
|
|
|
|
extern char *get_directive_line PROTO((FILE *));
|
|
|
|
|
|
|
|
extern void forget_protocol_qualifiers PROTO((void));
|
|
|
|
extern void remember_protocol_qualifiers PROTO((void));
|
1998-04-08 05:57:52 -04:00
|
|
|
extern tree is_class_name PROTO((tree));
|