Commits

Stefan Krah committed 8ffa8dc Merge

Merge 3.3.

  • Participants
  • Parent commits 8006110, 51b0a15

Comments (0)

Files changed (12)

Modules/_decimal/libmpdec/basearith.h

 #include "typearith.h"
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 mpd_uint_t _mpd_baseadd(mpd_uint_t *w, const mpd_uint_t *u, const mpd_uint_t *v,
                         mpd_size_t m, mpd_size_t n);
 void _mpd_baseaddto(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n);
 }
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif /* BASEARITH_H */
 
 

Modules/_decimal/libmpdec/constants.h

 #include "mpdecimal.h"
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 /* choice of optimized functions */
 #if defined(CONFIG_64)
 /* x64 */
 extern const mpd_uint_t UH_P1P2;
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif /* CONSTANTS_H */
 
 

Modules/_decimal/libmpdec/convolute.h

 #include "mpdecimal.h"
 #include <stdio.h>
 
+
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 #define SIX_STEP_THRESHOLD 4096
 
-
 int fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum);
 int fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif

Modules/_decimal/libmpdec/crt.h

 #include <stdio.h>
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t nmemb);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif

Modules/_decimal/libmpdec/difradix2.h

 #include "numbertheory.h"
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 void fnt_dif2(mpd_uint_t a[], mpd_size_t n, struct fnt_params *tparams);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif

Modules/_decimal/libmpdec/fnt.h

 #include <stdio.h>
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 int std_fnt(mpd_uint_t a[], mpd_size_t n, int modnum);
 int std_inv_fnt(mpd_uint_t a[], mpd_size_t n, int modnum);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif
 

Modules/_decimal/libmpdec/fourstep.h

 #include <stdio.h>
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 int four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
 int inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif

Modules/_decimal/libmpdec/memory.h

 #include "mpdecimal.h"
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 int mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status);
 int mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t size, uint32_t *status);
 int mpd_realloc_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif
 
 

Modules/_decimal/libmpdec/mpdecimal.h

   #else
     #define UNUSED
   #endif
+  #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__INTEL_COMPILER)
+    #define MPD_PRAGMA(x) _Pragma(x)
+    #define MPD_HIDE_SYMBOLS_START "GCC visibility push(hidden)"
+    #define MPD_HIDE_SYMBOLS_END "GCC visibility pop"
+  #else
+    #define MPD_PRAGMA(x)
+    #define MPD_HIDE_SYMBOLS_START
+    #define MPD_HIDE_SYMBOLS_END
+  #endif
   #define EXTINLINE
 #endif
 
 
+/* This header file is internal for the purpose of building _decimal.so.
+ * All symbols should have local scope in the DSO. */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 #if !defined(LEGACY_COMPILER)
   #if !defined(UINT64_MAX)
     /* The following #error is just a warning. If the compiler indeed does
 int mpd_resize_zero(mpd_t *result, mpd_ssize_t size, mpd_context_t *ctx);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #ifdef __cplusplus
 } /* END extern "C" */
 #endif

Modules/_decimal/libmpdec/numbertheory.h

 #include "mpdecimal.h"
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 /* transform parameters */
 struct fnt_params {
     int modnum;
 #endif
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif
 
 

Modules/_decimal/libmpdec/sixstep.h

 #include <stdio.h>
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 int six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
 int inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif

Modules/_decimal/libmpdec/transpose.h

 #include <stdio.h>
 
 
+/* Internal header file: all symbols have local scope in the DSO */
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
+
+
 enum {FORWARD_CYCLE, BACKWARD_CYCLE};
 
 
 }
 
 
+MPD_PRAGMA(MPD_HIDE_SYMBOLS_END) /* restore previous scope rules */
+
+
 #endif