public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH] add x32 abi
@ 2012-09-08  0:03 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2012-09-08  0:03 UTC (permalink / raw
  To: gentoo-catalyst

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/amd64.py |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/amd64.py b/arch/amd64.py
index 1697483..4cd229c 100644
--- a/arch/amd64.py
+++ b/arch/amd64.py
@@ -56,6 +56,14 @@ class arch_amdfam10(generic_amd64):
 		self.settings["CHOST"]="x86_64-pc-linux-gnu"
 		self.settings["HOSTUSE"]=["mmx","sse","sse2","3dnow"]
 
+class arch_x32(generic_amd64):
+	"builder class for generic x32 (Intel and AMD)"
+	def __init__(self,myspec):
+		generic_amd64.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe"
+		self.settings["CHOST"]="x86_64-pc-linux-gnux32"
+		self.settings["HOSTUSE"]=["mmx","sse","sse2"]
+
 def register():
 	"inform main catalyst program of the contents of this plugin"
 	return ({
@@ -70,6 +78,7 @@ def register():
 		"opteron-sse3"	: arch_k8_sse3,
 		"athlon64-sse3"	: arch_k8_sse3,
 		"amdfam10"	: arch_amdfam10,
-		"barcelona"	: arch_amdfam10
+		"barcelona"	: arch_amdfam10,
+		"x32"		: arch_x32,
 	}, ("x86_64","amd64","nocona"))
 
-- 
1.7.9.7



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

only message in thread, other threads:[~2012-09-08  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-08  0:03 [gentoo-catalyst] [PATCH] add x32 abi Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox