mips-opts.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Definitions for option handling for MIPS.
  2. Copyright (C) 1989-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. #ifndef MIPS_OPTS_H
  16. #define MIPS_OPTS_H
  17. /* Enumerates the setting of the -mcode-readable option. */
  18. enum mips_code_readable_setting {
  19. CODE_READABLE_NO,
  20. CODE_READABLE_PCREL,
  21. CODE_READABLE_YES
  22. };
  23. /* Enumerates the setting of the -mabs and -mnan options. */
  24. enum mips_ieee_754_setting {
  25. MIPS_IEEE_754_DEFAULT,
  26. MIPS_IEEE_754_LEGACY,
  27. MIPS_IEEE_754_2008
  28. };
  29. /* Enumerates the setting of the -mr10k-cache-barrier option. */
  30. enum mips_r10k_cache_barrier_setting {
  31. R10K_CACHE_BARRIER_NONE,
  32. R10K_CACHE_BARRIER_STORE,
  33. R10K_CACHE_BARRIER_LOAD_STORE
  34. };
  35. /* No enumeration is defined to index the -march= values (entries in
  36. mips_cpu_info_table), with the type int being used instead, but we
  37. need to distinguish the special "from-abi" and "native" values. */
  38. #define MIPS_ARCH_OPTION_FROM_ABI -1
  39. #define MIPS_ARCH_OPTION_NATIVE -2
  40. #endif