This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37305] New: ice in set_value_range, at tree-vrp.c:397
- From: "regehr at cs dot utah dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2008 21:18:58 -0000
- Subject: [Bug c/37305] New: ice in set_value_range, at tree-vrp.c:397
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Seen on Ubuntu Hardy.
regehr@john-home:~/volatile/tmp17$ current-gcc -O2 small.c
small.c: In function ?func_24?:
small.c:14: internal compiler error: in set_value_range, at tree-vrp.c:397
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
regehr@john-home:~/volatile/tmp17$ 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
Thread model: posix
gcc version 4.4.0 20080831 (experimental) (GCC)
regehr@john-home:~/volatile/tmp17$ cat small.c
typedef int int32_t;
typedef unsigned int uint32_t;
static inline int
safe_add_s_s (int si1, int si2)
{
if ((si1 > 0) && (si2 > 0) && (si1 > (si2)) || (si1 < 0) && (si2 < 0)
&& (si1 < ((-2147483647 - 1) - si2)))
return si1;
}
uint32_t g_8;
uint32_t
func_24 (int32_t p_25)
{
uint32_t l_30 = -1L;
if ((safe_mod_u_u (1, 1)) | (safe_add_s_s (g_8, l_30)))
return 1;
}
--
Summary: ice in set_value_range, at tree-vrp.c:397
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=37305