public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37327]  New: another ice in set_value_range, at tree-vrp.c:397
@ 2008-09-02  3:37 regehr at cs dot utah dot edu
  2008-09-02 11:54 ` [Bug tree-optimization/37327] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: regehr at cs dot utah dot edu @ 2008-09-02  3:37 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2833 bytes --]

Seen on Ubuntu Hardy using r139870.

regehr@john-home:~/volatile/tmp21$ current-gcc -O2 small.c
small.c: In function ‘func_26’:
small.c:34: warning: overflow in implicit constant conversion
small.c:27: 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/tmp21$ 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 20080901 (experimental) (GCC) 

regehr@john-home:~/volatile/tmp21$ cat small.c

typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
static inline uint32_t
safe_add_int8_t_s_s (int8_t si1, int16_t si2)
{
  if ((si1) && (si2) && (si1 > (1 - si2)) || (si1) && (si2 < 0)
      && (si1 < (-128 - si2)))
    return si1;
  return si1 + si2;
}

uint32_t g_2;
uint32_t g_113;
uint32_t g_145;
int32_t
func_17 (int32_t p_18, uint32_t p_19, uint32_t p_21)
{
  uint32_t l_23 = -1L;
  return l_23;
}

uint32_t
func_26 (uint16_t p_27)
{
  uint32_t l_424;
  if (func_93 (func_59 (safe_add_int8_t_s_s (p_27, 1))),
      func_124 (l_424, -7L, 1, g_145, 1, (safe_add_int8_t_s_s (1, 1)), 1), 1,
      1, 1)
    func_117 (1, 1,
              (safe_add_uint64_t_u_u
               (1, (safe_add_int8_t_s_s (1, 0xCDF4BE7A1B7E4629LL)))), 1);
  uint32_t l_210;
  if (func_17
      ((safe_add_int8_t_s_s (g_2, (0x6C79A83AL | func_17 (1, 1, 1)))),
       0x4C9FL, 1))
    {
      uint32_t l_212;
      if (safe_mul_int32_t_s_s
          ((1, 1, l_212, (1, (safe_add_int8_t_s_s (l_210, 1)), 1, 1)), 1))
        if (func_59 (1, (safe_add_int8_t_s_s (g_113, 1))))
          {
          }
    }
}


-- 
           Summary: another 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=37327


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

* [Bug tree-optimization/37327] [4.4 Regression] another ice in set_value_range, at tree-vrp.c:397
  2008-09-02  3:37 [Bug c/37327] New: another ice in set_value_range, at tree-vrp.c:397 regehr at cs dot utah dot edu
@ 2008-09-02 11:54 ` rguenth at gcc dot gnu dot org
  2008-09-02 13:49 ` rguenth at gcc dot gnu dot org
  2008-09-02 13:50 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-02 11:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-09-02 11:53 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
          Component|c                           |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to work|                            |4.3.2
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-02 11:53:28
               date|                            |
            Summary|another ice in              |[4.4 Regression] another ice
                   |set_value_range, at tree-   |in set_value_range, at tree-
                   |vrp.c:397                   |vrp.c:397
   Target Milestone|---                         |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37327


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

* [Bug tree-optimization/37327] [4.4 Regression] another ice in set_value_range, at tree-vrp.c:397
  2008-09-02  3:37 [Bug c/37327] New: another ice in set_value_range, at tree-vrp.c:397 regehr at cs dot utah dot edu
  2008-09-02 11:54 ` [Bug tree-optimization/37327] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-09-02 13:49 ` rguenth at gcc dot gnu dot org
  2008-09-02 13:50 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-02 13:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-09-02 13:48 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37327


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

* [Bug tree-optimization/37327] [4.4 Regression] another ice in set_value_range, at tree-vrp.c:397
  2008-09-02  3:37 [Bug c/37327] New: another ice in set_value_range, at tree-vrp.c:397 regehr at cs dot utah dot edu
  2008-09-02 11:54 ` [Bug tree-optimization/37327] [4.4 Regression] " rguenth at gcc dot gnu dot org
  2008-09-02 13:49 ` rguenth at gcc dot gnu dot org
@ 2008-09-02 13:50 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-02 13:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-09-02 13:49 -------
Subject: Bug 37327

Author: rguenth
Date: Tue Sep  2 13:48:11 2008
New Revision: 139890

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139890
Log:
2008-09-02  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/37327
        * tree-vrp.c (register_new_assert_for): Make sure to not have
        TREE_OVERFLOW set on the bound.

        * gcc.c-torture/compile/pr37327.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr37327.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37327


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

end of thread, other threads:[~2008-09-02 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-02  3:37 [Bug c/37327] New: another ice in set_value_range, at tree-vrp.c:397 regehr at cs dot utah dot edu
2008-09-02 11:54 ` [Bug tree-optimization/37327] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-09-02 13:49 ` rguenth at gcc dot gnu dot org
2008-09-02 13:50 ` rguenth 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).