[PATCH] riscv: elf-multilib: add rv32iafc to defaults

2022-08-14 Thread Peter Marheine via Gcc-patches
rv32iafc-ilp32 is compatible with rv32iac-ilp32 for library implementation, so add a reuse rule allowing the default configuration to support rv32iafc. -IAFC is an unusual configuration (much less common than -IMAFC), but multilib reuse has essentially no cost: this change is useful to users of pl

Re: [PATCH] i386 testsuite: cope with --enable-default-pie

2022-08-14 Thread Hongtao Liu via Gcc-patches
On Wed, Aug 10, 2022 at 1:42 PM Alexandre Oliva via Gcc-patches wrote: > > On Aug 9, 2022, Alexandre Oliva wrote: > > > Ping? > > https://gcc.gnu.org/pipermail/gcc-patches/2022-July/598276.html > > Oops, sorry, I linked to the wrong patch. This is the one I meant to ping: > > https://gcc.gnu.or

[RFC]rs6000: split complicated constant to memory

2022-08-14 Thread Jiufu Guo via Gcc-patches
Hi, This patch tries to put the constant into constant pool if building the constant requires 3 or more instructions. But there is a concern: I'm wondering if this patch is really profitable. Because, as I tested, 1. for simple case, if instructions are not been run in parallel, loading constant

[PATCH][_GLIBCXX_DEBUG] Add basic_string::starts_with/ends_with checks

2022-08-14 Thread François Dumont via Gcc-patches
I think we can add those checks. Note that I wonder if it was needed as in basic_string_view I see usages of __attribute__((__nonnull__)). But running the test I saw no impact even after I try to apply this attribute to the starts_with/ends_with methods themselves. Also note that several che

Re: [PATCH] MIPS: improve -march=native arch detection

2022-08-14 Thread YunQiang Su
On Tue, Aug 02, 2022 at 11:10:09AM +, YunQiang Su wrote: > If we cannot get info from options and cpuinfo, we try to get from: > 1. getauxval(AT_BASE_PLATFORM), introduced since Linux 5.7 > 2. _MIPS_ARCH from host compiler. > > This can fix the wrong loader usage on r5/r6 platform with >

[PATCH] xtensa: Turn on -fsplit-wide-types-early by default

2022-08-14 Thread Takayuki 'January June' Suwa via Gcc-patches
Since GCC10, the "subreg2" optimization pass was no longer tied to enabling "subreg1" unless -fsplit-wide-types-early was turned on (PR88233). However on the Xtensa port, the lack of "subreg2" can degrade the quality of the output code, especially for those that produce many D[FC]mode pseudos. Th