mirror of git://gcc.gnu.org/git/gcc.git
simple-object-xcoff.c (simple_object_xcoff_find_sections): Use ulong_type to avoid warning about 32-bit shift.
* simple-object-xcoff.c (simple_object_xcoff_find_sections): Use ulong_type to avoid warning about 32-bit shift. From-SVN: r256925
This commit is contained in:
parent
aa9ea77f50
commit
c6bff8ada6
|
@ -1,3 +1,8 @@
|
||||||
|
2018-01-20 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
|
||||||
|
ulong_type to avoid warning about 32-bit shift.
|
||||||
|
|
||||||
2018-01-11 Richard Biener <rguenther@suse.de>
|
2018-01-11 Richard Biener <rguenther@suse.de>
|
||||||
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
|
|
@ -596,15 +596,24 @@ simple_object_xcoff_find_sections (simple_object_read *sobj,
|
||||||
aux = (unsigned char *) auxent;
|
aux = (unsigned char *) auxent;
|
||||||
if (u64)
|
if (u64)
|
||||||
{
|
{
|
||||||
|
/* Use an intermediate 64-bit type to avoid
|
||||||
|
compilation warning about 32-bit shift below on
|
||||||
|
hosts with 32-bit off_t which aren't supported by
|
||||||
|
AC_SYS_LARGEFILE. */
|
||||||
|
ulong_type x_scnlen64;
|
||||||
|
|
||||||
if ((auxent->u.xcoff64.x_csect.x_smtyp & 0x7) != XTY_SD
|
if ((auxent->u.xcoff64.x_csect.x_smtyp & 0x7) != XTY_SD
|
||||||
|| auxent->u.xcoff64.x_csect.x_smclas != XMC_XO)
|
|| auxent->u.xcoff64.x_csect.x_smclas != XMC_XO)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
x_scnlen = fetch_32 (aux + offsetof (union external_auxent,
|
x_scnlen64 =
|
||||||
u.xcoff64.x_csect.x_scnlen_hi));
|
fetch_32 (aux + offsetof (union external_auxent,
|
||||||
x_scnlen = x_scnlen << 32
|
u.xcoff64.x_csect.x_scnlen_hi));
|
||||||
| fetch_32 (aux + offsetof (union external_auxent,
|
x_scnlen =
|
||||||
u.xcoff64.x_csect.x_scnlen_lo));
|
((x_scnlen64 << 32)
|
||||||
|
| fetch_32 (aux
|
||||||
|
+ offsetof (union external_auxent,
|
||||||
|
u.xcoff64.x_csect.x_scnlen_lo)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue