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
3279bba6
Commit
3279bba6
authored
Dec 31, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_spec_1): Propagate failure from recursive calls.
From-SVN: r3033
parent
7e1909ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
15 deletions
+46
-15
gcc/gcc.c
+46
-15
No files found.
gcc/gcc.c
View file @
3279bba6
...
...
@@ -2364,6 +2364,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
register
int
c
;
int
i
;
char
*
string
;
int
value
;
while
(
c
=
*
p
++
)
/* If substituting a switch, treat all chars like letters.
...
...
@@ -2407,7 +2408,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
if
(
argbuf_index
>
0
)
{
int
value
=
execute
();
value
=
execute
();
if
(
value
)
return
value
;
}
...
...
@@ -2730,39 +2731,57 @@ do_spec_1 (spec, inswitch, soft_matched_part)
a certain constant string as a spec. */
case
'1'
:
do_spec_1
(
cc1_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
cc1_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'2'
:
do_spec_1
(
cc1plus_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
cc1plus_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'a'
:
do_spec_1
(
asm_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
asm_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'A'
:
do_spec_1
(
asm_final_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
asm_final_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'c'
:
do_spec_1
(
signed_char_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
signed_char_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'C'
:
do_spec_1
(
cpp_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
cpp_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'E'
:
do_spec_1
(
endfile_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
endfile_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'l'
:
do_spec_1
(
link_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
link_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'L'
:
do_spec_1
(
lib_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
lib_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
case
'p'
:
...
...
@@ -2789,7 +2808,9 @@ do_spec_1 (spec, inswitch, soft_matched_part)
*
x
=
0
;
do_spec_1
(
buf
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
buf
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
}
break
;
...
...
@@ -2895,12 +2916,16 @@ do_spec_1 (spec, inswitch, soft_matched_part)
*
x
=
0
;
do_spec_1
(
buf
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
buf
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
}
break
;
case
'S'
:
do_spec_1
(
startfile_spec
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
startfile_spec
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
break
;
/* Here we define characters other than letters and digits. */
...
...
@@ -2948,7 +2973,11 @@ do_spec_1 (spec, inswitch, soft_matched_part)
if
(
sl
)
{
if
(
c
==
'('
)
do_spec_1
(
name
,
0
,
NULL_PTR
);
{
value
=
do_spec_1
(
name
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
}
else
{
char
*
x
=
(
char
*
)
alloca
(
strlen
(
name
)
*
2
+
1
);
...
...
@@ -2981,7 +3010,9 @@ do_spec_1 (spec, inswitch, soft_matched_part)
}
*
x
=
0
;
do_spec_1
(
buf
,
0
,
NULL_PTR
);
value
=
do_spec_1
(
buf
,
0
,
NULL_PTR
);
if
(
value
!=
0
)
return
value
;
}
}
...
...
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