public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Avoid passing gcc-specific options to clang
@ 2021-08-28  0:40 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:40 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e04e10b43100973eda7d76164cc7c0dc625f035d

commit e04e10b43100973eda7d76164cc7c0dc625f035d
Author: Stan Shebs <stanshebs@google.com>
Date:   Wed Sep 26 14:31:55 2018 -0700

    Avoid passing gcc-specific options to clang

Diff:
---
 sysdeps/powerpc/powerpc64/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sysdeps/powerpc/powerpc64/Makefile b/sysdeps/powerpc/powerpc64/Makefile
index 9d15db0328..525c6a4c5f 100644
--- a/sysdeps/powerpc/powerpc64/Makefile
+++ b/sysdeps/powerpc/powerpc64/Makefile
@@ -10,6 +10,7 @@ ifeq (yes,$(build-shared))
 pic-ccflag = -fpic
 endif
 
+ifeq ($(with-clang),no)
 # These flags prevent FPU or Altivec registers from being used,
 # for code called in contexts that is not allowed to touch those registers.
 # Stupid GCC requires us to pass all these ridiculous switches.  We need to
@@ -40,10 +41,14 @@ ifeq ($(subdir),elf)
 +cflags += -finline-limit=2000
 endif
 
+endif # clang
+
 ifeq ($(subdir),gmon)
 # The assembly functions assume that fp arg regs are not trashed.
 # Compiling with -msoft-float ensures that fp regs are not used
 # for moving memory around.
+ifeq ($(with-clang),no)
 CFLAGS-mcount.c += $(no-special-regs)
+endif # clang
 sysdep_routines += ppc-mcount
 endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:40 [glibc/google/grte/v5-2.27/master] Avoid passing gcc-specific options to clang Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).