This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/22447] gcc produces code that generate unaligned exceptions
- From: "tsv at solvo dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2005 23:27:29 -0000
- Subject: [Bug target/22447] gcc produces code that generate unaligned exceptions
- References: <20050712212227.22447.tsv@solvo.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tsv at solvo dot ru 2005-07-12 23:27 -------
(In reply to comment #5)
> (In reply to comment #4)
>
> Well, for this:
>
> void f(long *p) {
> *(char *) p = 0;
> }
>
> I get
>
> ldl t0,0(a0)
> andnot t0,0xff,t0
> stl t0,0(a0)
>
> which will fail with unaligned *p, with all gccs I have till back to
> 2.95. So this doesn't seem to be anything recent...
>
This one I understand and produced assembler code seems to right.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22447