Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
231008e5
Commit
231008e5
authored
Nov 03, 2001
by
Hans-Peter Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix argv and argc for __MMIX_ABI_GNU__
From-SVN: r46747
parent
bcf684c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
gcc/config/mmix/crti.asm
+10
-8
No files found.
gcc/config/mmix/crti.asm
View file @
231008e5
...
@@ -25,9 +25,10 @@ along with this program; see the file COPYING. If not, write to
...
@@ -25,9 +25,10 @@ along with this program; see the file COPYING. If not, write to
the
Free
Software
Foundation
,
59
Temple
Place
-
Suite
330
,
the
Free
Software
Foundation
,
59
Temple
Place
-
Suite
330
,
Boston
,
MA
02111
-
1307
,
USA
.
*/
Boston
,
MA
02111
-
1307
,
USA
.
*/
%
This
is
crt0
for
mmix
-
knuth
-
mmixware
,
for
setting
up
things
for
%
This
is
the
crt0
equivalent
for
mmix
-
knuth
-
mmixware
,
for
setting
up
%
compiler
-
generated
assembler
and
for
setting
up
things
between
where
the
%
things
for
compiler
-
generated
assembly
-
code
and
for
setting
up
things
%
simulator
calls
and
main
,
and
shutting
things
down
on
the
way
back
.
%
between
where
the
simulator
calls
and
main
,
and
shutting
things
down
on
%
the
way
back
.
There
'
s
an
actual
crt0
.
o
elsewhere
,
but
that
'
s
a
dummy
.
%
This
file
and
the
GCC
output
are
supposed
to
be
*
reasonably
*
%
This
file
and
the
GCC
output
are
supposed
to
be
*
reasonably
*
%
mmixal
-
compatible
to
enable
people
to
re
-
use
output
with
Knuth
'
s
mmixal
.
%
mmixal
-
compatible
to
enable
people
to
re
-
use
output
with
Knuth
'
s
mmixal
.
...
@@ -42,6 +43,7 @@ Boston, MA 02111-1307, USA. */
...
@@ -42,6 +43,7 @@ Boston, MA 02111-1307, USA. */
%
This
little
treasure
is
here
so
the
32
lowest
address
bits
of
user
data
%
This
little
treasure
is
here
so
the
32
lowest
address
bits
of
user
data
%
will
not
be
zero
.
Because
of
truncation
,
that
would
cause
test
-
case
%
will
not
be
zero
.
Because
of
truncation
,
that
would
cause
test
-
case
%
gcc
.
c
-
torture
/
execute
/
980701
-
1
.
c
to
incorrectly
fail
.
%
gcc
.
c
-
torture
/
execute
/
980701
-
1
.
c
to
incorrectly
fail
.
.
data
!
mmixal
:=
8
H
LOC
Data_Segment
.
data
!
mmixal
:=
8
H
LOC
Data_Segment
.
p2align
3
.
p2align
3
LOC
@
+
(
8
-
@
)
@
7
LOC
@
+
(
8
-
@
)
@
7
...
@@ -74,8 +76,8 @@ Main SETL $255,32
...
@@ -74,8 +76,8 @@ Main SETL $255,32
#
ifdef
__MMIX_ABI_GNU__
#
ifdef
__MMIX_ABI_GNU__
%
Copy
argc
and
argv
from
their
initial
position
to
argument
registers
%
Copy
argc
and
argv
from
their
initial
position
to
argument
registers
%
where
necessary
.
%
where
necessary
.
SET
$
23
2
,
$
0
SET
$
23
1
,
$
0
SET
$
23
3
,
$
1
SET
$
23
2
,
$
1
#
else
#
else
%
For
the
mmixware
ABI
,
we
need
to
move
arguments
.
The
return
value
will
%
For
the
mmixware
ABI
,
we
need
to
move
arguments
.
The
return
value
will
%
appear
in
$
0
.
%
appear
in
$
0
.
...
@@ -86,11 +88,11 @@ Main SETL $255,32
...
@@ -86,11 +88,11 @@ Main SETL $255,32
PUSHJ
$
0
,
main
PUSHJ
$
0
,
main
JMP
exit
JMP
exit
%
Provide
first
part
of
_init
and
_fini
.
Save
the
return
address
on
the
%
Provide
the
first
part
of
_init
and
_fini
.
Save
the
return
address
on
the
%
register
stack
.
We
eventually
ignore
the
return
address
of
these
%
register
stack
.
We
eventually
ignore
the
return
address
of
these
%
PUSHJ
:
s
,
so
it
doesn
'
t
matter
that
whether
.
init
and
.
fini
code
calls
%
PUSHJ
:
s
,
so
it
doesn
'
t
matter
that
whether
.
init
and
.
fini
code
calls
%
functions
or
where
they
store
rJ
.
We
shouldn
'
t
get
there
,
so
abort
if
%
functions
or
where
they
store
rJ
.
We
shouldn
'
t
get
there
,
so
abort
%
that
happens
%
(
TRAP
Halt
)
if
that
happens
.
.
section
.
init
,
"ax"
,
@
progbits
.
section
.
init
,
"ax"
,
@
progbits
.
global
_init
.
global
_init
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment