public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37341] New: Internal error: Segmentation fault (program cc1)
@ 2008-09-03 2:49 regehr at cs dot utah dot edu
2008-09-03 3:11 ` [Bug rtl-optimization/37341] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: regehr at cs dot utah dot edu @ 2008-09-03 2:49 UTC (permalink / raw)
To: gcc-bugs
Seen on Ubuntu Hardy on r139924.
regehr@john-home:~/volatile/tmp23$ current-gcc -O3 small.c
current-gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
regehr@john-home:~/volatile/tmp23$ current-gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --program-prefix=current-
--enable-languages=c,c++ --prefix=/home/regehr : (reconfigured) ../configure
--program-prefix=current- --enable-languages=c,c++ --prefix=/home/regehr :
(reconfigured) ../configure --program-prefix=current- --enable-languages=c,c++
--prefix=/home/regehr : (reconfigured) ../configure --program-prefix=current-
--enable-languages=c,c++ --prefix=/home/regehr : (reconfigured) ../configure
--program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++
--no-create --no-recursion : (reconfigured) ../configure
--program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++
--no-create --no-recursion
Thread model: posix
gcc version 4.4.0 20080903 (experimental) (GCC)
regehr@john-home:~/volatile/tmp23$ cat small.c
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
__extension__ typedef long long int int64_t;
typedef unsigned int uint32_t;
static inline int
lshift_s_s (int left, int right)
{
if ((left < 0) || (right < 0) || (right >= sizeof (int) * 8)
|| (left > (1 >> right)))
return left;
}
static inline uint32_t
safe_mul_int32_t_s_s (int32_t si1, int32_t si2)
{
if (si2 > 0)
{
}
else if ((si1) && (si2 < (2147483647 / si1)))
return si1;
return si1 * si2;
}
static inline uint32_t
safe_mod_int32_t_s_s (int32_t si1, uint32_t si2)
{
}
static inline uint32_t
safe_div_int32_t_s_s (int32_t si1, uint32_t si2)
{
return si1;
}
int16_t g_223;
int32_t g_243;
int32_t func_100 (int8_t p_102, int64_t p_104);
uint32_t
func_45 (int64_t p_47, uint32_t p_48, uint32_t p_49)
{
for (0; 1; 1)
{
uint32_t l_281;
if (safe_div_int32_t_s_s
((safe_mul_int32_t_s_s
(func_100 (p_48, 1),
(lshift_s_s (g_223, g_243)))) < (safe_mod_int32_t_s_s (l_281,
p_48)),
1))
return 1;
}
}
int32_t
func_100 (int8_t p_102, int64_t p_104)
{
int8_t l_105 = 0xB6L;
return l_105;
}
--
Summary: Internal error: Segmentation fault (program cc1)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: regehr at cs dot utah dot edu
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37341
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/37341] Internal error: Segmentation fault (program cc1)
2008-09-03 2:49 [Bug c/37341] New: Internal error: Segmentation fault (program cc1) regehr at cs dot utah dot edu
@ 2008-09-03 3:11 ` pinskia at gcc dot gnu dot org
2008-09-03 3:14 ` regehr at cs dot utah dot edu
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-03 3:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-03 03:10 -------
Looks like the same as PR 37290.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |37290
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37341
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/37341] Internal error: Segmentation fault (program cc1)
2008-09-03 2:49 [Bug c/37341] New: Internal error: Segmentation fault (program cc1) regehr at cs dot utah dot edu
2008-09-03 3:11 ` [Bug rtl-optimization/37341] " pinskia at gcc dot gnu dot org
@ 2008-09-03 3:14 ` regehr at cs dot utah dot edu
2008-09-03 8:46 ` rguenth at gcc dot gnu dot org
2008-10-08 8:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: regehr at cs dot utah dot edu @ 2008-09-03 3:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from regehr at cs dot utah dot edu 2008-09-03 03:12 -------
(In reply to comment #1)
> Looks like the same as PR 37290.
>
Sorry... I misremembered that the last segfault I reported had been fixed
already.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37341
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/37341] Internal error: Segmentation fault (program cc1)
2008-09-03 2:49 [Bug c/37341] New: Internal error: Segmentation fault (program cc1) regehr at cs dot utah dot edu
2008-09-03 3:11 ` [Bug rtl-optimization/37341] " pinskia at gcc dot gnu dot org
2008-09-03 3:14 ` regehr at cs dot utah dot edu
@ 2008-09-03 8:46 ` rguenth at gcc dot gnu dot org
2008-10-08 8:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-03 8:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-09-03 08:45 -------
It is.
*** This bug has been marked as a duplicate of 37290 ***
--
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=37341
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/37341] Internal error: Segmentation fault (program cc1)
2008-09-03 2:49 [Bug c/37341] New: Internal error: Segmentation fault (program cc1) regehr at cs dot utah dot edu
` (2 preceding siblings ...)
2008-09-03 8:46 ` rguenth at gcc dot gnu dot org
@ 2008-10-08 8:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-08 8:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-10-08 08:13 -------
Subject: Bug 37341
Author: jakub
Date: Wed Oct 8 08:12:25 2008
New Revision: 140966
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140966
Log:
PR target/36635
PR target/37290
PR rtl-optimization/37341
* cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
to ORIG_BB, pass through ORIG_BB recursively.
(cse_condition_code_reg): Adjust caller.
* gcc.c-torture/compile/pr37341.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr37341.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cse.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37341
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-08 8:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-03 2:49 [Bug c/37341] New: Internal error: Segmentation fault (program cc1) regehr at cs dot utah dot edu
2008-09-03 3:11 ` [Bug rtl-optimization/37341] " pinskia at gcc dot gnu dot org
2008-09-03 3:14 ` regehr at cs dot utah dot edu
2008-09-03 8:46 ` rguenth at gcc dot gnu dot org
2008-10-08 8:15 ` 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).