diff options
| author | Jan Beulich <jbeulich@novell.com> | 2004-12-22 08:41:43 +0000 |
|---|---|---|
| committer | Jan Beulich <jbeulich@gcc.gnu.org> | 2004-12-22 08:41:43 +0000 |
| commit | f199d860aec77c025228942b51e79d92d7ac8f4d (patch) | |
| tree | f9d053c3890c5bdb255e14d3ff2435a06254cdc9 /gcc/config/i386/netware-crt0.c | |
| parent | 340beeb5c2c61f33327bb06dea8e7fc14895075f (diff) | |
| download | gcc-f199d860aec77c025228942b51e79d92d7ac8f4d.zip gcc-f199d860aec77c025228942b51e79d92d7ac8f4d.tar.gz gcc-f199d860aec77c025228942b51e79d92d7ac8f4d.tar.bz2 | |
config.gcc: Add dbxelf.h to NetWare's tm_file.
gcc/
2004-12-22 Jan Beulich <jbeulich@novell.com>
* config.gcc: Add dbxelf.h to NetWare's tm_file.
* config/i386/netware-crt0.c: Prototype __init_environment and
__deinit_environment prior to their definition.
(__init_environment): Correct invokation of constructor function.
* config/i386/netware.h (TARGET_OS_CPP_BUILTINS): Use
builtin_define_std rather than builtin_define on IAPX386.
* config/i386/nwld.h: Disable stabs debugging info with the linker
this file supports.
* config/i386/t-nwld (SHLIB_LINK): Do not use a temporary file for
the output. Add -posix to the options as that is the more compatible
mode.
* gthr-nks.h: Formatting.
(__gthread_mutex_init_function): Kill the dubious use of
NX_MUTEX_RECURSIVE as it is now clear that the traditional mutexes
were not meant to be recursive.
(__gthread_recursive_mutex_t, __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION,
__gthread_recursive_mutex_init_function,
__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
__gthread_recursive_mutex_unlock): New.
gcc/testsuite/
2004-12-22 Jan Beulich <jbeulich@novell.com>
* gcc.dg/20040813-1.c: Skip for *-*-netware*.
From-SVN: r92488
Diffstat (limited to 'gcc/config/i386/netware-crt0.c')
| -rw-r--r-- | gcc/config/i386/netware-crt0.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/i386/netware-crt0.c b/gcc/config/i386/netware-crt0.c index b553f3d..0da9114 100644 --- a/gcc/config/i386/netware-crt0.c +++ b/gcc/config/i386/netware-crt0.c @@ -23,6 +23,9 @@ Boston, MA 02111-1307, USA. */ #include <stdint.h> #include "unwind-dw2-fde.h" +int __init_environment (void *); +int __deinit_environment (void *); + #define SECTION_DECL(name, decl) decl __attribute__((__section__(name))) @@ -54,7 +57,7 @@ __init_environment (void *unused __attribute__((__unused__))) for (pctor = &__CTOR_END__ - 1; pctor > &__CTOR_LIST__; --pctor) if (*pctor != NULL) - pctor(); + (*pctor)(); return 0; } |
