pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment problem.
authorJeff Law <law@gcc.gnu.org>
Tue, 4 Apr 1995 21:26:02 +0000 (15:26 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 4 Apr 1995 21:26:02 +0000 (15:26 -0600)
* pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment
problem.

From-SVN: r9313

gcc/config/pa/pa.h

index 5e2ba95..792af84 100644 (file)
@@ -2167,10 +2167,12 @@ extern struct rtx_def *hppa_save_pic_table_rtx;
                            CONST_DOUBLE, CONST, HIGH}},
 #endif
 
+/* We want __gcc_plt_call to appear in every program built by
+   gcc, so we make a reference to it out of __main.  */
 #define DO_GLOBAL_DTORS_BODY \
 do { \
   extern void __gcc_plt_call (); \
-  volatile int reference = &__gcc_plt_call; \
+  void (*reference)() = &__gcc_plt_call; \
   func_ptr *p; \
   for (p = __DTOR_LIST__ + 1; *p; ) \
     (*p++) (); \