From 82a298a97d1c6bb84f5eefb7d83445e44985dccf Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 24 Feb 1999 21:00:04 +0000 Subject: [PATCH] Fix cross compiler build failure in dbxout.c. * dbxout.c (gstab.h): Use if CROSS_COMPILE. From-SVN: r25417 --- gcc/ChangeLog | 2 ++ gcc/dbxout.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fedb88438cb..c0b00a58c4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ Wed Feb 24 17:47:28 1999 Jim Wilson + * 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 9e1bc16b0f6..cb8cea5c918 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 -- 2.30.2