This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: symbol_ref constants
- From: Sanjiv Kumar Gupta <skgnu at yahoo dot com>
- To: Sanjiv Kumar Gupta <skgnu at yahoo dot com>, me at rupey dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 22:24:32 -0800 (PST)
- Subject: 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/