inline_always1.adb
1.19 KB
-
[Ada] Crash with Inline_Always on a function with an extended return · d1ec7de5
This patch fixes a crash on a unit with a function with the GNAT-specific Inline_Always pragma whose body is an extended return statement, when compiling with no optimization level specified. 2018-06-11 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * inline.adb (Expand_Inlined_Call): If no optimization level is specified, the expansion of a call to an Inline_Always function is fully performed in the front-end even on a target that support back-end inlining. gcc/testsuite/ * gnat.dg/inline_always1.adb: New testcase. From-SVN: r261402
Ed Schonberg committed