aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2019-02-11 17:07:41 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2019-02-11 10:07:41 -0700
commit3c4860e346b8292ac398d971aff933586b11e3ea (patch)
tree5a040d5efe9ad037dd414e59004849f9846bb2e7 /gcc
parente43a01394ca5146824a6a896328b3999c4faf927 (diff)
downloadgcc-3c4860e346b8292ac398d971aff933586b11e3ea.zip
gcc-3c4860e346b8292ac398d971aff933586b11e3ea.tar.gz
gcc-3c4860e346b8292ac398d971aff933586b11e3ea.tar.bz2
inliner-1.c: Correct comments.
gcc/testsuite/ChangeLog: * gcc.dg/tree-prof/inliner-1.c: Correct comments. From-SVN: r268773
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/tree-prof/inliner-1.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c3b84bf..011959a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-11 Martin Sebor <msebor@redhat.com>
+
+ * gcc.dg/tree-prof/inliner-1.c: Correct comments.
+
2019-02-11 Tamar Christina <tamar.christina@arm.com>
PR middle-end/88560
diff --git a/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c b/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c
index 8d1481b..78f73e0 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c
@@ -28,15 +28,15 @@ main ()
for (i = 0; i < 1000000; i++)
{
if (a)
- cold_function ();
+ cold_function (); /* Should not be inlined. */
else
- hot_function ();
+ hot_function (); /* Should be inlined. */
}
return 0;
}
-/* cold function should be inlined, while hot function should not.
- Look for "cold_function () [tail call];" call statement not for the
- declaration or other appearances of the string in dump. */
+/* The call to hot_function should be inlined, while cold_function should
+ not be. Look for the "cold_function ();" call statement and not for
+ its declaration or other occurrences of the string in the dump. */
/* { dg-final-use { scan-tree-dump "cold_function ..;" "optimized"} } */
/* { dg-final-use { scan-tree-dump-not "hot_function ..;" "optimized"} } */