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

optimization/6408: -O3 causes out-of-range relative reference in assembler



>Number:         6408
>Category:       optimization
>Synopsis:       -O3 causes out-of-range relative reference in assembler
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 22 09:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Leo Piilonen
>Release:        3.0
>Organization:
Dept of Physics, Virginia Tech
>Environment:
System: SunOS epsilon.phys.vt.edu 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../configure 
>Description:
	on stack return after a function call, stack pointer (?) register %o7
	is cleaned up with the following line in the assembler code:
	    add %o7, (.LL8312-.-4), %o7
	when compiled with optimization -O3.  The constant happens to be
	outside the legal range of -4096 to +4095, so the assembler croaks. 
>How-To-Repeat:
>Fix:
	compile with -O2
>Release-Note:
>Audit-Trail:
>Unformatted:
 Severity:	serious


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