您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

80 行
2.5KB

  1. /* Compilation switch flag definitions for GCC.
  2. Copyright (C) 1987-2020 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. 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 GCC_FLAGS_H
  16. #define GCC_FLAGS_H
  17. #if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)
  18. /* Names of debug_info_type, for error messages. */
  19. extern const char *const debug_type_names[];
  20. extern void strip_off_ending (char *, int);
  21. extern int base_of_path (const char *path, const char **base_out);
  22. /* Return true iff flags are set as if -ffast-math. */
  23. extern bool fast_math_flags_set_p (const struct gcc_options *);
  24. extern bool fast_math_flags_struct_set_p (struct cl_optimization *);
  25. /* Now the symbols that are set with `-f' switches. */
  26. /* True if printing into -fdump-final-insns= dump. */
  27. extern bool final_insns_dump_p;
  28. /* Other basic status info about current function. */
  29. class target_flag_state
  30. {
  31. public:
  32. /* Each falign-foo can generate up to two levels of alignment:
  33. -falign-foo=N:M[:N2:M2] */
  34. align_flags x_align_loops;
  35. align_flags x_align_jumps;
  36. align_flags x_align_labels;
  37. align_flags x_align_functions;
  38. };
  39. extern class target_flag_state default_target_flag_state;
  40. #if SWITCHABLE_TARGET
  41. extern class target_flag_state *this_target_flag_state;
  42. #else
  43. #define this_target_flag_state (&default_target_flag_state)
  44. #endif
  45. #define align_loops (this_target_flag_state->x_align_loops)
  46. #define align_jumps (this_target_flag_state->x_align_jumps)
  47. #define align_labels (this_target_flag_state->x_align_labels)
  48. #define align_functions (this_target_flag_state->x_align_functions)
  49. /* Returns TRUE if generated code should match ABI version N or
  50. greater is in use. */
  51. #define abi_version_at_least(N) \
  52. (flag_abi_version == 0 || flag_abi_version >= (N))
  53. /* Whether to emit an overflow warning whose code is C. */
  54. #define issue_strict_overflow_warning(c) (warn_strict_overflow >= (int) (c))
  55. #endif
  56. #endif /* ! GCC_FLAGS_H */