This is the mail archive of the gcc@gcc.gnu.org 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]

Re: Help adding new architecture



  In message <3659E06D.B0CFCCC@americasm01.nt.com>you write:
  > I'm working off a copy of the 19981122 snapshot.
  > 
  > I'm trying to add hppa 2.0 hooks to egcs and am running into a little
  > difficulty.  I'm starting off by trying to add an extra flag to the pa
  > target_flags.  I did 2 things.  First, I've tried to convert all the
  > target_flags bits with MASK_ defines in pa.h, as was done under
  > sparc.h.  Then, I tried to add a pa2.0 flag in addition to the 1.1 flag
  > that is already there.  I made it bit 2 and shifted all the others down
  > one.  I also changed the TARGET_DEFAULT definitions in pa-gas.h,
  > pa-pro.h, and pa1.h to use the MASK defines instead of hard-coded
  > constants.
  > 
  > Now, I try to configure and built egcs.  I'm using the HP development cc
  > compiler for building the stage 1 gcc.  Everything builds up to the
  > point when the stage1 xgcc is used to compile __muldi3, where I get the
  > following:
First, I would recommend using an unused bit.  Don't try to move things around
and fix all the various TARGET_DEFAULTs.  It's not worth the effort and is
prone to making mistakes.

Look at what we do for TARGET_CPU_DEFAULT in configure.in.  That's probably
the dependency you missed.

I also do not see the real benefit from converting the port to using 
MASK_FOO.  But if you think it makes things easier to read I'll consider it.

jeff


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