* gcc.dg/i386-387-1.c: Add new test for __builtin_fmod.
[official-gcc.git] / gcc / treelang / treetree.h
blob72004809b45785ab2271ee3cd496fe9226afd347
1 /*
3 TREELANG Compiler definitions for interfacing to treetree.c
4 (compiler back end interface).
6 Copyright (C) 1986, 87, 89, 92-96, 1997, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
11 later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 In other words, you are welcome to use, share and improve this program.
24 You are forbidden to forbid anyone else to use, share and improve
25 what you give them. Help stamp out software-hoarding!
27 ---------------------------------------------------------------------------
29 Written by Tim Josling 1999, 2000, 2001, based in part on other
30 parts of the GCC compiler.
34 tree tree_code_init_parameters (void);
35 tree tree_code_add_parameter (tree list, tree proto_exp, tree exp);
36 tree tree_code_get_integer_value (unsigned char *chars, unsigned int length);
37 void tree_code_generate_return (tree type, tree exp);
38 void tree_ggc_storage_always_used (void *m);
39 tree tree_code_get_expression (unsigned int exp_type, tree type, tree op1, tree op2, tree op3);
40 tree tree_code_get_numeric_type (unsigned int size1, unsigned int sign1);
41 void tree_code_create_function_initial (tree prev_saved,
42 location_t loc,
43 struct prod_token_parm_item* parms);
44 void tree_code_create_function_wrapup (location_t loc);
45 tree tree_code_create_function_prototype (unsigned char* chars,
46 unsigned int storage_class,
47 unsigned int ret_type,
48 struct prod_token_parm_item* parms,
49 location_t loc);
50 tree tree_code_create_variable (unsigned int storage_class,
51 unsigned char* chars,
52 unsigned int length,
53 unsigned int expression_type,
54 tree init,
55 location_t loc);
56 void tree_code_output_expression_statement (tree code,
57 location_t loc);
58 tree get_type_for_numeric_type (unsigned int numeric_type);
59 void tree_code_if_start (tree exp, location_t loc);
60 void tree_code_if_else (location_t loc);
61 void tree_code_if_end (location_t loc);
62 tree tree_code_get_type (int type_num);
63 void treelang_init_decl_processing (void);
64 void treelang_finish (void);
65 bool treelang_init (void);
66 unsigned int treelang_init_options (unsigned int, const char **);
67 int treelang_handle_option (size_t scode, const char *arg, int value);
68 void treelang_parse_file (int debug_flag);
69 void push_var_level (void);
70 void pop_var_level (void);
71 const char* get_string (const char *s, size_t l);