Re: Enable top-level recursive 'autoreconf'

2023-10-19 Thread Alexandre Oliva via Gcc
On Oct 19, 2023, Thomas Schwinge wrote: > On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: >> I guess I can ask, why there is not a recursive approach for configuring >> GCC. e.g. AC_SUBDIRS in the top level? > ('AC_CONFIG_SUBDIRS' you mean.) You know, often it just takes som

Re: Enable top-level recursive 'autoreconf'

2023-10-19 Thread Eric Gallager
On Thu, Oct 19, 2023 at 6:43 AM Thomas Schwinge wrote: > > Hi! > > On 2023-10-19T11:57:33+0200, Andreas Schwab wrote: > > On Okt 19 2023, Thomas Schwinge wrote: > >> On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: > >>> I guess I can ask, why there is not a recursive approach

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Gallager
On Thu, Oct 19, 2023 at 7:52 AM Martin Uecker wrote: > > > > Note that the C++ warning is for jumping over a declaration, > which is generally allowed in C but not in C++. > > Martin (Also note that in C, there's -Wjump-misses-init for this, which is enabled by -Wc++-compat, which isn't enabled b

gcc-11-20231019 is now available

2023-10-19 Thread GCC Administrator via Gcc
Snapshot gcc-11-20231019 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20231019/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: Arm assembler crc issue

2023-10-19 Thread Iain Sandoe
Hi Richard, > On 19 Oct 2023, at 22:49, Richard Sandiford wrote: > Iain Sandoe writes: >> I am being bitten by a problem that falls out from the code that emits >> >> .arch Armv8.n-a+crc >> >> when the arch is less than Armv8-r. >> The code that does this, in gcc/common/config/aarch64 i

Re: Arm assembler crc issue

2023-10-19 Thread Richard Sandiford via Gcc
Iain Sandoe writes: > Hi Richard, > > > I am being bitten by a problem that falls out from the code that emits > > .arch Armv8.n-a+crc > > when the arch is less than Armv8-r. > The code that does this, in gcc/common/config/aarch64 is quite recent > (2022-09). Heh. A workaround for one as

Re: Arm assembler crc issue

2023-10-19 Thread Iain Sandoe
correction ... > On 19 Oct 2023, at 17:41, Iain Sandoe wrote: > > Hi Richard, > > > I am being bitten by a problem that falls out from the code that emits > > .arch Armv8.n-a+crc > > when the arch is less than Armv8-r. > The code that does this, in gcc/common/config/aarch64 is quite r

Arm assembler crc issue

2023-10-19 Thread Iain Sandoe
Hi Richard, I am being bitten by a problem that falls out from the code that emits .arch Armv8.n-a+crc when the arch is less than Armv8-r. The code that does this, in gcc/common/config/aarch64 is quite recent (2022-09). -- (I admit the permutations are complex and I might have m

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
Thank you for your message. Indeed, the -pedantic flag gives me the warning I expect. -O (as suggested in another response) does not. Eric On Thu, Oct 19, 2023 at 7:49 AM Martin Uecker wrote: > > > > > GCC supports this as an extension. > > Mixing declarations and code is allowed in C99 and C23

Re: the elimination of if blocks in GCC during if-conversion and vectorization

2023-10-19 Thread Richard Biener via Gcc
On Tue, Oct 17, 2023 at 2:39 PM Hanke Zhang wrote: > > Hi Richard > I get it, thank you again. > > And I got another problem, so I'd like ask it by the way. Can the left > shift of the induction variable in a loop be optimized as a constant? > Like the code below: > > int ans = 0; > int width = ra

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Richard Earnshaw via Gcc
On 19/10/2023 12:39, Eric Sokolowsky via Gcc wrote: I am using gcc 13.2 on Fedora 38. Consider the following program. #include int main(int argc, char **argv) { printf("Enter a number: "); int num = 0; scanf("%d", &num); switch (num) { case 1: int a =

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Martin Uecker
Note that the C++ warning is for jumping over a declaration, which is generally allowed in C but not in C++. Martin Am Donnerstag, dem 19.10.2023 um 13:49 +0200 schrieb Martin Uecker: > > > GCC supports this as an extension. > > Mixing declarations and code is allowed in C99 and C23  > will

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Martin Uecker
GCC supports this as an extension. Mixing declarations and code is allowed in C99 and C23  will also allow placing labels before declarations and at the end of a compound statement. GCC supports all this also in earlier language modes. See: https://gcc.gnu.org/onlinedocs/gcc/Mixed-Labels-and-

gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
I am using gcc 13.2 on Fedora 38. Consider the following program. #include int main(int argc, char **argv) { printf("Enter a number: "); int num = 0; scanf("%d", &num); switch (num) { case 1: int a = num + 3; printf("The new number is %d.\n", a); b

Re: Enable top-level recursive 'autoreconf'

2023-10-19 Thread Thomas Schwinge
Hi! On 2023-10-19T11:57:33+0200, Andreas Schwab wrote: > On Okt 19 2023, Thomas Schwinge wrote: >> On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: >>> I guess I can ask, why there is not a recursive approach for configuring >>> GCC. e.g. AC_SUBDIRS in the top level? >> >> ('AC

Re: Enable top-level recursive 'autoreconf'

2023-10-19 Thread Andreas Schwab via Gcc
On Okt 19 2023, Thomas Schwinge wrote: > Hi! > > On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: >> I guess I can ask, why there is not a recursive approach for configuring >> GCC. e.g. AC_SUBDIRS in the top level? > > ('AC_CONFIG_SUBDIRS' you mean.) You know, often it just ta

Enable top-level recursive 'autoreconf' (was: Hints on reconfiguring GCC)

2023-10-19 Thread Thomas Schwinge
Hi! On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: > I guess I can ask, why there is not a recursive approach for configuring > GCC. e.g. AC_SUBDIRS in the top level? ('AC_CONFIG_SUBDIRS' you mean.) You know, often it just takes someone to ask the right questions... ;-) Wh