This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] include dbxelf.h via tm_file rather than thru elfos.h.
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: obrien at FreeBSD dot org
- Cc: gcc-patches at gcc dot gnu dot org, Brad Lucier <lucier at math dot purdue dot edu>
- Date: 11 Dec 2001 00:00:39 +0100
- Subject: Re: [PATCH] include dbxelf.h via tm_file rather than thru elfos.h.
- References: <20011205152306.A7481@dragon.nuxi.com>
"David O'Brien" <obrien@FreeBSD.org> 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 <obrien@FreeBSD.org>
>
> * 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:
h8300/elf.h
m68k/linux.h
m68k/m68020-elf.h
m68k/m68kv4.h
sh/elf.h
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:
http://gcc.gnu.org/ml/gcc/2001-12/msg00441.html
Until I find the time to revisit my SPARC configury patch and clean up this
mess
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01977.html
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
--
-----------------------------------------------------------------------------
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 @@
#endif
#include "sparc/sparc.h"
+#include "dbxelf.h"
#include "elfos.h"
#include "svr4.h"
#include "sparc/sysv4.h"