aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
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 /gcc/dbxout.c
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
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c6
1 files changed, 4 insertions, 2 deletions
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>