aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-06-04 16:20:35 +0100
committerNick Clifton <nickc@redhat.com>2015-06-04 16:25:03 +0100
commit239c0f4cebf8da3914597e2e296f5d172c2c62fb (patch)
tree3d7816a1af9fef30d29080d75951848be0ad483b /gas
parent88f0ea342dc6eb3d93a29895febdebe3e425a048 (diff)
downloadgdb-239c0f4cebf8da3914597e2e296f5d172c2c62fb.zip
gdb-239c0f4cebf8da3914597e2e296f5d172c2c62fb.tar.gz
gdb-239c0f4cebf8da3914597e2e296f5d172c2c62fb.tar.bz2
Fix compile time warning for tc-h8300.c when using gcc 5+.
* config/tc-h8300.c (md_section_align): Fix compile time warning about left shifting a negative value.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-h8300.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7424cf8..2893726 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -9,6 +9,11 @@
* config/tc-arm.c (arm_init_frag): Use frag's thumb_mode information
when available.
+2015-06-04 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-h8300.c (md_section_align): Fix compile time warning
+ about left shifting a negative value.
+
2015-06-03 Matthew Wahab <matthew.wahab@arm.com>
* config/tc-arm.c (arm_archs): Add "armv8.1-a".
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index 2c8a080..9ff8138 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -2256,7 +2256,7 @@ valueT
md_section_align (segT segment, valueT size)
{
int align = bfd_get_section_alignment (stdoutput, segment);
- return ((size + (1 << align) - 1) & (-1 << align));
+ return ((size + (1 << align) - 1) & (-1U << align));
}
void