mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
used.
This commit is contained in:
parent
8efb275cc3
commit
12499c7a5d
@ -1,3 +1,8 @@
|
||||
2005-07-26 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
|
||||
used.
|
||||
|
||||
2005-07-20 Bob Wilson <bob.wilson@acm.org>
|
||||
Darin Petkov <darin@tensilica.com>
|
||||
|
||||
|
@ -45,10 +45,13 @@ __asm__
|
||||
extern vfnp * const _Ctors asm(".$global.lib.ctors");
|
||||
extern vfnp * const _Dtors asm(".$global.lib.dtors");
|
||||
|
||||
/* We better provide weak empty ctor and dtor lists, since they are not
|
||||
created if the main program does not have ctor/dtors. */
|
||||
/* We better provide weak empty ctor and dtor lists, since they are
|
||||
not created if the main program does not have ctor/dtors. Because
|
||||
it's otherwise not used, GCC trunk "Mon Jul 25 22:33:14 UTC 2005"
|
||||
thinks it can remove defaultors, so we need to artificially mark it
|
||||
as used. FIXME: Perhaps a GCC bug. */
|
||||
|
||||
static vfnp const defaultors[] = {0, 0};
|
||||
static vfnp const defaultors[] __attribute__ ((__used__)) = {0, 0};
|
||||
|
||||
extern vfnp * __CTOR_LIST__ __attribute__ ((weak, alias ("defaultors")));
|
||||
extern vfnp * __DTOR_LIST__ __attribute__ ((weak, alias ("defaultors")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user