public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
@ 2011-06-07 7:17 reichelt at gcc dot gnu.org
2011-06-07 7:22 ` [Bug tree-optimization/49309] " reichelt at gcc dot gnu.org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-06-07 7:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Summary: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts
failed: type mismatch in pointer plus expression
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following testcase compiled with "-fmudflap -O" triggers an ICE
=========================================
struct A
{
int i;
A();
A(const A&);
};
inline void foo(A a) { a = A(); }
void bar() { foo(A()); }
=========================================
bug.cc: In function 'void bar()':
bug.cc:11:6: error: type mismatch in pointer plus expression
struct A & restrict
struct A *
long unsigned int
D.1282_15 = &D.1260 + 0;
bug.cc:11:6: internal compiler error: verify_gimple failed
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
@ 2011-06-07 7:22 ` reichelt at gcc dot gnu.org
2011-06-12 13:47 ` rguenth at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-06-07 7:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
2011-06-07 7:22 ` [Bug tree-optimization/49309] " reichelt at gcc dot gnu.org
@ 2011-06-12 13:47 ` rguenth at gcc dot gnu.org
2011-06-27 16:09 ` jakub at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-12 13:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
2011-06-07 7:22 ` [Bug tree-optimization/49309] " reichelt at gcc dot gnu.org
2011-06-12 13:47 ` rguenth at gcc dot gnu.org
@ 2011-06-27 16:09 ` jakub at gcc dot gnu.org
2011-07-12 21:07 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-27 16:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.1 |4.6.2
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-27 12:33:15 UTC ---
GCC 4.6.1 is being released.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2011-06-27 16:09 ` jakub at gcc dot gnu.org
@ 2011-07-12 21:07 ` pinskia at gcc dot gnu.org
2011-07-12 21:19 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-12 21:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.07.12 21:06:29
AssignedTo|unassigned at gcc dot |pinskia at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-12 21:06:29 UTC ---
Simple fix:
Index: tree-mudflap.c
===================================================================
--- tree-mudflap.c (revision 62112)
+++ tree-mudflap.c (working copy)
@@ -869,7 +869,7 @@ mf_xform_derefs_1 (gimple_stmt_iterator
break;
case MEM_REF:
- addr = build2 (POINTER_PLUS_EXPR, TREE_TYPE (TREE_OPERAND (t, 1)),
+ addr = fold_build2_loc (location, POINTER_PLUS_EXPR, TREE_TYPE
(TREE_OPERAND (t, 1)),
TREE_OPERAND (t, 0),
fold_convert (sizetype, TREE_OPERAND (t, 1)));
base = addr;
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2011-07-12 21:07 ` pinskia at gcc dot gnu.org
@ 2011-07-12 21:19 ` rguenth at gcc dot gnu.org
2011-07-14 20:24 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-12 21:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-12 21:18:50 UTC ---
Hm, I'd say rather
- addr = build2 (POINTER_PLUS_EXPR, TREE_TYPE (TREE_OPERAND (t, 1)),
+ addr = fold_build2_loc (location, POINTER_PLUS_EXPR, TREE_TYPE
(TREE_OPERAND (t, 0)),
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2011-07-12 21:19 ` rguenth at gcc dot gnu.org
@ 2011-07-14 20:24 ` pinskia at gcc dot gnu.org
2011-07-14 20:27 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-14 20:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-14 20:23:39 UTC ---
Author: pinskia
Date: Thu Jul 14 20:23:36 2011
New Revision: 176281
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176281
Log:
2011-07-14 Andrew Pinski <pinskia@gmail.com>
PR tree-opt/49309
* tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
Use fold_build2_loc instead of build2.
Use the correct type for the new tree.
2011-07-14 Andrew Pinski <pinskia@gmail.com>
PR tree-opt/49309
* g++.dg/torture/pr49309.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr49309.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-mudflap.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (5 preceding siblings ...)
2011-07-14 20:24 ` pinskia at gcc dot gnu.org
@ 2011-07-14 20:27 ` pinskia at gcc dot gnu.org
2011-07-14 20:57 ` [Bug tree-optimization/49309] [4.6 " pinskia at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-14 20:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-14 20:26:46 UTC ---
Fixed on the trunk will apply to the 4.6 branch soon.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (6 preceding siblings ...)
2011-07-14 20:27 ` pinskia at gcc dot gnu.org
@ 2011-07-14 20:57 ` pinskia at gcc dot gnu.org
2011-07-14 20:58 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-14 20:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-14 20:55:42 UTC ---
Author: pinskia
Date: Thu Jul 14 20:55:38 2011
New Revision: 176282
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176282
Log:
2011-07-14 Andrew Pinski <pinskia@gmail.com>
PR tree-opt/49309
* tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
Use fold_build2_loc instead of build2.
Use the correct type for the new tree.
2011-07-14 Andrew Pinski <pinskia@gmail.com>
PR tree-opt/49309
* g++.dg/torture/pr49309.C: New testcase.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/torture/pr49309.C
- copied unchanged from r176281,
trunk/gcc/testsuite/g++.dg/torture/pr49309.C
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-mudflap.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (7 preceding siblings ...)
2011-07-14 20:57 ` [Bug tree-optimization/49309] [4.6 " pinskia at gcc dot gnu.org
@ 2011-07-14 20:58 ` pinskia at gcc dot gnu.org
2011-07-15 19:49 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-14 20:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-14 20:56:23 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (8 preceding siblings ...)
2011-07-14 20:58 ` pinskia at gcc dot gnu.org
@ 2011-07-15 19:49 ` jakub at gcc dot gnu.org
2011-07-15 19:55 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-15 19:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-15 19:48:50 UTC ---
Author: jakub
Date: Fri Jul 15 19:48:46 2011
New Revision: 176327
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176327
Log:
PR testsuite/49753
PR tree-optimization/49309
* testsuite/libmudflap.c++/pass68-frag.cxx: New test.
* g++.dg/torture/pr49309.C: Remove.
Added:
trunk/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Removed:
trunk/gcc/testsuite/g++.dg/torture/pr49309.C
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libmudflap/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (9 preceding siblings ...)
2011-07-15 19:49 ` jakub at gcc dot gnu.org
@ 2011-07-15 19:55 ` jakub at gcc dot gnu.org
2011-07-25 15:26 ` ro at gcc dot gnu.org
2011-07-25 15:29 ` ro at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-15 19:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-15 19:54:01 UTC ---
Author: jakub
Date: Fri Jul 15 19:53:58 2011
New Revision: 176328
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176328
Log:
PR testsuite/49753
PR tree-optimization/49309
* testsuite/libmudflap.c++/pass68-frag.cxx: New test.
* g++.dg/torture/pr49309.C: Remove.
Added:
branches/gcc-4_6-branch/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Removed:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/torture/pr49309.C
Modified:
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/libmudflap/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (10 preceding siblings ...)
2011-07-15 19:55 ` jakub at gcc dot gnu.org
@ 2011-07-25 15:26 ` ro at gcc dot gnu.org
2011-07-25 15:29 ` ro at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: ro at gcc dot gnu.org @ 2011-07-25 15:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #10 from Rainer Orth <ro at gcc dot gnu.org> 2011-07-25 15:25:37 UTC ---
Author: ro
Date: Mon Jul 25 15:25:32 2011
New Revision: 176752
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176752
Log:
gcc/testsuite:
PR testsuite/49753
* g++.dg/torture/pr49309.C: Add -fpreprocessed to dg-options.
Revert:
2011-07-15 Jakub Jelinek <jakub@redhat.com>
PR testsuite/49753
* g++.dg/torture/pr49309.C: Remove.
libmudflap:
Revert:
2011-07-15 Jakub Jelinek <jakub@redhat.com>
PR testsuite/49753
PR tree-optimization/49309
* testsuite/libmudflap.c++/pass68-frag.cxx: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr49309.C
- copied, changed from r176751,
trunk/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Removed:
trunk/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libmudflap/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/49309] [4.6 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
` (11 preceding siblings ...)
2011-07-25 15:26 ` ro at gcc dot gnu.org
@ 2011-07-25 15:29 ` ro at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: ro at gcc dot gnu.org @ 2011-07-25 15:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49309
--- Comment #11 from Rainer Orth <ro at gcc dot gnu.org> 2011-07-25 15:28:30 UTC ---
Author: ro
Date: Mon Jul 25 15:28:27 2011
New Revision: 176753
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176753
Log:
gcc/testsuite:
PR testsuite/49753
* g++.dg/torture/pr49309.C: Add -fpreprocessed to dg-options.
Revert:
2011-07-15 Jakub Jelinek <jakub@redhat.com>
PR testsuite/49753
* g++.dg/torture/pr49309.C: Remove.
libmudflap:
Revert:
2011-07-15 Jakub Jelinek <jakub@redhat.com>
PR testsuite/49753
PR tree-optimization/49309
* testsuite/libmudflap.c++/pass68-frag.cxx: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/torture/pr49309.C
- copied, changed from r176752,
branches/gcc-4_6-branch/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Removed:
branches/gcc-4_6-branch/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx
Modified:
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/libmudflap/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-07-25 15:29 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 7:17 [Bug tree-optimization/49309] New: [4.6/4.7 Regression] ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression reichelt at gcc dot gnu.org
2011-06-07 7:22 ` [Bug tree-optimization/49309] " reichelt at gcc dot gnu.org
2011-06-12 13:47 ` rguenth at gcc dot gnu.org
2011-06-27 16:09 ` jakub at gcc dot gnu.org
2011-07-12 21:07 ` pinskia at gcc dot gnu.org
2011-07-12 21:19 ` rguenth at gcc dot gnu.org
2011-07-14 20:24 ` pinskia at gcc dot gnu.org
2011-07-14 20:27 ` pinskia at gcc dot gnu.org
2011-07-14 20:57 ` [Bug tree-optimization/49309] [4.6 " pinskia at gcc dot gnu.org
2011-07-14 20:58 ` pinskia at gcc dot gnu.org
2011-07-15 19:49 ` jakub at gcc dot gnu.org
2011-07-15 19:55 ` jakub at gcc dot gnu.org
2011-07-25 15:26 ` ro at gcc dot gnu.org
2011-07-25 15:29 ` ro 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).