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: fix g++-law/copy1.C regression


> This one's caused by the recent PROP_ALLOW_CFG_CHANGES addition as well.
> 
> Something (I didn't quite track down what) makes a CFG transformation
> which results in the 0 return value being removed as dead code.  This
> doesn't happen with optimization enabled, curiously.

I'm a little unclear as to how g++.old-deja/g++-law/copy1.C is suppose to work.

  int main()
  {
    person mainp;
    test(mainp);
    if (pass)
      printf ("PASS\n");
    else
      { printf ("FAIL\n"); return 1; }
  }

It appears to return either 1 or a random value.  Perhaps a patch to the
test is in order?

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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