This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ada: fix layout of packed arrays


>  To get this to compile I've had to add:
>
> with Interfaces;
> use interfaces;
> with Ada.Text_IO;
> use Ada.Text_IO;

Sure, the original testcase starts with:

with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
with Ada.Text_IO; use Ada.Text_IO;

Note that the testcase is only meant to be run on big-endian targets, it 
produces garbage on little-endian targets because packed arrays are 
right-justified there.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]