[Bug ada/69219] [5/6 regression] failed to compile nested subprograms with Inline_Always and Intrinsic
demoonlit at panathenaia dot halfmoon.jp
gcc-bugzilla@gcc.gnu.org
Tue Jan 12 00:03:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69219
--- Comment #2 from yuta tomino <demoonlit at panathenaia dot halfmoon.jp> ---
> Yes, remove the convention Intrinsic, it doesn't make any sense here or add pragma Inline_Always on the nested subprogram as indicated.
I agree with your sense. The local subprograms would be optimized well without
the pragmas.
Of course, I did not write the code directly like described above.
Practically, I found this bug from some instantiations of the generic packages.
The real problem is that we can not use the pattern of Inline_Always and
Intrinsic, in writing any generic package, to reduce the code size for
instantiating it in the library-level, because of also allowing use of it in
the nested scope.
More information about the Gcc-bugs
mailing list