Commit 59a1171f by Ozkan Sezer Committed by Kai Tietz

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
parent 934c2060
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.
......
......@@ -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] (); \
......
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