OSDN Git Service

2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Apr 2009 10:11:48 +0000 (10:11 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Apr 2009 10:11:48 +0000 (10:11 +0000)
        PR/39066
        * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
        instead of unsigned long.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145999 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gbl-ctors.h

index 0544dd6..c0ad64a 100644 (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.
 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        * config/arm/arm.c (return_used_this_function): Remove.
index 9545a85..67d5740 100644 (file)
@@ -72,9 +72,9 @@ extern void __do_global_dtors (void);
 #ifndef DO_GLOBAL_CTORS_BODY
 #define DO_GLOBAL_CTORS_BODY                                           \
 do {                                                                   \
 #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;                                                          \
   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] ();                                               \
     for (nptrs = 0; __CTOR_LIST__[nptrs + 1] != 0; nptrs++);           \
   for (i = nptrs; i >= 1; i--)                                         \
     __CTOR_LIST__[i] ();                                               \