Re: [committed] c: Default to -std=gnu23

2024-11-17 Thread Florian Weimer
* Joseph Myers: > Change the default language version for C compilation from -std=gnu17 > to -std=gnu23. A few tests are updated to remove local definitions of > bool, true and false (where making such an unconditional test change > seemed to make more sense than changing the test conditionally e

[PATCH] match: Fix the `max==0` pattern for pointers [PR117646]

2024-11-17 Thread Andrew Pinski
For pointers I forgot that BIT_IOR_EXPR is not valid so when I added the pattern to convert `max != 0` (r15-5356), GCC would start to ICEing saying pointer types were not valid for BIT_IOR_EXPR. This fixes the problem by casting to the unsigned type of the inner type. There was another way of fixin

[PATCH v2] c: Introduce -Wfree-labels

2024-11-17 Thread Florian Weimer
This is another recent GCC extension whose use is apparently difficult to spot in code reviews. The name of the option is due to Jonathan Wakely. Part of it could apply to C++ as well (for labels at the end of a compound statement). gcc/c-family/ * c-opts.cc (c_common_post_options): Ini

Re: [committed] c: Default to -std=gnu23

2024-11-17 Thread Sam James
Florian Weimer writes: > * Joseph Myers: > >> Change the default language version for C compilation from -std=gnu17 >> to -std=gnu23. A few tests are updated to remove local definitions of >> bool, true and false (where making such an unconditional test change >> seemed to make more sense than c

[PATCH] PR target/108958: Use mtvsrdd to zero extend GPR DImode to VSX TImode

2024-11-17 Thread Michael Meissner
Previously GCC would zero externd a DImode GPR value to TImode by first zero extending the DImode value into a GPR TImode value, and then do a MTVSRDD to move this value to a VSX register. This patch does the move directly, since if the middle argument to MTVSRDD is 0, it does the zero extend. If

Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-11-17 Thread Andrew Pinski
On Tue, Sep 17, 2024, 3:40 AM Dora, Sunil Kumar < sunilkumar.d...@windriver.com> wrote: > Hi Andrew, > > Initially, I thought to address long command line options (when exceeding > 128KB) without disrupting the existing GCC driver behavior. > > As you suggested, I implemented changes to use the re

Re: [PATCH] Add fancy pointer support in std::map/set

2024-11-17 Thread François Dumont
Hi Here is a new proposal with all the cleanup regarding _Const_Base_ptr that makes support of allocator's fancy pointer type simpler. Also submitted as PR: https://forge.sourceware.org/gcc/gcc-TEST/pulls/27    libstdc++: Add fancy pointer support in map and set     Support fancy allocator

Re: [patch,avr] Adjust comment headers

2024-11-17 Thread Jan Dubiec
On 16.11.2024 13:19, Gerald Pfeifer wrote: [...] How should that be changed? (Simply drop the Atmel line?) I am not sure what you mean, but I think "Atmel" should be replaced with "Microchip" because other devices have manufacturers listed. https://www.microchip.com/pdf/mchp_to_acquire_atmel.p

Re: [PATCH 3/4] RISC-V: Add even/odd vec_perm_const pattern.

2024-11-17 Thread 钟居哲
+shuffle_evenodd_patterns (struct expand_vec_perm_d *d) I prefer it rename into shuffle_even_odd_patterns juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-11-17 20:53 To: gcc-patches CC: palmer; kito.cheng; juzhe.zhong; jeffreyalaw; pan2.li; rdapp.gcc Subject: [PATCH 3/4] RISC-V: Add even/odd

Re: [PATCH 1/2] Produce CodeView info about nested types

2024-11-17 Thread Jeff Law
On 11/17/24 9:01 AM, Mark Harmstone wrote: If the DIE for a struct, class, or union contains a nested type, add a LF_NESTTYPE entry to its field list recording this. Plus if we use a nested type, make sure that its parent also gets defined. This may entail adding a forward definition and crea

Re: [PATCH] testsuite: Fix pr101145inf*.c testcases [PR117494]

2024-11-17 Thread Jeff Law
On 11/17/24 2:48 PM, Andrew Pinski wrote: Instead of doing a dg-run with a specific target check for linux. Use signal as the effective-target since this requires the use of ALARM signal to do the testing. Also use check_vect in the main and renames main to main1 to make sure we don't use the

[committed] Improve ext-dce's ability to eliminate more extensions

2024-11-17 Thread Jeff Law
I was looking at a regression in ext-dce's behavior just before Cauldron. Essentially a bugfix in ext-dce ended up causing us to fail to eliminate some useless extensions. When we have a SUBREG object with SUBREG_PROMOTED_VAR* flags set, we generally have to be more conservative in how we pro

[PATCH 12/15] Alpha: Export `emit_unlikely_jump' for a subsequent change to use

2024-11-17 Thread Maciej W. Rozycki
Rename `emit_unlikely_jump' function to `alpha_emit_unlikely_jump', so as to avoid namespace pollution, updating callers accordingly and export it for use in the machine description. Make it return the insn emitted. gcc/ * config/alpha/alpha-protos.h (alpha_emit_unlikely_jump):

[PATCH 15/15] Alpha: Add option to avoid data races for partial writes

2024-11-17 Thread Maciej W. Rozycki
Similarly to data races with 8-bit byte or 16-bit word quantity memory writes on non-BWX Alpha implementations we have the same problem even on BWX implementations with partial memory writes produced for unaligned stores as well as block memory move and clear operations. This happens at the bo

[PATCH 13/15] IRA+LRA: Let the backend request to split basic blocks

2024-11-17 Thread Maciej W. Rozycki
The next change for Alpha will produce extra labels and branches in reload, which in turn requires basic blocks to be split at completion. We do this already for functions that can trap, so just extend the arrangement with a flag for the backend to use whenever it finds it necessary. g

[PATCH 14/15] Alpha: Add option to avoid data races for sub-longword memory stores

2024-11-17 Thread Maciej W. Rozycki
With non-BWX Alpha implementations we have a problem of data races where a 8-bit byte or 16-bit word quantity is to be written to memory in that in those cases we use an unprotected RMW access of a 32-bit longword or 64-bit quadword width. If contents of the longword or quadword accessed outsi

[COMMITTED] Alpha: Remove leftover `;;' for "unaligned_store"

2024-11-17 Thread Maciej W. Rozycki
Remove stray `;;' from the middle of the introductory comment for the "unaligned_store" expander, clearly a leftover from a previous edition. gcc/ * config/alpha/alpha.md (unaligned_store): Remove stray `;;'. --- Committed as obvious. --- gcc/config/alpha/alpha.md |

[PATCH 08/15] Alpha: Fix offset adjustment in unaligned access helpers

2024-11-17 Thread Maciej W. Rozycki
Correct the offset adjustment made in the multi-word unaligned access helpers such that it is actually used by the unaligned load and store instructions, fixing a bug introduced with commit 1eb356b98df2 ("alpha gprel optimizations")[1] back in 2001, which replaced address changes made directly

[PATCH 10/15] Alpha: Optimize block moves coming from longword-aligned source

2024-11-17 Thread Maciej W. Rozycki
Now that we have proper alignment determination for block moves in place the case of copying a block of longword-aligned data has become real, so implement the merging of loaded data from pairs of SImode registers into single DImode registers for the purpose of using with unaligned stores effic

[PATCH 09/15] Alpha: Also use tree information to get base block alignment

2024-11-17 Thread Maciej W. Rozycki
We hardly ever emit code using machine instructions for aligned memory accesses for block move and clear operation and the reason for this appears to be that suboptimal alignment is often passed by the caller and then we only try to find a better alignment by checking pseudo register pointer al

[PATCH 07/15] Alpha: Adjust MEM alignment for block clear [PR115459]

2024-11-17 Thread Maciej W. Rozycki
By inference it appears to me that the same fix for PR target/115459 needs to be applied to the block clear operation that has been done for block move, as implemented by commit ccfe71518039 ("[alpha] adjust MEM alignment for block move [PR115459]"). gcc/ PR target/115459

[PATCH 06/15] Alpha: Remove code duplication in block clear trailer

2024-11-17 Thread Maciej W. Rozycki
Remove code duplication in the part of `alpha_expand_block_clear' that handles any aligned trailing part of the block, observing that the two legs of code only differ by the machine mode and that we already take the same approach with handling any unaligned prefix earlier on. No functional cha

[PATCH 02/15] testsuite: Expand coverage for `__builtin_memcpy'

2024-11-17 Thread Maciej W. Rozycki
Expand coverage for `__builtin_memcpy', primarily for "cpymemM" block copy pattern, although with smaller sizes open-coded sequences may be produced instead. This verifies block sizes in bytes from 1 to 64, across byte alignments of 1, 2, 4, 8 and byte misalignments within from 0 up to 7 (there

[PATCH 03/15] testsuite: Expand coverage for `__builtin_memset' with 0

2024-11-17 Thread Maciej W. Rozycki
Expand coverage for `__builtin_memset' for the special case of clearing a block, primarily for "setmemM" block set pattern, though with smaller sizes open-coded sequences may be produced instead. This verifies block sizes in bytes from 1 to 64 across byte alignments of 1, 2, 4, 8 and byte misal

[PATCH 04/15] testsuite: Expand coverage for unaligned memory stores

2024-11-17 Thread Maciej W. Rozycki
Expand coverage for unaligned memory stores, for the "insvmisalignM" patterns, for 2-byte, 4-byte, and 8-byte scalars, across byte alignments of 1, 2, 4 and byte misalignments within from 0 up to 7 (there's some redundancy there for the sake of simplicity of the test case), making sure all data

[PATCH] build: Discard obsolete references to $(GCC_PARTS)

2024-11-17 Thread Maciej W. Rozycki
The $(GCC_PARTS) variable was deleted with the Makefile rework in commit fa9585134f6f ("libgcc move to the top level")[1] back in 2007, and yet the Ada and Modula 2 frontends added references to this variable later on, with commit e972fd5281b7 ("[Ada] clean ups in Makefiles")[2] back in 2011 an

Re: [PATCH] Fortran: add bounds-checking for ALLOCATE of CHARACTER with type-spec [PR53357]

2024-11-17 Thread Jerry D
On 11/17/24 2:21 PM, Harald Anlauf wrote: Dear all, the attached patch fixes a rejects-valid / rejects-potentially-valid code issue for ALLOCATE of CHARACTER with type-spec, and add character length checking with -fcheck=bounds for the case at hand. It also improves checking of character funct

Re: [patch,avr] PR84211: Add a new post reload optimization pass

2024-11-17 Thread Georg-Johann Lay
Am 17.11.24 um 15:42 schrieb Georg-Johann Lay: Here are some examples: Here are the examples again, but unTABified for legibility: Without optimization | With optimization | = long long fn_zero (void) { retur

Re: [pushed] doc: Streamline hppa*-hp-hpux11 installation instructions

2024-11-17 Thread Gerald Pfeifer
On Sun, 17 Nov 2024, John David Anglin wrote: >> Dave, any chance you can go through the HP/UX installation docs and see >> what else can be trimmed or needs an update? > I went HP/UX installation docs and trimmed a bunch of stuff.  Okay? > > Dave > --- > gcc: >     * doc/install.texi (Specific) :

[PATCH] Fortran: add bounds-checking for ALLOCATE of CHARACTER with type-spec [PR53357]

2024-11-17 Thread Harald Anlauf
Dear all, the attached patch fixes a rejects-valid / rejects-potentially-valid code issue for ALLOCATE of CHARACTER with type-spec, and add character length checking with -fcheck=bounds for the case at hand. It also improves checking of character function declarations and references slightly, us

PING: [PATCH v3 1/7] Improve outgoing integer argument promotion

2024-11-17 Thread H.J. Lu
On Sun, Nov 10, 2024 at 8:55 PM H.J. Lu wrote: > > For targets, like x86, which define TARGET_PROMOTE_PROTOTYPES to return > true, all integer arguments smaller than int are passed as int: > > [hjl@gnu-tgl-3 pr14907]$ cat x.c > extern int baz (char c1); > > int > foo (char c1) > { > return baz (

[PATCH] testsuite: Fix pr101145inf*.c testcases [PR117494]

2024-11-17 Thread Andrew Pinski
Instead of doing a dg-run with a specific target check for linux. Use signal as the effective-target since this requires the use of ALARM signal to do the testing. Also use check_vect in the main and renames main to main1 to make sure we don't use the registers. Tested on x86_64-linux-gnu.

[committed] hppa: Remove typedef for bool type

2024-11-17 Thread John David Anglin
Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave --- hppa: Remove typedef for bool type In C23, bool is now a keyword. So, doing a typedef for it is invalid. 2024-11-17 John David Anglin libgcc/ChangeLog: PR target/117627 * config/pa/linux-atomic.c: Remove typed

PATCH for Re: new mirror greece

2024-11-17 Thread Gerald Pfeifer
On Wed, 28 Aug 2024, Konstantinos Draziotis wrote: > The issue I was experiencing seems to be resolved now. Please add it to the > mirrors. Location : Thessaloniki / Greece Admin Name : K. A. Draziotis Admin Email : drazi...@gmail.com Sponsor Name: Aristotle Uni

[pushed v2] c-family: add -fsearch-include-path

2024-11-17 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- The C++ modules code has a -fmodule-header (or -x c++-{user,system}-header) option to specify looking up headers to compile to header units on the usual include paths. I'd like to have the same functionality for full C++20 modules such as m

Re: [PATCH 3/3] incremental lto: Remap node order for stability.

2024-11-17 Thread Jan Hubicka
> This patch adds remapping of node order for each lto partition. > Resulting order conserves relative order inside partition, but > is independent of outside symbols. So if lto partition contains > identical set of symbols, their remapped order will be stable > between compilations. > > gcc/Chang

Re: [PATCH v2] RISC-V: Improve vsetvl vconfig alignment

2024-11-17 Thread Jeff Law
On 11/15/24 3:25 AM, Robin Dapp wrote: So this is really the biggest question in my mind. When we kicked this around in the patchwork meeting several weeks ago I got the impression Robin had a correctness concern with this code. Robin, do you remember what had you worried? Unfortunately I h

Re: [PATCH 2/3] Node clones share order.

2024-11-17 Thread Jan Hubicka
> Symbol order corresponds to the order in source code. > For clones their order is currently arbitrarily chosen as max order++ > But it would be more consistent with original purpose to choose clones > order to be shared with the original node order. > This stabilizes clone order for Incremental L

Re: [PATCH 1/3] ipa-strub: Replace cgraph_node order with uid.

2024-11-17 Thread Jan Hubicka
> ipa_strub_set_mode_for_new_functions uses node order as unique ever > increasing identifier. This is better satisfied with uid. > Order loses uniqueness with following patches. > > gcc/ChangeLog: > * ipa-strub.cc (ipa_strub_set_mode_for_new_functions): Replace > order with uid. >

[pushed] c++: -M and modules again

2024-11-17 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- While experimenting with testing module std I noticed that gcc -M broke on it; it seems I need to set directives_only even sooner than I did in r15-4219. gcc/c-family/ChangeLog: * c-ppoutput.cc (preprocess_file): Don't set directiv

[PATCH] Write binary annotations for CodeView S_INLINESITE symbols

2024-11-17 Thread Mark Harmstone
Add "binary annotations" at the end of CodeView S_INLINESITE symbols, which are a series of compressed integers that represent how line numbers map to addresses. This requires assembler support; you will need commit b3aa594d ("gas: add .cv_ucomp and .cv_scomp pseudo-directives") in binutils. gcc/

[PATCH 1/2] Produce CodeView info about nested types

2024-11-17 Thread Mark Harmstone
If the DIE for a struct, class, or union contains a nested type, add a LF_NESTTYPE entry to its field list recording this. Plus if we use a nested type, make sure that its parent also gets defined. This may entail adding a forward definition and creating a deferred type, so we need to call flush_d

[PATCH 2/2] Flatten anonymous structs in CodeView types

2024-11-17 Thread Mark Harmstone
If a CodeView struct, class, or union has as a member an anonymous struct, class, or union, this gets flattened. The sub-struct's members will appear as if they were part of their parent. For this, we move part of get_type_num_struct into a new function add_to_fieldlist, which also handles creatin

Re: [patch,avr] PR84211: Add a new post reload optimization pass

2024-11-17 Thread Denis Chertykov
вс, 17 нояб. 2024 г. в 18:42, Georg-Johann Lay : > > This introduces a new post reload pass that tracks known values held > in registers and performs optimizations based on that knowledge. > > It runs between the two instances of the RTL peephole pass. [...] > (Memento, AbsInt, AbsInsByte,

Re: [PATCH RFC] libcpp, libstdc++: add __has_import builtin

2024-11-17 Thread Jason Merrill
On 11/15/24 6:30 PM, Ville Voutilainen wrote: On Sat, 16 Nov 2024 at 01:12, Jason Merrill wrote: Does this seem like an interesting direction? -- 8< -- A problem with coexistence of module std and the library headers is that import and then #include tends to break (PR99000). But even with t

Mark asm statements as necessary in ipa-fnsummary

2024-11-17 Thread Jan Hubicka
Hi, I forgot to mark asm statements as necessary in ipa-fnsummary. This should mask failure of gcc.dg/guality/pr36728-2.c where the patch enabled cloning which breaks debug info. gcc/ChangeLog: * ipa-fnsummary.cc (find_necessary_statements): ASM statements are necessary. diff --g

Re: [PATCH 2/2] diagnostics: suppress "note: " prefix in nested diagnostics [PR116253]

2024-11-17 Thread David Malcolm
On Sun, 2024-11-17 at 09:01 -0500, David Malcolm wrote: > On Fri, 2024-11-15 at 20:02 -0500, David Malcolm wrote: > > This patch is a followup to: > >   "c++: use diagnostic nesting [PR116253]" > > > > This patch tweaks how text output with experimental-nesting=yes > > prints nested diagnostics, b

Re: [PATCH 2/2] diagnostics: suppress "note: " prefix in nested diagnostics [PR116253]

2024-11-17 Thread David Malcolm
On Fri, 2024-11-15 at 20:02 -0500, David Malcolm wrote: > This patch is a followup to: >   "c++: use diagnostic nesting [PR116253]" > > This patch tweaks how text output with experimental-nesting=yes > prints nested diagnostics, by omitting the leading "note: " from > nested notes. > > This reduc

[PATCH 2/4] RISC-V: Add interleave pattern.

2024-11-17 Thread Robin Dapp
From: Robin Dapp This patch adds efficient handling of interleaving patterns like [0 4 1 5] to vec_perm_const. It is implemented by a slideup and a gather. gcc/ChangeLog: * config/riscv/riscv-v.cc (shuffle_interleave_patterns): New function. (expand_vec_perm_const_1): U

[PATCH 4/4] RISC-V: Improve slide1up pattern.

2024-11-17 Thread Robin Dapp
From: Robin Dapp This patch adds a second variant to implement the extract/slide1up pattern. In order to do a permutation like <3, 4, 5, 6> from vectors <0, 1, 2, 3> and <4, 5, 6, 7> we currently extract <3> from the first vector and re-insert it into the second vector. Unless register-file cro

[PATCH 3/4] RISC-V: Add even/odd vec_perm_const pattern.

2024-11-17 Thread Robin Dapp
From: Robin Dapp This adds handling for even/odd patterns. gcc/ChangeLog: * config/riscv/riscv-v.cc (shuffle_evenodd_patterns): New function. (expand_vec_perm_const_1): Use new function. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vls-vlmax/shuffle-

[PATCH] RISC-V: Add slide to perm_const strategies.

2024-11-17 Thread Robin Dapp
From: Robin Dapp This patch adds a shuffle_slide_patterns to expand_vec_perm_const. It recognizes permutations like {0, 1, 4, 5} or {2, 3, 6, 7} which can be constructed by a slideup or slidedown of one of the vectors into the other one. gcc/ChangeLog: * config/riscv/riscv-v.cc (s

Re: [r15-5336 Regression] FAIL: gcc.dg/guality/pr36728-4.c -Os -DPREVENT_OPTIMIZATION line 16 y == 2 on Linux/x86_64

2024-11-17 Thread Jan Hubicka
> > > > Am 17.11.2024 um 09:54 schrieb Andrew Pinski : > > > > On Sat, Nov 16, 2024 at 9:27 AM haochen.jiang > > wrote: > >> > >> On Linux/x86_64, > >> > >> cee7d080d5c2a5fb8125878998b742c040ec88b4 is the first bad commit > >> commit cee7d080d5c2a5fb8125878998b742c040ec88b4 > >> Author: Jan

Re: [r15-5359 Regression] FAIL: g++.dg/tree-ssa/pr109442.C -std=gnu++26 scan-tree-dump-not optimized "_M_start" on Linux/x86_64

2024-11-17 Thread Jan Hubicka
> On Linux/x86_64, > > cc33f880e553d1aa94d19a349ad755f34c33de9e is the first bad commit > commit cc33f880e553d1aa94d19a349ad755f34c33de9e > Author: Jan Hubicka > Date: Sat Nov 16 23:45:57 2024 +0100 > > Avoid expicit builtion list in tree-ssa-dce > > caused > > FAIL: g++.dg/tree-ssa/pr10

Re: [PATCH v4 0/8] Add maskload else operand.

2024-11-17 Thread Robin Dapp
Ugh... passed the wrong old cover letter to git send-email. Nothing to do with the else operand, it's just the permutes here and the proper cover letter is in 0/4... -- Regards Robin

[PATCH v4 0/8] Add maskload else operand.

2024-11-17 Thread Robin Dapp
From: Robin Dapp Hi, changes from v3: - Check if we support vec_cond_expr for the selected mode in case we need to set the inactive elements to zero. - Add another undef operand to gcn. - Remove unnecessary changes in i386 patch. Robin Dapp (8): docs: Document maskload else operand and beh

[PATCH 0/4] Improve and add VLS slide strategies.

2024-11-17 Thread Robin Dapp
From: Robin Dapp This small series adds slide, interleave, and even/odd permute strategies as well as an improved slide1up pattern. A note: Right now the slide tests as well as the even/odd run tests fail. This is due to two separate bugs, one in varasm and one in vsetvl-avlprop. In varasm we d

Re: [committed] c: Default to -std=gnu23

2024-11-17 Thread Gerald Pfeifer
On Sat, 16 Nov 2024, Andrew Pinski wrote: >> I started seeing the following on x86_64-unknown-freebsd13.3 over night: > Submitted https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669117.html > to fix those warnings. The code was already partly ANSIfied even. Thank you - happy to confirm thi

[pushed] libstdc++: Move a gcc.gnu.org link to https

2024-11-17 Thread Gerald Pfeifer
libstdc++-v3: * doc/xml/manual/intro.xml: Move a gcc.gnu.org link to https. * doc/html/manual/license.html: Regenerate. --- libstdc++-v3/doc/xml/manual/intro.xml | 2 +- libstdc++-v3/doc/html/manual/license.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --g

[pushed] libstdc++: Update link to Angelika Langer's book

2024-11-17 Thread Gerald Pfeifer
Pushed. Gerald libstdc++-v3: * doc/xml/manual/io.xml: Update link to Angelika Langer's book. * doc/html/manual/streambufs.html: Regenerate. --- libstdc++-v3/doc/html/manual/streambufs.html | 2 +- libstdc++-v3/doc/xml/manual/io.xml | 2 +- 2 files changed, 2 insertions

Re: [r15-5336 Regression] FAIL: gcc.dg/guality/pr36728-4.c -Os -DPREVENT_OPTIMIZATION line 16 y == 2 on Linux/x86_64

2024-11-17 Thread Jan Hubicka
> >> FAIL: gcc.dg/guality/pr36728-2.c -O2 -DPREVENT_OPTIMIZATION line 16 > >> arg1 == 1 > >> FAIL: gcc.dg/guality/pr36728-2.c -O2 -DPREVENT_OPTIMIZATION line 16 > >> arg2 == 2 > >> FAIL: gcc.dg/guality/pr36728-2.c -O2 -DPREVENT_OPTIMIZATION line 16 > >> arg3 == 3 > >> FAIL: gcc.dg/gu

[PATCH v2 09/14] Support for 64-bit location_t: C++ modules parts

2024-11-17 Thread Lewis Hyatt
Note: This patch was acked in v1 (https://gcc.gnu.org/pipermail/gcc-patches/2024-November/667608.html). The only change from that version is that #ifdef ENABLE_LARGE_SOURCE_LOCATIONS has been changed to if (sizeof (location_t) > sizeof (unsigned)) , because it was decided to remove the conf

[PATCH v2 11/14] Support for 64-bit location_t: RTL parts

2024-11-17 Thread Lewis Hyatt
Some RTL objects need to store a location_t. Currently, they store it in the rt_int field of union rtunion, but in a world where location_t could be 64-bit, they need to store it in a larger variable. Unfortunately, rtunion does not currently have a 64-bit int type for that purpose, so add one. In

[PATCH V1] RISC-V: Add the mini support for SiFive extensions.

2024-11-17 Thread shiyulong
From: yulong This patch add the mini support for xsfvqmaccqoq, xsfvqmaccdod and xsfvfnrclipxfqf extensions. gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New. * config/riscv/riscv.opt: New. gcc/testsuite/ChangeLog: * gcc.target/riscv/predef-sf-3.c: New test.

Re: [r15-5336 Regression] FAIL: gcc.dg/guality/pr36728-4.c -Os -DPREVENT_OPTIMIZATION line 16 y == 2 on Linux/x86_64

2024-11-17 Thread Richard Biener
> Am 17.11.2024 um 09:54 schrieb Andrew Pinski : > > On Sat, Nov 16, 2024 at 9:27 AM haochen.jiang > wrote: >> >> On Linux/x86_64, >> >> cee7d080d5c2a5fb8125878998b742c040ec88b4 is the first bad commit >> commit cee7d080d5c2a5fb8125878998b742c040ec88b4 >> Author: Jan Hubicka >> Date: Sa

Re: [r15-5336 Regression] FAIL: gcc.dg/guality/pr36728-4.c -Os -DPREVENT_OPTIMIZATION line 16 y == 2 on Linux/x86_64

2024-11-17 Thread Andrew Pinski
On Sat, Nov 16, 2024 at 9:27 AM haochen.jiang wrote: > > On Linux/x86_64, > > cee7d080d5c2a5fb8125878998b742c040ec88b4 is the first bad commit > commit cee7d080d5c2a5fb8125878998b742c040ec88b4 > Author: Jan Hubicka > Date: Sat Nov 16 14:04:32 2024 +0100 > > Ignore conditions guarding __buil

[PATCH v2 12/14] Support for 64-bit location_t: Backend parts

2024-11-17 Thread Lewis Hyatt
A few targets have been using "unsigned int" function arguments that need to receive a "location_t". Change to "location_t" to prepare for the possibility that location_t can be configured to be a different type. gcc/ChangeLog: * config/aarch64/aarch64-c.cc (aarch64_resolve_overloaded_bui

Re: [PATCH repost, 3/5] PowerPC: Switch to dense math names for all MMA operations

2024-11-17 Thread Michael Meissner
If we eliminate patches #3 (switch to dense math names for all MMA operations) and patch #4 (add dense math test for new instruction) it will continue to generate the power10 form of the shared instructions and not the future form dense math registers. -- Michael Meissner, IBM PO Box 98, Ayer, Ma

Re: [PATCH V2 4/11] Change TARGET_POPCNTB to TARGET_POWER5

2024-11-17 Thread Michael Meissner
On Thu, Nov 14, 2024 at 06:26:11PM -0600, Peter Bergner wrote: > On 11/8/24 1:49 PM, Michael Meissner wrote: > > As part of the architecture flags patches, this patch changes the use of > > TARGET_POPCNTB to TARGET_POWER5. The POPCNTB instruction was added in ISA > > 2.02 > > (power5). > > I lik

Re: [PATCH V2 9/11] Update tests to work with architecture flags changes.

2024-11-17 Thread Michael Meissner
On Thu, Nov 14, 2024 at 06:47:58PM -0600, Peter Bergner wrote: > On 11/8/24 1:55 PM, Michael Meissner wrote: > > Two tests used -mvsx to raise the processor level to at least power7. These > > tests were rewritten to add cpu=power7 support. > > Again, this cleanup patch like the TARGET_ -> TARGET