diff options
Diffstat (limited to 'newlib/libc/sys/linux')
-rw-r--r-- | newlib/libc/sys/linux/dl/atomicity.h | 6 | ||||
-rw-r--r-- | newlib/libc/sys/linux/dl/dynamic-link.h | 4 | ||||
-rw-r--r-- | newlib/libc/sys/linux/dl/ldsodefs.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/iconv/gconv_charset.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/include/resolv.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/libc-symbols.h | 20 | ||||
-rw-r--r-- | newlib/libc/sys/linux/linuxthreads/internals.h | 6 | ||||
-rw-r--r-- | newlib/libc/sys/linux/linuxthreads/libc-symbols.h | 16 | ||||
-rw-r--r-- | newlib/libc/sys/linux/machine/i386/dl-machine.h | 22 | ||||
-rw-r--r-- | newlib/libc/sys/linux/machine/i386/dl-procinfo.h | 10 | ||||
-rw-r--r-- | newlib/libc/sys/linux/machine/i386/weakalias.h | 4 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/unistd.h | 2 |
12 files changed, 48 insertions, 48 deletions
diff --git a/newlib/libc/sys/linux/dl/atomicity.h b/newlib/libc/sys/linux/dl/atomicity.h index 3dbd00689..2ff7e5270 100644 --- a/newlib/libc/sys/linux/dl/atomicity.h +++ b/newlib/libc/sys/linux/dl/atomicity.h @@ -23,7 +23,7 @@ static inline uint32_t -__attribute__ ((unused)) +__attribute__ ((__unused__)) exchange_and_add (volatile uint32_t *mem, uint32_t val) { register uint32_t result; @@ -33,7 +33,7 @@ exchange_and_add (volatile uint32_t *mem, uint32_t val) } static inline void -__attribute__ ((unused)) +__attribute__ ((__unused__)) atomic_add (volatile uint32_t *mem, int val) { __asm__ __volatile__ ("lock; addl %1,%0" @@ -41,7 +41,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline char -__attribute__ ((unused)) +__attribute__ ((__unused__)) compare_and_swap (volatile long int *p, long int oldval, long int newval) { char ret; diff --git a/newlib/libc/sys/linux/dl/dynamic-link.h b/newlib/libc/sys/linux/dl/dynamic-link.h index c1709f7c6..4445bca48 100644 --- a/newlib/libc/sys/linux/dl/dynamic-link.h +++ b/newlib/libc/sys/linux/dl/dynamic-link.h @@ -31,12 +31,12 @@ /* Global read-only variable defined in rtld.c which is nonzero if we shall give more warning messages. */ -extern int _dl_verbose __attribute__ ((unused)); +extern int _dl_verbose __attribute__ ((__unused__)); /* Read the dynamic section at DYN and fill in INFO with indices DT_*. */ -static void __attribute__ ((unused)) +static void __attribute__ ((__unused__)) elf_get_dynamic_info (struct link_map *l) { ElfW(Dyn) *dyn = l->l_ld; diff --git a/newlib/libc/sys/linux/dl/ldsodefs.h b/newlib/libc/sys/linux/dl/ldsodefs.h index e6f57ddcf..8cf487ad9 100644 --- a/newlib/libc/sys/linux/dl/ldsodefs.h +++ b/newlib/libc/sys/linux/dl/ldsodefs.h @@ -162,7 +162,7 @@ struct libname_list /* Test whether given NAME matches any of the names of the given object. */ static __inline int -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_name_match_p (const char *__name, struct link_map *__map) { int __found = strcmp (__name, __map->l_name) == 0; diff --git a/newlib/libc/sys/linux/iconv/gconv_charset.h b/newlib/libc/sys/linux/iconv/gconv_charset.h index 706669825..9b3ea0570 100644 --- a/newlib/libc/sys/linux/iconv/gconv_charset.h +++ b/newlib/libc/sys/linux/iconv/gconv_charset.h @@ -53,7 +53,7 @@ strip (char *wp, const char *s) } -static char * __attribute__ ((unused)) +static char * __attribute__ ((__unused__)) upstr (char *dst, const char *str) { char *cp = dst; diff --git a/newlib/libc/sys/linux/include/resolv.h b/newlib/libc/sys/linux/include/resolv.h index 35db205d9..ef0cfefdb 100644 --- a/newlib/libc/sys/linux/include/resolv.h +++ b/newlib/libc/sys/linux/include/resolv.h @@ -150,7 +150,7 @@ struct __res_state { u_int16_t nsinit; struct sockaddr_in6 *nsaddrs[MAXNS]; unsigned long long int initstamp - __attribute__((packed)); + __attribute__((__packed__)); #if 0 unsigned int _initstamp[2]; #endif diff --git a/newlib/libc/sys/linux/libc-symbols.h b/newlib/libc/sys/linux/libc-symbols.h index f32260c95..8130010a4 100644 --- a/newlib/libc/sys/linux/libc-symbols.h +++ b/newlib/libc/sys/linux/libc-symbols.h @@ -91,12 +91,12 @@ /* Define ALIASNAME as a strong alias for NAME. */ # define strong_alias(name, aliasname) _strong_alias(name, aliasname) # define _strong_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((alias (#name))); + extern __typeof (name) aliasname __attribute__ ((__alias__ (#name))); /* This comes between the return type and function name in a function definition to make that definition weak. */ -# define weak_function __attribute__ ((weak)) -# define weak_const_function __attribute__ ((weak, __const__)) +# define weak_function __attribute__ ((__weak__)) +# define weak_const_function __attribute__ ((__weak__, __const__)) # ifdef HAVE_WEAK_SYMBOLS @@ -104,7 +104,7 @@ If weak aliases are not available, this defines a strong alias. */ # define weak_alias(name, aliasname) _weak_alias (name, aliasname) # define _weak_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); + extern __typeof (name) aliasname __attribute__ ((__weak__, __alias__ (#name))); /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */ # define weak_extern(symbol) _weak_extern (symbol) @@ -213,12 +213,12 @@ # define link_warning(symbol, msg) \ __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg; + __attribute__ ((__section__ (".gnu.warning." #symbol "\"\n\t#\""))) = msg; # else # define link_warning(symbol, msg) \ __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg; + __attribute__ ((__section__ (".gnu.warning." #symbol "\n\t#"))) = msg; # endif # else /* Not ELF: a.out */ # ifdef HAVE_XCOFF @@ -267,11 +267,11 @@ because it will need to be relocated at run time anyway. */ # define _elf_set_element(set, symbol) \ static const void *__elf_set_##set##_element_##symbol##__ \ - __attribute__ ((unused, section (#set))) = &(symbol) + __attribute__ ((__unused__, __section__ (#set))) = &(symbol) # else # define _elf_set_element(set, symbol) \ static const void *const __elf_set_##set##_element_##symbol##__ \ - __attribute__ ((unused, section (#set))) = &(symbol) + __attribute__ ((__unused__, __section__ (#set))) = &(symbol) # endif /* Define SET as a symbol set. This may be required (it is in a.out) to @@ -367,9 +367,9 @@ special section. */ #ifndef __ASSEMBLER__ # define attribute_compat_text_section \ - __attribute__ ((section (".text.compat"))) + __attribute__ ((__section__ (".text.compat"))) # define attribute_compat_data_section \ - __attribute__ ((section (".data.compat"))) + __attribute__ ((__section__ (".data.compat"))) #else # define compat_text_section .section ".text.compat", "ax"; # define compat_data_section .section ".data.compat", "aw"; diff --git a/newlib/libc/sys/linux/linuxthreads/internals.h b/newlib/libc/sys/linux/linuxthreads/internals.h index 6da0deb43..1167bd43e 100644 --- a/newlib/libc/sys/linux/linuxthreads/internals.h +++ b/newlib/libc/sys/linux/linuxthreads/internals.h @@ -187,7 +187,7 @@ struct _pthread_descr_struct { hp_timing_t p_cpuclock_offset; /* Initial CPU clock for thread. */ #endif /* New elements must be added at the end. */ -} __attribute__ ((aligned(32))); /* We need to align the structure so that +} __attribute__ ((__aligned__(32))); /* We need to align the structure so that doubles are aligned properly. This is 8 bytes on MIPS and 16 bytes on MIPS64. 32 bytes might give better cache @@ -374,9 +374,9 @@ static inline int nonexisting_handle(pthread_handle h, pthread_t id) /* Recover thread descriptor for the current thread */ -extern pthread_descr __pthread_find_self (void) __attribute__ ((const)); +extern pthread_descr __pthread_find_self (void) __attribute__ ((__const__)); -static inline pthread_descr thread_self (void) __attribute__ ((const)); +static inline pthread_descr thread_self (void) __attribute__ ((__const__)); static inline pthread_descr thread_self (void) { #ifdef THREAD_SELF diff --git a/newlib/libc/sys/linux/linuxthreads/libc-symbols.h b/newlib/libc/sys/linux/linuxthreads/libc-symbols.h index 97b672643..3f56cc259 100644 --- a/newlib/libc/sys/linux/linuxthreads/libc-symbols.h +++ b/newlib/libc/sys/linux/linuxthreads/libc-symbols.h @@ -91,12 +91,12 @@ /* Define ALIASNAME as a strong alias for NAME. */ # define strong_alias(name, aliasname) _strong_alias(name, aliasname) # define _strong_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((alias (#name))); + extern __typeof (name) aliasname __attribute__ ((__alias__ (#name))); /* This comes between the return type and function name in a function definition to make that definition weak. */ -# define weak_function __attribute__ ((weak)) -# define weak_const_function __attribute__ ((weak, __const__)) +# define weak_function __attribute__ ((__weak__)) +# define weak_const_function __attribute__ ((__weak__, __const__)) # ifdef HAVE_WEAK_SYMBOLS @@ -104,7 +104,7 @@ If weak aliases are not available, this defines a strong alias. */ # define weak_alias(name, aliasname) _weak_alias (name, aliasname) # define _weak_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); + extern __typeof (name) aliasname __attribute__ ((__weak__, __alias__ (#name))); /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */ # define weak_extern(symbol) _weak_extern (symbol) @@ -213,12 +213,12 @@ # define link_warning(symbol, msg) \ __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg; + __attribute__ ((__section__ (".gnu.warning." #symbol "\"\n\t#\""))) = msg; # else # define link_warning(symbol, msg) \ __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg; + __attribute__ ((__section__ (".gnu.warning." #symbol "\n\t#"))) = msg; # endif # else /* Not ELF: a.out */ # ifdef HAVE_XCOFF @@ -267,11 +267,11 @@ because it will need to be relocated at run time anyway. */ # define _elf_set_element(set, symbol) \ static const void *__elf_set_##set##_element_##symbol##__ \ - __attribute__ ((unused, section (#set))) = &(symbol) + __attribute__ ((__unused__, __section__ (#set))) = &(symbol) # else # define _elf_set_element(set, symbol) \ static const void *const __elf_set_##set##_element_##symbol##__ \ - __attribute__ ((unused, section (#set))) = &(symbol) + __attribute__ ((__unused__, __section__ (#set))) = &(symbol) # endif /* Define SET as a symbol set. This may be required (it is in a.out) to diff --git a/newlib/libc/sys/linux/machine/i386/dl-machine.h b/newlib/libc/sys/linux/machine/i386/dl-machine.h index 80757e89a..8fada14e5 100644 --- a/newlib/libc/sys/linux/machine/i386/dl-machine.h +++ b/newlib/libc/sys/linux/machine/i386/dl-machine.h @@ -26,7 +26,7 @@ #include <machine/weakalias.h> /* Return nonzero iff ELF header is compatible with the running host. */ -static inline int __attribute__ ((unused)) +static inline int __attribute__ ((__unused__)) elf_machine_matches_host (const Elf32_Ehdr *ehdr) { return ehdr->e_machine == EM_386; @@ -36,7 +36,7 @@ elf_machine_matches_host (const Elf32_Ehdr *ehdr) /* Return the link-time address of _DYNAMIC. Conveniently, this is the first element of the GOT. This must be inlined in a function which uses global data. */ -static inline Elf32_Addr __attribute__ ((unused)) +static inline Elf32_Addr __attribute__ ((__unused__)) elf_machine_dynamic (void) { register Elf32_Addr *got asm ("%ebx"); @@ -45,7 +45,7 @@ elf_machine_dynamic (void) /* Return the run-time load address of the shared object. */ -static inline Elf32_Addr __attribute__ ((unused)) +static inline Elf32_Addr __attribute__ ((__unused__)) elf_machine_load_address (void) { Elf32_Addr addr; @@ -65,16 +65,16 @@ elf_machine_load_address (void) /* GKM FIXME: Fix trampoline to pass bounds so we can do without the `__unbounded' qualifier. */ static ElfW(Addr) fixup (struct link_map *__unbounded l, ElfW(Word) reloc_offset) - __attribute__ ((regparm (2), unused)); + __attribute__ ((__regparm__ (2), __unused__)); static ElfW(Addr) profile_fixup (struct link_map *l, ElfW(Word) reloc_offset, ElfW(Addr) retaddr) - __attribute__ ((regparm (3), unused)); + __attribute__ ((__regparm__ (3), __unused__)); #endif /* Set up the loaded object described by L so its unrelocated PLT entries will jump to the on-demand fixup code in dl-runtime.c. */ -static inline int __attribute__ ((unused)) +static inline int __attribute__ ((__unused__)) elf_machine_runtime_setup (struct link_map *l, int lazy, int profile) { Elf32_Addr *got; @@ -268,7 +268,7 @@ _dl_start_user:\n\ extern const char *_dl_platform; -static inline void __attribute__ ((unused)) +static inline void __attribute__ ((__unused__)) dl_platform_init (void) { if (_dl_platform != NULL && *_dl_platform == '\0') @@ -292,13 +292,13 @@ elf_machine_plt_value (struct link_map *map, const Elf32_Rel *reloc, return value; } -static inline void __attribute__ ((unused)) +static inline void __attribute__ ((__unused__)) elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, const Elf32_Sym *sym, const struct r_found_version *version, Elf32_Addr *const reloc_addr, struct r_scope_elem *scope[]); -static inline void __attribute__ ((unused)) +static inline void __attribute__ ((__unused__)) elf_machine_rel_relative (Elf32_Addr l_addr, const Elf32_Rel *reloc, Elf32_Addr *const reloc_addr); @@ -313,7 +313,7 @@ elf_machine_lazy_rel (struct link_map *map, /* Perform the relocation specified by RELOC and SYM (which is fully resolved). MAP is the object containing the reloc. */ -static inline void __attribute__ ((unused)) +static inline void __attribute__ ((__unused__)) elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, const Elf32_Sym *sym, const struct r_found_version *version, Elf32_Addr *const reloc_addr, @@ -396,7 +396,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, } } -static inline void __attribute__ ((unused)) +static inline void __attribute__ ((__unused__)) elf_machine_rel_relative (Elf32_Addr l_addr, const Elf32_Rel *reloc, Elf32_Addr *const reloc_addr) { diff --git a/newlib/libc/sys/linux/machine/i386/dl-procinfo.h b/newlib/libc/sys/linux/machine/i386/dl-procinfo.h index d1658fafd..2a877d6e1 100644 --- a/newlib/libc/sys/linux/machine/i386/dl-procinfo.h +++ b/newlib/libc/sys/linux/machine/i386/dl-procinfo.h @@ -38,7 +38,7 @@ extern const char _dl_x86_platforms[][5]; static inline int -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_procinfo (int word) { /* This table should match the information from arch/i386/kernel/setup.c @@ -57,14 +57,14 @@ _dl_procinfo (int word) } static inline const char * -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_hwcap_string (int idx) { return _dl_x86_cap_flags[idx]; }; static inline const char * -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_platform_string (int idx) { return _dl_x86_platforms [idx - _DL_FIRST_PLATFORM]; @@ -100,7 +100,7 @@ enum }; static inline int -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_string_hwcap (const char *str) { int i; @@ -115,7 +115,7 @@ _dl_string_hwcap (const char *str) static inline int -__attribute__ ((unused)) +__attribute__ ((__unused__)) _dl_string_platform (const char *str) { int i; diff --git a/newlib/libc/sys/linux/machine/i386/weakalias.h b/newlib/libc/sys/linux/machine/i386/weakalias.h index 2813bfe26..4242960c5 100644 --- a/newlib/libc/sys/linux/machine/i386/weakalias.h +++ b/newlib/libc/sys/linux/machine/i386/weakalias.h @@ -1,10 +1,10 @@ #define weak_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); + extern __typeof (name) aliasname __attribute__ ((__weak__, __alias__ (#name))); #if 0 #define weak_extern(symbol) _weak_extern (symbol) #define _weak_extern(symbol) asm (".weak " #symbol); #endif -#define weak_function __attribute__ ((weak)) +#define weak_function __attribute__ ((__weak__)) diff --git a/newlib/libc/sys/linux/sys/unistd.h b/newlib/libc/sys/linux/sys/unistd.h index 3d3864e2c..6b5a93e0c 100644 --- a/newlib/libc/sys/linux/sys/unistd.h +++ b/newlib/libc/sys/linux/sys/unistd.h @@ -16,7 +16,7 @@ extern "C" { extern char **environ; -void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn))); +void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((__noreturn__))); int _EXFUN(access,(const char *__path, int __amode )); unsigned _EXFUN(alarm, (unsigned __secs )); |