public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/50637] New: gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops)
@ 2011-10-06 18:29 zsojka at seznam dot cz
2011-10-07 8:29 ` [Bug testsuite/50637] " rguenth at gcc dot gnu.org
2011-10-07 8:29 ` rguenth at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2011-10-06 18:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50637
Bug #: 50637
Summary: gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2
-flto -fpeel-loops)
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: dorit@gcc.gnu.org
The testcase accesses an array out of bounds, causing a testsuite failure with
nondefault flags:
$ gcc gcc.dg/vect/vect-align-2.c -O2 -flto -fpeel-loops
$ ./a.out
Aborted
The problem is:
...
#define N 17
...
int z[16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
...
for (i=0; i<N; i++)
for (j=0; j<N; j++)
f2.y[i][j] = z[i];
for (i=0; i<N; i++)
for (j=0; j<N; j++)
if (f2.y[i][j] != z[i])
abort ();
...
z[16] is read out of bounds.
vect-align-1.c uses:
int x[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
what might be a better solution
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/50637] gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops)
2011-10-06 18:29 [Bug testsuite/50637] New: gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops) zsojka at seznam dot cz
2011-10-07 8:29 ` [Bug testsuite/50637] " rguenth at gcc dot gnu.org
@ 2011-10-07 8:29 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-07 8:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50637
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-07 08:29:03 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/50637] gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops)
2011-10-06 18:29 [Bug testsuite/50637] New: gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops) zsojka at seznam dot cz
@ 2011-10-07 8:29 ` rguenth at gcc dot gnu.org
2011-10-07 8:29 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-07 8:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50637
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-07 08:28:53 UTC ---
Author: rguenth
Date: Fri Oct 7 08:28:48 2011
New Revision: 179648
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179648
Log:
2011-10-07 Richard Guenther <rguenther@suse.de>
PR testsuite/50637
* gcc.dg/vect/vect-align-2.c: Increase array size.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/vect/vect-align-2.c
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-07 8:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-06 18:29 [Bug testsuite/50637] New: gcc.dg/vect/vect-align-2.c is invalid (FAILs with -O2 -flto -fpeel-loops) zsojka at seznam dot cz
2011-10-07 8:29 ` [Bug testsuite/50637] " rguenth at gcc dot gnu.org
2011-10-07 8:29 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).