gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__ instead of unsigned long.

2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR/39066
        * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
        instead of unsigned long.

From-SVN: r145999
This commit is contained in:
Ozkan Sezer 2009-04-13 10:11:48 +00:00 committed by Kai Tietz
parent 934c2060de
commit 59a1171ffc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
PR/39066
* gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
instead of unsigned long.
2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.c (return_used_this_function): Remove.

View File

@ -72,9 +72,9 @@ extern void __do_global_dtors (void);
#ifndef DO_GLOBAL_CTORS_BODY
#define DO_GLOBAL_CTORS_BODY \
do { \
unsigned long nptrs = (unsigned long) __CTOR_LIST__[0]; \
__SIZE_TYPE__ nptrs = (__SIZE_TYPE__) __CTOR_LIST__[0]; \
unsigned i; \
if (nptrs == (unsigned long)-1) \
if (nptrs == (__SIZE_TYPE__)-1) \
for (nptrs = 0; __CTOR_LIST__[nptrs + 1] != 0; nptrs++); \
for (i = nptrs; i >= 1; i--) \
__CTOR_LIST__[i] (); \