mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Bobby Bingham <koorogi@koorogi.info>
To: musl@lists.openwall.com
Subject: [PATCH 2/5] create big/little endian generic bits overlays
Date: Tue,  5 Jul 2016 22:54:11 -0500	[thread overview]
Message-ID: <20160706035414.10083-2-koorogi@koorogi.info> (raw)
In-Reply-To: <20160706035414.10083-1-koorogi@koorogi.info>

---
 arch/{or1k => generic-be}/bits/endian.h   |  0
 arch/{i386 => generic-le}/bits/endian.h   |  0
 arch/{powerpc64 => generic}/bits/endian.h |  0
 arch/i386/arch.mak                        |  1 +
 arch/or1k/arch.mak                        |  1 +
 arch/powerpc/bits/endian.h                | 15 ---------------
 arch/sh/bits/endian.h                     |  5 -----
 arch/x32/arch.mak                         |  1 +
 arch/x32/bits/endian.h                    |  1 -
 arch/x86_64/arch.mak                      |  1 +
 arch/x86_64/bits/endian.h                 |  1 -
 11 files changed, 4 insertions(+), 22 deletions(-)
 rename arch/{or1k => generic-be}/bits/endian.h (100%)
 rename arch/{i386 => generic-le}/bits/endian.h (100%)
 rename arch/{powerpc64 => generic}/bits/endian.h (100%)
 create mode 100644 arch/i386/arch.mak
 create mode 100644 arch/or1k/arch.mak
 delete mode 100644 arch/powerpc/bits/endian.h
 delete mode 100644 arch/sh/bits/endian.h
 create mode 100644 arch/x32/arch.mak
 delete mode 100644 arch/x32/bits/endian.h
 create mode 100644 arch/x86_64/arch.mak
 delete mode 100644 arch/x86_64/bits/endian.h

diff --git a/arch/or1k/bits/endian.h b/arch/generic-be/bits/endian.h
similarity index 100%
rename from arch/or1k/bits/endian.h
rename to arch/generic-be/bits/endian.h
diff --git a/arch/i386/bits/endian.h b/arch/generic-le/bits/endian.h
similarity index 100%
rename from arch/i386/bits/endian.h
rename to arch/generic-le/bits/endian.h
diff --git a/arch/powerpc64/bits/endian.h b/arch/generic/bits/endian.h
similarity index 100%
rename from arch/powerpc64/bits/endian.h
rename to arch/generic/bits/endian.h
diff --git a/arch/i386/arch.mak b/arch/i386/arch.mak
new file mode 100644
index 0000000..9ed39c4
--- /dev/null
+++ b/arch/i386/arch.mak
@@ -0,0 +1 @@
+ARCH_FALLBACKS = i386 generic-le generic
diff --git a/arch/or1k/arch.mak b/arch/or1k/arch.mak
new file mode 100644
index 0000000..a44f82f
--- /dev/null
+++ b/arch/or1k/arch.mak
@@ -0,0 +1 @@
+ARCH_FALLBACKS = or1k generic-be generic
diff --git a/arch/powerpc/bits/endian.h b/arch/powerpc/bits/endian.h
deleted file mode 100644
index 4442abf..0000000
--- a/arch/powerpc/bits/endian.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifdef __BIG_ENDIAN__
-  #if __BIG_ENDIAN__
-    #define __BYTE_ORDER __BIG_ENDIAN
-  #endif
-#endif /* __BIG_ENDIAN__ */
-
-#ifdef __LITTLE_ENDIAN__
-  #if __LITTLE_ENDIAN__
-    #define __BYTE_ORDER __LITTLE_ENDIAN
-  #endif
-#endif /* __LITTLE_ENDIAN__ */
-
-#ifndef __BYTE_ORDER
-  #define __BYTE_ORDER __BIG_ENDIAN
-#endif
diff --git a/arch/sh/bits/endian.h b/arch/sh/bits/endian.h
deleted file mode 100644
index 2016cb2..0000000
--- a/arch/sh/bits/endian.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#if __BIG_ENDIAN__
-#define __BYTE_ORDER __BIG_ENDIAN
-#else
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
diff --git a/arch/x32/arch.mak b/arch/x32/arch.mak
new file mode 100644
index 0000000..f1c9ec5
--- /dev/null
+++ b/arch/x32/arch.mak
@@ -0,0 +1 @@
+ARCH_FALLBACKS = x32 generic-le generic
diff --git a/arch/x32/bits/endian.h b/arch/x32/bits/endian.h
deleted file mode 100644
index 172c338..0000000
--- a/arch/x32/bits/endian.h
+++ /dev/null
@@ -1 +0,0 @@
-#define __BYTE_ORDER __LITTLE_ENDIAN
diff --git a/arch/x86_64/arch.mak b/arch/x86_64/arch.mak
new file mode 100644
index 0000000..a9dace7
--- /dev/null
+++ b/arch/x86_64/arch.mak
@@ -0,0 +1 @@
+ARCH_FALLBACKS = x86_64 generic-le generic
diff --git a/arch/x86_64/bits/endian.h b/arch/x86_64/bits/endian.h
deleted file mode 100644
index 172c338..0000000
--- a/arch/x86_64/bits/endian.h
+++ /dev/null
@@ -1 +0,0 @@
-#define __BYTE_ORDER __LITTLE_ENDIAN
-- 
2.9.0



  reply	other threads:[~2016-07-06  3:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06  3:54 [PATCH 1/5] generalize "generic" fallback for bits headers Bobby Bingham
2016-07-06  3:54 ` Bobby Bingham [this message]
2016-07-06  3:54 ` [PATCH 3/5] create ld64/ld128 generic bits overlays Bobby Bingham
2016-07-06  3:54 ` [PATCH 4/5] create 32-/64-bit " Bobby Bingham
2016-07-06  4:29   ` Rich Felker
2016-07-06  4:31   ` Rich Felker
2016-07-06  3:54 ` [PATCH 5/5] move generic fcntl.h to generic-32 Bobby Bingham

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20160706035414.10083-2-koorogi@koorogi.info \
    --to=koorogi@koorogi.info \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).