aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1999-02-24 21:00:04 +0000
committerJim Wilson <wilson@gcc.gnu.org>1999-02-24 13:00:04 -0800
commit82a298a97d1c6bb84f5eefb7d83445e44985dccf (patch)
tree4fee806f6e7c61d1bc53e61adb7833dc6ed5b756
parentd7cdf1138e4c7f35f466ca52a00c55cf4ea99fb5 (diff)
downloadgcc-82a298a97d1c6bb84f5eefb7d83445e44985dccf.zip
gcc-82a298a97d1c6bb84f5eefb7d83445e44985dccf.tar.gz
gcc-82a298a97d1c6bb84f5eefb7d83445e44985dccf.tar.bz2
Fix cross compiler build failure in dbxout.c.
* dbxout.c (gstab.h): Use if CROSS_COMPILE. From-SVN: r25417
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/dbxout.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fedb884..c0b00a5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 9e1bc16..cb8cea5 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -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>