diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-04-15 13:36:22 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-04-15 13:37:04 +0300 |
commit | 8eb4821b67794180ea69e6f78292a70d84a14552 (patch) | |
tree | 5003e5ac202fc41058dc8ba424a2bfe946002125 | |
parent | f562a886695fc8eb3832f4e7a13d4bff80db529a (diff) |
Revert "api: make only the API visible"
Patch is not ready to be included.
This reverts commit f562a886695fc8eb3832f4e7a13d4bff80db529a.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
44 files changed, 0 insertions, 349 deletions
diff --git a/include/odp/api/spec/align.h b/include/odp/api/spec/align.h index 027b0802c..677ff12ce 100644 --- a/include/odp/api/spec/align.h +++ b/include/odp/api/spec/align.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_compiler_optim * Macros that allow cache line size configuration, check that * alignment is a power of two etc. @@ -74,10 +70,6 @@ extern "C" { * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/atomic.h b/include/odp/api/spec/atomic.h index b926964d1..a16d90bfb 100644 --- a/include/odp/api/spec/atomic.h +++ b/include/odp/api/spec/atomic.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_atomic ODP ATOMIC * @details @@ -628,10 +624,6 @@ int odp_atomic_lock_free_u64(odp_atomic_op_t *atomic_op); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/barrier.h b/include/odp/api/spec/barrier.h index 34c3658cb..823eae66c 100644 --- a/include/odp/api/spec/barrier.h +++ b/include/odp/api/spec/barrier.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_barrier ODP BARRIER * Thread excution and memory ordering barriers. @@ -63,10 +59,6 @@ void odp_barrier_wait(odp_barrier_t *barr); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/buffer.h b/include/odp/api/spec/buffer.h index caa2cb668..6631f478c 100644 --- a/include/odp/api/spec/buffer.h +++ b/include/odp/api/spec/buffer.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_buffer ODP BUFFER * Operations on a buffer. * @{ @@ -167,10 +163,6 @@ uint64_t odp_buffer_to_u64(odp_buffer_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/byteorder.h b/include/odp/api/spec/byteorder.h index 17f7ebe08..a12a7296f 100644 --- a/include/odp/api/spec/byteorder.h +++ b/include/odp/api/spec/byteorder.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_compiler_optim ODP COMPILER / OPTIMIZATION * Macros that check byte order and operations for byte order conversion. * @{ @@ -177,10 +173,6 @@ odp_u64le_t odp_cpu_to_le_64(uint64_t cpu64); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h index f20086947..076b3defe 100644 --- a/include/odp/api/spec/classification.h +++ b/include/odp/api/spec/classification.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_classification ODP CLASSIFICATION * Classification operations. * @{ @@ -396,10 +392,6 @@ uint64_t odp_pmr_to_u64(odp_pmr_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/compiler.h b/include/odp/api/spec/compiler.h index 1b6d05ff5..5a24bfb2a 100644 --- a/include/odp/api/spec/compiler.h +++ b/include/odp/api/spec/compiler.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_compiler_optim * Macro for old compilers * @{ @@ -48,10 +44,6 @@ extern "C" { * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/config.h b/include/odp/api/spec/config.h index 14e54e122..c9879d6d8 100644 --- a/include/odp/api/spec/config.h +++ b/include/odp/api/spec/config.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_config ODP CONFIG * Platform-specific configuration limits. * @@ -161,10 +157,6 @@ int odp_config_shm_blocks(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/cpu.h b/include/odp/api/spec/cpu.h index e87875ee7..f0e20c458 100644 --- a/include/odp/api/spec/cpu.h +++ b/include/odp/api/spec/cpu.h @@ -20,10 +20,6 @@ extern "C" { #include <odp/api/std_types.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_cpu ODP CPU * @{ */ @@ -176,10 +172,6 @@ void odp_cpu_pause(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/cpumask.h b/include/odp/api/spec/cpumask.h index 3fc76946c..42098c2e4 100644 --- a/include/odp/api/spec/cpumask.h +++ b/include/odp/api/spec/cpumask.h @@ -20,10 +20,6 @@ extern "C" { #include <odp/api/config.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_cpumask ODP CPUMASK * CPU mask operations. * @{ @@ -251,10 +247,6 @@ int odp_cpumask_all_available(odp_cpumask_t *mask); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 7ac5ad140..7c6f9bc5b 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_crypto ODP CRYPTO * Macros, enums, types and operations to utilise crypto. * @{ @@ -371,10 +367,6 @@ uint64_t odp_crypto_compl_to_u64(odp_crypto_compl_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/debug.h b/include/odp/api/spec/debug.h index c1ecd78de..252a82f55 100644 --- a/include/odp/api/spec/debug.h +++ b/include/odp/api/spec/debug.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - #if defined(__GNUC__) && !defined(__clang__) @@ -47,10 +43,6 @@ extern "C" { #define _ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/errno.h b/include/odp/api/spec/errno.h index a33733419..33998b61b 100644 --- a/include/odp/api/spec/errno.h +++ b/include/odp/api/spec/errno.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_errno ODP ERRNO * @details @@ -82,10 +78,6 @@ const char *odp_errno_str(int errnum); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/event.h b/include/odp/api/spec/event.h index 3a7c14939..29547f335 100644 --- a/include/odp/api/spec/event.h +++ b/include/odp/api/spec/event.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_event ODP EVENT * Operations on an event. * @{ @@ -83,10 +79,6 @@ void odp_event_free(odp_event_t event); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/hash.h b/include/odp/api/spec/hash.h index b00a6adcd..a6bc75310 100644 --- a/include/odp/api/spec/hash.h +++ b/include/odp/api/spec/hash.h @@ -19,10 +19,6 @@ extern "C" { #include <odp/api/std_types.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_hash ODP HASH FUNCTIONS * ODP Hash functions * @{ @@ -95,10 +91,6 @@ int odp_hash_crc_gen64(const void *data, uint32_t data_len, * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h index 325ef153d..ea67fc401 100644 --- a/include/odp/api/spec/hints.h +++ b/include/odp/api/spec/hints.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_compiler_optim * Macros that will give hints to the compiler. * @{ @@ -113,10 +109,6 @@ extern "C" { * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/init.h b/include/odp/api/spec/init.h index ff9e3439d..8560663da 100644 --- a/include/odp/api/spec/init.h +++ b/include/odp/api/spec/init.h @@ -33,10 +33,6 @@ extern "C" { #include <odp/api/thread.h> #include <odp/api/cpumask.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_initialization ODP INITIALIZATION * Initialisation operations. * @{ @@ -278,10 +274,6 @@ int odp_term_local(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h index 4305ea0de..7da353b26 100644 --- a/include/odp/api/spec/packet.h +++ b/include/odp/api/spec/packet.h @@ -20,10 +20,6 @@ extern "C" { #include <odp/api/time.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_packet ODP PACKET * Operations on a packet. * @{ @@ -1064,10 +1060,6 @@ uint64_t odp_packet_seg_to_u64(odp_packet_seg_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/packet_flags.h b/include/odp/api/spec/packet_flags.h index cc63cda50..35d44e16c 100644 --- a/include/odp/api/spec/packet_flags.h +++ b/include/odp/api/spec/packet_flags.h @@ -21,10 +21,6 @@ extern "C" { #include <odp/api/std_types.h> #include <odp/api/packet.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_packet * Boolean operations on a packet. * @{ @@ -493,10 +489,6 @@ void odp_packet_has_ts_clr(odp_packet_t pkt); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index ddf9e052f..466cab648 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -22,10 +22,6 @@ extern "C" { #include <odp/api/queue.h> #include <odp/api/time.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_packet_io ODP PACKET IO * Operations on a packet Input/Output interface. * @@ -1038,10 +1034,6 @@ odp_time_t odp_pktin_ts_from_ns(odp_pktio_t pktio, uint64_t ns); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/packet_io_stats.h b/include/odp/api/spec/packet_io_stats.h index 3fe31d780..148ad8d40 100644 --- a/include/odp/api/spec/packet_io_stats.h +++ b/include/odp/api/spec/packet_io_stats.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_packet_io * @{ */ @@ -138,10 +134,6 @@ int odp_pktio_stats_reset(odp_pktio_t pktio); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index 8f3c19ea2..94a302e73 100644 --- a/include/odp/api/spec/pool.h +++ b/include/odp/api/spec/pool.h @@ -22,10 +22,6 @@ extern "C" { #include <odp/api/std_types.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_pool ODP POOL * Operations on a pool. * @{ @@ -210,10 +206,6 @@ void odp_pool_param_init(odp_pool_param_t *param); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 2e767e7e1..51d94a23a 100644 --- a/include/odp/api/spec/queue.h +++ b/include/odp/api/spec/queue.h @@ -21,10 +21,6 @@ extern "C" { #include <odp/api/schedule_types.h> #include <odp/api/event.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_queue ODP QUEUE * Macros and operation on a queue. * @{ @@ -374,10 +370,6 @@ int odp_queue_info(odp_queue_t queue, odp_queue_info_t *info); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/random.h b/include/odp/api/spec/random.h index d1f926750..435783a4f 100644 --- a/include/odp/api/spec/random.h +++ b/include/odp/api/spec/random.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_random ODP RANDOM * @{ */ @@ -45,10 +41,6 @@ int32_t odp_random_data(uint8_t *buf, int32_t size, odp_bool_t use_entropy); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/rwlock.h b/include/odp/api/spec/rwlock.h index 7d23430ba..9ca887262 100644 --- a/include/odp/api/spec/rwlock.h +++ b/include/odp/api/spec/rwlock.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_locks ODP LOCKS * @details @@ -99,10 +95,6 @@ void odp_rwlock_write_unlock(odp_rwlock_t *rwlock); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/rwlock_recursive.h b/include/odp/api/spec/rwlock_recursive.h index 163149197..965fcc0bf 100644 --- a/include/odp/api/spec/rwlock_recursive.h +++ b/include/odp/api/spec/rwlock_recursive.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @addtogroup odp_locks * @details @@ -117,10 +113,6 @@ void odp_rwlock_recursive_write_unlock(odp_rwlock_recursive_t *lock); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index cff56ac93..cd1325ad7 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -25,10 +25,6 @@ extern "C" { #include <odp/api/schedule_types.h> #include <odp/api/thrmask.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_scheduler ODP SCHEDULER * Operations on the scheduler. * @{ @@ -375,10 +371,6 @@ void odp_schedule_order_unlock(unsigned lock_index); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/schedule_types.h b/include/odp/api/spec/schedule_types.h index 11fc00174..34046af9c 100644 --- a/include/odp/api/spec/schedule_types.h +++ b/include/odp/api/spec/schedule_types.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_scheduler * @{ */ @@ -156,10 +152,6 @@ typedef struct odp_schedule_param_t { * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h index 8969462c2..5d851ce12 100644 --- a/include/odp/api/spec/shared_memory.h +++ b/include/odp/api/spec/shared_memory.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_shared_memory ODP SHARED MEMORY * Operations on shared memory. * @{ @@ -152,10 +148,6 @@ uint64_t odp_shm_to_u64(odp_shm_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/spinlock.h b/include/odp/api/spec/spinlock.h index 02e9d1a0d..a73359ddb 100644 --- a/include/odp/api/spec/spinlock.h +++ b/include/odp/api/spec/spinlock.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @addtogroup odp_locks * @details @@ -88,10 +84,6 @@ int odp_spinlock_is_locked(odp_spinlock_t *splock); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/spinlock_recursive.h b/include/odp/api/spec/spinlock_recursive.h index 457998a03..d98f2bbb6 100644 --- a/include/odp/api/spec/spinlock_recursive.h +++ b/include/odp/api/spec/spinlock_recursive.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @addtogroup odp_locks * @details @@ -82,10 +78,6 @@ int odp_spinlock_recursive_is_locked(odp_spinlock_recursive_t *lock); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/std_clib.h b/include/odp/api/spec/std_clib.h index de5976c98..791b72f1c 100644 --- a/include/odp/api/spec/std_clib.h +++ b/include/odp/api/spec/std_clib.h @@ -17,10 +17,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_std_clib ODP STD CLIB * @details @@ -79,10 +75,6 @@ int odp_memcmp(const void *ptr1, const void *ptr2, size_t num); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/std_types.h b/include/odp/api/spec/std_types.h index f138e9452..7558c647d 100644 --- a/include/odp/api/spec/std_types.h +++ b/include/odp/api/spec/std_types.h @@ -20,10 +20,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_system ODP SYSTEM * @{ */ @@ -39,10 +35,6 @@ extern "C" { * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/sync.h b/include/odp/api/spec/sync.h index 1faa49b27..c6f790c6f 100644 --- a/include/odp/api/spec/sync.h +++ b/include/odp/api/spec/sync.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @addtogroup odp_barrier * @details @@ -87,10 +83,6 @@ void odp_mb_full(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/system_info.h b/include/odp/api/spec/system_info.h index 0191b8831..bde3a6031 100644 --- a/include/odp/api/spec/system_info.h +++ b/include/odp/api/spec/system_info.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_system ODP SYSTEM * @{ */ @@ -52,10 +48,6 @@ int odp_sys_cache_line_size(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/thread.h b/include/odp/api/spec/thread.h index 94101c874..37202497a 100644 --- a/include/odp/api/spec/thread.h +++ b/include/odp/api/spec/thread.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_thread ODP THREAD * @{ */ @@ -109,10 +105,6 @@ odp_thread_type_t odp_thread_type(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/thrmask.h b/include/odp/api/spec/thrmask.h index 4eb8e294c..a22da8c42 100644 --- a/include/odp/api/spec/thrmask.h +++ b/include/odp/api/spec/thrmask.h @@ -19,10 +19,6 @@ extern "C" { #include <odp/api/std_types.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @addtogroup odp_thread * Thread mask operations. * @{ @@ -236,10 +232,6 @@ int odp_thrmask_control(odp_thrmask_t *mask); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/ticketlock.h b/include/odp/api/spec/ticketlock.h index 071a5f040..3f0e3f556 100644 --- a/include/odp/api/spec/ticketlock.h +++ b/include/odp/api/spec/ticketlock.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @addtogroup odp_locks * @details @@ -87,10 +83,6 @@ int odp_ticketlock_is_locked(odp_ticketlock_t *tklock); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/time.h b/include/odp/api/spec/time.h index 62873bc80..85692ec11 100644 --- a/include/odp/api/spec/time.h +++ b/include/odp/api/spec/time.h @@ -19,10 +19,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_time ODP TIME * @{ */ @@ -178,10 +174,6 @@ uint64_t odp_time_to_u64(odp_time_t time); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/timer.h b/include/odp/api/spec/timer.h index e83a76ca5..435c0045f 100644 --- a/include/odp/api/spec/timer.h +++ b/include/odp/api/spec/timer.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** @defgroup odp_timer ODP TIMER * @{ */ @@ -412,10 +408,6 @@ uint64_t odp_timeout_to_u64(odp_timeout_t hdl); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/traffic_mngr.h b/include/odp/api/spec/traffic_mngr.h index d7a624832..ce124a83f 100644 --- a/include/odp/api/spec/traffic_mngr.h +++ b/include/odp/api/spec/traffic_mngr.h @@ -14,10 +14,6 @@ extern "C" { #include <odp/api/std_types.h> #include <odp/api/packet_io.h> -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @file * @@ -1371,10 +1367,6 @@ void odp_tm_stats_print(odp_tm_t odp_tm); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/include/odp/api/spec/version.h b/include/odp/api/spec/version.h index 22cb37169..642831c23 100644 --- a/include/odp/api/spec/version.h +++ b/include/odp/api/spec/version.h @@ -18,10 +18,6 @@ extern "C" { #endif -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif - /** * @defgroup odp_version ODP VERSION * @details @@ -102,10 +98,6 @@ const char *odp_version_impl_str(void); * @} */ -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } #endif diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 5aa3fedc4..1cb7a7194 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -15,7 +15,6 @@ AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)' GIT_DESC = `$(top_srcdir)/scripts/get_impl_str.sh $(top_srcdir)` AM_CFLAGS += "-DGIT_HASH=$(GIT_DESC)" AM_CFLAGS += -DPLATFORM=${with_platform} -AM_CFLAGS += $(VISIBILITY_CFLAGS) #The implementation will need to retain the deprecated implementation AM_CFLAGS += -Wno-deprecated-declarations diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 75a3797e2..f80c66c02 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -1,15 +1,3 @@ -# Enable -fvisibility=hidden if using a gcc that supports it -OLD_CFLAGS="$CFLAGS" -AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden]) -VISIBILITY_CFLAGS="-fvisibility=hidden" -CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" -AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]), - [VISIBILITY_CFLAGS=""; AC_MSG_RESULT([no])]); - -AC_SUBST(VISIBILITY_CFLAGS) -# Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. -CFLAGS=$OLD_CFLAGS - AC_MSG_CHECKING(for GCC atomic builtins) AC_LINK_IFELSE( [AC_LANG_SOURCE( |