rtems.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Definitions for rtems targeting a NIOS2 using ELF.
  2. Copyright (C) 2011-2015 Free Software Foundation, Inc.
  3. Contributed by Chris Johns (chrisj@rtems.org).
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. /* Specify predefined symbols in preprocessor. */
  17. #define TARGET_OS_CPP_BUILTINS() \
  18. do { \
  19. builtin_define ("__rtems__"); \
  20. builtin_define ("__USE_INIT_FINI__"); \
  21. builtin_assert ("system=rtems"); \
  22. } while (0)
  23. /* This toolchain implements the ABI for Linux Systems documented in the
  24. Nios II Processor Reference Handbook.
  25. This is done so RTEMS targets have Thread Local Storage like Linux. */
  26. #define TARGET_LINUX_ABI 1