Re: [PATCH] configure: add --disable-fix-includes

2022-05-20 Thread Alexandre Oliva via Gcc-patches
On May 11, 2022, Martin Liška wrote: > Ready to be installed? Hmm... I don't like that --disable-fixincludes would still configure, build and even install fixincludes. This would be surprising, given that the semantics of disabling a component is to not even configure it. How about leaving

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Martin Liška
On 5/11/22 14:48, Andreas Schwab wrote: > On Mai 11 2022, Martin Liška wrote: > >> @Joseph: Can you please help me why --disable-$foo disables building $foo >> folder during the build? > > # Handle --disable- generically. > for dir in $configdirs $build_configdirs $target_configdirs ; do >

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Andreas Schwab
On Mai 11 2022, Martin Liška wrote: > @Joseph: Can you please help me why --disable-$foo disables building $foo > folder during the build? # Handle --disable- generically. for dir in $configdirs $build_configdirs $target_configdirs ; do dirname=`echo $dir | sed -e s/target-//g -e s/build-//g

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Martin Liška
On 5/11/22 13:31, Rainer Orth wrote: > Hi Martin, > >>>> Subject: [PATCH] configure: add --disable-fix-includes >>> >>> As I've mentioned before, I believe, the command is called fixincludes >>> in current gcc docs, and the option should reflect tha

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Rainer Orth
Hi Martin, >>> Subject: [PATCH] configure: add --disable-fix-includes >> >> As I've mentioned before, I believe, the command is called fixincludes >> in current gcc docs, and the option should reflect that, not introduce a >> name used nowhere else. >

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Martin Liška
can bootstrap on x86_64-linux-gnu and survives regression tests. >> From 58d431568d6b6163dd9cdc920239f173689a769c Mon Sep 17 00:00:00 2001 >> From: Martin Liska >> Date: Fri, 4 Feb 2022 13:42:14 +0100 >> Subject: [PATCH] configure: add --disable-fix-includes > >

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Rainer Orth
31568d6b6163dd9cdc920239f173689a769c Mon Sep 17 00:00:00 2001 > From: Martin Liska > Date: Fri, 4 Feb 2022 13:42:14 +0100 > Subject: [PATCH] configure: add --disable-fix-includes As I've mentioned before, I believe, the command is called fixincludes in current gcc docs, and the option s

Re: [PATCH] configure: add --disable-fix-includes

2022-05-11 Thread Martin Liška
artinFrom 58d431568d6b6163dd9cdc920239f173689a769c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 4 Feb 2022 13:42:14 +0100 Subject: [PATCH] configure: add --disable-fix-includes Right now, fixinclude takes about 11 seconds on my machine, where it reads 130MB of header files. The number of fixed headers is negligibl

Re: [PATCH] configure: add --disable-fix-includes

2022-05-09 Thread Joseph Myers
If you add a new configure option, it should be documented in install.texi. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] configure: add --disable-fix-includes

2022-05-09 Thread Andreas Schwab
On Mai 09 2022, Martin Liška wrote: > +cat >>confdefs.h <<_ACEOF > +#define FIX_INCLUDES $disable_fix_includes > +_ACEOF Where does this come from? Also, nothing uses it. > diff --git a/gcc/configure.ac b/gcc/configure.ac > index 1171c946e6e..6015e403aa9 100644 > --- a/gcc/configure.ac > +++

[PATCH] configure: add --disable-fix-includes

2022-05-09 Thread Martin Liška
Right now, fixinclude takes about 11 seconds on my machine, where it reads 130MB of header files. The number of fixed headers is negligible without any significant change. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin

Re: [PATCH] configure: add --disable-fix-includes

2022-02-28 Thread Martin Liška
On 2/5/22 03:26, Allan McRae wrote: On 5/2/22 01:22, Martin Liška wrote: On 2/4/22 14:30, Jakub Jelinek via Gcc-patches wrote: We don't ship any include-fixed headers in Fedora/RHEL. Removing include-fixed from an installed folder, I see: make[2]: Entering directory

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Allan McRae via Gcc-patches
On 5/2/22 01:22, Martin Liška wrote: On 2/4/22 14:30, Jakub Jelinek via Gcc-patches wrote: We don't ship any include-fixed headers in Fedora/RHEL. Removing include-fixed from an installed folder, I see: make[2]: Entering directory '/home/marxin/Programming/postgres/src/common' gcc -Wall

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Martin Liška
On 2/4/22 14:30, Jakub Jelinek via Gcc-patches wrote: We don't ship any include-fixed headers in Fedora/RHEL. Removing include-fixed from an installed folder, I see: make[2]: Entering directory '/home/marxin/Programming/postgres/src/common' gcc -Wall -Wmissing-prototypes -Wpointer-arith

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Martin Liška
On 2/4/22 14:07, Rainer Orth wrote: Hi Martin, It seems to me that fixincludes is hardy unused feature for nowadays header files and so I'm suggesting a developer option that can skip the fixing. please remember that there's a world beyond current-day Linux. Sure! That's why I'm suggesting

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Martin Liška
On 2/4/22 14:30, Jakub Jelinek via Gcc-patches wrote: On Fri, Feb 04, 2022 at 02:25:17PM +0100, Richard Biener via Gcc-patches wrote: Besides, have you actually run a regtest with that option? I'm asking because even on Ubuntu 20.04 fixincludes drops in it's own . You need to check that

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Jakub Jelinek via Gcc-patches
On Fri, Feb 04, 2022 at 02:25:17PM +0100, Richard Biener via Gcc-patches wrote: > > Besides, have you actually run a regtest with that option? I'm asking > > because even on Ubuntu 20.04 fixincludes drops in it's own . > > You need to check that dropping that is actually safe. > > limits.h and

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Richard Biener via Gcc-patches
On Fri, Feb 4, 2022 at 2:08 PM Rainer Orth wrote: > > Hi Martin, > > > It seems to me that fixincludes is hardy unused feature for nowadays header > > files and so I'm suggesting a developer option that can skip the fixing. > > please remember that there's a world beyond current-day Linux. > > >

Re: [PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Rainer Orth
Hi Martin, > It seems to me that fixincludes is hardy unused feature for nowadays header > files and so I'm suggesting a developer option that can skip the fixing. please remember that there's a world beyond current-day Linux. > How is the feature used on other targets? There are still quite a

[PATCH] configure: add --disable-fix-includes

2022-02-04 Thread Martin Liška
Hello. It seems to me that fixincludes is hardy unused feature for nowadays header files and so I'm suggesting a developer option that can skip the fixing. How is the feature used on other targets? Right now, fixinclude takes about 11 seconds on my machine, where it reads (and applies regexes)