public inbox for
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <>
To: <>, <>
Cc: "Ryan S. Arnold" <>
Subject: Move powerpc ports pieces to libc.
Date: Thu, 26 Sep 2013 17:29:00 -0000	[thread overview]
Message-ID: <> (raw)

This patch moves the powerpc-nofpu port and 4xx string functions from
ports to libc.  Together with the diff below for the README update and
one case where file contents need merging into an existing file, the
following git commands do the directory moves (and removal of the file
from which contents were merged):

git mv ports/sysdeps/powerpc/nofpu sysdeps/powerpc/nofpu
git mv ports/sysdeps/powerpc/soft-fp sysdeps/powerpc/soft-fp
git mv ports/sysdeps/powerpc/powerpc32/405 sysdeps/powerpc/powerpc32/405
git mv ports/sysdeps/powerpc/powerpc32/440 sysdeps/powerpc/powerpc32/440
git mv ports/sysdeps/powerpc/powerpc32/464 sysdeps/powerpc/powerpc32/464
git mv ports/sysdeps/powerpc/powerpc32/476 sysdeps/powerpc/powerpc32/476
git rm ports/sysdeps/powerpc/powerpc32/Makefile
git mv ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu
git mv ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405 sysdeps/unix/sysv/linux/powerpc/powerpc32/405
git mv ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440 sysdeps/unix/sysv/linux/powerpc/powerpc32/440
git mv ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464 sysdeps/unix/sysv/linux/powerpc/powerpc32/464
git mv ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476 sysdeps/unix/sysv/linux/powerpc/powerpc32/476

Tested that for both hard-float and soft-float powerpc32 builds, the
disassembly of installed binaries is the same before and after the
change (paths in debug info are of course different).

2013-09-26  Joseph Myers  <>

	* sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
	Move -mhard-float appending from
	[$(with-fp) = yes] (ASFLAGS): Likewise.
	[$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
	* sysdeps/powerpc/nofpu: Move directory from
	* sysdeps/powerpc/soft-fp: Move directory from
	* sysdeps/powerpc/powerpc32/405: Move directory from
	* sysdeps/powerpc/powerpc32/440: Move directory from
	* sysdeps/powerpc/powerpc32/464: Move directory from
	* sysdeps/powerpc/powerpc32/476: Move directory from
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
	from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
	from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
	from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
	from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
	from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
	* README: Update for powerpc-*-linux-gnu software floating point
	support in libc.

2013-09-26  Joseph Myers  <>

	* ports/sysdeps/powerpc/powerpc32/Makefile: Remove file.
	* sysdeps/powerpc/nofpu: Move directory to
	* sysdeps/powerpc/soft-fp: Move directory to
	* sysdeps/powerpc/powerpc32/405: Move directory to
	* sysdeps/powerpc/powerpc32/440: Move directory to
	* sysdeps/powerpc/powerpc32/464: Move directory to
	* sysdeps/powerpc/powerpc32/476: Move directory to
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
	to ../sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory to
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory to
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory to
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory to

diff --git a/README b/README
index bb4ccb8..e8df988 100644
--- a/README
+++ b/README
@@ -26,7 +26,7 @@ The GNU C Library supports these configurations for using Linux kernels:
 	x86_64-*-linux-gnu	Can build either x86_64 or x32
-	powerpc-*-linux-gnu	Hardware floating point required
+	powerpc-*-linux-gnu	Hardware or software floating point
@@ -47,7 +47,6 @@ located in the `ports' subdirectory of the source tree.
-	powerpc-*-linux-gnu	Software floating point (--without-fp)
diff --git a/sysdeps/powerpc/powerpc32/Makefile b/sysdeps/powerpc/powerpc32/Makefile
index 3fdb4b4..cf620c8 100644
--- a/sysdeps/powerpc/powerpc32/Makefile
+++ b/sysdeps/powerpc/powerpc32/Makefile
@@ -1,5 +1,14 @@
 # Powerpc32 specific build options.
+# Some Powerpc32 variants assume soft-fp is the default even though there is
+# an fp variant so provide -mhard-float if --with-fp is explicitly passed.
+ifeq ($(with-fp),yes)
++cflags += -mhard-float
+ASFLAGS += -mhard-float
+sysdep-LDFLAGS += -mhard-float
 ifeq ($(subdir),gmon)
 sysdep_routines += ppc-mcount compat-ppc-mcount
 static-only-routines += ppc-mcount

Joseph S. Myers

             reply	other threads:[~2013-09-26 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 17:29 Joseph S. Myers [this message]
2013-09-27 17:00 ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).