public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/40144] New: ice in common_handle_option
@ 2009-05-14 10:47 dcb314 at hotmail dot com
2009-05-14 10:54 ` [Bug driver/40144] [4.5 Regression] " rguenth at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2009-05-14 10:47 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile the Suse Linux package gnuboy-1.0.3-1060.55
with the GNU g++ version 4.5 snapshot 20090507.
The compiler said
gcc -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -pedantic -Wall -Wno-implicit
-Wno-long-long -O3 -fstrength-reduce -fthread-jumps -fcse-follow-jumps
-fcse-skip-blocks -frerun-cse-after-loop -fexpensive-optimizations
-fforce-addr -fomit-frame-pointer -I. -I/usr/local/include -I./sys/nix
-DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c lcd.c -o lcd.o
cc1: internal compiler error: in common_handle_option, at opts.c:2079
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
I'd like to be able to show the C code that causes this problem, but the
problem appears to be in the handling of options to the compiler.
valgrind doesn't seem to help.
The code at line 2079 of opts.c is
default:
/* If the flag was handled in a standard way, assume the lack of
processing here is intentional. */
gcc_assert (cl_options[scode].flag_var);
break;
which doesn't help me much. It would be better code if it gave us a clue
about the unexpected value of scode or perhaps a sanity check on
the value of scode before using it as an index into cl_options
might help.
--
Summary: ice in common_handle_option
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
@ 2009-05-14 10:54 ` rguenth at gcc dot gnu dot org
2009-05-14 11:20 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-14 10:54 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ice in common_handle_option |[4.5 Regression] ice in
| |common_handle_option
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
2009-05-14 10:54 ` [Bug driver/40144] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-05-14 11:20 ` reichelt at gcc dot gnu dot org
2009-05-14 11:27 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-05-14 11:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from reichelt at gcc dot gnu dot org 2009-05-14 11:20 -------
Confirmed. The option -fcse-skip-blocks is the culprit.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-05-14 11:20:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
2009-05-14 10:54 ` [Bug driver/40144] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-05-14 11:20 ` reichelt at gcc dot gnu dot org
@ 2009-05-14 11:27 ` reichelt at gcc dot gnu dot org
2009-05-14 20:15 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-05-14 11:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2009-05-14 11:26 -------
Steven, that is probably fallout from your patch:
2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
* dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
(cprop, hoist, pre, store_motion): New debug counters.
* tree-pass.h (pass_tracer): Move to list of gimple passes, it
is not an RTL pass anymore.
(pass_profiling): Remove extern decl for pass removed in 2005.
(pass_gcse, pass_jump_bypass): Remove.
[...]
* common.opt: Remove flag_cse_skip_blocks, adjust documentation to
make it clear that -fcse-skip-blocks is a no-op for backward compat.
[...]
A crash doesn't look like a no-op to me ;-)
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |steven at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
` (2 preceding siblings ...)
2009-05-14 11:27 ` reichelt at gcc dot gnu dot org
@ 2009-05-14 20:15 ` steven at gcc dot gnu dot org
2009-05-14 20:24 ` steven at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-05-14 20:15 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|steven at gcc dot gnu dot |
|org |
AssignedTo|unassigned at gcc dot gnu |steven at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2009-05-14 11:20:31 |2009-05-14 20:14:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
` (3 preceding siblings ...)
2009-05-14 20:15 ` steven at gcc dot gnu dot org
@ 2009-05-14 20:24 ` steven at gcc dot gnu dot org
2009-05-14 20:57 ` steven at gcc dot gnu dot org
2009-05-14 20:57 ` steven at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-05-14 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from steven at gcc dot gnu dot org 2009-05-14 20:24 -------
FWIW:
-fstrength-reduce is a no-op
-fcse-follow-jumps is a no-op
-fcse-skip-blocks -is a no-op (the crash will be fixed before the day is over)
-fforce-addr isa no-op
The gnuboy maintainers should probably look into updating their Makefile, if
they want to hand-tune the optimizations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
` (5 preceding siblings ...)
2009-05-14 20:57 ` steven at gcc dot gnu dot org
@ 2009-05-14 20:57 ` steven at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-05-14 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from steven at gcc dot gnu dot org 2009-05-14 20:57 -------
http://gcc.gnu.org/viewcvs?view=rev&revision=147543
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/40144] [4.5 Regression] ice in common_handle_option
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
` (4 preceding siblings ...)
2009-05-14 20:24 ` steven at gcc dot gnu dot org
@ 2009-05-14 20:57 ` steven at gcc dot gnu dot org
2009-05-14 20:57 ` steven at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-05-14 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from steven at gcc dot gnu dot org 2009-05-14 20:57 -------
Subject: Bug 40144
Author: steven
Date: Thu May 14 20:56:54 2009
New Revision: 147543
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147543
Log:
PR driver/40144
* opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/opts.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40144
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-05-14 20:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-14 10:47 [Bug driver/40144] New: ice in common_handle_option dcb314 at hotmail dot com
2009-05-14 10:54 ` [Bug driver/40144] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-05-14 11:20 ` reichelt at gcc dot gnu dot org
2009-05-14 11:27 ` reichelt at gcc dot gnu dot org
2009-05-14 20:15 ` steven at gcc dot gnu dot org
2009-05-14 20:24 ` steven at gcc dot gnu dot org
2009-05-14 20:57 ` steven at gcc dot gnu dot org
2009-05-14 20:57 ` steven 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).