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
4731f878
Commit
4731f878
authored
Dec 04, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Fix build failures with -D_FORTIFY_SOURCE=2.
From-SVN: r194116
parent
3f7af571
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
libgo/runtime/go-signal.c
+4
-1
libgo/runtime/print.c
+4
-1
No files found.
libgo/runtime/go-signal.c
View file @
4731f878
...
...
@@ -144,10 +144,13 @@ static int8 badsignal[] = "runtime: signal received on thread not created by Go.
static
void
runtime_badsignal
(
int32
sig
)
{
// Avoid -D_FORTIFY_SOURCE problems.
int
rv
__attribute__
((
unused
));
if
(
sig
==
SIGPROF
)
{
return
;
// Ignore SIGPROFs intended for a non-Go thread.
}
runtime_write
(
2
,
badsignal
,
sizeof
badsignal
-
1
);
r
v
=
r
untime_write
(
2
,
badsignal
,
sizeof
badsignal
-
1
);
runtime_exit
(
1
);
}
...
...
libgo/runtime/print.c
View file @
4731f878
...
...
@@ -18,7 +18,10 @@ gwrite(const void *v, int32 n)
G
*
g
=
runtime_g
();
if
(
g
==
nil
||
g
->
writebuf
==
nil
)
{
runtime_write
(
2
,
v
,
n
);
// Avoid -D_FORTIFY_SOURCE problems.
int
rv
__attribute__
((
unused
));
rv
=
runtime_write
(
2
,
v
,
n
);
return
;
}
...
...
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