fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libgloss / testsuite / libgloss.all / struct.c
blob799f9a50fe33d28b253fbbd5bf373ec1f19aabcd
1 /* Oki bug report, no number. Here's the output the error generates.
3 gcc -c -g -ansi oki008.c -o oki008.o -msoft-float
4 oki008.c: In function `Proc0':
5 oki008.c:50: internal error--insn does not satisfy its constraints:
6 (insn 37 35 24 (set (mem:DF (post_inc:DF (reg:SI 1 %r1)))
7 (reg:DF 48 %fr12)) 94 {reload_outdf+2} (nil)
8 (nil))
9 gcc: Internal compiler error: program cc1 got fatal signal 6
12 #include <stdio.h>
14 typedef int Enumeration;
15 typedef int OneToFifty;
16 typedef char String30[31];
17 struct Record
19 struct Record *PtrComp;
20 Enumeration Discr;
21 Enumeration EnumComp;
22 OneToFifty IntComp;
23 String30 StringComp;
26 typedef struct Record RecordType;
27 typedef RecordType * RecordPtr;
28 typedef int boolean;
30 #include <stdio.h>
32 char buf[0x10000];
33 char *pbuf = buf;
35 char *_malloc(size)
37 char *p;
39 p = pbuf;
40 pbuf += size;
41 if (pbuf >= &buf[sizeof (buf)]) {
42 printf("_malloc error\n");
43 return (0);
45 return (p);
48 main()
50 Proc0();
51 pass ("struct");
52 fflush (stdout);
53 return (0);
56 RecordPtr PtrGlbNext;
58 Proc0()
60 extern char *_malloc();
62 register unsigned int i;
64 PtrGlbNext = (RecordPtr) _malloc(sizeof(RecordType));