aboutsummaryrefslogtreecommitdiff
path: root/gcc/cif-code.def
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-03-20 07:41:17 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-03-20 06:41:17 +0000
commit7ce7e4d49497bb1b3459dd6e35dea6b7327531d5 (patch)
treeaae13f8578d0f05cdbe59e21353a22070a4f17cb /gcc/cif-code.def
parent21e357f1f2ecbd7b6ab479d8f2836e251681194b (diff)
downloadgcc-7ce7e4d49497bb1b3459dd6e35dea6b7327531d5.zip
gcc-7ce7e4d49497bb1b3459dd6e35dea6b7327531d5.tar.gz
gcc-7ce7e4d49497bb1b3459dd6e35dea6b7327531d5.tar.bz2
ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed already is final.
* ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed already is final. (ipa_inline): Recompute inline_failed codes. * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE, USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as CIF_FINAL_ERROR. From-SVN: r221530
Diffstat (limited to 'gcc/cif-code.def')
-rw-r--r--gcc/cif-code.def14
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/cif-code.def b/gcc/cif-code.def
index 467cfcc..202fddf 100644
--- a/gcc/cif-code.def
+++ b/gcc/cif-code.def
@@ -39,7 +39,7 @@ DEFCIFCODE(FUNCTION_NOT_CONSIDERED, CIF_FINAL_NORMAL,
N_("function not considered for inlining"))
/* Caller is compiled with optimizations disabled. */
-DEFCIFCODE(FUNCTION_NOT_OPTIMIZED, CIF_FINAL_NORMAL,
+DEFCIFCODE(FUNCTION_NOT_OPTIMIZED, CIF_FINAL_ERROR,
N_("caller is not optimized"))
/* Inlining failed owing to unavailable function body. */
@@ -47,7 +47,7 @@ DEFCIFCODE(BODY_NOT_AVAILABLE, CIF_FINAL_ERROR,
N_("function body not available"))
/* Extern inline function that has been redefined. */
-DEFCIFCODE(REDEFINED_EXTERN_INLINE, CIF_FINAL_NORMAL,
+DEFCIFCODE(REDEFINED_EXTERN_INLINE, CIF_FINAL_ERROR,
N_("redefined extern inline functions are not considered for "
"inlining"))
@@ -87,10 +87,6 @@ DEFCIFCODE(UNLIKELY_CALL, CIF_FINAL_NORMAL,
DEFCIFCODE(NOT_DECLARED_INLINED, CIF_FINAL_NORMAL,
N_("function not declared inline and code size would grow"))
-/* Inlining suppressed due to size optimization. */
-DEFCIFCODE(OPTIMIZING_FOR_SIZE, CIF_FINAL_NORMAL,
- N_("optimizing for size and code size would grow"))
-
/* Caller and callee disagree on the arguments. */
DEFCIFCODE(MISMATCHED_ARGUMENTS, CIF_FINAL_ERROR,
N_("mismatched arguments"))
@@ -121,13 +117,13 @@ DEFCIFCODE(OPTIMIZATION_MISMATCH, CIF_FINAL_ERROR,
N_("optimization level attribute mismatch"))
/* We can't inline because the callee refers to comdat-local symbols. */
-DEFCIFCODE(USES_COMDAT_LOCAL, CIF_FINAL_NORMAL,
+DEFCIFCODE(USES_COMDAT_LOCAL, CIF_FINAL_ERROR,
N_("callee refers to comdat-local symbols"))
/* We can't inline because of mismatched caller/callee attributes. */
-DEFCIFCODE(ATTRIBUTE_MISMATCH, CIF_FINAL_NORMAL,
+DEFCIFCODE(ATTRIBUTE_MISMATCH, CIF_FINAL_ERROR,
N_("function attribute mismatch"))
/* We proved that the call is unreachable. */
-DEFCIFCODE(UNREACHABLE, CIF_FINAL_NORMAL,
+DEFCIFCODE(UNREACHABLE, CIF_FINAL_ERROR,
N_("unreachable"))