This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/70646] Corrupt truncated function
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Apr 2016 08:48:50 +0000
- Subject: [Bug ipa/70646] Corrupt truncated function
- Auto-submitted: auto-generated
- References: <bug-70646-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70646
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixing that with
void __attribute__((noinline,noclone)) broken(u64* shost)
{
u8 node_name[8] __attribute__((aligned(__alignof(u64)))) = { 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
*shost = wwn_to_u64(node_name);
}
still shows broken code. Note __swab64p is a quite stupid implementation
assuming GCC can't constant-fold __builtin_bswap64.