Make the noclone attribute on f1 in vla-optimized-out.c conditional. This
makes the test-case by default identical to
gcc/testsuite/gcc.dg/guality/vla-1.c.
Tested on x86_64-linux.
2018-07-20 Tom de Vries <tdevries@suse.de>
* gdb.base/vla-optimized-out.c: Make noclone attribute conditional on
NOCLONE macro.
* gdb.base/vla-optimized-out.exp: Use additional_flags -DNOCLONE.
+2018-07-20 Tom de Vries <tdevries@suse.de>
+
+ * gdb.base/vla-optimized-out.c: Make noclone attribute conditional on
+ NOCLONE macro.
+ * gdb.base/vla-optimized-out.exp: Use additional_flags -DNOCLONE.
+
2018-07-19 Tom de Vries <tdevries@suse.de>
* gdb.mi/list-thread-groups-available.exp (cores_re): Fix quoting in
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-int __attribute__((noinline, noclone))
+int
+#ifdef NOCLONE
+__attribute__((noinline, noclone))
+#else
+__attribute__((noinline))
+#endif
f1 (int i)
{
char a[i + 1];
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
- {debug optimize=-O1}] } {
+ {debug optimize=-O1 additional_flags=-DNOCLONE}] } {
return -1
}