mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/mips32r2_common: ifdef __attribute__((optimize))
Causes compilation error on Clang
This commit is contained in:
parent
b59a9cb667
commit
91d930c574
@ -165,7 +165,11 @@ struct linkctx* exctx_find(reg_t id, struct gpctx *gp)
|
||||
}
|
||||
|
||||
/* unaligned access helper */
|
||||
static inline uint32_t __attribute__((optimize("-O3")))
|
||||
static inline uint32_t
|
||||
#ifndef __clang__
|
||||
/* Clang does not support attribute optimize */
|
||||
__attribute__((optimize("-O3")))
|
||||
#endif
|
||||
mem_rw(const void *vaddr)
|
||||
{
|
||||
uint32_t v;
|
||||
|
@ -23,6 +23,10 @@ comma := ,
|
||||
# If symbol has a value, produce a linker argument for that symbol.
|
||||
MIPS_HAL_LDFLAGS = $(foreach a,$(priv_symbols),$(if $($a),-Wl$(comma)--defsym$(comma)__$(call lc,$(a))=$($a)))
|
||||
|
||||
ifeq ($(ROMABLE),1)
|
||||
MIPS_HAL_LDFLAGS += -T bootcode.ld
|
||||
endif
|
||||
|
||||
# define build specific options
|
||||
# Remove -std=gnu99 once the MIPS toolchain headers are updated to include upstream
|
||||
# newlib commit 81c17949f0419d1c4fee421c60987ea1149522ae
|
||||
|
@ -15,10 +15,8 @@
|
||||
* @see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
|
||||
*/
|
||||
|
||||
/** @todo Remove ifdef __mips__ special case after
|
||||
* [#6639](https://github.com/RIOT-OS/RIOT/pull/6639) is merged */
|
||||
#ifndef DOXYGEN
|
||||
#if defined(CPU_NATIVE) || MODULE_NEWLIB || defined(__mips__)
|
||||
#if defined(CPU_NATIVE) || MODULE_NEWLIB
|
||||
/* If building on native or newlib we need to use the system header instead */
|
||||
#pragma GCC system_header
|
||||
/* without the GCC pragma above #include_next will trigger a pedantic error */
|
||||
|
@ -22,9 +22,7 @@
|
||||
#define SYS_STATVFS_H
|
||||
|
||||
#include <sys/types.h> /* for fsblkcnt_t, fsfilcnt_t */
|
||||
/** @todo Remove ifdef __mips__ special case after
|
||||
* [#6639](https://github.com/RIOT-OS/RIOT/pull/6639) is merged */
|
||||
#if MODULE_NEWLIB || defined(__mips__)
|
||||
#if MODULE_NEWLIB
|
||||
/* newlib support for fsblkcnt_t was only recently added to the newlib git
|
||||
* repository, commit f3e587d30a9f65d0c6551ad14095300f6e81672e, 15 apr 2016.
|
||||
* Will be included in release 2.5.0, around new year 2016/2017.
|
||||
|
Loading…
Reference in New Issue
Block a user