public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10407] [Ada] Set target_cpu to x32 for x86_64-linux-gnux32
@ 2022-01-19 18:12 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-01-19 18:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9e76f4d32f00633bc0e1e51c20f685d58ae8a74f

commit r10-10407-g9e76f4d32f00633bc0e1e51c20f685d58ae8a74f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jan 18 15:54:35 2022 -0800

    [Ada] Set target_cpu to x32 for x86_64-linux-gnux32
    
    Since the x86_64-linux-gnux32 compiler is actually an x32 compiler, set
    target_cpu to x32 for x86_64-linux-gnux32.
    
            PR ada/103538
            * gcc-interface/Makefile.in (target_cpu): Set to x32 for
            x86_64-linux-gnux32.
    
    (cherry picked from commit 2cef99175af1ad95283d4b35bced73c3a510f6d6)

Diff:
---
 gcc/ada/gcc-interface/Makefile.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
index 3342e33b4b1..e0ca7cc4e8a 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -348,6 +348,13 @@ ifeq ($(strip $(filter-out %x86_64, $(target_cpu))),)
   endif
 endif
 
+# The x86_64-linux-gnux32 compiler is actually an x32 compiler
+ifeq ($(strip $(filter-out x86_64 linux-gnux32%, $(target_cpu) $(target_os))),)
+  ifneq ($(strip $(MULTISUBDIR)),/64)
+    target_cpu:=x32
+  endif
+endif
+
 # Configuration of host tools
 
 # Under linux, host tools need to be linked with -ldl


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

only message in thread, other threads:[~2022-01-19 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 18:12 [gcc r10-10407] [Ada] Set target_cpu to x32 for x86_64-linux-gnux32 H.J. Lu

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).