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]
Other format: [Raw text]

Re: [patch] Fix regression preprocessor/17651, v2


neroden@fastmail.fm (Nathanael Nerode) writes:

> Per Zack's recommendaton.  Also fixes the bug, in essentially the same way.
> Tested i686-pc-linux-gnu.  OK?

Yes, this is OK; also for 3.4.

> I don't have a test case because I couldn't figure out how to design an
> appropriate one for the testsuite; there's only one remotely similar test,
> gcc.misc-tests/mg.{c,exp}, and I don't understand how it works.

Something like

  /* { dg-do preprocess } */
  /* { dg-options "-g -MM -MF pr17651.d" } */
  /* { dg-final { scan-assembler-not "^#" } } */

  int main (void) { return 0; }

ought to work.

zw


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