public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14672] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
@ 2004-03-21 19:16 ` marcus at jet dot franken dot de
2004-03-21 21:38 ` [Bug middle-end/14672] [tree-ssa] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marcus at jet dot franken dot de @ 2004-03-21 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From marcus at jet dot franken dot de 2004-03-21 19:16 -------
Created an attachment (id=5964)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5964&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator
@ 2004-03-21 19:16 marcus at jet dot franken dot de
2004-03-21 19:16 ` [Bug c/14672] " marcus at jet dot franken dot de
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: marcus at jet dot franken dot de @ 2004-03-21 19:16 UTC (permalink / raw)
To: gcc-bugs
Hi, the attached testcase fails with:
gcc -O2 -c wintab.i
wintab.i: In function `f':
wintab.i:11: warning: assignment from incompatible pointer type
wintab.i:8: error: Invalid operand to binary operator
(struct s * *)&a<D1062> - 800B;
wintab.i:8: internal compiler error: verify_stmts failed.
--
Summary: ICE: verify_stmts failed/ Invalid operand to binary
operator
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
2004-03-21 19:16 ` [Bug c/14672] " marcus at jet dot franken dot de
@ 2004-03-21 21:38 ` pinskia at gcc dot gnu dot org
2004-03-22 16:23 ` epanelelytha at kellertimo dot de
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-21 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-21 21:38 -------
The code is invalid (because of the cast to the wrong to type) but here is an example where it still ICEs
on the valid code:
typedef struct s {
int x;
} ts, *pts;
static ts a[1];
void f(int n)
{
pts t;
t = &a[n - 200];
}
*.useless is adding casts for some reason.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2004-03-21 21:38:40
date| |
Summary|ICE: verify_stmts failed/ |[tree-ssa] ICE: verify_stmts
|Invalid operand to binary |failed/ Invalid operand to
|operator |binary operator
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
2004-03-21 19:16 ` [Bug c/14672] " marcus at jet dot franken dot de
2004-03-21 21:38 ` [Bug middle-end/14672] [tree-ssa] " pinskia at gcc dot gnu dot org
@ 2004-03-22 16:23 ` epanelelytha at kellertimo dot de
2004-03-22 16:29 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: epanelelytha at kellertimo dot de @ 2004-03-22 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From epanelelytha at kellertimo dot de 2004-03-22 16:23 -------
Is this the same bug as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14468?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
` (2 preceding siblings ...)
2004-03-22 16:23 ` epanelelytha at kellertimo dot de
@ 2004-03-22 16:29 ` pinskia at gcc dot gnu dot org
2004-04-03 1:29 ` pinskia at gcc dot gnu dot org
2004-04-06 20:15 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-22 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-22 16:29 -------
It is almost the same bug and most likely get fixed by me disable the lowering in the front-end.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
` (3 preceding siblings ...)
2004-03-22 16:29 ` pinskia at gcc dot gnu dot org
@ 2004-04-03 1:29 ` pinskia at gcc dot gnu dot org
2004-04-06 20:15 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-03 1:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-03 01:29 -------
Note I see both of these in Gfortran after my cast elimiation pass.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-03-21 21:38:40 |2004-04-03 01:29:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
` (4 preceding siblings ...)
2004-04-03 1:29 ` pinskia at gcc dot gnu dot org
@ 2004-04-06 20:15 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-06 20:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-06 20:14 -------
Fixed by:
* tree-simple.c (is_gimple_min_invariant): Disallow &a+i.
* tree-ssa-ccp.c (maybe_fold_stmt_addition): Rename from
maybe_fold_stmt_plus. Handle MINUS_EXPR.
(fold_stmt_r): Pass MINUS_EXPR to it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14672
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-04-06 20:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-21 19:16 [Bug c/14672] New: ICE: verify_stmts failed/ Invalid operand to binary operator marcus at jet dot franken dot de
2004-03-21 19:16 ` [Bug c/14672] " marcus at jet dot franken dot de
2004-03-21 21:38 ` [Bug middle-end/14672] [tree-ssa] " pinskia at gcc dot gnu dot org
2004-03-22 16:23 ` epanelelytha at kellertimo dot de
2004-03-22 16:29 ` pinskia at gcc dot gnu dot org
2004-04-03 1:29 ` pinskia at gcc dot gnu dot org
2004-04-06 20:15 ` 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).