[Ada] No_Stream_Optimizations ignored for 'Class'Input
authorBob Duff <duff@adacore.com>
Fri, 5 Jul 2019 07:01:49 +0000 (07:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 5 Jul 2019 07:01:49 +0000 (07:01 +0000)
commit8e28429a9395c3c9ed58e4aaa7f6d8b32931f18e
treefe3d084efb7bf0506c2d5933089dcd5c46538828
parent584b52902b4b1bbcabc0e5bdd4196bd223d2f5a8
[Ada] No_Stream_Optimizations ignored for 'Class'Input

This patch fixes a bug in which if pragma Restrictions
(No_Stream_Optimizations) is in effect, it is ignored for T'Class'Input.
Revision 251886  was causing the compiler to bypass
No_Stream_Optimizations.

2019-07-05  Bob Duff  <duff@adacore.com>

gcc/ada/

* exp_attr.adb (Input): Take the No_Stream_Optimizations
restriction into account.

From-SVN: r273103
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb