freebsd.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
  2. Copyright (C) 2000-2015 Free Software Foundation, Inc.
  3. Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
  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. #undef EXTRA_SPECS
  17. #define EXTRA_SPECS \
  18. { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
  19. /* Provide a CPP_SPEC appropriate for FreeBSD/alpha -- dealing with
  20. the GCC option `-posix'. */
  21. #undef CPP_SPEC
  22. #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
  23. #define LINK_SPEC "%{G*} %{relax:-relax} \
  24. %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
  25. %{assert*} %{R*} %{rpath*} %{defsym*} \
  26. %{shared:-Bshareable %{h*} %{soname*}} \
  27. %{!shared: \
  28. %{!static: \
  29. %{rdynamic:-export-dynamic} \
  30. -dynamic-linker %(fbsd_dynamic_linker) } \
  31. %{static:-Bstatic}} \
  32. %{symbolic:-Bsymbolic}"
  33. /************************[ Target stuff ]***********************************/
  34. /* Define the actual types of some ANSI-mandated types.
  35. Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
  36. c-common.c, and config/<arch>/<arch>.h. */
  37. /* alpha.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
  38. #undef WCHAR_TYPE
  39. #undef WCHAR_TYPE_SIZE
  40. #define WCHAR_TYPE_SIZE 32
  41. #define TARGET_ELF 1
  42. #undef HAS_INIT_SECTION
  43. /* Show that we need a GP when profiling. */
  44. #undef TARGET_PROFILING_NEEDS_GP
  45. #define TARGET_PROFILING_NEEDS_GP 1
  46. /* Don't default to pcc-struct-return, we want to retain compatibility with
  47. older FreeBSD releases AND pcc-struct-return may not be reentrant. */
  48. #undef DEFAULT_PCC_STRUCT_RETURN
  49. #define DEFAULT_PCC_STRUCT_RETURN 0