public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32
@ 2010-10-02 18:49 gary at intrepid dot com
2010-10-02 18:55 ` [Bug c/45869] " gary at intrepid dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gary at intrepid dot com @ 2010-10-02 18:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
Summary: type mismatch in shift expression produces ice with
-O3 and -m32
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gary@intrepid.com
This bug has a failure mode similar to bug #42927, except the failure occurs
only when compiling the attached test case with both -O3 and -m32 on an x86_64
host. Checks must also be enabled.
The following output is produced:
vec-shift-m32-O3-ice.c: In function 'foo':
vec-shift-m32-O3-ice.c:22:1: error: type mismatch in vector shift expression
vector char *
vector char *
unsigned int
vect_var_.26_65 = vect_var_.23_64 v>> 64;
vec-shift-m32-O3-ice.c:22:1: error: type mismatch in vector shift expression
vector char *
vector char *
unsigned int
vect_var_.26_67 = vect_var_.26_66 v>> 32;
vec-shift-m32-O3-ice.c:22:1: internal compiler error: verify_stmts failed
Although the bug was detected in the 4.5.1 release, it can be reproduced in the
gcc-4.6-20100925 snapshot (SVN revision revision 164623) as well.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
@ 2010-10-02 18:55 ` gary at intrepid dot com
2010-10-02 23:16 ` [Bug c/45869] [4.5/4.6 Regression] " hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gary at intrepid dot com @ 2010-10-02 18:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
--- Comment #2 from Gary Funck <gary at intrepid dot com> 2010-10-02 18:55:10 UTC ---
Running reghunt against the 4.5 branch indicates that the following update
causes the failure:
r161951 | rguenth | 2010-07-08 11:56:08 +0000 (Thu, 08 Jul 2010) | 46 lines
2010-07-08 Richard Guenther <rguenther@suse.de>
Backport from mainline
2010-05-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44284
* tree-vect-stmts.c (vectorizable_assignment): Handle
sign-changing conversions as simple copy.
[...]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
2010-10-02 18:55 ` [Bug c/45869] " gary at intrepid dot com
@ 2010-10-02 23:16 ` hjl.tools at gmail dot com
2010-10-02 23:20 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-02 23:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
Target Milestone|--- |4.5.2
Summary|type mismatch in shift |[4.5/4.6 Regression] type
|expression produces ice |mismatch in shift
|with -O3 and -m32 |expression produces ice
| |with -O3 and -m32
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
2010-10-02 18:55 ` [Bug c/45869] " gary at intrepid dot com
2010-10-02 23:16 ` [Bug c/45869] [4.5/4.6 Regression] " hjl.tools at gmail dot com
@ 2010-10-02 23:20 ` hjl.tools at gmail dot com
2010-10-03 19:43 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-02 23:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.02 23:19:59
CC| |rguenth at gcc dot gnu.org
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
` (2 preceding siblings ...)
2010-10-02 23:20 ` hjl.tools at gmail dot com
@ 2010-10-03 19:43 ` rguenth at gcc dot gnu.org
2010-10-07 13:39 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-03 19:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-03 19:43:29 UTC ---
Mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
` (3 preceding siblings ...)
2010-10-03 19:43 ` rguenth at gcc dot gnu.org
@ 2010-10-07 13:39 ` rguenth at gcc dot gnu.org
2010-10-07 14:32 ` rguenth at gcc dot gnu.org
2010-10-07 14:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-07 13:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-07 13:39:29 UTC ---
Author: rguenth
Date: Thu Oct 7 13:39:25 2010
New Revision: 165108
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165108
Log:
2010-10-07 Richard Guenther <rguenther@suse.de>
PR middle-end/45869
* tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
of pointers.
* gcc.dg/torture/pr45869.c: New testcase.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr45869.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-cfg.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
` (4 preceding siblings ...)
2010-10-07 13:39 ` rguenth at gcc dot gnu.org
@ 2010-10-07 14:32 ` rguenth at gcc dot gnu.org
2010-10-07 14:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-07 14:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-07 14:32:26 UTC ---
Author: rguenth
Date: Thu Oct 7 14:32:20 2010
New Revision: 165113
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165113
Log:
2010-10-07 Richard Guenther <rguenther@suse.de>
PR middle-end/45869
* tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
of pointers.
* gcc.dg/torture/pr45869.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr45869.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/45869] [4.5/4.6 Regression] type mismatch in shift expression produces ice with -O3 and -m32
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
` (5 preceding siblings ...)
2010-10-07 14:32 ` rguenth at gcc dot gnu.org
@ 2010-10-07 14:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-07 14:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45869
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-07 14:53:07 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-10-07 14:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-02 18:49 [Bug c/45869] New: type mismatch in shift expression produces ice with -O3 and -m32 gary at intrepid dot com
2010-10-02 18:55 ` [Bug c/45869] " gary at intrepid dot com
2010-10-02 23:16 ` [Bug c/45869] [4.5/4.6 Regression] " hjl.tools at gmail dot com
2010-10-02 23:20 ` hjl.tools at gmail dot com
2010-10-03 19:43 ` rguenth at gcc dot gnu.org
2010-10-07 13:39 ` rguenth at gcc dot gnu.org
2010-10-07 14:32 ` rguenth at gcc dot gnu.org
2010-10-07 14:53 ` 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).