This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] include dbxelf.h via tm_file rather than thru elfos.h.

"David O'Brien" <> writes:

> There is no interaction between dbxelf.h and elfos.h (which currently
> includes dbxelf.h in the middle of itself).  Thus the include of dbxelf.h
> does not have to be done w/in elfos.h and can be added to 'tm_file'
> instead.  (is including dbxelf.h after elfos.h preferred?)
> 2001-12-05  David O'Brien  <>
> 	* config.gcc: Include dbxelf.h before elfos.h.
> 	* elfos.h: Don't include dbxelf.h, let config.gcc handle it.

This patch broke the sparc-sun-solaris2.8 bootstrap:

config/sparc/sol2-sld-64.h is one remaining file that included elfos.h
directly, not via config.gcc.

There are a few others which do the same and may be similarly affected, but
I haven't checked this in more detail:


With your patch this configuration lost dbxelf.h and the definition of
ASM_OUTPUT_SOURCE_LINE, thus using .stabd which the Solaris 2 as does not
understand, as reported by Brad:

Until I find the time to revisit my SPARC configury patch and clean up this

the patch below brings Solaris 2/SPARC back to bootstrap land.

A full bootstrap on sparc-sun-solaris2.8 is underway, but with this patch
I've just started stage2 while before the compilation of libgcc in stage1
failed already.

Ok for trunk?


Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE

Mon Dec 10 23:40:26 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* config/sparc/sol2-sld-64.h: Include dbxelf.h again.

Index: gcc/config/sparc/sol2-sld-64.h
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sol2-sld-64.h,v
retrieving revision 1.19
diff -u -p -r1.19 sol2-sld-64.h
--- sol2-sld-64.h	2001/11/14 21:44:20	1.19
+++ sol2-sld-64.h	2001/12/10 22:42:03
@@ -6,6 +6,7 @@
 #include "sparc/sparc.h"
+#include "dbxelf.h"
 #include "elfos.h"
 #include "svr4.h"
 #include "sparc/sysv4.h"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]