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
8ab861c7
Commit
8ab861c7
authored
Apr 13, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main, scan_prog_file): Don't call signal on signal names that aren't
defined. From-SVN: r4135
parent
ccf5d244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gcc/collect2.c
+12
-0
No files found.
gcc/collect2.c
View file @
8ab861c7
...
@@ -757,18 +757,26 @@ main (argc, argv)
...
@@ -757,18 +757,26 @@ main (argc, argv)
if
(
argc
<
2
)
if
(
argc
<
2
)
fatal
(
"no arguments"
);
fatal
(
"no arguments"
);
#ifdef SIGQUIT
if
(
signal
(
SIGQUIT
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGQUIT
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGQUIT
,
handler
);
signal
(
SIGQUIT
,
handler
);
#endif
if
(
signal
(
SIGINT
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGINT
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGINT
,
handler
);
signal
(
SIGINT
,
handler
);
#ifdef SIGALRM
if
(
signal
(
SIGALRM
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGALRM
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGALRM
,
handler
);
signal
(
SIGALRM
,
handler
);
#endif
#ifdef SIGHUP
if
(
signal
(
SIGHUP
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGHUP
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGHUP
,
handler
);
signal
(
SIGHUP
,
handler
);
#endif
if
(
signal
(
SIGSEGV
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGSEGV
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGSEGV
,
handler
);
signal
(
SIGSEGV
,
handler
);
#ifdef SIGBUS
if
(
signal
(
SIGBUS
,
SIG_IGN
)
!=
SIG_IGN
)
if
(
signal
(
SIGBUS
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGBUS
,
handler
);
signal
(
SIGBUS
,
handler
);
#endif
/* Extract COMPILER_PATH and PATH into our prefix list. */
/* Extract COMPILER_PATH and PATH into our prefix list. */
prefix_from_env
(
"COMPILER_PATH"
,
&
cpath
);
prefix_from_env
(
"COMPILER_PATH"
,
&
cpath
);
...
@@ -1361,7 +1369,9 @@ scan_prog_file (prog_name, which_pass)
...
@@ -1361,7 +1369,9 @@ scan_prog_file (prog_name, which_pass)
/* Parent context from here on. */
/* Parent context from here on. */
int_handler
=
(
void
(
*
)
())
signal
(
SIGINT
,
SIG_IGN
);
int_handler
=
(
void
(
*
)
())
signal
(
SIGINT
,
SIG_IGN
);
#ifdef SIGQUIT
quit_handler
=
(
void
(
*
)
())
signal
(
SIGQUIT
,
SIG_IGN
);
quit_handler
=
(
void
(
*
)
())
signal
(
SIGQUIT
,
SIG_IGN
);
#endif
if
(
close
(
pipe_fd
[
1
])
<
0
)
if
(
close
(
pipe_fd
[
1
])
<
0
)
fatal_perror
(
"close (%d)"
,
pipe_fd
[
1
]);
fatal_perror
(
"close (%d)"
,
pipe_fd
[
1
]);
...
@@ -1419,7 +1429,9 @@ scan_prog_file (prog_name, which_pass)
...
@@ -1419,7 +1429,9 @@ scan_prog_file (prog_name, which_pass)
do_wait
(
nm_file_name
);
do_wait
(
nm_file_name
);
signal
(
SIGINT
,
int_handler
);
signal
(
SIGINT
,
int_handler
);
#ifdef SIGQUIT
signal
(
SIGQUIT
,
quit_handler
);
signal
(
SIGQUIT
,
quit_handler
);
#endif
}
}
#endif
/* OBJECT_FORMAT_NONE */
#endif
/* OBJECT_FORMAT_NONE */
...
...
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