public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36635]  New: cc1 segfault from svn 137122
@ 2008-06-25 22:02 regehr at cs dot utah dot edu
  2008-06-26 10:26 ` [Bug rtl-optimization/36635] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: regehr at cs dot utah dot edu @ 2008-06-25 22:02 UTC (permalink / raw)
  To: gcc-bugs

[regehr@babel tmp31]$ 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@babel tmp31]$ 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
Thread model: posix
gcc version 4.4.0 20080625 (experimental) (GCC) 

[regehr@babel tmp31]$ cat small.c

typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
static inline unsigned int
lshift_u_u (unsigned int left, unsigned int right)
{
  if ((right >= sizeof (unsigned int))
      || (left > ((2147483647 * 2U + 1U) >> right)))
    return left;
}
static inline unsigned long int
mod_rhs (const long int rhs)
{
  return rhs;
}
static inline unsigned long int
div_rhs (const long int rhs)
{
  return rhs;
}

uint32_t g_22;
int32_t
func_53 (uint32_t p_54, uint32_t p_55, uint32_t p_56, uint8_t p_57)
{
  int32_t l_58 = 0xB8BF5144L;
  for (0; 1; p_56 -= 0)
    {
      uint32_t l_59 = -1L;
      if (((lshift_u_u ((g_22 / div_rhs (l_58)), (1 % mod_rhs (l_59))))))
        return 1;
      for (l_59 = 0; (l_59 <= -20); l_59 += 1)
        {
        }
    }
}


-- 
           Summary: cc1 segfault from svn 137122
           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=36635


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-08  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-25 22:02 [Bug c/36635] New: cc1 segfault from svn 137122 regehr at cs dot utah dot edu
2008-06-26 10:26 ` [Bug rtl-optimization/36635] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-07-05  7:58 ` [Bug target/36635] " cltang at pllab dot cs dot nthu dot edu dot tw
2008-10-07 14:59 ` jakub at gcc dot gnu dot org
2008-10-07 16:18 ` jakub at gcc dot gnu dot org
2008-10-08  8:15 ` jakub at gcc dot gnu dot org
2008-10-08  8:18 ` 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).