Skip to content
Snippets Groups Projects
Commit c47194d2 authored by Sebastian Huber's avatar Sebastian Huber Committed by Sebastian Huber
Browse files

[libatomic] Add RTEMS support

gcc/

	* config/rtems.h (LIB_SPEC): Add -latomic.

libatomic/

	* configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New variable.
	(*-*-rtems*): New supported target.
	* config/rtems/host-config.h: New file.
	* config/rtems/lock.c: Likewise.

From-SVN: r235466
parent 727cbedf
No related branches found
No related tags found
No related merge requests found
2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* config/rtems.h (LIB_SPEC): Add -latomic.
2016-04-27 Joel Sherrill <joel@rtems.org> 2016-04-27 Joel Sherrill <joel@rtems.org>
* config/microblaze/rtems.h: Redefine LINK_SPEC to avoid * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
......
...@@ -45,6 +45,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -45,6 +45,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \ #define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
"%{!nostdlib: %{qrtems: --start-group \ "%{!nostdlib: %{qrtems: --start-group \
-lrtemsbsp -lrtemscpu \ -lrtemsbsp -lrtemscpu \
-lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}" -latomic -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
#define TARGET_POSIX_IO #define TARGET_POSIX_IO
2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New variable.
(*-*-rtems*): New supported target.
* config/rtems/host-config.h: New file.
* config/rtems/lock.c: Likewise.
2016-04-25 H.J. Lu <hongjiu.lu@intel.com> 2016-04-25 H.J. Lu <hongjiu.lu@intel.com>
PR target/70454 PR target/70454
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
# Map the target cpu to an ARCH sub-directory. At the same time, # Map the target cpu to an ARCH sub-directory. At the same time,
# work out any special compilation flags as necessary. # work out any special compilation flags as necessary.
# Give operating systems the opportunity to discard XCFLAGS modifications based
# on ${target_cpu}. For example to allow proper use of multilibs.
configure_tgt_pre_target_cpu_XCFLAGS="${XCFLAGS}"
case "${target_cpu}" in case "${target_cpu}" in
alpha*) alpha*)
# fenv.c needs this option to generate inexact exceptions. # fenv.c needs this option to generate inexact exceptions.
...@@ -128,6 +132,12 @@ case "${target}" in ...@@ -128,6 +132,12 @@ case "${target}" in
;; ;;
esac esac
;; ;;
*-*-rtems*)
XCFLAGS="${configure_tgt_pre_target_cpu_XCFLAGS}"
config_path="rtems"
;;
*-*-elf*) *-*-elf*)
# ??? No target OS. We could be targeting bare-metal kernel-mode, # ??? No target OS. We could be targeting bare-metal kernel-mode,
# or user-mode for some custom OS. If the target supports TAS, # or user-mode for some custom OS. If the target supports TAS,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment