public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
@ 2007-05-16 15:58 tbm at cyrius dot com
2007-05-16 15:59 ` [Bug middle-end/31959] " tbm at cyrius dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2007-05-16 15:58 UTC (permalink / raw)
To: gcc-bugs
4.3 ICEs during error recovery. This doesn't happen with 4.2.
(sid)24008:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O2 -Werror btree.c
cc1: warnings being treated as errors
btree.c: In function 'bt_deref':
btree.c:20: error: passing argument 1 of 'vbt_deref' discards qualifiers from
pointer target type
btree.c: In function 'btree_fetch':
btree.c:26: internal compiler error: in expand_builtin_expect, at
builtins.c:5112
--
Summary: [4.3 Regression] ICE in expand_builtin_expect, at
builtins.c:5112
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
@ 2007-05-16 15:59 ` tbm at cyrius dot com
2007-06-11 23:09 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2007-05-16 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tbm at cyrius dot com 2007-05-16 16:58 -------
struct btree_priv *area;
typedef struct bt_node_t
{
int next;
int used;
}
bt_leaf_t;
typedef union bt_page_t
{
bt_leaf_t leaf;
}
bt_page_t;
static inline bt_page_t *
vbt_deref (struct btree_priv *bt)
{
}
static inline bt_page_t *
bt_deref (const struct btree_priv *bt)
{
return vbt_deref ((struct btree_priv *) bt);
}
btree_fetch (struct btree_priv *area)
{
int pos;
const bt_leaf_t *leaf;
if (__builtin_expect ((pos + 1 >= leaf->used), 0))
{
leaf = &bt_deref (area)->leaf;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
2007-05-16 15:59 ` [Bug middle-end/31959] " tbm at cyrius dot com
@ 2007-06-11 23:09 ` pinskia at gcc dot gnu dot org
2007-06-11 23:11 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-11 23:09 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
2007-05-16 15:59 ` [Bug middle-end/31959] " tbm at cyrius dot com
2007-06-11 23:09 ` pinskia at gcc dot gnu dot org
@ 2007-06-11 23:11 ` pinskia at gcc dot gnu dot org
2007-06-11 23:13 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-11 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-06-11 23:11 -------
Part of the problem is PR 29478 which causes this warning/error to show up.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |29478
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
` (2 preceding siblings ...)
2007-06-11 23:11 ` pinskia at gcc dot gnu dot org
@ 2007-06-11 23:13 ` pinskia at gcc dot gnu dot org
2007-06-20 6:40 ` jakub at gcc dot gnu dot org
2007-06-20 9:48 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-11 23:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-06-11 23:13 -------
Maybe the assert should be changed to check error count.
/* When guessing was done, the hints should be already stripped away. */
gcc_assert (!flag_guess_branch_prob);
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-06-11 23:13:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
` (3 preceding siblings ...)
2007-06-11 23:13 ` pinskia at gcc dot gnu dot org
@ 2007-06-20 6:40 ` jakub at gcc dot gnu dot org
2007-06-20 9:48 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20 6:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-06-20 06:40 -------
Subject: Bug 31959
Author: jakub
Date: Wed Jun 20 06:39:53 2007
New Revision: 125875
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125875
Log:
PR middle-end/31959
* builtins.c: Include diagnostic.h.
(expand_builtin_expect): Make gcc_assert more permissive.
* Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
* gcc.dg/pr31959.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr31959.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/builtins.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
` (4 preceding siblings ...)
2007-06-20 6:40 ` jakub at gcc dot gnu dot org
@ 2007-06-20 9:48 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20 9:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2007-06-20 09:48 -------
Fixed.
--
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=31959
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-06-20 9:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 15:58 [Bug middle-end/31959] New: [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112 tbm at cyrius dot com
2007-05-16 15:59 ` [Bug middle-end/31959] " tbm at cyrius dot com
2007-06-11 23:09 ` pinskia at gcc dot gnu dot org
2007-06-11 23:11 ` pinskia at gcc dot gnu dot org
2007-06-11 23:13 ` pinskia at gcc dot gnu dot org
2007-06-20 6:40 ` jakub at gcc dot gnu dot org
2007-06-20 9:48 ` jakub 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).