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: PR debug/29232 [VTA] move assign rather than debug stmt in phiopt


On Thu, Sep 03, 2009 at 06:22:19PM -0300, Alexandre Oliva wrote:
> for  gcc/testsuite/ChangeLog
> from  Alexandre Oliva  <aoliva@redhat.com>
> 
> 	PR debug/41232
> 	* gcc.dg/pr41232.c: New.

The testcase needs a small change:

--- gcc/testsuite/gcc.dg/pr41232.c	2009-09-04 11:40:16.000000000 +0200
+++ gcc/testsuite/gcc.dg/pr41232.c	2009-09-04 12:53:53.000000000 +0200
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -g" } */
+extern int atoi (const char *);
+extern int sprintf (char *, const char *, ...);
 void malloc_init() {
   char *cptr;
   char buf[1];

Otherwise it fails also with the patch.  Even with the prototypes it
fails without the patch.

	Jakub


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