1 typedef BYTE
unsigned char; /* { dg-error "expected" } */
4 struct PENT
{ caddr_t v_addr
; };/* { dg-error "expected" } */
5 typedef struct PENT prec
;
6 typedef struct PENT
*prec_t
;
8 BYTE
*mem_base
; /* { dg-error "expected" } */
10 BYTE
*p_page
; /* { dg-error "expected" } */
13 typedef struct PTE pte
;
16 struct *PTP p_tablep
; /* { dg-error "expected" } */
21 typedef struct PTP (u
.p_tablep
);/* { dg-error "expected" } */
27 caddr_t va
; /* { dg-error "expected" } */
29 BYTE
*page_addr
; /* { dg-error "undeclared|for each function" } */
30 if (mmu_base
[Level1(va
)]->valid
==0x0) { /* { dg-error "undeclared" } */
31 l1_base
= mmu_base
[Level1(va
)]->(u
.p_tablep
) = p_alloc(); /* { dg-error "expected|undeclared" } */
32 mmu_base
[Level1(va
)]->valid
= 0x3;
33 for (idx
=0; idx
<LEVEL1_ENTRIES
; idx
++) /* { dg-error "undeclared" } */
34 l1_base
[idx
]->valid
= 0x0;
37 l1_base
= mmu_base
[Level1(va
)]->(u
.p_tablep
); /* { dg-error "expected" } */
39 if (l1_base
[Level2(va
)]->valid
==0x0) {
41 l2_base
= l1_base
[Level2(va
)]->(u
.p_tablep
) = p_alloc(); /* { dg-error "expected|undeclared" } */
42 l1_base
[Level2(va
)]->valid
= 0x3;
43 for (idx
=0; idx
<LEVEL2_ENTRIES
; idx
++) /* { dg-error "undeclared" } */
44 l2_base
[idx
]->valid
=0x0;
45 goto build_page
; /* { dg-error "used but not defined" } */
47 l2_base
= mmu_base
[Level2(va
)]->(u
.p_tablep
); /* { dg-error "expected" } */
49 page_addr
= l2_base
[Level2(va
)]->valid
;
53 a_translate(va_op
, v_addr
)
55 caddr_t v_addr
; /* { dg-error "expected" } */
57 register prec_t bucket
;
58 register caddr_t p_addr
; /* { dg-error "expected|undeclared" } */
59 bucket
= mem_hash
+((((v_addr
)>>ITEMBITS
))&hash_mask
); /* { dg-error "undeclared" } */
61 if (bucket
->v_addr
== ((v_addr
)>>ITEMBITS
) { /* { dg-error "expected|undeclared|no member" } */
62 if(!(bucket
->perm_set
&va_op
))
64 return mem_base
+ v_addr
;
66 } while((bucket
++)->v_addr
!= ((caddr_t
)0)); /* { dg-error "expected|undeclared|no member" } */
69 p_addr
= (--bucket
)->p_addr
; /* { dg-error "no member" } */
72 case BUCKET_FULL
: /* { dg-error "undeclared" } */
73 enlarge_hash_table(mem_hash
);
74 case((caddr_t
)0): /* { dg-error "expected" } */
75 p_addr
= fill_item_entry(va_op
, v_addr
);
77 case((caddr_t
)1): /* { dg-error "expected" } */
79 ((void)(((0))?0:(__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
80 "FALSE", 327, "b.c"), 0)));
85 flush_hash(hasht
, hash_size
)
89 register prec_t bucket
;
92 for(idx
=(hash_size
*3)-1; idx
>=0; idx
--) {
93 bucket
->v_addr
= ((caddr_t
)0);/* { dg-error "undeclared|expected|no member" } */
94 bucket
->p_addr
= ((caddr_t
)0);/* { dg-error "no member|expected" } */
95 bucket
->perm_set
= VA_EMPTY
; /* { dg-error "undeclared|no member" } */
99 extern void *calloc(__SIZE_TYPE__
, __SIZE_TYPE__
);
104 mem_base
= (BYTE
*) calloc(1024, (1<<13)); /* { dg-error "undeclared|expected" } */
105 ((void)((mem_base
!= (BYTE
*)0) /* { dg-error "expected" } */
107 : (__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
108 "mem_base != (BYTE *)0", 366, "b.c"),
110 hash_num
= INIT_NUM_ENTRIES
* 3; /* { dg-error "undeclared" } */
111 mem_hash
= (prec_t
) calloc(hash_num
, sizeof(prec
));
112 ((void)((mem_hash
!= (prec_t
)0)
114 : (__eprintf("Failed assertion`%s'at line%d of`%s'.\n",
115 "mem_hash != (prec_t)0", 370, "b.c"),
117 flush_hash(mem_hash
, 32);
118 build_ptables(mem_base
, 1024*(1<<13)); /* { dg-bogus "integer overflow" "int smaller than 32 bits" } */
122 int tm_sec
; int tm_min
; int tm_hour
;
123 int tm_mday
;int tm_mon
; int tm_year
;
124 int tm_wday
;int tm_yday
;int tm_isdst
;
125 char*tm_zone
; long tm_gmtoff
;