This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/22447] gcc produces code that generate unaligned exceptions


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]