OSDN Git Service

Fix cross compiler build failure in dbxout.c.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Feb 1999 21:00:04 +0000 (21:00 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Feb 1999 21:00:04 +0000 (21:00 +0000)
* dbxout.c (gstab.h): Use if CROSS_COMPILE.

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

gcc/ChangeLog
gcc/dbxout.c

index fedb884..c0b00a5 100644 (file)
@@ -1,5 +1,7 @@
 Wed Feb 24 17:47:28 1999  Jim Wilson  <wilson@cygnus.com>
 
+       * dbxout.c (gstab.h): Use if CROSS_COMPILE.
+
        * dwarf2out.c (add_location_or_const_value_attribute):  Add big
        endian correction for parms passed in regs but living on the stack.
 
index 9e1bc16..cb8cea5 100644 (file)
@@ -164,8 +164,10 @@ static int source_label_number = 1;
 #endif
 
 /* If there is a system stab.h, use it.  Otherwise, use our own.  */
-
-#if defined (USG) || !defined (HAVE_STAB_H)
+/* ??? This is supposed to describe the target's stab format, so using
+   the host HAVE_STAB_H appears to be wrong.  For now, we use our own file
+   when cross compiling.  */
+#if defined (USG) || !defined (HAVE_STAB_H) || defined (CROSS_COMPILE)
 #include "gstab.h" /* If doing DBX on sysV, use our own stab.h.  */
 #else
 #include <stab.h>