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/20625] [4.0/4.1 regression] ivopts produces code that generates "unaligned access exception"


------- Additional Comments From rakdver at atrey dot karlin dot mff dot cuni dot cz  2005-03-29 20:47 -------
Subject: Re:  [4.0/4.1 regression] ivopts produces code that generates "unaligned access exception"

> This most likely can be reproduced on ia64 too and other targets where alignment is needed for some 
> loads.
> 
> The tree which we produce looks like:
> <bb 0>:
>   if (p->c[0] != 0) goto <L0>; else goto <L2>;
> 
> <L0>:;
>   D.1133 = *((unsigned char *) p + 5B);
>   p = p + 1B;
>   if (D.1133 != 0) goto <L0>; else goto <L2>;

The problem seems to be that the expansion assumes that p must be
aligned.  Which seems to be reasonable.  I will try making ivopts
produce all pointer ivs in (void *) type, that should hopefully
help.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20625


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