This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Backport change to g++.dg/opt/pr15551.C
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 5 Jun 2006 12:13:19 -0700 (PDT)
- Subject: Patch: Backport change to g++.dg/opt/pr15551.C
- Reply-to: sje at cup dot hp dot com
The test g++.dg/opt/pr15551.C was updated on the main line by Dave
Edelsohn. The test still fails on the 4.0 and 4.1 branches because that
test change was not backported.
Is it OK if I backport his change to the 4.0 and 4.1 branches? I
believe this qualifies as a regression because 4.0 did not have the
unlink in the source. It was added on the branches after 4.0.0 and
4.1.0 were released and that is what is causing the problem fixed by
Dave's patch.
Steve Ellcey
sje@cup.hp.com
Original patch by Dave Edelsohn:
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00876.html
* g++.dg/opt/pr15551.C: Include cstdio.
(main): Use remove instead of unlink.
Index: pr15551.C
===================================================================
*** pr15551.C (revision 113190)
--- pr15551.C (working copy)
***************
*** 7,12 ****
--- 7,13 ----
#include <cstring>
#include <fstream>
+ #include <cstdio>
using namespace std;
ostream* logfile;
*************** int main () {
*** 19,25 ****
strcpy(expList, "foo");
delete logfile;
! unlink ("bar");
return 0;
}
--- 20,26 ----
strcpy(expList, "foo");
delete logfile;
! remove ("bar");
return 0;
}