This is the mail archive of the gcc@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]

RE: symbol_ref constants


>   add1 r1, segment_base, (a - 40)
>   add2 r1, 40
read this as 
    add2 r1, the value of j             

> 
> Since 'a' is at the boundary of segment so 'a - 40'
> causes relocation overflow.
> 
> But the same code works without -O2, because that
> generates code like
>   add1 r1, segment_base, a
>   add2 r1, -40
>   add2 r1, 40
ditto here.

thanks



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


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