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

https://gcc.gnu.org/g:1d3f5f5e52a123d7da96b659064fc2a4b8de5e64

commit r11-9481-g1d3f5f5e52a123d7da96b659064fc2a4b8de5e64
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 836fcbef400..74a21122fb6 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
+
 # The SuSE PowerPC64/Linux compiler is actually a 32-bit PowerPC compiler
 ifeq ($(strip $(filter-out powerpc64 suse linux%, $(target_cpu) $(target_vendor) $(target_os))),)
   target_cpu:=powerpc


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 14:36 [gcc r11-9481] [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).