diff options
author | Alan Modra <amodra@gmail.com> | 2018-11-28 23:24:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2018-11-28 23:24:44 +1030 |
commit | 20f65b5607d4cf5b4b61e8d1923bb922abadf1ba (patch) | |
tree | dbdd563ad8263fa556389ecda39716ebecbd336c /gcc | |
parent | dc7ca394656f9bd56dbe5e4e0e102a09adf28efd (diff) | |
download | gcc-20f65b5607d4cf5b4b61e8d1923bb922abadf1ba.zip gcc-20f65b5607d4cf5b4b61e8d1923bb922abadf1ba.tar.gz gcc-20f65b5607d4cf5b4b61e8d1923bb922abadf1ba.tar.bz2 |
[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.
From-SVN: r266555
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/xcoffout.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d112388..33739ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index 53156a7..7799210 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) |