solaris bootstrap failure using cc for stage1, stab.h not found...

Jeffrey A Law law@cygnus.com
Mon Dec 7 23:26:00 GMT 1998


  In message < 199812071939.OAA21225@caip.rutgers.edu >you write:
  > 	I suspect the following patch will do the trick.  It uses the
  > same strategy to protect gstab.h/stab.h as found in final.c and
  > xcoffout.c.  Using this patch on Solaris, I am able to compile dbxout.c
  > in stage2 (having used cc for stage1.)
  > 
  > 	Okay to install?
  > 
  > 		--Kaveh
  > 
  > 
  > Mon Dec  7 13:59:11 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
  > 
  > 	* dbxout.c: If USG is defined use gstab.h, even if HAVE_STAB_H is set.
It's fine.  Particularly since it makes dbxout.c match how other parts of
the compiler work.

I'd still like to think about just using our gstab.h long term and doing away
with the conditionals to select different stab.h files.  Consider cross
compilers for example.  We don't want to use the system stab.h in such cases
(maybe we already have code to avoid that...  I haven't looked).


jeff



More information about the Gcc-bugs mailing list