public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals
@ 2008-09-04 10:04 tbm at cyrius dot com
2008-09-04 10:05 ` [Bug tree-optimization/37368] " tbm at cyrius dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2008-09-04 10:04 UTC (permalink / raw)
To: gcc-bugs
With current trunk (revision 139978)
(sid)743:tbm@em64t: ..4.3-2008-09-04-r139978/gcc] ./cc1 -quiet -O
~/xserver-xorg-video-mga.i
../../src/mga_dga.c: In function 'MGASetupDGAMode':
../../src/mga_dga.c:92: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
--
Summary: [4.4 Regression] Segfault in remove_unused_locals
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
@ 2008-09-04 10:05 ` tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2008-09-04 10:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tbm at cyrius dot com 2008-09-04 10:04 -------
Program received signal SIGSEGV, Segmentation fault.
remove_unused_locals () at gcc/tree-ssa-live.c:589
589 var_ann (t)->used = false;
(gdb) where
#0 remove_unused_locals () at gcc/tree-ssa-live.c:589
#1 0x00000000006404b5 in execute_function_todo (data=<value optimized out>) at
gcc/passes.c:951
#2 0x000000000064071f in execute_todo (flags=205336536) at gcc/passes.c:1024
#3 0x000000000064090b in execute_one_pass (pass=0x101b200) at
gcc/passes.c:1209
#4 0x0000000000640c35 in execute_pass_list (pass=0x101b200) at
gcc/passes.c:1326
#5 0x00000000007374bc in tree_rest_of_compilation (fndecl=0x7fa70c5d4c00) at
gcc/tree-optimize.c:418
#6 0x00000000008b0640 in cgraph_expand_function (node=0x7fa70c5d4d00) at
gcc/cgraphunit.c:1038
#7 0x00000000008b23b4 in cgraph_optimize () at gcc/cgraphunit.c:1097
#8 0x00000000004169c3 in c_write_global_declarations () at gcc/c-decl.c:8080
#9 0x00000000006e872f in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
at gcc/toplev.c:979
#10 0x00007fa70cebf1a6 in __libc_start_main () from /lib/libc.so.6
#11 0x00000000004044d9 in _start ()
(gdb)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
2008-09-04 10:05 ` [Bug tree-optimization/37368] " tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
@ 2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2008-09-04 10:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from tbm at cyrius dot com 2008-09-04 10:25 -------
Drop the "static" from the declaration of FindSmallestPitch() and you get:
(sid)1519:tbm@em64t: ~/delta/bin] /usr/lib/gcc-snapshot/bin/gcc -Wall -O -c
mini.c
mini.c: In function 'FindSmallestPitch':
mini.c:5: internal compiler error: in make_decl_rtl, at varasm.c:1297
Please submit a full bug report,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
` (2 preceding siblings ...)
2008-09-04 10:26 ` tbm at cyrius dot com
@ 2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 11:59 ` rguenth at gcc dot gnu dot org
2008-10-18 9:49 ` rsandifo at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2008-09-04 10:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tbm at cyrius dot com 2008-09-04 10:24 -------
Created an attachment (id=16220)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16220&action=view)
Preprocessed code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
2008-09-04 10:05 ` [Bug tree-optimization/37368] " tbm at cyrius dot com
@ 2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2008-09-04 10:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tbm at cyrius dot com 2008-09-04 10:24 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
static int
FindSmallestPitch (int i)
{
int Pitches1[5];
int *linePitches = ((void *) 0);
switch (i)
{
case 0x0519:
linePitches = Pitches1;
}
return *linePitches;
}
void MGASetupDGAMode (int i)
{
FindSmallestPitch (i);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
` (3 preceding siblings ...)
2008-09-04 10:26 ` tbm at cyrius dot com
@ 2008-09-04 11:59 ` rguenth at gcc dot gnu dot org
2008-10-18 9:49 ` rsandifo at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-04 11:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-09-04 11:57 -------
*** This bug has been marked as a duplicate of 37343 ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/37368] [4.4 Regression] Segfault in remove_unused_locals
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
` (4 preceding siblings ...)
2008-09-04 11:59 ` rguenth at gcc dot gnu dot org
@ 2008-10-18 9:49 ` rsandifo at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-10-18 9:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rsandifo at gcc dot gnu dot org 2008-10-18 09:47 -------
*** Bug 36973 has been marked as a duplicate of this bug. ***
--
rsandifo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r0bertz at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37368
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-10-18 9:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 10:04 [Bug tree-optimization/37368] New: [4.4 Regression] Segfault in remove_unused_locals tbm at cyrius dot com
2008-09-04 10:05 ` [Bug tree-optimization/37368] " tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 10:26 ` tbm at cyrius dot com
2008-09-04 11:59 ` rguenth at gcc dot gnu dot org
2008-10-18 9:49 ` rsandifo 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).