This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: S/390: Get rid of assembler warning value truncated.


PING

On 11/21/2014 04:42 PM, Stefan Liebler wrote:
Hi Andreas,

On 11/20/2014 05:43 PM, Andreas Schwab wrote:> Stefan Liebler
<stli@linux.vnet.ibm.com> writes:
 > This is only equivalent if _dl_start - 1b is always negative.
 >
 > Andreas.
 >

Yes you are right. Thanks.
The function elf_machine_load_address (void) is inlined in _dl_start,
thus (_dl_start - 1b) is negative. If it wouldnÂt be inlined and would
be located after elf_machine_load_address, this is not correct.

But truncating the expression (in this case: 0xffffffff7fffffea) by
anding it with 0x00000000ffffffff, the resulting value isnÂt changed
regardless of (_dl_start - 1b) is positive or negative, but the
assembler does not warn about truncating the value.

Bye
Stefan

---
2014-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>

     sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
     Truncating assembler expression to a .long expression.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]