Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-19 Thread Richard Biener via Gcc-patches
On Fri, 19 Nov 2021, Bernhard Reutner-Fischer wrote: > On Fri, 19 Nov 2021 10:35:26 +0100 (CET) > Richard Biener via Gcc-patches wrote: > > > On Fri, 19 Nov 2021, Alexandre Oliva wrote: > > > > > On Nov 18, 2021, Richard Biener wrote: > > > > > > > IMHO a more reasonable thing to do would b

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-19 Thread Bernhard Reutner-Fischer via Gcc-patches
On Fri, 19 Nov 2021 10:35:26 +0100 (CET) Richard Biener via Gcc-patches wrote: > On Fri, 19 Nov 2021, Alexandre Oliva wrote: > > > On Nov 18, 2021, Richard Biener wrote: > > > > > IMHO a more reasonable thing to do would be to not treat > > > -o /dev/null as a source for -dumpdir and friends

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-19 Thread Richard Biener via Gcc-patches
On Fri, 19 Nov 2021, Alexandre Oliva wrote: > On Nov 18, 2021, Richard Biener wrote: > > > IMHO a more reasonable thing to do would be to not treat > > -o /dev/null as a source for -dumpdir and friends. Alex? > > +1 > > I think we already have some special-casing for /dev/null somewhere. Gre

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-19 Thread Alexandre Oliva via Gcc-patches
On Nov 18, 2021, Richard Biener wrote: > IMHO a more reasonable thing to do would be to not treat > -o /dev/null as a source for -dumpdir and friends. Alex? +1 I think we already have some special-casing for /dev/null somewhere. > You did the last re-org, where'd we put such special casing?

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-18 Thread Richard Biener via Gcc-patches
On Thu, 18 Nov 2021, Giuliano Belinassi wrote: > On Thu, 2021-11-18 at 10:43 +0100, Richard Biener wrote: > > On Tue, 16 Nov 2021, Giuliano Belinassi wrote: > > > > > The `configure` scripts generated with autoconf often tests > > > compiler > > > features by setting output to `/dev/null`, which

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-18 Thread Giuliano Belinassi via Gcc-patches
On Thu, 2021-11-18 at 10:43 +0100, Richard Biener wrote: > On Tue, 16 Nov 2021, Giuliano Belinassi wrote: > > > The `configure` scripts generated with autoconf often tests > > compiler > > features by setting output to `/dev/null`, which then sets the dump > > folder as being /dev/* and the compil

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-18 Thread Martin Liška
On 11/16/21 17:52, Giuliano Belinassi via Gcc-patches wrote: |+ if (strncmp(slash_dev, filename, strlen(slash_dev)) == 0)| Btw. you can use startswith function. Cheers, Martin

Re: [PATCH] Do not abort compilation when dump file is /dev/*

2021-11-18 Thread Richard Biener via Gcc-patches
On Tue, 16 Nov 2021, Giuliano Belinassi wrote: > The `configure` scripts generated with autoconf often tests compiler > features by setting output to `/dev/null`, which then sets the dump > folder as being /dev/* and the compilation halts with an error because > GCC cannot create files in /dev/. T

[PATCH] Do not abort compilation when dump file is /dev/*

2021-11-16 Thread Giuliano Belinassi via Gcc-patches
The `configure` scripts generated with autoconf often tests compiler features by setting output to `/dev/null`, which then sets the dump folder as being /dev/* and the compilation halts with an error because GCC cannot create files in /dev/. This is a problem when configure is testing for compiler