trans.c (gnat_compile_time_expr_list): New variable.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 23 Sep 2019 08:27:40 +0000 (08:27 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 23 Sep 2019 08:27:40 +0000 (08:27 +0000)
commitec4a0d837764aa230aab3b5c8d1567c3fdd170d7
tree1eaa3f745664785d4d24dd431335934c355ad61f
parentef5a9557bdfeef1d7941ec52702a25f2de9abcdc
trans.c (gnat_compile_time_expr_list): New variable.

* gcc-interface/trans.c (gnat_compile_time_expr_list): New variable.
(Pragma_to_gnu): Rename local variable.  Save the (first) expression
of pragma Compile_Time_{Error|Warning} for later processing.
(Compilation_Unit_to_gnu): Process the expressions saved above.

From-SVN: r276045
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/compile_time1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/compile_time1_pkg.ads [new file with mode: 0644]