mbox series

[0/3] Build x86 libitm/libgomp/libatomic with -march=i486 or better

Message ID 20210114210431.463242-1-hjl.tools@gmail.com
Headers show
Series Build x86 libitm/libgomp/libatomic with -march=i486 or better | expand

Message

H.J. Lu Jan. 14, 2021, 9:04 p.m. UTC
Starting from

commit 77d372abec0fbf2cfe922e3140ee3410248f979e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 05:56:46 2021 -0800

    x86: Error on -fcf-protection with incompatible target

GCC issues an error on -fcf-protection with incompatible target.  CET
is enabled in run-time libraries on x86 when GCC is configured with

--with-arch=XXX

where XXX enables SSE2.  But libitm/libgomp/libatomic are hardcoded to
compile with -march=i486 which is incompatible with CET.  We should
compile libitm/libgomp/libatomic -march=i486 only if the default -march=
is lower than i486.

H.J. Lu (3):
  Build x86 libitm with -march=i486 or better
  Build x86 libgomp with -march=i486 or better
  Build x86 libatomic with -march=i486 or better

 libatomic/configure.tgt | 73 ++++++++++++++++++++++++++++-------------
 libgomp/configure.tgt   | 36 +++++++++-----------
 libitm/configure.tgt    | 39 +++++++++++-----------
 3 files changed, 85 insertions(+), 63 deletions(-)