PR testsuite/79036 - gcc.dg/tree-ssa/builtin-sprintf.c fails starting with r244037
[official-gcc.git] / gcc / ada / s-vxwork-m68k.ads
blob678ca5ae7c98af4f5ef4bfa8b86a8b12d54c680d
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
4 -- --
5 -- S Y S T E M . V X W O R K S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1998-2009, Free Software Foundation, Inc. --
10 -- --
11 -- GNARL is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNARL was developed by the GNARL team at Florida State University. --
28 -- Extensive contributions were provided by Ada Core Technologies, Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This is the M68K VxWorks version of this package
34 with Interfaces.C;
36 package System.VxWorks is
37 pragma Preelaborate;
39 package IC renames Interfaces.C;
41 -- Floating point context record. 68K version
43 FP_NUM_DREGS : constant := 8;
44 FP_STATE_FRAME_SIZE : constant := 216;
46 type DOUBLEX is array (1 .. 12) of Interfaces.Unsigned_8;
47 pragma Pack (DOUBLEX);
48 for DOUBLEX'Size use 12 * 8;
50 type DOUBLEX_Array is array (1 .. FP_NUM_DREGS) of DOUBLEX;
51 pragma Pack (DOUBLEX_Array);
52 for DOUBLEX_Array'Size use FP_NUM_DREGS * 12 * 8;
54 type FPREG_SET is record
55 fpcr : IC.int;
56 fpsr : IC.int;
57 fpiar : IC.int;
58 fpx : DOUBLEX_Array;
59 end record;
61 type Fp_State_Frame_Array is array (1 .. FP_STATE_FRAME_SIZE) of IC.char;
62 pragma Pack (Fp_State_Frame_Array);
63 for Fp_State_Frame_Array'Size use 8 * FP_STATE_FRAME_SIZE;
65 type FP_CONTEXT is record
66 fpRegSet : FPREG_SET;
67 stateFrame : Fp_State_Frame_Array;
68 end record;
69 pragma Convention (C, FP_CONTEXT);
71 Num_HW_Interrupts : constant := 256;
72 -- Number of entries in the hardware interrupt vector table
74 end System.VxWorks;