[Bug target/79066] [7 Regression] non-PIC code generated for powerpc glibc with -fpic
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 12 11:09:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79066
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
/* { dg-do compile { target { fpic && ilp32 } } } */
/* { dg-options "-O2 -fpic" } */
/* { dg-final { dg-scan-assembler-not "@ha" } } */
/* { dg-final { dg-scan-assembler-not "@l" } } */
union U { double x; int i[2]; };
double
foo (double x)
{
union U u, v;
u.x = x;
v.i[0] = 0x7ff00000;
v.i[1] = 0;
return u.x / v.x;
}
More information about the Gcc-bugs
mailing list