cif-code.def 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /* This file contains the definitions of the cgraph_inline_failed_t
  2. enums used in GCC.
  3. Copyright (C) 2008-2019 Free Software Foundation, Inc.
  4. Contributed by Doug Kwan <dougkwan@google.com>
  5. This file is part of GCC.
  6. GCC is free software you can redistribute it and/or modify it under
  7. the terms of the GNU General Public License as published by the Free
  8. Software Foundation either version 3, or (at your option) any later
  9. version.
  10. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with GCC see the file COPYING3. If not see
  16. <http://www.gnu.org/licenses/>. */
  17. /* The format of this file is
  18. DEFCIFCODE(code, string).
  19. Where symbol is the enumeration name without the ``''.
  20. The argument STRING is a explain the failure. Except for OK,
  21. which is a NULL pointer. */
  22. /* Inlining successful. This must be the first code. */
  23. DEFCIFCODE(OK, CIF_FINAL_NORMAL, NULL)
  24. /* Inlining failed for an unspecified reason. */
  25. DEFCIFCODE(UNSPECIFIED, CIF_FINAL_ERROR, "")
  26. /* Function has not be considered for inlining. This is the code for
  27. functions that have not been rejected for inlining yet. */
  28. DEFCIFCODE(FUNCTION_NOT_CONSIDERED, CIF_FINAL_NORMAL,
  29. N_("function not considered for inlining"))
  30. /* Caller is compiled with optimizations disabled. */
  31. DEFCIFCODE(FUNCTION_NOT_OPTIMIZED, CIF_FINAL_ERROR,
  32. N_("caller is not optimized"))
  33. /* Inlining failed owing to unavailable function body. */
  34. DEFCIFCODE(BODY_NOT_AVAILABLE, CIF_FINAL_ERROR,
  35. N_("function body not available"))
  36. /* Extern inline function that has been redefined. */
  37. DEFCIFCODE(REDEFINED_EXTERN_INLINE, CIF_FINAL_ERROR,
  38. N_("redefined extern inline functions are not considered for "
  39. "inlining"))
  40. /* Function is not inlinable. */
  41. DEFCIFCODE(FUNCTION_NOT_INLINABLE, CIF_FINAL_ERROR,
  42. N_("function not inlinable"))
  43. /* Function is overwritable. */
  44. DEFCIFCODE(OVERWRITABLE, CIF_FINAL_ERROR,
  45. N_("function body can be overwritten at link time"))
  46. /* Function is not an inlining candidate. */
  47. DEFCIFCODE(FUNCTION_NOT_INLINE_CANDIDATE, CIF_FINAL_NORMAL,
  48. N_("function not inline candidate"))
  49. /* Inlining failed because of various limit parameters. */
  50. DEFCIFCODE(LARGE_FUNCTION_GROWTH_LIMIT, CIF_FINAL_NORMAL,
  51. N_("--param large-function-growth limit reached"))
  52. DEFCIFCODE(LARGE_STACK_FRAME_GROWTH_LIMIT, CIF_FINAL_NORMAL,
  53. N_("--param large-stack-frame-growth limit reached"))
  54. DEFCIFCODE(MAX_INLINE_INSNS_SINGLE_LIMIT, CIF_FINAL_NORMAL,
  55. N_("--param max-inline-insns-single limit reached"))
  56. DEFCIFCODE(MAX_INLINE_INSNS_AUTO_LIMIT, CIF_FINAL_NORMAL,
  57. N_("--param max-inline-insns-auto limit reached"))
  58. DEFCIFCODE(INLINE_UNIT_GROWTH_LIMIT, CIF_FINAL_NORMAL,
  59. N_("--param inline-unit-growth limit reached"))
  60. /* Recursive inlining. */
  61. DEFCIFCODE(RECURSIVE_INLINING, CIF_FINAL_NORMAL,
  62. N_("recursive inlining"))
  63. /* Call is unlikely. */
  64. DEFCIFCODE(UNLIKELY_CALL, CIF_FINAL_NORMAL,
  65. N_("call is unlikely and code size would grow"))
  66. /* Function is not declared as inline. */
  67. DEFCIFCODE(NOT_DECLARED_INLINED, CIF_FINAL_NORMAL,
  68. N_("function not declared inline and code size would grow"))
  69. /* Caller and callee disagree on the arguments. */
  70. DEFCIFCODE(MISMATCHED_ARGUMENTS, CIF_FINAL_ERROR,
  71. N_("mismatched arguments"))
  72. /* Caller and callee disagree on the arguments. */
  73. DEFCIFCODE(LTO_MISMATCHED_DECLARATIONS, CIF_FINAL_ERROR,
  74. N_("mismatched declarations during linktime optimization"))
  75. /* Caller is variadic thunk. */
  76. DEFCIFCODE(VARIADIC_THUNK, CIF_FINAL_ERROR,
  77. N_("variadic thunk call"))
  78. /* Call was originally indirect. */
  79. DEFCIFCODE(ORIGINALLY_INDIRECT_CALL, CIF_FINAL_NORMAL,
  80. N_("originally indirect function call not considered for inlining"))
  81. /* Ths edge represents an indirect edge with a yet-undetermined callee . */
  82. DEFCIFCODE(INDIRECT_UNKNOWN_CALL, CIF_FINAL_NORMAL,
  83. N_("indirect function call with a yet undetermined callee"))
  84. /* We can't inline different EH personalities together. */
  85. DEFCIFCODE(EH_PERSONALITY, CIF_FINAL_ERROR,
  86. N_("exception handling personality mismatch"))
  87. /* We can't inline if the callee can throw non-call exceptions but the
  88. caller cannot. */
  89. DEFCIFCODE(NON_CALL_EXCEPTIONS, CIF_FINAL_ERROR,
  90. N_("non-call exception handling mismatch"))
  91. /* We can't inline because of mismatched target specific options. */
  92. DEFCIFCODE(TARGET_OPTION_MISMATCH, CIF_FINAL_ERROR,
  93. N_("target specific option mismatch"))
  94. /* We can't inline because of mismatched optimization levels. */
  95. DEFCIFCODE(OPTIMIZATION_MISMATCH, CIF_FINAL_ERROR,
  96. N_("optimization level attribute mismatch"))
  97. /* We can't inline because the callee refers to comdat-local symbols. */
  98. DEFCIFCODE(USES_COMDAT_LOCAL, CIF_FINAL_ERROR,
  99. N_("callee refers to comdat-local symbols"))
  100. /* We can't inline because of mismatched caller/callee attributes. */
  101. DEFCIFCODE(ATTRIBUTE_MISMATCH, CIF_FINAL_ERROR,
  102. N_("function attribute mismatch"))
  103. /* We can't inline because the user requests only static functions
  104. but the function has external linkage for live patching purpose. */
  105. DEFCIFCODE(EXTERN_LIVE_ONLY_STATIC, CIF_FINAL_ERROR,
  106. N_("function has external linkage when the user requests only"
  107. " inlining static for live patching"))
  108. /* We proved that the call is unreachable. */
  109. DEFCIFCODE(UNREACHABLE, CIF_FINAL_ERROR,
  110. N_("unreachable"))