Commit bf46042b by Joern Rennecke

builtin-noret-1.c (_exit, _Exit): Make weak.

	* gcc.dg/torture/builtin-noret-1.c (_exit, _Exit): Make weak.
	* gcc.dg/torture/builtin-noret-2.c (_exit, _Exit): Likewise.

From-SVN: r67387
parent ae74ed1f
......@@ -15,6 +15,11 @@ extern void t_Exit (void);
extern void link_failure (void);
/* Some libcs have _exit and/or _Exit, and won't allow it to be re-defined,
so make it weak. */
#pragma weak _exit
#pragma weak _Exit
int
main (void)
{
......
......@@ -46,11 +46,17 @@ void
t_exit (void)
{
extern void _exit (int);
/* Some non-Unix libcs have _exit, and won't allow it to be re-defined,
so make it weak. */
#pragma weak _exit
_exit (1);
link_failure ();
}
/* Some non-Unix libcs might not have _exit. */
/* Some non-Unix libcs have _exit, and won't allow it to be re-defined,
so make it weak. */
#pragma weak _exit
void
_exit (int i)
{
......@@ -61,11 +67,17 @@ void
t_Exit (void)
{
extern void _Exit (int);
/* Some libcs have _Exit, and won't allow it to be re-defined,
so make it weak. */
#pragma weak _Exit
_Exit (1);
link_failure ();
}
/* Some libcs might not have _Exit. */
/* Some libcs have _Exit, and won't allow it to be re-defined,
so make it weak. */
#pragma weak _Exit
void
_Exit (int i)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment