[llvm-commits] [llvm-gcc-4.2] r104313 - /llvm-gcc-4.2/trunk/gcc/dbxout.c

Nick Lewycky nicholas at mxc.ca
Thu May 20 22:58:45 PDT 2010


Author: nicholas
Date: Fri May 21 00:58:44 2010
New Revision: 104313

URL: http://llvm.org/viewvc/llvm-project?rev=104313&view=rev
Log:
These global variables are used by gt-dbxout.h unconditionally, so they need to
be declared unconditionally. This fixes an issue on ia64 linux.

Modified:
    llvm-gcc-4.2/trunk/gcc/dbxout.c

Modified: llvm-gcc-4.2/trunk/gcc/dbxout.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/dbxout.c?rev=104313&r1=104312&r2=104313&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/dbxout.c (original)
+++ llvm-gcc-4.2/trunk/gcc/dbxout.c Fri May 21 00:58:44 2010
@@ -283,6 +283,10 @@
 /* Typical USG systems don't have stab.h, and they also have
    no use for DBX-format debugging info.  */
 
+static GTY ((length ("type_queue_index"))) tree *type_queue;
+static GTY (()) int type_queue_index = 0;
+static GTY (()) int type_queue_size = 0;
+
 #if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
 
 #ifdef DBX_USE_BINCL
@@ -4292,10 +4296,6 @@
   dbxout_finish_complex_stabs (0, N_LSYM, 0, 0, 0);
 }
 
-static GTY ((length ("type_queue_index"))) tree *type_queue;
-static GTY (()) int type_queue_index = 0;
-static GTY (()) int type_queue_size = 0;
-
 /* Generate the type definitions for queued up types.  */
 
 void





More information about the llvm-commits mailing list