* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
@ 2010-10-03 19:39 ` rguenth at gcc dot gnu.org
2010-10-03 19:59 ` rguenth at gcc dot gnu.org
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-03 19:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
Component|c++ |tree-optimization
Target Milestone|--- |4.6.0
Summary|ice in |[4.6 Regression] ice in
|gimple_fold_obj_type_ref_kn |gimple_fold_obj_type_ref_kn
|own_binfo with -O2 |own_binfo with -O2
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
2010-10-03 19:39 ` [Bug tree-optimization/45875] [4.6 Regression] " rguenth at gcc dot gnu.org
@ 2010-10-03 19:59 ` rguenth at gcc dot gnu.org
2010-10-03 20:22 ` dcb314 at hotmail dot com
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-03 19:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-03 19:59:11 UTC ---
Btw, please don't strip CPP line notes from preprocessed source, that makes
un-including impossible.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
2010-10-03 19:39 ` [Bug tree-optimization/45875] [4.6 Regression] " rguenth at gcc dot gnu.org
2010-10-03 19:59 ` rguenth at gcc dot gnu.org
@ 2010-10-03 20:22 ` dcb314 at hotmail dot com
2010-10-03 20:39 ` rguenth at gcc dot gnu.org
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: dcb314 at hotmail dot com @ 2010-10-03 20:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #3 from dcb <dcb314 at hotmail dot com> 2010-10-03 20:22:39 UTC ---
(In reply to comment #2)
> Btw, please don't strip CPP line notes from preprocessed source, that makes
> un-including impossible.
Two questions
1. What is un-including, please ?
2. So instead of the grep -v "^#" I normally do
to strip pre-processor lines, what would you like instead ?
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (2 preceding siblings ...)
2010-10-03 20:22 ` dcb314 at hotmail dot com
@ 2010-10-03 20:39 ` rguenth at gcc dot gnu.org
2010-10-04 1:02 ` hjl.tools at gmail dot com
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-03 20:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-03 20:39:34 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > Btw, please don't strip CPP line notes from preprocessed source, that makes
> > un-including impossible.
>
> Two questions
>
> 1. What is un-including, please ?
un-include is a script that can selectively replace system header contents
with proper #include directives. That allows for example to modify a
testcase to build with slightly different OS / multilib combinations.
> 2. So instead of the grep -v "^#" I normally do
> to strip pre-processor lines, what would you like instead ?
Nothing. Keep it just like GCC produces it.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (3 preceding siblings ...)
2010-10-03 20:39 ` rguenth at gcc dot gnu.org
@ 2010-10-04 1:02 ` hjl.tools at gmail dot com
2010-10-13 14:48 ` jamborm at gcc dot gnu.org
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-04 1:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamborm at gcc dot gnu.org
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-04 01:02:17 UTC ---
It is caused by revision 159507:
http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00559.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (4 preceding siblings ...)
2010-10-04 1:02 ` hjl.tools at gmail dot com
@ 2010-10-13 14:48 ` jamborm at gcc dot gnu.org
2010-10-13 22:14 ` dcb314 at hotmail dot com
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-13 14:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.10.13 14:48:12
Ever Confirmed|0 |1
--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-13 14:48:12 UTC ---
Mine.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (5 preceding siblings ...)
2010-10-13 14:48 ` jamborm at gcc dot gnu.org
@ 2010-10-13 22:14 ` dcb314 at hotmail dot com
2010-10-13 22:17 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: dcb314 at hotmail dot com @ 2010-10-13 22:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #8 from dcb <dcb314 at hotmail dot com> 2010-10-13 22:14:03 UTC ---
(In reply to comment #6)
> This testcase was reduced from testsuite/g++.dg/abi/covariant3.C, but is seems
> to be the same problem.
So no one makes sure that the standard gcc/g++ testsuite
compiles without valgrind errors at all times ?
I would have thought that would be a useful sanity
check and some useful work for someone.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (6 preceding siblings ...)
2010-10-13 22:14 ` dcb314 at hotmail dot com
@ 2010-10-13 22:17 ` pinskia at gcc dot gnu.org
2010-10-14 18:52 ` jamborm at gcc dot gnu.org
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-10-13 22:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-13 22:16:56 UTC ---
(In reply to comment #8)>
> So no one makes sure that the standard gcc/g++ testsuite
> compiles without valgrind errors at all times ?
No what happens is that g++.dg/abi testsuite is not run at -O1 but only at -O0
so of course this was not detected in the testsuite even with valgrind running
:).
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (7 preceding siblings ...)
2010-10-13 22:17 ` pinskia at gcc dot gnu.org
@ 2010-10-14 18:52 ` jamborm at gcc dot gnu.org
2010-10-14 22:49 ` zsojka at seznam dot cz
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-14 18:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsojka at seznam dot cz
--- Comment #10 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-14 18:51:52 UTC ---
*** Bug 45921 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (8 preceding siblings ...)
2010-10-14 18:52 ` jamborm at gcc dot gnu.org
@ 2010-10-14 22:49 ` zsojka at seznam dot cz
2010-10-15 12:16 ` jamborm at gcc dot gnu.org
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-14 22:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #11 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-14 22:49:12 UTC ---
Created attachment 22045
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22045
reduced testcase from comment #1
Reduced from the original testcase
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (9 preceding siblings ...)
2010-10-14 22:49 ` zsojka at seznam dot cz
@ 2010-10-15 12:16 ` jamborm at gcc dot gnu.org
2010-10-21 13:06 ` jamborm at gcc dot gnu.org
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-15 12:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #12 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-15 12:15:32 UTC ---
(In reply to comment #11)
> Created attachment 22045 [details]
> reduced testcase from comment #1
>
> Reduced from the original testcase
Hm, this must a be a different bug than the problem with he testcase
in comment #6. I have just posted a fix to the latter:
http://gcc.gnu.org/ml/gcc-patches/2010-10/msg01328.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (10 preceding siblings ...)
2010-10-15 12:16 ` jamborm at gcc dot gnu.org
@ 2010-10-21 13:06 ` jamborm at gcc dot gnu.org
2010-10-21 14:35 ` jamborm at gcc dot gnu.org
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-21 13:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #13 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-21 13:06:20 UTC ---
I have just posted a patch fixing the original issue reported in this
bug to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2010-10/msg01822.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (11 preceding siblings ...)
2010-10-21 13:06 ` jamborm at gcc dot gnu.org
@ 2010-10-21 14:35 ` jamborm at gcc dot gnu.org
2010-10-26 3:52 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-21 14:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #14 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-21 14:35:05 UTC ---
Author: jamborm
Date: Thu Oct 21 14:34:58 2010
New Revision: 165780
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165780
Log:
2010-10-21 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/45875
* tree.c (get_binfo_at_offset): Remove initial zero offset test.
* testsuite/g++.dg/ipa/pr45875.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ipa/pr45875.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (12 preceding siblings ...)
2010-10-21 14:35 ` jamborm at gcc dot gnu.org
@ 2010-10-26 3:52 ` jakub at gcc dot gnu.org
2010-11-01 16:00 ` jamborm at gcc dot gnu.org
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-26 3:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-26 03:51:52 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (13 preceding siblings ...)
2010-10-26 3:52 ` jakub at gcc dot gnu.org
@ 2010-11-01 16:00 ` jamborm at gcc dot gnu.org
2010-11-02 15:06 ` jamborm at gcc dot gnu.org
2010-11-02 15:25 ` jamborm at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-11-01 16:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #16 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-11-01 16:00:32 UTC ---
No, it is not, it happened that two different bug were reported in
this PR. On the other hand, I have just submitted a patch for the
remaining issue:
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00043.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (14 preceding siblings ...)
2010-11-01 16:00 ` jamborm at gcc dot gnu.org
@ 2010-11-02 15:06 ` jamborm at gcc dot gnu.org
2010-11-02 15:25 ` jamborm at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-11-02 15:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
--- Comment #17 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-11-02 15:06:28 UTC ---
Author: jamborm
Date: Tue Nov 2 15:06:21 2010
New Revision: 166190
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166190
Log:
2010-11-02 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/45875
* gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
(gimple_get_relevant_ref_binfo): Detect primary bases according to
their field offset.
* testsuite/g++.dg/torture/pr45875.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr45875.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-fold.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2
2010-10-03 18:38 [Bug c++/45875] New: ice in gimple_fold_obj_type_ref_known_binfo with -O2 dcb314 at hotmail dot com
` (15 preceding siblings ...)
2010-11-02 15:06 ` jamborm at gcc dot gnu.org
@ 2010-11-02 15:25 ` jamborm at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-11-02 15:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #18 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-11-02 15:25:02 UTC ---
Now it is fixed.
^ permalink raw reply [flat|nested] 18+ messages in thread