From: amodra Date: Wed, 28 Nov 2018 12:54:44 +0000 (+0000) Subject: [RS6000] Bootstrap failure compiling xcoffout.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1accb46c587cb7f2d24cad8d63efb34c378f0c5b;p=thirdparty%2Fgcc.git [RS6000] Bootstrap failure compiling xcoffout.c 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266555 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d1123888cb84..33739adf674e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-28 Alan Modra + + * xcoffout.c (do_block): Signed/unsigned warning fix. + 2018-11-28 Richard Biener PR tree-optimization/79351 diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index 53156a70fcb5..7799210fbcd5 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)