~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to h/alpha-osf1.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "att.h"
 
3
 
 
4
#define PAGEWIDTH 12
 
5
 
 
6
#define HAVE_FLOAT_H
 
7
#define HAVE_AOUT <a.out.h>
 
8
 
 
9
/* make the default allocated relblock suitable for pointer alignment */
 
10
 
 
11
#define USE_PARI_MULLL
 
12
 
 
13
/* #define PLONG_IS_64BIT */
 
14
 
 
15
 
 
16
#undef NUMBER_OPEN_FILES
 
17
#define NUMBER_OPEN_FILES getdtablesize()
 
18
 
 
19
 
 
20
#define ADDITIONAL_FEATURES \
 
21
                     ADD_FEATURE("MIPS") ; ADD_FEATURE("DLOPEN"); \
 
22
   ADD_FEATURE("LD-NOT-ACCEPT-DATA") ; \
 
23
   ADD_FEATURE("POINTER-BIGGER-INT") ; \
 
24
   ADD_FEATURE("EXPECT-UNRESOLVED")     
 
25
 
 
26
/* we dont tack on the data file but rather use it */
 
27
#define SEEK_TO_END_OFILE(x) fseek(x,0,2)
 
28
 
 
29
 
 
30
/* #define      mips 1
 
31
   The system defines this
 
32
 */
 
33
#define IEEEFLOAT
 
34
 
 
35
/* The exponent and most signif are in the second word for doubles */
 
36
#define LITTLE_END
 
37
 
 
38
#undef   FILECPY_HEADER
 
39
#define FILECPY_HEADER \
 
40
        filecpy(save, original, header.a_text);
 
41
 
 
42
 
 
43
        /* text relocated; data is page-aligned after the text */
 
44
#define DATA_BEGIN (char *)((TXTRELOC+header.a_text+(PAGSIZ-1)) & ~(PAGSIZ-1))
 
45
 
 
46
#define PAGSIZ          4096
 
47
#define TXTRELOC        4096
 
48
 
 
49
#undef SET_REAL_MAXPAGE
 
50
#define SET_REAL_MAXPAGE real_maxpage = MAXPAGE
 
51
 
 
52
#define RELOC_FILE "rel_coff.c"
 
53
 
 
54
#undef SFASL
 
55
 
 
56
 
 
57
#undef NEED_GETWD
 
58
 
 
59
 
 
60
 
 
61
 
 
62
 
 
63
 
 
64
#ifdef IN_UNIXFSYS
 
65
#undef ATT
 
66
#define BSD
 
67
#endif
 
68
 
 
69
#ifdef IN_UNIXTIME
 
70
#undef ATT
 
71
#define BSD
 
72
#endif
 
73
 
 
74
 
 
75
 
 
76
/* #define DBEGIN 0x12000000 */
 
77
#define TBEGIN 0x10000000
 
78
#define NOFREE_ERR
 
79
 
 
80
/* #define INT_TO_ADDRESS(x) ((long) x ? (object) (0x100000000 |  (long) x) : (object )0) */
 
81
#define INT_TO_ADDRESS(x) ((void *)(long)x)
 
82
 
 
83
#define NULL_OR_ON_C_STACK(x) ((long)x < TBEGIN)
 
84
 
 
85
#define TEXT_START    TBEGIN
 
86
#define DATA_START    DBEGIN
 
87
#define UNIXSAVE "unexmips.c"
 
88
 
 
89
/* #define UNIXFASL "faslosf.c" */
 
90
#define UNIXFASL "fasldlsym.c"
 
91
#define USE_DLOPEN
 
92
#define MAKE_SHARED_LIB  
 
93
 
 
94
/* this is a pretty poor test... */
 
95
#define IS_NOT_SHARED_OBJECT(fhdr,faslstream) \
 
96
   (fhdr.f_nscns < 8)
 
97
#define LD_SHARED(filename,buf) \
 
98
 sprintf(com,"ld -shared %s -expect_unresolved '*' -o %s -lc",filename, buf)
 
99
 
 
100
#define HAVE_GETDTABLESIZE
 
101
 
 
102
#define SIGPROTV SIGBUS
 
103
#define GET_FAULT_ADDR(sig,code,sv,a) ((char *) code)
 
104
#define MPROTECT_FAIL_VALUE -1
 
105
 
 
106
/* void * is not accepted by compiler */
 
107
#define NO_VOID_STAR
 
108
 
 
109
#undef IF_ALLOCATE_ERR 
 
110
 
 
111
#define IF_ALLOCATE_ERR \
 
112
        if (core_end != sbrk(0))\
 
113
         {int ll;   \
 
114
           if ((ll=(int)(sbrk(0) - core_end))  <= PAGESIZE) \
 
115
           {sbrk(PAGESIZE - ll); \
 
116
            type_map[page(core_end)] = t_other; \
 
117
            heap_end=core_end = sbrk(0); }\
 
118
          else  \
 
119
        error("Someone allocated my memory!");} \
 
120
        if (core_end != (sbrk(PAGESIZE*(n - m))))
 
121
 
 
122
#define  DO_BEFORE_SAVE setbuf(stdin,0) ; setbuf(stdout,0) ;setbuf(stderr,0) ;
 
123
 
 
124
#define INIT_CORE_END terminal_io->sm.sm_object0->sm.sm_fp = stdin;terminal_io->sm.sm_object1->sm.sm_fp = stdout;
 
125
 
 
126
 
 
127
#ifdef IN_NUM_CO
 
128
#include <float.h>
 
129
#endif
 
130
 
 
131
/* Begin for cmpinclude */
 
132
 
 
133
#define SYSTEM_SPECIAL_INIT static init_code(){do_init(VV);}
 
134
 
 
135
#define plong int
 
136
 
 
137
/* #define SGC */
 
138
 
 
139
 
 
140
/* End for cmpinclude */
 
141