S/390: Get rid of assembler warning value truncated.
Stefan Liebler
stli@linux.vnet.ibm.com
Thu Nov 27 14:40:00 GMT 2014
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.
More information about the Libc-alpha
mailing list