> * gcc-interface/decl.c (gnat_to_gnu_entity): Convert
> integer_one_node to the appropriate type.
> * gcc-interface/trans.c (gnat_to_gnu): Likewise.
> (pos_to_constructor): Likewise.
OK for the sake of consistency, thanks.
--
Eric Botcazou
On Sat, May 10, 2014 at 9:25 PM, Richard Sandiford
wrote:
> While testing another patch, I hit cases where Ada was building or
> folding additions involving integer_one_node without converting
> it to the type of the other operand. This looked unintentional,
> since all other uses of integer_one_
While testing another patch, I hit cases where Ada was building or
folding additions involving integer_one_node without converting
it to the type of the other operand. This looked unintentional,
since all other uses of integer_one_node seemed to have the conversion.
Tested on x86_64-linux-gnu. O