diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-19 06:24:34 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-19 06:24:34 +0000 |
commit | f8c2b51cf7a03293f0736d89d45761c39ccb0a8b (patch) | |
tree | 26f6ccbe4c951566b2f8dfafd54277cd50387a6b | |
parent | ccc812a4c9ca1164f2a44b6a590f11589b2956b9 (diff) | |
download | ppe42-gcc-f8c2b51cf7a03293f0736d89d45761c39ccb0a8b.tar.gz ppe42-gcc-f8c2b51cf7a03293f0736d89d45761c39ccb0a8b.zip |
PR target/12166
* config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71559 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/sparc/sol2-c1.asm | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a27b1262d0..b14cf7ca608 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * c-ppoutput.c (print): Use fileline typedef for field 'line'. diff --git a/gcc/config/sparc/sol2-c1.asm b/gcc/config/sparc/sol2-c1.asm index 894a8c34c08..a1cc68d6756 100644 --- a/gcc/config/sparc/sol2-c1.asm +++ b/gcc/config/sparc/sol2-c1.asm @@ -92,6 +92,10 @@ _start: ! access those data anyway. Instead, go straight to main: mov %l0, %o0 ! argc mov %l1, %o1 ! argv +#ifdef GCRT1 + setn(___Argv, %o4, %o3) + stn %o1, [%o3] ! *___Argv +#endif ! Skip argc words past argv, to env: sll %l0, CPTRSHIFT, %o2 add %o2, CPTRSIZE, %o2 |