OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [fortran/] [trans-const.h] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 285 jeremybenn
/* Header for code constant translation functions
2
   Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
3
   Free Software Foundation, Inc.
4
   Contributed by Paul Brook
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify it under
9
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
12
 
13
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
 
22
/* Converts between INT_CST and GMP integer representations.  */
23
tree gfc_conv_mpz_to_tree (mpz_t, int);
24
void gfc_conv_tree_to_mpz (mpz_t, tree);
25
 
26
/* Converts between REAL_CST and MPFR floating-point representations.  */
27
tree gfc_conv_mpfr_to_tree (mpfr_t, int, int);
28
void gfc_conv_tree_to_mpfr (mpfr_ptr, tree);
29
 
30
/* Build a tree for a constant.  Must be an EXPR_CONSTANT gfc_expr.
31
   For CHARACTER literal constants, the caller still has to set the
32
   string length as a separate operation.  */
33
tree gfc_conv_constant_to_tree (gfc_expr *);
34
 
35
/* Like gfc_conv_noncharacter_constant, but works on simplified expression
36
   structures.  Also sets the length of CHARACTER strings in the gfc_se.  */
37
void gfc_conv_constant (gfc_se *, gfc_expr *);
38
 
39
tree gfc_build_string_const (int, const char *);
40
tree gfc_build_wide_string_const (int, int, const gfc_char_t *);
41
tree gfc_build_cstring_const (const char *);
42
tree gfc_build_localized_cstring_const (const char *);
43
 
44
/* Translate a string constant for a static initializer.  */
45
tree gfc_conv_string_init (tree, gfc_expr *);
46
 
47
/* Create a tree node for the string length if it is constant.  */
48
void gfc_conv_const_charlen (gfc_charlen *);
49
 
50
/* Initialize the nodes for constants.  */
51
void gfc_init_constants (void);
52
 
53
/* Build a constant with given type from an int_cst.  */
54
tree gfc_build_const (tree, tree);
55
 
56
/* Integer constants 0..GFC_MAX_DIMENSIONS.  */
57
extern GTY(()) tree gfc_rank_cst[GFC_MAX_DIMENSIONS + 1];
58
 
59
#define gfc_index_zero_node gfc_rank_cst[0]
60
#define gfc_index_one_node gfc_rank_cst[1]

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.