diff mbox series

[RS6000] Bootstrap failure compiling xcoffout.c

Message ID 20181128125954.GA22912@bubble.grove.modra.org
State New
Headers show
Series [RS6000] Bootstrap failure compiling xcoffout.c | expand

Commit Message

Alan Modra Nov. 28, 2018, 12:59 p.m. UTC
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.

Committed revision 266555 as obvious after bootstrapping on gcc111.

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

Patch

diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 53156a70fcb..7799210fbcd 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -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)