You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__STDC_HOSTED__ is enabled by default. Hence, the code expects the presence of stdint.h supplied by a libc.
Only if the compiler was invoked with the argument -ffreestanding, this assumption does not apply.
Consequently, whenever including arm_neon.h for a native Genode component not using the libc, we would need to extend the component's target.mk with the following tweak for the corresponding compilation unit (e.g., main.cc):
CC_OPT_main += -ffreestanding
It goes without saying that this approach becomes impractical as soon as we embrace SIMD at more and more places.
Therefore, I propose to enable -ffreestanding by default, with the option to discharge the default for a given target.
In particular, all components using the libc won't use -ffreestanding.
The text was updated successfully, but these errors were encountered:
In the context of issue #5428, I encountered the following compile error when including the
arm_neon.h
header:The included
stdint.h
contains the following distinction:__STDC_HOSTED__
is enabled by default. Hence, the code expects the presence ofstdint.h
supplied by a libc.Only if the compiler was invoked with the argument
-ffreestanding
, this assumption does not apply.Consequently, whenever including
arm_neon.h
for a native Genode component not using the libc, we would need to extend the component's target.mk with the following tweak for the corresponding compilation unit (e.g., main.cc):It goes without saying that this approach becomes impractical as soon as we embrace SIMD at more and more places.
Therefore, I propose to enable
-ffreestanding
by default, with the option to discharge the default for a given target.In particular, all components using the libc won't use
-ffreestanding
.The text was updated successfully, but these errors were encountered: