This is the mail archive of the gcc-patches@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: Patch to remove re-assert warnings on powerpc-*-linux-*



  In message <19990329112822.A23127@drow.res.cmu.edu>you write:
  > On Mon, Mar 29, 1999 at 12:11:34AM -0700, Jeffrey A Law wrote:
  > > I don't think this is correct.
  > > 
  > > Look at how CPP_OS_LINUX_SPEC is used in CPP_SPEC.  
  > > 
  > > Specifically, it supposed to be used to provide linux defines and asserti
  > ons
  > > when the -mcall-linux flag is given to the compiler.
  > > 
  > > If you remove stuff from CPP_OS_LINUX_SPEC you will break that functional
  > ity.
  > > This goes for both -D arguments and assertions.
  > > 
  > > I think to really resolve this issue you're going to have to go the other
  >  way
  > > and remove the linux stuff from CPP_PREDEFINES in linux.h (and make sure
  > > everything has an equivalent in CPP_OS_LINUX_SPEC).
  > 
  > That makes sense.
  > 
  > I assume I should also fix the conditions for -Dunix and -Dlinux.  Is
  > adding -Asystem(posix) also correct?  Should -D__ELF__ be removed as
  > well?  I didn't because I couldn't see where to re-add it best.
You should probably check with Franz Sirl, Geoffrey Keating, or HJ Lu for
what symbols and asserts ought to be active across all Linux systems.  They're
the experts on the linux requirements.

jeff


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