]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport r248647
authorMartin Liska <mliska@suse.cz>
Thu, 22 Jun 2017 11:30:56 +0000 (13:30 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 22 Jun 2017 11:30:56 +0000 (11:30 +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: r249537

gcc/ChangeLog
gcc/auto-profile.c

index d572268b63fcb1b6d62bedd21af57c3656645844..4a5e4f536b5d607e13816b51ec9efbf0a525888d 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 5e212dd05797210cdb9b597c68119658d5f0cbd2..b8b02d174b4c66596d833bcc46f0724a6493561a 100644 (file)
@@ -390,7 +390,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);