https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115493
Richard Biener changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot
gnu.org
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed||2024-06-17
Ever confirmed|0 |1
--- Comment #4 from Richard Biener ---
I will have a look. Working with the reduced.
__attribute__((noipa)) int
baz (int n, int x, unsigned long z)
{
int arr[16], s = 0;
arr[12] = 42;
for (int i = 0; i < n; i++)
{
if (x == (i & 0x25))
arr[7] = i;
}
return arr[z];
}
int
main ()
{
if (baz (25, 0x25, 12) != 42)
__builtin_abort ();
return 0;
}
When trying to reproduce for me linking fails with
/usr/bin/arm-suse-linux-gnueabi-ld: error: /tmp/cc4cHDSc.o: conflicting
architecture profiles M/A
/usr/bin/arm-suse-linux-gnueabi-ld: failed to merge target specific data of
file /tmp/cc4cHDSc.o
/usr/bin/arm-suse-linux-gnueabi-ld: error:
/home/rguenther/obj-arm-g/gcc/crtend.o: conflicting CPU architectures 21/4
/usr/bin/arm-suse-linux-gnueabi-ld: failed to merge target specific data of
file /home/rguenther/obj-arm-g/gcc/crtend.o
I configure with --target=arm-suse-linux-gnueabi --with-float=hard and have a
armv7-linux sysroot.
I'm trying to work based on cc1 and your attachments.