Ada system.fat_lflt.fat_long_float.scaling problem analysis
Robert Dewar
dewar@gnat.com
Sat Sep 18 16:52:00 GMT 2004
Richard Kenner wrote:
> My guess is that the r symbol is not flagged as local when
> there's an address clause and an Import pragma, so it
> might be a gigi problem.
>
> Yup. Indeed when I first saw this, I suspected something in that area.
> I had to make a change in the way that case was handled to avoid an
> inconsistent setting of flags on decls.
>
> I not 100% sure I understand the exact Ada semantics there and need to do
> a little investigation of what that pragma Import is supposed to mean
> in the presence of the address clause. In other place I saw this, it
> seemed to be being uses precisely to define the external name.
The only meaning of the pragma Import when there is an address
clause is to suppress any implicit initialization, which is
something the front end takes care of, otherwise it should
be completely ignored. I guess actually the front end could
do this.
>
> Thanks for cutting this down to a tiny test case. It indeed saved me the
> time of doign that.
More information about the Gcc
mailing list