Commit 04b67900 by T. Papadopoulo Committed by Eric Botcazou

re PR target/12166 (Profiled programs crash if PROFDIR is set)

	PR target/12166
	* config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r71559
parent e7ab53ea
2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/12166
* config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
2003-09-18 Mike Stump <mrs@apple.com> 2003-09-18 Mike Stump <mrs@apple.com>
* c-ppoutput.c (print): Use fileline typedef for field 'line'. * c-ppoutput.c (print): Use fileline typedef for field 'line'.
......
...@@ -92,6 +92,10 @@ _start: ...@@ -92,6 +92,10 @@ _start:
! access those data anyway. Instead, go straight to main: ! access those data anyway. Instead, go straight to main:
mov %l0, %o0 ! argc mov %l0, %o0 ! argc
mov %l1, %o1 ! argv mov %l1, %o1 ! argv
#ifdef GCRT1
setn(___Argv, %o4, %o3)
stn %o1, [%o3] ! *___Argv
#endif
! Skip argc words past argv, to env: ! Skip argc words past argv, to env:
sll %l0, CPTRSHIFT, %o2 sll %l0, CPTRSHIFT, %o2
add %o2, CPTRSIZE, %o2 add %o2, CPTRSIZE, %o2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment