public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp
@ 2006-05-08 16:34 Georg dot Baum at post dot rwth-aachen dot de
2006-05-09 6:27 ` [Bug c/27499] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Georg dot Baum at post dot rwth-aachen dot de @ 2006-05-08 16:34 UTC (permalink / raw)
To: gcc-bugs
Now that the really baad OpenMP bugs seem to be fixed (thanhsk for that!) I
have a hopefully easy one: I get an ICE (svn from today) for the following C
code (and the C++ equivalent as well):
void f()
{
unsigned int i;
int dummy;
#pragma omp parallel for
for (i = 0; i < 5; ++i)
dummy = i;
}
LANG=C gcc-4.2 -c -fopenmp -o gcc-bug-signed.o gcc-bug-signed.c
gcc-bug-signed.c: In function 'f':
gcc-bug-signed.c:6: warning: iteration variable 'i' is unsigned
gcc-bug-signed.c:6: internal compiler error: in gimplify_omp_for, at
gimplify.c:4753
FYI icc 8.1 flags the unsigned variable as error.
--
Summary: ICE with unsigned iteration variable and -fopenmp
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Georg dot Baum at post dot rwth-aachen dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/27499] ICE with unsigned iteration variable and -fopenmp
2006-05-08 16:34 [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
@ 2006-05-09 6:27 ` pinskia at gcc dot gnu dot org
2006-05-16 10:12 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-09 6:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-09 06:27 -------
4753 gcc_assert (!TYPE_UNSIGNED (TREE_TYPE (decl)));
if (TYPE_UNSIGNED (TREE_TYPE (decl)))
warning (0, "%Hiteration variable %qE is unsigned", &elocus, decl);
We only warn but then we assert it being false, what a joke.
Anyways confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|middle-end |c
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-09 06:27:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/27499] ICE with unsigned iteration variable and -fopenmp
2006-05-08 16:34 [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
2006-05-09 6:27 ` [Bug c/27499] " pinskia at gcc dot gnu dot org
@ 2006-05-16 10:12 ` jakub at gcc dot gnu dot org
2006-05-16 10:18 ` jakub at gcc dot gnu dot org
2006-05-29 22:49 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-16 10:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2006-05-16 10:12 -------
Subject: Bug 27499
Author: jakub
Date: Tue May 16 10:12:39 2006
New Revision: 113822
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113822
Log:
PR c/27499
* gimplify.c (gimplify_omp_for): Remove assertion that iteration var
is signed.
* gcc.dg/gomp/pr27499.c: New test.
* g++.dg/gomp/pr27499.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr27499.C
trunk/gcc/testsuite/gcc.dg/gomp/pr27499.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/27499] ICE with unsigned iteration variable and -fopenmp
2006-05-08 16:34 [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
2006-05-09 6:27 ` [Bug c/27499] " pinskia at gcc dot gnu dot org
2006-05-16 10:12 ` jakub at gcc dot gnu dot org
@ 2006-05-16 10:18 ` jakub at gcc dot gnu dot org
2006-05-29 22:49 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-16 10:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-05-16 10:18 -------
Fixed in SVN.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/27499] ICE with unsigned iteration variable and -fopenmp
2006-05-08 16:34 [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
` (2 preceding siblings ...)
2006-05-16 10:18 ` jakub at gcc dot gnu dot org
@ 2006-05-29 22:49 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-29 22:49 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27499
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-05-29 22:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 16:34 [Bug middle-end/27499] New: ICE with unsigned iteration variable and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
2006-05-09 6:27 ` [Bug c/27499] " pinskia at gcc dot gnu dot org
2006-05-16 10:12 ` jakub at gcc dot gnu dot org
2006-05-16 10:18 ` jakub at gcc dot gnu dot org
2006-05-29 22:49 ` pinskia at gcc dot gnu dot 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).