linux-common.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Definitions for MIPS running Linux-based GNU systems with ELF format.
  2. Copyright (C) 2012-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #undef TARGET_OS_CPP_BUILTINS
  16. #define TARGET_OS_CPP_BUILTINS() \
  17. do { \
  18. GNU_USER_TARGET_OS_CPP_BUILTINS(); \
  19. /* The GNU C++ standard library requires this. */ \
  20. if (c_dialect_cxx ()) \
  21. builtin_define ("_GNU_SOURCE"); \
  22. ANDROID_TARGET_OS_CPP_BUILTINS(); \
  23. } while (0)
  24. #undef LINK_SPEC
  25. #define LINK_SPEC \
  26. LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LINK_SPEC, \
  27. GNU_USER_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
  28. #undef SUBTARGET_CC1_SPEC
  29. #define SUBTARGET_CC1_SPEC \
  30. LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
  31. GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
  32. #undef CC1PLUS_SPEC
  33. #define CC1PLUS_SPEC \
  34. LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
  35. #undef LIB_SPEC
  36. #define LIB_SPEC \
  37. LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
  38. GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
  39. #undef STARTFILE_SPEC
  40. #define STARTFILE_SPEC \
  41. LINUX_OR_ANDROID_LD (GNU_USER_TARGET_STARTFILE_SPEC, ANDROID_STARTFILE_SPEC)
  42. #undef ENDFILE_SPEC
  43. #define ENDFILE_SPEC \
  44. LINUX_OR_ANDROID_LD (GNU_USER_TARGET_MATHFILE_SPEC " " \
  45. GNU_USER_TARGET_ENDFILE_SPEC, \
  46. GNU_USER_TARGET_MATHFILE_SPEC " " \
  47. ANDROID_ENDFILE_SPEC)
  48. /* Define this to be nonzero if static stack checking is supported. */
  49. #define STACK_CHECK_STATIC_BUILTIN 1
  50. /* The default value isn't sufficient in 64-bit mode. */
  51. #define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024)