This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The attached patch fixes a warning with Gcc-6 in the s390 code. Should this be backported to older releqases too? Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany
Attachment:
0001-ChangeLog
Description: Text document
>From 352398bb1980006992cfd4cc742d5444f9f9ce90 Mon Sep 17 00:00:00 2001 From: Dominik Vogt <vogt@linux.vnet.ibm.com> Date: Fri, 30 Oct 2015 12:48:00 +0100 Subject: [PATCH] S/390: Fix invalid left shift of negative integer value. Gcc-6 warns about this. --- gas/config/tc-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index e217e56..7434100 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -2047,7 +2047,7 @@ md_section_align (asection *seg, valueT addr) { int align = bfd_get_section_alignment (stdoutput, seg); - return ((addr + (1 << align) - 1) & (-1 << align)); + return ((addr + (1 << align) - 1) & (~0u << align)); } /* We don't have any form of relaxing. */ -- 2.3.0
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |