PR debug/29232 [VTA] move assign rather than debug stmt in phiopt

Jakub Jelinek jakub@redhat.com
Fri Sep 4 10:55:00 GMT 2009


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



More information about the Gcc-patches mailing list