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
82e9f5e9
Commit
82e9f5e9
authored
Jul 17, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dwarfout_init): Report failure of getpwd.
From-SVN: r4930
parent
42cd476b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/dwarfout.c
+9
-3
No files found.
gcc/dwarfout.c
View file @
82e9f5e9
...
...
@@ -5383,9 +5383,15 @@ dwarfout_init (asm_out_file, main_input_filename)
ASM_OUTPUT_PUSH_SECTION
(
asm_out_file
,
SFNAMES_SECTION
);
ASM_OUTPUT_LABEL
(
asm_out_file
,
SFNAMES_BEGIN_LABEL
);
{
register
char
*
pwd
=
getpwd
();
register
unsigned
len
=
strlen
(
pwd
);
register
char
*
dirname
=
(
char
*
)
xmalloc
(
len
+
2
);
register
char
*
pwd
;
register
unsigned
len
;
register
char
*
dirname
;
pwd
=
getpwd
();
if
(
!
pwd
)
pfatal_with_name
(
"getpwd"
);
len
=
strlen
(
pwd
);
dirname
=
(
char
*
)
xmalloc
(
len
+
2
);
strcpy
(
dirname
,
pwd
);
strcpy
(
dirname
+
len
,
"/"
);
...
...
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