[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2018-09-02 Thread sqrammi at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 --- Comment #10 from Jeff Hansen --- So you're recommending that we add __attribute__((packed)) to the struct?

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2018-09-01 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 --- Comment #9 from Andrew Pinski --- (In reply to Jeff Hansen from comment #8) > Why would this be a bug in the kernel? > > Why is gcc trying to load a word or short when it's a 4-bit bitfield?? So > you're recommending that we add

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2018-09-01 Thread sqrammi at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Jeff Hansen changed: What|Removed |Added CC||sqrammi at hotmail dot com --- Comment #8

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread kugel at rockbox dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 --- Comment #2 from Thomas Martitz kugel at rockbox dot org --- Thanks for your immediate reply. In trying to provide a better test case I think I've found what the culprit is. The full iphdr defintion is: struct iphdr { #if

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread kugel at rockbox dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Thomas Martitz kugel at rockbox dot org changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org --- This testcase does not test what you think it tests. Since t is on the stack, the alignment can (and most likely will be) aligned to a 4 byte boundary. Also the struct tester has

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Andreas Schwab sch...@linux-m68k.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2015-08-17 Thread kugel at rockbox dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 Thomas Martitz kugel at rockbox dot org changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED