]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport r248647
authorMartin Liska <mliska@suse.cz>
Thu, 22 Jun 2017 11:20:15 +0000 (13:20 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 22 Jun 2017 11:20:15 +0000 (11:20 +0000)
2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-30  Martin Liska  <mliska@suse.cz>

PR other/80909
* auto-profile.c (get_function_decl_from_block): Fix
parenthesis.

From-SVN: r249524

gcc/ChangeLog
gcc/auto-profile.c

index 7083b5080f162fe8c118ea4094fc753723ace380..ee5002d084fdf03cab2ab252eab1a5573f70feec 100644 (file)
@@ -1,3 +1,12 @@
+2017-06-22  Martin Liska  <mliska@suse.cz>
+
+       Backport from mainline
+       2017-05-30  Martin Liska  <mliska@suse.cz>
+
+       PR other/80909
+       * auto-profile.c (get_function_decl_from_block): Fix
+       parenthesis.
+
 2017-06-22  Martin Liska  <mliska@suse.cz>
 
        Backport from mainline
index 94afe6fd2d9524f7e85a633d8e86950cef324e35..2bf5e07ab2594f64aee0f4f3c84806cbaf175d40 100644 (file)
@@ -353,7 +353,7 @@ get_function_decl_from_block (tree block)
 {
   tree decl;
 
-  if (LOCATION_LOCUS (BLOCK_SOURCE_LOCATION (block) == UNKNOWN_LOCATION))
+  if (LOCATION_LOCUS (BLOCK_SOURCE_LOCATION (block)) == UNKNOWN_LOCATION)
     return NULL_TREE;
 
   for (decl = BLOCK_ABSTRACT_ORIGIN (block);