[Bug target/69051] Misaligned read from the stack when using odd sized character array

2016-01-09 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 Jeffrey A. Law changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug target/69051] Misaligned read from the stack when using odd sized character array

2015-12-25 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 --- Comment #1 from Andreas Schwab --- In which way does it fail?

[Bug target/69051] Misaligned read from the stack when using odd sized character array

2015-12-25 Thread m.frohiky at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 --- Comment #2 from ⎓ --- After the move.l line, address error exception is executed. And that is expected as that line tries to access 32 bit word from an odd address.

[Bug target/69051] Misaligned read from the stack when using odd sized character array

2015-12-25 Thread m.frohiky at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 --- Comment #4 from ⎓ --- Whoops! I didn't expect that because I was relying on the -m68000 flag. Then I'll have to try with that compiler. Maybe there should be a warning for using an unsupported CPU architecture?

[Bug target/69051] Misaligned read from the stack when using odd sized character array

2015-12-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 --- Comment #3 from Mikael Pettersson --- Sounds like you're using the wrong target. m68k-linux implies a 68020, 030, 040, or 060 CPU, and they don't have alignment constraints. Perhaps you should be using an m68k-elf toolchain?