'0416 snap: gcc/dbxout.c stab probs on rs6000-ibm-aix4.2.0.0 & alpha-dec-osf4.0e.
Zack Weinberg
zackw@Stanford.EDU
Tue Apr 17 01:21:00 GMT 2001
On Tue, Apr 17, 2001 at 04:57:58PM +1000, rbrown64@csc.com.au wrote:
> On rs6000-ibm-aix4.2.0.0 the `.stabx "gcc2_compiled.",60,0,0,0' line
> generated from gcc/dbxout.c fails to assemble with the vendor compiler.
> Deleting one trailing `,0' assembles correctly.
The right fix is not quite that simple, get it from
http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00888.html . Testing
would be appreciated.
> Since alpha-dec-osf4.0e has a /usr/include/stab.h which doesn't declare N_OPT
> the build of dbxout.c fails. Should the configury check for N_OPT when the
> platform has <stab.h> and provide a default?
This should be addressed by the following patch, thanks to Loren
Rittle. It should be applied shortly.
zw
Index: gcc/dbxout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dbxout.c,v
retrieving revision 1.77
diff -c -8 -r1.77 dbxout.c
*** dbxout.c 2001/04/16 18:30:31 1.77
--- dbxout.c 2001/04/17 01:30:44
***************
*** 178,193 ****
--- 178,198 ----
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
#else
#include <stab.h>
/* This is a GNU extension we need to reference in this file. */
#ifndef N_CATCH
#define N_CATCH 0x54
#endif
+
+ /* This is a Solaris extension we need to reference in this file. */
+ #ifndef N_OPT
+ #define N_OPT 0x3c
+ #endif
#endif
#ifdef __GNU_STAB__
#define STAB_CODE_TYPE enum __stab_debug_code
#else
#define STAB_CODE_TYPE int
#endif
More information about the Gcc-bugs
mailing list