path: root/src/multibyte
diff options
authorRich Felker <>2018-09-05 12:43:34 -0400
committerRich Felker <>2018-09-05 14:05:14 -0400
commit9b95fd0944e4206949e90633c3fed088202810ec (patch)
tree4af9c66139abfef78854aca3200f836153727c23 /src/multibyte
parent2de29bc994029b903a366b8a4a9f8c3c3ee2be90 (diff)
define and use internal macros for hidden visibility, weak refs
this cleans up what had become widespread direct inline use of "GNU C" style attributes directly in the source, and lowers the barrier to increased use of hidden visibility, which will be useful to recovering some of the efficiency lost when the protected visibility hack was dropped in commit dc2f368e565c37728b0d620380b849c3a1ddd78f, especially on archs where the PLT ABI is costly.
Diffstat (limited to 'src/multibyte')
1 files changed, 2 insertions, 4 deletions
diff --git a/src/multibyte/internal.h b/src/multibyte/internal.h
index 421a3d4a..7d0e7828 100644
--- a/src/multibyte/internal.h
+++ b/src/multibyte/internal.h
@@ -1,11 +1,9 @@
#define bittab __fsmu8
#include <stdint.h>
+#include "libc.h"
-#ifdef __PIC__
-extern const uint32_t bittab[];
+extern hidden const uint32_t bittab[];
/* Upper 6 state bits are a negative integer offset to bound-check next byte */
/* equivalent to: ( (b-0x80) | (b+offset) ) & ~0x3f */