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
09927bb0
Commit
09927bb0
authored
Jul 23, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1675
parent
110de73f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
6 deletions
+48
-6
gcc/mips-tfile.c
+48
-6
No files found.
gcc/mips-tfile.c
View file @
09927bb0
...
@@ -3729,16 +3729,37 @@ parse_stabs_common (string_start, string_end, rest)
...
@@ -3729,16 +3729,37 @@ parse_stabs_common (string_start, string_end, rest)
else
else
{
{
SYMR
*
sym_ptr
;
SYMR
*
sym_ptr
;
shash_t
*
shash_ptr
=
hash_string
(
p
,
shash_t
*
shash_ptr
;
strlen
(
p
)
-
1
,
const
char
*
start
,
*
end_p1
;
&
orig_str_hash
[
0
],
(
symint_t
*
)
0
);
start
=
p
;
if
((
end_p1
=
strchr
(
start
,
'+'
))
==
(
char
*
)
0
)
{
if
((
end_p1
=
strchr
(
start
,
'-'
))
==
(
char
*
)
0
)
end_p1
=
start
+
strlen
(
start
)
-
1
;
}
shash_ptr
=
hash_string
(
start
,
end_p1
-
start
,
&
orig_str_hash
[
0
],
(
symint_t
*
)
0
);
if
(
shash_ptr
==
(
shash_t
*
)
0
if
(
shash_ptr
==
(
shash_t
*
)
0
||
(
sym_ptr
=
shash_ptr
->
sym_ptr
)
==
(
SYMR
*
)
0
)
||
(
sym_ptr
=
shash_ptr
->
sym_ptr
)
==
(
SYMR
*
)
0
)
{
{
error
(
"Illegal .stabs/.stabn directive, value not found"
);
shash_ptr
=
hash_string
(
start
,
return
;
end_p1
-
start
,
&
ext_str_hash
[
0
],
(
symint_t
*
)
0
);
if
(
shash_ptr
==
(
shash_t
*
)
0
||
shash_ptr
->
esym_ptr
==
(
EXTR
*
)
0
)
{
error
(
"Illegal .stabs/.stabn directive, value not found"
);
return
;
}
else
sym_ptr
=
&
(
shash_ptr
->
esym_ptr
->
asym
);
}
}
/* Traditionally, N_LBRAC and N_RBRAC are *not* relocated. */
/* Traditionally, N_LBRAC and N_RBRAC are *not* relocated. */
...
@@ -3753,6 +3774,27 @@ parse_stabs_common (string_start, string_end, rest)
...
@@ -3753,6 +3774,27 @@ parse_stabs_common (string_start, string_end, rest)
st
=
(
st_t
)
sym_ptr
->
st
;
st
=
(
st_t
)
sym_ptr
->
st
;
}
}
value
=
sym_ptr
->
value
;
value
=
sym_ptr
->
value
;
ch
=
*
end_p1
++
;
if
(
ch
!=
'\n'
)
{
if
(((
!
isdigit
(
*
end_p1
))
&&
(
*
end_p1
!=
'-'
))
||
((
ch
!=
'+'
)
&&
(
ch
!=
'-'
)))
{
error
(
"Illegal .stabs/.stabn directive, badly formed value"
);
return
;
}
if
(
ch
==
'+'
)
value
+=
strtol
(
end_p1
,
&
p
,
0
);
else
if
(
ch
==
'-'
)
value
-=
strtol
(
end_p1
,
&
p
,
0
);
if
(
*
p
!=
'\n'
)
{
error
(
"Illegal .stabs/.stabn directive, stuff after numeric value"
);
return
;
}
}
}
}
code
=
MIPS_MARK_STAB
(
code
);
code
=
MIPS_MARK_STAB
(
code
);
}
}
...
...
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