Re: [PATCH] testsuite: Remove reliance on argc in lto/pr101868_0.c

2022-06-23 Thread Richard Biener via Gcc-patches
On Thu, Jun 23, 2022 at 11:23 PM Dimitar Dimitrov wrote: > > Some embedded targets do not pass any argv arguments. When argc is > zero, this causes spurious failures for lto/pr101868_0.c. Fix by > following the strategy in r0-114701-g2c49569ecea56d. Use a volatile > variable instead of argc to

[PATCH] testsuite: Remove reliance on argc in lto/pr101868_0.c

2022-06-23 Thread Dimitar Dimitrov
Some embedded targets do not pass any argv arguments. When argc is zero, this causes spurious failures for lto/pr101868_0.c. Fix by following the strategy in r0-114701-g2c49569ecea56d. Use a volatile variable instead of argc to inject a runtime value into the test. I validated the following: