[PATCH 2/2] Warn used and not used symbols in the same section

2020-12-03 Thread H.J. Lu via Gcc-patches
When SECTION_RETAIN is used, issue a warning of symbol without used attribute is placed in the same section with symbol with used attribute, like int __attribute__((used,section(".data.foo"))) foo2 = 2; int __attribute__((section(".data.foo"))) foo1 = 1; since assembler will put them in

[PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-03 Thread H.J. Lu via Gcc-patches
When definitions marked with used attribute and unmarked definitions are placed in the same section, switch to a new section if the SECTION_RETAIN bit doesn't match. gcc/ PR other/98121 * output.h (switch_to_section): Add a tree argument, default to nullptr. *

[PATCH 0/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-03 Thread H.J. Lu via Gcc-patches
When SECTION_RETAIN is used, definitions marked with used attribute and unmarked definitions are placed in the same section. Instead of issue an error: [hjl@gnu-cfl-2 gcc]$ /usr/gcc-11.0.0-x32/bin/gcc -S c.c -fdiagnostics-plain-output c.c:2:49: error: ‘foo1’ causes a section type conflict with

Re: V3 [PATCH] Use SHF_GNU_RETAIN to preserve symbol definitions

2020-12-02 Thread H.J. Lu via Gcc-patches
On Wed, Dec 2, 2020 at 1:31 PM Joseph Myers wrote: > > This patch (GCC commit 6fbec038f7a7ddf29f074943611b53210d17c40c) has > broken the glibc build (at least with current binutils master). The > errors are of the form: > > In file included from : > gconv_dl.c: In function 'free_mem': >

[PATCH] x86: Add the missing '.' for -mneeded

2020-12-02 Thread H.J. Lu via Gcc-patches
On Tue, Dec 1, 2020 at 6:28 PM H. J. Lu wrote: > > New failures: > FAIL: compiler driver --help=target option(s): "^ +-.*[^:.]$" absent from > output: " -mneededEmit GNU_PROPERTY_X86_ISA_1_NEEDED GNU > property" > FAIL: compiler driver --help=target option(s): "^

V2 [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-12-02 Thread H.J. Lu via Gcc-patches
On Tue, Dec 1, 2020 at 9:23 PM Jeff Law wrote: > > > > On 11/18/20 7:00 AM, H.J. Lu wrote: > > On Sat, Nov 7, 2020 at 7:47 AM H.J. Lu wrote: > >> On Sat, Oct 31, 2020 at 5:01 AM H.J. Lu wrote: > >>> On Fri, Oct 23, 2020 at 5:41 AM H.J. Lu wrote: > On Fri, Oct 2, 2020 at 6:00 AM H.J. Lu

V3 [PATCH] Use SHF_GNU_RETAIN to preserve symbol definitions

2020-12-01 Thread H.J. Lu via Gcc-patches
On Tue, Dec 1, 2020 at 4:04 PM Jeff Law wrote: > > > > On 11/17/20 6:20 AM, H.J. Lu via Gcc-patches wrote: > > On Mon, Nov 16, 2020 at 7:59 PM Hans-Peter Nilsson > > wrote: > >> On Fri, 13 Nov 2020, H.J. Lu via Gcc-patches wrote: > >>> Done. Here

Re: [PATCH] INSTALL: Default to --enable-cet=auto

2020-11-27 Thread H.J. Lu via Gcc-patches
On Fri, Nov 27, 2020 at 11:02 AM Matthias Klose wrote: > > On 11/27/20 3:54 PM, H.J. Lu via Gcc-patches wrote: > > On Fri, Nov 27, 2020 at 6:24 AM Richard Biener wrote: > >> > >> OK. > >> > >> On Fri, 27 Nov 2020, H.J. Lu wrote: > >> >

Re: [PATCH] INSTALL: Default to --enable-cet=auto

2020-11-27 Thread H.J. Lu via Gcc-patches
On Fri, Nov 27, 2020 at 8:22 AM Gerald Pfeifer wrote: > > On Fri, 27 Nov 2020, H.J. Lu via Gcc-patches wrote: > > +@code{--enable-cet=auto} is default. CET is enabled on Linux/x86 if > > +target binutils supports @code{Intel CET} instructions and disabled > > +

Re: [PATCH] INSTALL: Default to --enable-cet=auto

2020-11-27 Thread H.J. Lu via Gcc-patches
On Fri, Nov 27, 2020 at 6:24 AM Richard Biener wrote: > > OK. > > On Fri, 27 Nov 2020, H.J. Lu wrote: > > > PR other/98027 > > * doc/install: Default to --enable-cet=auto. > > --- > > gcc/doc/install.texi | 9 - > > 1 file changed, 4 insertions(+), 5 deletions(-) > > > > diff

[PATCH] INSTALL: Default to --enable-cet=auto

2020-11-27 Thread H.J. Lu via Gcc-patches
PR other/98027 * doc/install: Default to --enable-cet=auto. --- gcc/doc/install.texi | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 5f879ca4cea..021c347cc09 100644 --- a/gcc/doc/install.texi +++

Re: [PATCH] clean up more -Wformat-diag (PR 94982)

2020-11-26 Thread H.J. Lu via Gcc-patches
On Tue, Nov 24, 2020 at 5:13 PM Martin Sebor via Gcc-patches wrote: > > The attached patch cleans up most remaining -Wformat-diag instances > in an x86_64-build. I tried to minimize using #pragma diagnostic > so I tweaked the code instead. A preferable solution might be to > introduce a new

Re: [PATCH] libstdc++: Add C++2a synchronization support

2020-11-21 Thread H.J. Lu via Gcc-patches
On Sat, Nov 21, 2020 at 9:40 AM Jonathan Wakely via Gcc-patches wrote: > > On 21/11/20 17:04 +, Jonathan Wakely wrote: > >On 21/11/20 16:16 +0100, Andreas Schwab wrote: > >>In file included from >

PING^5 [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-11-18 Thread H.J. Lu via Gcc-patches
On Sat, Nov 7, 2020 at 7:47 AM H.J. Lu wrote: > > On Sat, Oct 31, 2020 at 5:01 AM H.J. Lu wrote: > > > > On Fri, Oct 23, 2020 at 5:41 AM H.J. Lu wrote: > > > > > > On Fri, Oct 2, 2020 at 6:00 AM H.J. Lu wrote: > > > > > > > > On Thu, Feb 6, 2020 at 6:57 PM H.J. Lu wrote: > > > > > > > > > >

[PATCH] x86: Add a testcase for PR target/31799

2020-11-17 Thread H.J. Lu via Gcc-patches
Add a testcase for PR target/31799 which was fixed by commit 4f0473fe89e68bf7c09542ee5c3684da25a5b435 Author: Uros Bizjak Date: Fri May 12 21:04:05 2017 +0200 compare-elim.c (try_eliminate_compare): Canonicalize operation with embedded compare to [(set (reg:CCM) (compare:CCM...

Re: V2 [PATCH] Use SHF_GNU_RETAIN to preserve symbol definitions

2020-11-17 Thread H.J. Lu via Gcc-patches
On Mon, Nov 16, 2020 at 7:59 PM Hans-Peter Nilsson wrote: > > On Fri, 13 Nov 2020, H.J. Lu via Gcc-patches wrote: > > Done. Here is the updated patch. > > Hi. I see a test-case for this kind of construct: > > int foo __attribute__((__used__, __section__ (".bar&quo

Re: [PATCH] x86: Add -mneeded for GNU_PROPERTY_X86_ISA_1_V[234] marker

2020-11-16 Thread H.J. Lu via Gcc-patches
On Mon, Nov 16, 2020 at 4:58 PM Jeff Law wrote: > > > On 11/9/20 11:57 AM, H.J. Lu via Gcc-patches wrote: > > GCC 11 supports -march=x86-64-v[234] to enable x86 micro-architecture ISA > > levels: > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97250

PING [PATCH 0/3] Enable PGO/LTO build for binutils+gdb

2020-11-16 Thread H.J. Lu via Gcc-patches
On Thu, Oct 29, 2020 at 12:11 PM H.J. Lu wrote: > > Add the --enable-pgo-build[=lto] configure option. When binutils+gdb > is not built together with GCC, --enable-pgo-build enables the PGO build: > > 0. Pass --plugin to AR and RANLIB. > 1. First build with -fprofile-generate. > 2. Use "make

[PATCH] pointer-compare-1.c: Add __attribute__((used))

2020-11-16 Thread H.J. Lu via Gcc-patches
I am going to install this patch as requested: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97803#c5 H.J. --- c-c++-common/asan/pointer-compare-1.c assumes the certain order for variable placement. Add __attribute__((used)) to avoid variable placement changes due to SHF_GNU_RETAIN. PR

Re: [PATCH] SLP vectorize across PHI nodes

2020-11-15 Thread H.J. Lu via Gcc-patches
On Fri, Oct 30, 2020 at 2:46 AM Richard Biener wrote: > > On Fri, 30 Oct 2020, Richard Sandiford wrote: > > > Richard Biener writes: > > > On Wed, 28 Oct 2020, Christophe Lyon wrote: > > > > > >> On Wed, 28 Oct 2020 at 11:27, Christophe Lyon > > >> wrote: > > >> > > > >> > On Tue, 27 Oct 2020

Re: Detect EAF flags in ipa-modref

2020-11-15 Thread H.J. Lu via Gcc-patches
On Fri, Nov 13, 2020 at 12:07 AM Richard Biener wrote: > > On Tue, 10 Nov 2020, Jan Hubicka wrote: > > > Hi, > > here is updaed patch. > > > > Honza > > > > Bootstrapped/regtested x86_64-linux, OK (after the fnspec fixes)? > > OK. > > Thanks, > Richard. > This caused:

V2 [PATCH] Use SHF_GNU_RETAIN to preserve symbol definitions

2020-11-13 Thread H.J. Lu via Gcc-patches
On Fri, Nov 13, 2020 at 3:36 AM Jozef Lawrynowicz wrote: > > On Thu, Nov 12, 2020 at 02:41:52PM -0800, H.J. Lu wrote: > > diff --git a/gcc/varasm.c b/gcc/varasm.c > > index 435c7b348a5..c48ef9692ee 100644 > > --- a/gcc/varasm.c > > +++ b/gcc/varasm.c > > @@ -289,6 +289,10 @@ get_section (const

[PATCH] Use SHF_GNU_RETAIN to preserve symbol definitions

2020-11-12 Thread H.J. Lu via Gcc-patches
In assemly code, the section flag 'R' sets the SHF_GNU_RETAIN flag to indicate that the section must be preserved by the linker. Add SECTION_RETAIN to indicate a section should be retained by the linker and set SECTION_RETAIN on section for the preserved symbol if assembler supports

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-09 Thread H.J. Lu via Gcc-patches
On Mon, Nov 9, 2020 at 11:56 AM Jozef Lawrynowicz wrote: > > On Mon, Nov 09, 2020 at 10:36:07AM -0800, H.J. Lu via Gcc-patches wrote: > > On Mon, Nov 9, 2020 at 9:41 AM Jozef Lawrynowicz > > wrote: > > > > > > On Fri, Nov 06, 2020 at 04:39:33PM

[PATCH] x86: Add -mneeded for GNU_PROPERTY_X86_ISA_1_V[234] marker

2020-11-09 Thread H.J. Lu via Gcc-patches
GCC 11 supports -march=x86-64-v[234] to enable x86 micro-architecture ISA levels: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97250 Binutils has been updated to support GNU_PROPERTY_X86_ISA_1_V[234] marker: https://gitlab.com/x86-psABIs/x86-64-ABI/-/merge_requests/13 with commit

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-09 Thread H.J. Lu via Gcc-patches
On Mon, Nov 9, 2020 at 9:41 AM Jozef Lawrynowicz wrote: > > On Fri, Nov 06, 2020 at 04:39:33PM -0800, H.J. Lu via Gcc-patches wrote: > > On Fri, Nov 6, 2020 at 4:17 PM Jeff Law wrote: > > > > > > > > > On 11/6/20 5:13 PM, H.J. Lu wrote: > > >

PING^4 [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-11-07 Thread H.J. Lu via Gcc-patches
On Sat, Oct 31, 2020 at 5:01 AM H.J. Lu wrote: > > On Fri, Oct 23, 2020 at 5:41 AM H.J. Lu wrote: > > > > On Fri, Oct 2, 2020 at 6:00 AM H.J. Lu wrote: > > > > > > On Thu, Feb 6, 2020 at 6:57 PM H.J. Lu wrote: > > > > > > > > This commit in GNU binutils 2.35: > > > > > > > >

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-06 Thread H.J. Lu via Gcc-patches
t;>> On 11/6/20 4:29 PM, H.J. Lu wrote: > >>>>> On Fri, Nov 6, 2020 at 3:22 PM Jeff Law wrote: > >>>>>> On 11/5/20 7:34 AM, H.J. Lu via Gcc-patches wrote: > >>>>>>> On Thu, Nov 5, 2020 at 3:37 AM Jozef Lawrynowicz > >>

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-06 Thread H.J. Lu via Gcc-patches
On Fri, Nov 6, 2020 at 4:01 PM Jeff Law wrote: > > > On 11/6/20 4:45 PM, H.J. Lu wrote: > > On Fri, Nov 6, 2020 at 3:37 PM Jeff Law wrote: > >> > >> On 11/6/20 4:29 PM, H.J. Lu wrote: > >>> On Fri, Nov 6, 2020 at 3:22 PM Jeff Law wrote: > >&g

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-06 Thread H.J. Lu via Gcc-patches
On Fri, Nov 6, 2020 at 3:37 PM Jeff Law wrote: > > > On 11/6/20 4:29 PM, H.J. Lu wrote: > > On Fri, Nov 6, 2020 at 3:22 PM Jeff Law wrote: > >> > >> On 11/5/20 7:34 AM, H.J. Lu via Gcc-patches wrote: > >>> On Thu, Nov 5, 2020 at 3:37 AM Jozef Lawrynow

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-06 Thread H.J. Lu via Gcc-patches
On Fri, Nov 6, 2020 at 3:22 PM Jeff Law wrote: > > > On 11/5/20 7:34 AM, H.J. Lu via Gcc-patches wrote: > > On Thu, Nov 5, 2020 at 3:37 AM Jozef Lawrynowicz > > wrote: > >> On Thu, Nov 05, 2020 at 06:21:21AM -0500, Hans-Peter Nilsson wrote: > >>> On Wed,

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-05 Thread H.J. Lu via Gcc-patches
On Thu, Nov 5, 2020 at 3:37 AM Jozef Lawrynowicz wrote: > > On Thu, Nov 05, 2020 at 06:21:21AM -0500, Hans-Peter Nilsson wrote: > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > > .retain is ill-defined. For example, > > > > > > [hjl@gnu-cfl-2 gcc]$ cat /tmp/x.c > > > static int xyzzy

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
On Wed, Nov 4, 2020 at 3:00 PM Hans-Peter Nilsson wrote: > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > On Wed, Nov 4, 2020 at 1:56 PM Hans-Peter Nilsson wrote: > > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > > > > > > On Wed, Nov 4, 2020 at 1:03 PM Hans-Peter Nilsson > > > > wrote: > > > > > > > > >

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
On Wed, Nov 4, 2020 at 1:56 PM Hans-Peter Nilsson wrote: > > > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > > On Wed, Nov 4, 2020 at 1:03 PM Hans-Peter Nilsson wrote: > > > > > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > > > On Wed, Nov 4, 2020 at 10:09 AM Hans-Peter Nilsson > > > > wrote: > > > > >

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
On Wed, Nov 4, 2020 at 1:03 PM Hans-Peter Nilsson wrote: > > On Wed, 4 Nov 2020, H.J. Lu wrote: > > On Wed, Nov 4, 2020 at 10:09 AM Hans-Peter Nilsson > > wrote: > > > > > > On Wed, 4 Nov 2020, Jozef Lawrynowicz wrote: > > > > I personally do not see the problem with the .retain attribute,

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
On Wed, Nov 4, 2020 at 10:09 AM Hans-Peter Nilsson wrote: > > On Wed, 4 Nov 2020, Jozef Lawrynowicz wrote: > > I personally do not see the problem with the .retain attribute, however > > if it is going to be a barrier to getting the functionality committed, I > > am happy to change it, since I

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
gt; > > > > > On Tue, Nov 03, 2020 at 01:09:43PM -0800, H.J. Lu via Gcc-patches wrote: > > > > > On Tue, Nov 3, 2020 at 1:00 PM H.J. Lu wrote: > > > > > > > > > > > > On Tue, Nov 3, 2020 at 12:46 PM Jozef Lawrynowicz > > > >

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-04 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 2:11 PM H.J. Lu wrote: > > On Tue, Nov 3, 2020 at 1:57 PM Jozef Lawrynowicz > wrote: > > > > On Tue, Nov 03, 2020 at 01:09:43PM -0800, H.J. Lu via Gcc-patches wrote: > > > On Tue, Nov 3, 2020 at 1:00 PM H.J. Lu wrote: > > > > >

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-03 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 1:57 PM Jozef Lawrynowicz wrote: > > On Tue, Nov 03, 2020 at 01:09:43PM -0800, H.J. Lu via Gcc-patches wrote: > > On Tue, Nov 3, 2020 at 1:00 PM H.J. Lu wrote: > > > > > > On Tue, Nov 3, 2020 at 12:46 PM Jozef Lawrynowicz > > > wrot

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-03 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 1:00 PM H.J. Lu wrote: > > On Tue, Nov 3, 2020 at 12:46 PM Jozef Lawrynowicz > wrote: > > > > On Tue, Nov 03, 2020 at 11:58:04AM -0800, H.J. Lu via Gcc-patches wrote: > > > On Tue, Nov 3, 2020 at 10:22 AM Jozef Lawrynowicz > > > wrot

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-03 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 12:46 PM Jozef Lawrynowicz wrote: > > On Tue, Nov 03, 2020 at 11:58:04AM -0800, H.J. Lu via Gcc-patches wrote: > > On Tue, Nov 3, 2020 at 10:22 AM Jozef Lawrynowicz > > wrote: > > > > > > On Tue, Nov 03, 2020 at 09:57:58AM

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-03 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 10:22 AM Jozef Lawrynowicz wrote: > > On Tue, Nov 03, 2020 at 09:57:58AM -0800, H.J. Lu via Gcc-patches wrote: > > On Tue, Nov 3, 2020 at 9:41 AM Jozef Lawrynowicz > > wrote: > > > > > > The attached patch implements TARGET_ASM_MARK_DE

Re: [PATCH] "used" attribute saves decl from linker garbage collection

2020-11-03 Thread H.J. Lu via Gcc-patches
On Tue, Nov 3, 2020 at 9:41 AM Jozef Lawrynowicz wrote: > > The attached patch implements TARGET_ASM_MARK_DECL_PRESERVED for ELF GNU > OSABI targets, so that declarations that have the "used" attribute > applied will be saved from linker garbage collection. > > TARGET_ASM_MARK_DECL_PRESERVED will

Re: V2 [PATCH] x86: Also require MMX for __builtin_ia32_maskmovq

2020-11-02 Thread H.J. Lu via Gcc-patches
On Mon, Nov 2, 2020 at 12:31 PM Uros Bizjak wrote: > > On Mon, Nov 2, 2020 at 9:29 PM Uros Bizjak wrote: > > > > On Mon, Nov 2, 2020 at 8:24 PM H.J. Lu wrote: > > > > > > MMX emulation with SEE is implemented at MMX intrinsic level, not at MMX > > > instruction level. _mm_maskmove_si64

V2 [PATCH] x86: Also require MMX for __builtin_ia32_maskmovq

2020-11-02 Thread H.J. Lu via Gcc-patches
MMX emulation with SEE is implemented at MMX intrinsic level, not at MMX instruction level. _mm_maskmove_si64 intrinsic for "MASKMOVQ mm1, mm2" is emulated with __builtin_ia32_maskmovdqu. Since SSE "MASKMOVQ mm1, mm2" builtin function, __builtin_ia32_maskmovq, can't be emulated with XMM

Re: Move clone_info to summary

2020-11-01 Thread H.J. Lu via Gcc-patches
On Sat, Oct 31, 2020 at 2:22 AM Jan Hubicka wrote: > > Hi, > this patch moves clone_info to summary. > Bootstrapped/regtested x86_64-linux, comitted. > > Honza > > 2020-10-31 Jan Hubicka > > * Makefile.in: (OBJS): Add symtab-clones.o > (GTFILES): Add symtab-clones.h > *

Re: Move clone_info to summary

2020-11-01 Thread H.J. Lu via Gcc-patches
On Sat, Oct 31, 2020 at 2:22 AM Jan Hubicka wrote: > > Hi, > this patch moves clone_info to summary. > Bootstrapped/regtested x86_64-linux, comitted. > > Honza > > 2020-10-31 Jan Hubicka > > * Makefile.in: (OBJS): Add symtab-clones.o > (GTFILES): Add symtab-clones.h > *

Re: [PATCH] ASAN: disable -Wno-stringop-overflow for 2 tests

2020-10-31 Thread H.J. Lu via Gcc-patches
On Tue, Oct 13, 2020 at 1:17 AM Jakub Jelinek via Gcc-patches wrote: > > On Tue, Oct 13, 2020 at 10:11:26AM +0200, Martin Liška wrote: > > --- a/gcc/testsuite/g++.dg/asan/asan_test.C > > +++ b/gcc/testsuite/g++.dg/asan/asan_test.C > > @@ -9,6 +9,7 @@ > > // { dg-additional-options

PING^3 [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-10-31 Thread H.J. Lu via Gcc-patches
On Fri, Oct 23, 2020 at 5:41 AM H.J. Lu wrote: > > On Fri, Oct 2, 2020 at 6:00 AM H.J. Lu wrote: > > > > On Thu, Feb 6, 2020 at 6:57 PM H.J. Lu wrote: > > > > > > This commit in GNU binutils 2.35: > > > > > >

PING^2 [PATCH] x86: Require MMX for __builtin_ia32_maskmovq

2020-10-31 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 6:28 AM H.J. Lu wrote: > > On Mon, Sep 21, 2020 at 6:09 AM H.J. Lu wrote: > > > > On Mon, Sep 21, 2020 at 5:54 AM H.J. Lu wrote: > > > > > > Since "MASKMOVQ mm1, mm2" is an SSE instruction which requires MMX and > > > MMX/SSE ISAs are handled separately, make

[PATCH 0/3] Enable PGO/LTO build for binutils+gdb

2020-10-29 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 0. Pass --plugin to AR and RANLIB. 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data. 3. Use "make clean" to

[PATCH 1/3] GCC: Pass --plugin to AR and RANLIB

2020-10-29 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. * Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@ (RANLIB): Add @RANLIB_PLUGIN_OPTION@. * configure.ac: Include config/gcc-plugin.m4. AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION.

[PATCH 3/3] Support the PGO build for binutils+gdb

2020-10-29 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data. 3. Use "make clean" to remove the previous build. 4.

[PATCH 2/3] Binutils: Pass --plugin to AR and RANLIB

2020-10-29 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. bfd/ * configure: Regenerated. binutils/ * configure: Regenerated. gas/ * configure: Regenerated. gprof/ * configure: Regenerated. ld/ * configure: Regenerated. libctf/

Re: [PATCH] Combine logical OR ranges properly. pr97567

2020-10-27 Thread H.J. Lu via Gcc-patches
On Tue, Oct 27, 2020 at 7:18 AM Andrew MacLeod via Gcc-patches wrote: > > On 10/27/20 7:23 AM, Christophe Lyon wrote: > > Hi, > > > > On Mon, 26 Oct 2020 at 22:51, Andrew MacLeod via Gcc-patches > > wrote: > >> In the core of gori_compute::logical_combine we are suppose to combine > >> the

Re: [PATCH] Combine logical OR ranges properly. pr97567

2020-10-27 Thread H.J. Lu via Gcc-patches
On Tue, Oct 27, 2020 at 4:24 AM Christophe Lyon via Gcc-patches wrote: > > Hi, > > On Mon, 26 Oct 2020 at 22:51, Andrew MacLeod via Gcc-patches > wrote: > > > > In the core of gori_compute::logical_combine we are suppose to combine > > the calculated true and false ranges on each side of the

Re: Implement three-level optimize_for_size predicates

2020-10-26 Thread H.J. Lu via Gcc-patches
On Mon, Oct 26, 2020 at 10:14 AM Jan Hubicka wrote: > > > > > > > For example you had patch that limited "rep cmpsb" expansion for > > > -minline-all-stringops. Now the conditions could be > > > -minline-all-stringops || optimize_insn_for_size () == OPTIMIZE_SIZE_MAX > > > since it is still

Re: Implement three-level optimize_for_size predicates

2020-10-26 Thread H.J. Lu via Gcc-patches
On Mon, Oct 26, 2020 at 7:36 AM Jan Hubicka wrote: > > > On Mon, Oct 26, 2020 at 7:23 AM Jan Hubicka wrote: > > > > > > Hi, > > > this patch implements thre two-state optimize_for_size predicates, so > > > with -Os > > > and with profile feedback for never executed code it returns > > >

Re: Implement three-level optimize_for_size predicates

2020-10-26 Thread H.J. Lu via Gcc-patches
On Mon, Oct 26, 2020 at 7:23 AM Jan Hubicka wrote: > > Hi, > this patch implements thre two-state optimize_for_size predicates, so with -Os > and with profile feedback for never executed code it returns OPTIMIZE_SIZE_MAX > while in cases we decide to optimize for size based on branch prediction

V2 [PATCH] Update check for working assembler --gdwarf-4 option

2020-10-24 Thread H.J. Lu via Gcc-patches
On Sat, Oct 17, 2020 at 6:23 AM H.J. Lu wrote: > > On Fri, Oct 16, 2020 at 11:29 AM H.J. Lu wrote: > > > > On Fri, Oct 16, 2020 at 11:17 AM Jakub Jelinek wrote: > > > > > > On Fri, Oct 16, 2020 at 10:58:34AM -0700, H.J. Lu wrote: > > > > Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor

PING^4 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-10-23 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 6:23 AM Jan Hubicka wrote: > > > > > diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md > > > > index fb677e17817..f3fbed81c4a 100644 > > > > --- a/gcc/config/i386/i386.md > > > > +++ b/gcc/config/i386/i386.md > > > > @@ -18007,7 +18007,13 @@ (define_expand

Re: PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-23 Thread H.J. Lu via Gcc-patches
On Sun, Oct 18, 2020 at 8:16 AM Jan Hubicka wrote: > > > On Fri, Oct 2, 2020 at 6:21 AM H.J. Lu wrote: > > > > > > On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > > > > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote:

PING^2 [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-10-23 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 6:00 AM H.J. Lu wrote: > > On Thu, Feb 6, 2020 at 6:57 PM H.J. Lu wrote: > > > > This commit in GNU binutils 2.35: > > > > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=b7d072167715829eed0622616f6ae0182900de3e > > > > added the section flag 'o' to

[PATCH 1/2] GCC: Pass --plugin to AR and RANLIB

2020-10-22 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. * Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@ (RANLIB): Add @RANLIB_PLUGIN_OPTION@. * configure.ac: Include config/gcc-plugin.m4. AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION.

[PATCH 0/2] GCC/Binutils: Pass --plugin to AR and RANLIB

2020-10-22 Thread H.J. Lu via Gcc-patches
In order to support LTO build in binutils, we need to pass --plugin to AR and RANLIB. Add GCC_PLUGIN_OPTION to gcc-plugin.m4 to detect the GCC plugin name. Pass the --plugin option to AR and RANLIB. H.J. Lu (2): GCC: Pass --plugin to AR and RANLIB Binutils: Pass --plugin to AR and RANLIB

[PATCH 2/2] Binutils: Pass --plugin to AR and RANLIB

2020-10-22 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. bfd/ * configure: Regenerated. gas/ * configure: Regenerated. gprof/ * configure: Regenerated. ld/ * configure: Regenerated. libctf/ * configure: Regenerated. opcodes/

Re: PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-18 Thread H.J. Lu via Gcc-patches
On Sun, Oct 18, 2020 at 8:16 AM Jan Hubicka wrote: > > > On Fri, Oct 2, 2020 at 6:21 AM H.J. Lu wrote: > > > > > > On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > > > > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote:

Re: PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-17 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 6:21 AM H.J. Lu wrote: > > On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote: > > > > > > > > On Tue, May 19, 2020 at 1:48 AM Uros Bizjak wrote: > > > > > > >

[PATCH] Update check for working assembler --gdwarf-4 option

2020-10-17 Thread H.J. Lu via Gcc-patches
On Fri, Oct 16, 2020 at 11:29 AM H.J. Lu wrote: > > On Fri, Oct 16, 2020 at 11:17 AM Jakub Jelinek wrote: > > > > On Fri, Oct 16, 2020 at 10:58:34AM -0700, H.J. Lu wrote: > > > Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG > > > if there is an extra assembly input file

Re: [PATCH] Check for working assembler --gdwarf-[45] options

2020-10-16 Thread H.J. Lu via Gcc-patches
On Fri, Oct 16, 2020 at 11:17 AM Jakub Jelinek wrote: > > On Fri, Oct 16, 2020 at 10:58:34AM -0700, H.J. Lu wrote: > > Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG > > if there is an extra assembly input file in debug info generated by > > --gdwarf-5/--gdwarf-4: > > > >

[PATCH] Check for working assembler --gdwarf-[45] options

2020-10-16 Thread H.J. Lu via Gcc-patches
Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG if there is an extra assembly input file in debug info generated by --gdwarf-5/--gdwarf-4: https://sourceware.org/bugzilla/show_bug.cgi?id=25878 https://sourceware.org/bugzilla/show_bug.cgi?id=26740 Also replace success with

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread H.J. Lu via Gcc-patches
On Wed, Oct 14, 2020 at 6:31 AM Hongyu Wang via Gcc-patches wrote: > > Uros Bizjak 于2020年10月14日周三 下午7:19写道: > > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > > >> > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new > intrinsics > > > > >> > > header. > > > >

Re: [PATCH] x86-64: Check CMPXCHG16B for x86-64-v[234]

2020-10-10 Thread H.J. Lu via Gcc-patches
On Fri, Oct 9, 2020 at 6:17 AM H.J. Lu wrote: > > x86-64-v2 includes CMPXCHG16B. Since -mcx16 enables CMPXCHG16B and > defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, check it in x86-64-v[234] > tests. > > PR target/97250 > * gcc.target/i386/x86-64-v2.c: Verify that >

[PATCH] x86-64: Check CMPXCHG16B for x86-64-v[234]

2020-10-09 Thread H.J. Lu via Gcc-patches
x86-64-v2 includes CMPXCHG16B. Since -mcx16 enables CMPXCHG16B and defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, check it in x86-64-v[234] tests. PR target/97250 * gcc.target/i386/x86-64-v2.c: Verify that __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 is defined. *

PING^2 [PATCH] x86: Add

2020-10-08 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 5:51 AM H.J. Lu wrote: > > On Wed, Sep 23, 2020 at 10:58 AM H.J. Lu wrote: > > > > For sources which can't use any vector instructions, and > > cannot be included for compiler intrinsics: > > > > $ echo "#include " | gcc -S -O2 -mno-sse -mno-mmx -x c - > > In file

Re: Problem with static const objects and LTO

2020-10-07 Thread H.J. Lu via Gcc-patches
On Wed, Oct 7, 2020 at 3:09 PM Jeff Law via Gcc-patches wrote: > > Adding the testcase... > > On 10/7/20 4:08 PM, Jeff Law wrote: > > On 9/17/20 1:03 PM, Jakub Jelinek wrote: > > [ ... Big snip, starting over ... ] > > > > I may have not explained things too well. So I've put together a small >

Re: [r11-3641 Regression] FAIL: gcc.dg/torture/pta-ptrarith-1.c -Os scan-tree-dump alias "ESCAPED = {[^\n}]* i f [^\n}]*}" on Linux/x86_64 (-m32 -march=cascadelake)

2020-10-04 Thread H.J. Lu via Gcc-patches
On Sun, Oct 4, 2020 at 10:33 AM Martin Sebor wrote: > > On 10/4/20 10:51 AM, H.J. Lu via Gcc-patches wrote: > > On Sat, Oct 3, 2020 at 5:57 PM Segher Boessenkool > > wrote: > >> > >> On Sat, Oct 03, 2020 at 12:21:04PM -0700, sunil.k.pandey via Gcc-patche

Re: [r11-3641 Regression] FAIL: gcc.dg/torture/pta-ptrarith-1.c -Os scan-tree-dump alias "ESCAPED = {[^\n}]* i f [^\n}]*}" on Linux/x86_64 (-m32 -march=cascadelake)

2020-10-04 Thread H.J. Lu via Gcc-patches
On Sun, Oct 4, 2020 at 10:03 AM Iain Sandoe wrote: > > H.J. Lu via Gcc-patches wrote: > > > On Sat, Oct 3, 2020 at 5:57 PM Segher Boessenkool > > wrote: > >> On Sat, Oct 03, 2020 at 12:21:04PM -0700, sunil.k.pandey via Gcc-patches >

Re: [r11-3641 Regression] FAIL: gcc.dg/torture/pta-ptrarith-1.c -Os scan-tree-dump alias "ESCAPED = {[^\n}]* i f [^\n}]*}" on Linux/x86_64 (-m32 -march=cascadelake)

2020-10-04 Thread H.J. Lu via Gcc-patches
On Sat, Oct 3, 2020 at 5:57 PM Segher Boessenkool wrote: > > On Sat, Oct 03, 2020 at 12:21:04PM -0700, sunil.k.pandey via Gcc-patches > wrote: > > On Linux/x86_64, > > > > c34db4b6f8a5d80367c709309f9b00cb32630054 is the first bad commit > > commit c34db4b6f8a5d80367c709309f9b00cb32630054 > >

[PATCH] doc: Replace roudnevenl with roundevenl

2020-10-03 Thread H.J. Lu via Gcc-patches
PR other/97280 * doc/extend.texi: Replace roudnevenl with roundevenl --- gcc/doc/extend.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index c9f72991bba..b9684dc7a06 100644 --- a/gcc/doc/extend.texi +++

PING [PATCH] x86: Require MMX for __builtin_ia32_maskmovq

2020-10-02 Thread H.J. Lu via Gcc-patches
On Mon, Sep 21, 2020 at 6:09 AM H.J. Lu wrote: > > On Mon, Sep 21, 2020 at 5:54 AM H.J. Lu wrote: > > > > Since "MASKMOVQ mm1, mm2" is an SSE instruction which requires MMX and > > MMX/SSE ISAs are handled separately, make __builtin_ia32_maskmovq require > > MMX instead of SSE. > > > > gcc/ > >

PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-02 Thread H.J. Lu via Gcc-patches
On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote: > > > > > > On Tue, May 19, 2020 at 1:48 AM Uros Bizjak wrote: > > > > > > > > On Sun, May 17, 2020 at 7:06 PM H.J. Lu wrote: > > > > > > >

PING^3 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-10-02 Thread H.J. Lu via Gcc-patches
On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > On Wed, Aug 19, 2020 at 6:25 AM H.J. Lu wrote: > > > > On Wed, Jul 15, 2020 at 10:42:27AM -0700, H.J. Lu wrote: > > > Expand strncmp to "repz cmpsb" only with -minline-all-stringops since > > > "repz cmpsb" can be much slower than strncmp

PING: [PATCH] Use the section flag 'o' for __patchable_function_entries

2020-10-02 Thread H.J. Lu via Gcc-patches
On Thu, Feb 6, 2020 at 6:57 PM H.J. Lu wrote: > > This commit in GNU binutils 2.35: > > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=b7d072167715829eed0622616f6ae0182900de3e > > added the section flag 'o' to .section directive: > > .section

PING: [PATCH] x86: Add

2020-10-02 Thread H.J. Lu via Gcc-patches
On Wed, Sep 23, 2020 at 10:58 AM H.J. Lu wrote: > > For sources which can't use any vector instructions, and > cannot be included for compiler intrinsics: > > $ echo "#include " | gcc -S -O2 -mno-sse -mno-mmx -x c - > In file included from /usr/include/stdlib.h:1013, > from >

[PATCH] Add a testcase for PR target/96827

2020-09-30 Thread H.J. Lu via Gcc-patches
Add a testcase for PR target/96827 which was fixed by r11-3559: commit 97b798d80baf945ea28236eef3fa69f36626b579 Author: Joel Hutton Date: Wed Sep 30 15:08:13 2020 +0100 [SLP][VECT] Add check to fix 96837 PR target/96827 * gcc.target/i386/pr96827.c: New test. ---

V2 [PATCH] x86: Replace with

2020-09-29 Thread H.J. Lu via Gcc-patches
On Tue, Sep 29, 2020 at 11:49 AM Jakub Jelinek wrote: > > On Tue, Sep 29, 2020 at 11:46:24AM -0700, H.J. Lu via Gcc-patches wrote: > > Fix a typo in config/i386/enqcmdintrin.h by replacing > > with : > > > > [hjl@gnu-cfl-2 x86-gcc]$ echo "#include " | gcc

[PATCH] x86: Replace with

2020-09-29 Thread H.J. Lu via Gcc-patches
Fix a typo in config/i386/enqcmdintrin.h by replacing with : [hjl@gnu-cfl-2 x86-gcc]$ echo "#include " | gcc -S -o /dev/null -x c - In file included from :1: /usr/lib/gcc/x86_64-redhat-linux/10/include/enqcmdintrin.h:25:3: error: #error "Never use directly; include instead." 25 | # error

Re: [PATCH] Add Missing FSF copyright notes for some x86 intrinsic headers

2020-09-29 Thread H.J. Lu via Gcc-patches
On Mon, Sep 28, 2020 at 9:06 AM H.J. Lu wrote: > > On Mon, Sep 28, 2020 at 9:04 AM Hongyu Wang via Gcc-patches > wrote: > > > > Hi, > > > > Some x86 intrinsic headers is missing FSF copyright notes. This patch add > > the missed notes for those headers. > > > > OK for master? > > > >

PING^3 [GCC 10] [PATCH] IRA: Don't make a global register eliminable

2020-09-29 Thread H.J. Lu via Gcc-patches
On Fri, Sep 25, 2020 at 6:46 AM H.J. Lu wrote: > > On Tue, Sep 22, 2020 at 10:48 AM H.J. Lu wrote: > > > > On Fri, Sep 18, 2020 at 10:21 AM H.J. Lu wrote: > > > > > > On Thu, Sep 17, 2020 at 3:52 PM Jeff Law wrote: > > > > > > > > > > > > On 9/16/20 8:46 AM, Richard Sandiford wrote: > > > > >

Re: [PATCH] Add Missing FSF copyright notes for some x86 intrinsic headers

2020-09-28 Thread H.J. Lu via Gcc-patches
On Mon, Sep 28, 2020 at 9:04 AM Hongyu Wang via Gcc-patches wrote: > > Hi, > > Some x86 intrinsic headers is missing FSF copyright notes. This patch add > the missed notes for those headers. > > OK for master? > > gcc/ChangeLog: > > * config/i386/amxbf16intrin.h: Add FSF copyright notes. > *

[PATCH] x86: Use SET operation in MOVDIRI and MOVDIR64B

2020-09-27 Thread H.J. Lu via Gcc-patches
Since MOVDIRI and MOVDIR64B write to memory, similar to UNSPEC_MOVNT, use SET operation in MOVDIRI and MOVDIR64B patterns with UNSPEC instead of UNSPECV. gcc/ PR target/97184 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ... (UNSPEC_MOVDIRI): This.

PING^2 [GCC 10] [PATCH] IRA: Don't make a global register eliminable

2020-09-25 Thread H.J. Lu via Gcc-patches
On Tue, Sep 22, 2020 at 10:48 AM H.J. Lu wrote: > > On Fri, Sep 18, 2020 at 10:21 AM H.J. Lu wrote: > > > > On Thu, Sep 17, 2020 at 3:52 PM Jeff Law wrote: > > > > > > > > > On 9/16/20 8:46 AM, Richard Sandiford wrote: > > > > > > "H.J. Lu" writes: > > > > > > On Tue, Sep 15, 2020 at 7:44 AM

Re: [GCC 8] [PATCH] Ignore the clobbered stack pointer in asm statment

2020-09-24 Thread H.J. Lu via Gcc-patches
On Thu, Sep 24, 2020 at 9:48 AM H.J. Lu wrote: > > On Wed, Sep 16, 2020 at 4:47 AM Jakub Jelinek wrote: > > > > On Wed, Sep 16, 2020 at 12:34:50PM +0100, Richard Sandiford wrote: > > > Jakub Jelinek via Gcc-patches writes: > > > > On Mon, Sep 14, 20

[GCC 8] [PATCH] Ignore the clobbered stack pointer in asm statment

2020-09-24 Thread H.J. Lu via Gcc-patches
On Wed, Sep 16, 2020 at 4:47 AM Jakub Jelinek wrote: > > On Wed, Sep 16, 2020 at 12:34:50PM +0100, Richard Sandiford wrote: > > Jakub Jelinek via Gcc-patches writes: > > > On Mon, Sep 14, 2020 at 08:57:18AM -0700, H.J. Lu via Gcc-patches wrote: > > >> So

[PATCH] x86: Add

2020-09-23 Thread H.J. Lu via Gcc-patches
For sources which can't use any vector instructions, and cannot be included for compiler intrinsics: $ echo "#include " | gcc -S -O2 -mno-sse -mno-mmx -x c - In file included from /usr/include/stdlib.h:1013, from /usr/lib/gcc/x86_64-redhat-linux/10/include/mm_malloc.h:27,

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-22 Thread H.J. Lu via Gcc-patches
On Tue, Sep 22, 2020 at 11:25 AM Qing Zhao wrote: > > Hi, Hongjiu, > > > > On Sep 22, 2020, at 11:31 AM, Richard Sandiford > > wrote: > > > > Qing Zhao writes: > >>> On Sep 21, 2020, at 2:22 PM, Qing Zhao via Gcc-patches > >>> wrote: > >>> > >>> > >>> > On Sep 21, 2020, at 2:11 PM,

PING [GCC 10] [PATCH] IRA: Don't make a global register eliminable

2020-09-22 Thread H.J. Lu via Gcc-patches
On Fri, Sep 18, 2020 at 10:21 AM H.J. Lu wrote: > > On Thu, Sep 17, 2020 at 3:52 PM Jeff Law wrote: > > > > > > On 9/16/20 8:46 AM, Richard Sandiford wrote: > > > > "H.J. Lu" writes: > > > > On Tue, Sep 15, 2020 at 7:44 AM Richard Sandiford > > wrote: > > > > Thanks for looking at this. > > >

Re: [PATCH] x86: Require MMX for __builtin_ia32_maskmovq

2020-09-21 Thread H.J. Lu via Gcc-patches
On Mon, Sep 21, 2020 at 5:54 AM H.J. Lu wrote: > > Since "MASKMOVQ mm1, mm2" is an SSE instruction which requires MMX and > MMX/SSE ISAs are handled separately, make __builtin_ia32_maskmovq require > MMX instead of SSE. > > gcc/ > > PR target/97140 > * config/i386/i386-expand.c

[PATCH] x86: Require MMX for __builtin_ia32_maskmovq

2020-09-21 Thread H.J. Lu via Gcc-patches
Since "MASKMOVQ mm1, mm2" is an SSE instruction which requires MMX and MMX/SSE ISAs are handled separately, make __builtin_ia32_maskmovq require MMX instead of SSE. gcc/ PR target/97140 * config/i386/i386-expand.c (ix86_expand_builtin): Require MMX for

<    5   6   7   8   9   10   11   12   13   >