BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / gcc-2.3.3 / halfpic.h
CommitLineData
78f96d04
C
1/* OSF/rose half-pic support definitions.
2 Copyright (C) 1992 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20extern int flag_half_pic; /* Global half-pic flag. */
21extern int half_pic_number_ptrs; /* # distinct pointers found */
22extern int half_pic_number_refs; /* # half-pic references */
23extern void half_pic_encode (); /* encode whether half-pic */
24extern void half_pic_declare (); /* declare object local */
25extern void half_pic_init (); /* half_pic initialization */
26extern void half_pic_finish (); /* half_pic termination */
27extern int half_pic_address_p (); /* true if an address is half-pic */
28extern struct rtx_def *half_pic_ptr (); /* return RTX for half-pic pointer */
29
30/* Macros to provide access to the half-pic stuff (so they can easily
31 be stubbed out. */
32
33#define HALF_PIC_P() (flag_half_pic)
34#define HALF_PIC_NUMBER_PTRS (half_pic_number_ptrs)
35#define HALF_PIC_NUMBER_REFS (half_pic_number_refs)
36
37#define HALF_PIC_ENCODE(DECL) half_pic_encode (DECL)
38#define HALF_PIC_DECLARE(NAME) half_pic_declare (NAME)
39#define HALF_PIC_INIT() half_pic_init ()
40#define HALF_PIC_FINISH(STREAM) half_pic_finish (STREAM)
41#define HALF_PIC_ADDRESS_P(X) half_pic_address_p (X)
42#define HALF_PIC_PTR(X) half_pic_ptr (X)
43
44/* Prefix for half-pic names */
45#ifndef HALF_PIC_PREFIX
46#define HALF_PIC_PREFIX "__pic_"
47#endif