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]

Re: %[spec] and x86 cpp option problems

  In message <>you write:
  > The x86 ports have 2 minor bugs in the the cpp option support.
  > 1) When -ansi is used, they define macros in user namespace, e.g. -Di386.
  > 2) Some macros defined by gcc- aren't defined anymore, e.g. -D__i386.

  > rarer and rarer, I don't think we should complicate the %() support to make
  > it easy to define non-ansi macros.

  > One problem with this is that it means specs aren't backward compatible,
  > which means that people using -b or -V may get errors.  These options have
  > have never been safe, and I have always recommended against their use, but we
  > may need to keep them working.  I could perhaps just give a warning instead
  > of an error when %[] is used.
I'm not too concerned about this.

  > Thu Jul  9 15:24:18 1998  Jim Wilson  <>
  > 	* i386/i386.h (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): New specs.
  > 	(EXTRA_SPECS): Support them.
  > 	* gcc.c: Delete %[spec] support.
  > 	(do_spec_1, case '('): Likewise.
  > 	(do_spec_1, case '['): Call error.
  > 	* i386/aix386ng.h, cygwin32.h, freebsd-elf.h, gas.h, isc.h,
  > 	linux-aout.h, linux-oldld.h, linux.h, osfelf.h, osfrose.h, sco.h,
  > 	sco4.h, sco4dbx.h, sco5.h, sol2.h, sysv3.h (CPP_SPEC): Delete
  > 	%[cpp_cpu].
I went ahead and committed the patch since I'm trying to get the egcs-1.1
branch made tonight.


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