summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-02-11 11:02:13 +0000
committerJakub Jelinek <jakub@redhat.com>2005-02-11 11:02:13 +0000
commitb821229a10e85f03b47d048e119518885cc25e0b (patch)
treed9ad5bca232cd02a312ed222d1cf88057fdb2290 /include
parent28c85b32ab50681c39105954b3fd5afa6c0b599a (diff)
Updated to fedora-glibc-20050211T1037
Diffstat (limited to 'include')
-rw-r--r--include/stub-tag.h7
-rw-r--r--include/stubs-biarch.h12
2 files changed, 15 insertions, 4 deletions
diff --git a/include/stub-tag.h b/include/stub-tag.h
index 3004d6f429..d4d10c8341 100644
--- a/include/stub-tag.h
+++ b/include/stub-tag.h
@@ -1,5 +1,4 @@
/* This header is included into every file that declares a stub function.
- * The build process looks for this header in .d files to decide whether
- * or not it needs to scan the corresponding .c file for entries to add to
- * <gnu/stubs.h>.
- */
+ It is obsolete now, but hasn't died to avoid removing all those
+ #include's. Every such file should use the `stub_warning' macro for
+ each of its functions, and that is sufficient. */
diff --git a/include/stubs-biarch.h b/include/stubs-biarch.h
new file mode 100644
index 0000000000..fc086bd894
--- /dev/null
+++ b/include/stubs-biarch.h
@@ -0,0 +1,12 @@
+/* This file selects the right generated file of `__stub_FUNCTION' macros
+ based on the architecture being compiled for. */
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+# include <gnu/stubs-32.h>
+#elif __WORDSIZE == 64
+# include <gnu/stubs-64.h>
+#else
+# error "unexpected value for __WORDSIZE macro"
+#endif