Patchwork [RFA,PR,tree-optimization/59749] Fix recently introduced ree bug

login
register
mail settings
Submitter Andreas Schwab
Date Jan. 16, 2014, 10:14 a.m.
Message ID <87fvoo5j3p.fsf@igel.home>
Download mbox | patch
Permalink /patch/311683/
State New
Headers show

Comments

Andreas Schwab - Jan. 16, 2014, 10:14 a.m.
* gcc.c-torture/execute/pr59747.c (fn1): Return a value.


Andreas.

Patch

Index: gcc.c-torture/execute/pr59747.c
===================================================================
--- gcc.c-torture/execute/pr59747.c	(revision 206658)
+++ gcc.c-torture/execute/pr59747.c	(working copy)
@@ -1,13 +1,13 @@ 
 extern void abort (void);
 extern void exit (int);
 
-int a[6], b, c = 1, d;
+int a[6], c = 1, d;
 short e;
 
 int __attribute__ ((noinline))
 fn1 (int p)
 {
-  b = a[p];
+  return a[p];
 }
 
 int