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
904f3f5a
Commit
904f3f5a
authored
Sep 22, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Make sure there's some value within each pair of braces.
From-SVN: r5417
parent
7b95735e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
gcc/bi-arity.c
+10
-8
No files found.
gcc/bi-arity.c
View file @
904f3f5a
...
@@ -21,7 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -21,7 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "bi-defs.h"
#include "bi-defs.h"
int
int
length
(
n
)
length
(
n
)
struct
node
*
n
;
struct
node
*
n
;
{
{
int
k
;
int
k
;
...
@@ -32,23 +32,25 @@ length(n)
...
@@ -32,23 +32,25 @@ length(n)
}
}
int
int
main
()
main
()
{
{
struct
def
*
d
;
struct
def
*
d
;
struct
variation
*
v
;
struct
variation
*
v
;
struct
node
*
n
;
struct
node
*
n
;
yyparse
();
yyparse
();
reverse
();
reverse
();
for
(
d
=
defs
;
d
;
d
=
d
->
next
)
for
(
d
=
defs
;
d
;
d
=
d
->
next
)
for
(
v
=
d
->
variations
;
v
;
v
=
v
->
next
)
for
(
v
=
d
->
variations
;
v
;
v
=
v
->
next
)
{
{
printf
(
"{ %d, %d, %d, {"
,
length
(
v
->
inputs
),
printf
(
"{ %d, %d, %d, {"
,
length
(
v
->
inputs
),
length
(
v
->
outputs
),
length
(
v
->
literals
));
length
(
v
->
outputs
),
length
(
v
->
literals
));
for
(
n
=
v
->
literals
;
n
;
n
=
n
->
next
)
for
(
n
=
v
->
literals
;
n
;
n
=
n
->
next
)
printf
(
"%scode, "
,
n
->
text
);
printf
(
"%scode, "
,
n
->
text
);
printf
(
"}},
\n
"
);
if
(
v
->
literals
==
0
)
printf
(
"0"
);
printf
(
"}},
\n
"
);
}
}
return
0
;
return
0
;
}
}
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