summaryrefslogtreecommitdiffstats
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert999@netscape.net>2017-01-13 11:44:29 -0600
committerDouglas Gilbert <dgilbert999@netscape.net>2017-02-01 14:32:03 -0600
commit65f124c64b37ab763c224819271bdeecafec3da0 (patch)
tree04598b483570648284bb93fcff2b4ba540f3f529 /bfd/dwarf2.c
parent5b161fc30519a965f16e7e73c3410a388140cba1 (diff)
downloadppe42-binutils-65f124c64b37ab763c224819271bdeecafec3da0.tar.gz
ppe42-binutils-65f124c64b37ab763c224819271bdeecafec3da0.zip
Code clean up to satisfy gcc version 6
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index c9349da34a..d5ed605077 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -3074,8 +3074,8 @@ place_sections (bfd *abfd, struct dwarf2_debug *stash)
/* Align the new address to the current section
alignment. */
last_vma = ((last_vma
- + ~((bfd_vma) -1 << sect->alignment_power))
- & ((bfd_vma) -1 << sect->alignment_power));
+ + ~(-((bfd_vma) 1 << sect->alignment_power)))
+ & (-((bfd_vma) 1 << sect->alignment_power)));
sect->vma = last_vma;
last_vma += sect->vma + sz;
}
OpenPOWER on IntegriCloud