]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RS6000] Bootstrap failure compiling xcoffout.c
authorAlan Modra <amodra@gmail.com>
Wed, 28 Nov 2018 12:54:44 +0000 (23:24 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 28 Nov 2018 12:54:44 +0000 (23:24 +1030)
git commit 41f70262f (svn rev 264868) exposed a signed/unsigned
comparison.  Fixed by matching the type of the local var to that of
the tree field.

* xcoffout.c (do_block): Signed/unsigned warning fix.

From-SVN: r266555

gcc/ChangeLog
gcc/xcoffout.c

index d1123888cb847c33ea626fc38fb074e23f0f3970..33739adf674edd849d39b8c0a9bf1fa952d6091d 100644 (file)
@@ -1,3 +1,7 @@
+2018-11-28  Alan Modra  <amodra@gmail.com>
+
+       * xcoffout.c (do_block): Signed/unsigned warning fix.
+
 2018-11-28  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/79351
index 53156a70fcb563974d08d516a3d51d8d0644521e..7799210fbcd5d187842c9eb06af8487dd480f164 100644 (file)
@@ -345,7 +345,7 @@ xcoffout_source_line (unsigned int line, unsigned int column ATTRIBUTE_UNUSED,
    This function works by walking the tree structure of blocks,
    counting blocks until it finds the desired block.  */
 
-static int do_block = 0;
+static unsigned int do_block = 0;
 
 static void
 xcoffout_block (tree block, int depth, tree args)