Re: [COMMITTED] PR46932: Fix unresolved in testsuite

2017-08-07 Thread Richard Earnshaw (lists)
On 07/08/17 15:42, Wilco Dijkstra wrote: > Richard Earnshaw wrote: >> >> Except that I think this would be better done as an 'effective target' >> test; something like >> >> dg-require-effective-target autoincdec >> >> that way new ports will be more likely to pick up relevant tests like this. > >

Re: [COMMITTED] PR46932: Fix unresolved in testsuite

2017-08-07 Thread Wilco Dijkstra
Richard Earnshaw wrote: > > Except that I think this would be better done as an 'effective target' > test; something like > > dg-require-effective-target autoincdec > > that way new ports will be more likely to pick up relevant tests like this. Sure but what would be a correct implementation of

Re: [COMMITTED] PR46932: Fix unresolved in testsuite

2017-08-07 Thread Richard Earnshaw (lists)
On 07/08/17 14:59, Wilco Dijkstra wrote: > Build only if pre-increment is supported. Given there is no config test, > add a list of targets which have HAVE_PRE_INCREMENT set. > > Committed as obvious. > Except that I think this would be better done as an 'effective target' test; something like

[COMMITTED] PR46932: Fix unresolved in testsuite

2017-08-07 Thread Wilco Dijkstra
Build only if pre-increment is supported. Given there is no config test, add a list of targets which have HAVE_PRE_INCREMENT set. Committed as obvious. 2017-08-07 Wilco Dijkstra PR middle-end/46932 * gcc.dg/pr46932.c: Compile on targets with pre-increment. -- diff --git a/gc