This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gimplify_parameters
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 20 Dec 04 21:50:46 EST
- Subject: Re: gimplify_parameters
Any chance someone could isolate a minimal version of the Ada case?
Sure. You need two files, though. tbg1220.ads is
package Tbg1220 is
function Foo return Integer;
pragma Import (C, Foo);
type R is record
F1: String (1..Foo);
F2: Integer;
end record;
function Bar (X: R) return Integer;
end Tbg1220;
and tbg1220.adb is
package body Tbg1220 is
function Bar (X: R) return Integer is
begin
return X.F2;
end Bar;
end Tbg1220;