openbsd.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Configuration fragment for a VAX OpenBSD target.
  2. Copyright (C) 2000-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. /* Amend common OpenBSD definitions for VAX target. */
  16. #define TARGET_OS_CPP_BUILTINS() \
  17. do \
  18. { \
  19. builtin_define ("__unix__"); \
  20. builtin_define ("__OpenBSD__"); \
  21. builtin_assert ("system=unix"); \
  22. builtin_assert ("system=OpenBSD"); \
  23. } \
  24. while (0)
  25. /* Layout of source language data types. */
  26. /* This must agree with <machine/ansi.h> */
  27. #undef SIZE_TYPE
  28. #define SIZE_TYPE "long unsigned int"
  29. #undef PTRDIFF_TYPE
  30. #define PTRDIFF_TYPE "long int"
  31. #undef WCHAR_TYPE
  32. #define WCHAR_TYPE "int"
  33. #undef WCHAR_TYPE_SIZE
  34. #define WCHAR_TYPE_SIZE 32
  35. #undef WINT_TYPE
  36. #define WINT_TYPE "int"
  37. #define TARGET_HAVE_NAMED_SECTIONS false