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

https://gcc.gnu.org/g:2cef99175af1ad95283d4b35bced73c3a510f6d6

commit r12-6733-g2cef99175af1ad95283d4b35bced73c3a510f6d6
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.

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 53d0739470a..b8a24708280 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -350,6 +350,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 12:40 UTC | newest]

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