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
2dcb563f
Commit
2dcb563f
authored
May 09, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r945
parent
a8031c4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
20 deletions
+29
-20
gcc/gcc.c
+17
-0
gcc/rtl.c
+12
-20
No files found.
gcc/gcc.c
View file @
2dcb563f
...
...
@@ -94,6 +94,11 @@ extern int execv (), execvp ();
#define MIN_FATAL_STATUS 1
/* Flag saying to print the full filename of libgcc.a
as found through our usual search mechanism. */
static
int
print_libgcc_file_name
;
/* Flag indicating whether we should print the command and arguments */
static
int
verbose_flag
;
...
...
@@ -1826,6 +1831,10 @@ process_command (argc, argv)
printf
(
"%s
\n
"
,
version_string
);
exit
(
0
);
}
else
if
(
!
strcmp
(
argv
[
i
],
"-print-libgcc-file-name"
))
{
print_libgcc_file_name
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-Xlinker"
))
{
/* Pass the argument of this option to the linker when we link. */
...
...
@@ -1939,6 +1948,8 @@ process_command (argc, argv)
{
if
(
!
strcmp
(
argv
[
i
],
"-Xlinker"
))
i
++
;
else
if
(
!
strcmp
(
argv
[
i
],
"-print-libgcc-file-name"
))
i
++
;
else
if
(
argv
[
i
][
0
]
==
'-'
&&
argv
[
i
][
1
]
!=
0
&&
argv
[
i
][
1
]
!=
'l'
)
{
register
char
*
p
=
&
argv
[
i
][
1
];
...
...
@@ -3038,6 +3049,12 @@ main (argc, argv)
if
(
!
switches
[
i
].
valid
)
error
(
"unrecognized option `-%s'"
,
switches
[
i
].
part1
);
if
(
print_libgcc_file_name
)
{
printf
(
"%s
\n
"
,
find_file
(
"libgcc.a"
));
exit
(
0
);
}
/* Obey some of the options. */
if
(
verbose_flag
)
...
...
gcc/rtl.c
View file @
2dcb563f
...
...
@@ -642,36 +642,28 @@ read_rtx (infile)
}
if
(
c
!=
'"'
)
dump_and_abort
(
'"'
,
c
,
infile
);
j
=
0
;
stringbufsize
=
10
;
stringbuf
=
(
char
*
)
xmalloc
(
stringbufsize
+
1
);
while
(
1
)
{
if
(
j
>=
stringbufsize
-
4
)
c
=
getc
(
infile
);
/* Read the string */
if
(
c
==
'\\'
)
{
stringbufsize
*=
2
;
stringbuf
=
(
char
*
)
xrealloc
(
stringbuf
,
stringbufsize
+
1
);
}
stringbuf
[
j
]
=
getc
(
infile
);
/* Read the string */
if
(
stringbuf
[
j
]
==
'\\'
)
{
stringbuf
[
j
]
=
getc
(
infile
);
/* Read the string */
c
=
getc
(
infile
);
/* Read the string */
/* \; makes stuff for a C string constant containing
newline and tab. */
if
(
stringbuf
[
j
]
==
';'
)
{
strcpy
(
&
stringbuf
[
j
],
"
\\
n
\\
t"
);
j
+=
3
;
}
if
(
c
==
';'
)
obstack_grow
(
rtl_obstack
,
"
\\
n
\\
t"
,
4
);
else
obstack_1grow
(
rtl_obstack
,
c
);
}
else
if
(
stringbuf
[
j
]
==
'"'
)
else
if
(
c
==
'"'
)
break
;
j
++
;
obstack_1grow
(
rtl_obstack
,
c
);
}
stringbuf
[
j
]
=
0
;
/* NUL terminate the string */
stringbuf
=
(
char
*
)
xrealloc
(
stringbuf
,
j
+
1
);
obstack_1grow
(
rtl_obstack
,
0
);
stringbuf
=
(
char
*
)
obstack_finish
(
rtl_obstack
);
if
(
saw_paren
)
{
...
...
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