public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63554] New: ice in "execute_todo, at passes.c:1797" with -O3
@ 2014-10-16  6:49 dcb314 at hotmail dot com
  2014-10-16  8:44 ` [Bug c/63554] [5 Regression] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2014-10-16  6:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

            Bug ID: 63554
           Summary: ice in "execute_todo, at passes.c:1797" with -O3
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 33731
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33731&action=edit
C source code

Attached code, when compiled by 20141015, with flag -O3,
does the following

$ ../results/bin/gcc -c -O3 bug167.c
utilmod.c: In function ‘nssutil_AddSecmodDBEntry.isra.2’:
utilmod.c:609:1: internal compiler error: in execute_todo, at passes.c:1797
0xa1351b execute_todo
    ../../src/trunk/gcc/passes.c:1797
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$

The code is fine with -O2.

$ ../results/bin/gcc -c -O2 bug167.c
$
>From gcc-bugs-return-464191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 16 07:04:39 2014
Return-Path: <gcc-bugs-return-464191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23677 invoked by alias); 16 Oct 2014 07:04:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23657 invoked by uid 48); 16 Oct 2014 07:04:36 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/63554] [5 Regression] ice in "execute_todo, at passes.c:1797" with -O3
Date: Thu, 16 Oct 2014 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-63554-4-TjuONKwr8i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63554-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63554-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-10/txt/msg01212.txt.bz2
Content-length: 1234

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-10-16
                 CC|                            |trippels at gcc dot gnu.org
   Target Milestone|---                         |5.0
            Summary|ice in "execute_todo, at    |[5 Regression] ice in
                   |passes.c:1797" with -O3     |"execute_todo, at
                   |                            |passes.c:1797" with -O3
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
 ~ % cat bug167.c
char *a;
void
nssutil_ReadSecmodDB (void)
{
  long b = __builtin_object_size (0, 0);
  a = __builtin___strncat_chk (a, " ", 1, b);
}

 ~ % gcc -c -O2 bug167.c
bug167.c: In function ‘nssutil_ReadSecmodDB’:
bug167.c:3:1: internal compiler error: in execute_todo, at passes.c:1797
 nssutil_ReadSecmodDB (void)
 ^
0x10650633 execute_todo
        ../../gcc/gcc/passes.c:1797
>From gcc-bugs-return-464192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 16 07:24:30 2014
Return-Path: <gcc-bugs-return-464192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 387 invoked by alias); 16 Oct 2014 07:24:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 339 invoked by uid 48); 16 Oct 2014 07:24:26 -0000
From: "myriachan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49604] forward-declared enum's elements in class scope gets default access (class vs struct)
Date: Thu, 16 Oct 2014 07:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: myriachan at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-49604-4-vXF0Mb5DjB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49604-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-10/txt/msg01213.txt.bz2
Content-length: 674

https://gcc.gnu.org/bugzilla/show_bug.cgi?idI604

Melissa <myriachan at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |myriachan at gmail dot com

--- Comment #3 from Melissa <myriachan at gmail dot com> ---
Happens for me on 5.0.0 build 2014/10/15 (via wandbox) through 4.6.x - whenever
typed enums were added.

Simpler test case than the original:


class MyTable {
public:
    enum Constants : unsigned;
};

enum MyTable::Constants : unsigned {
    LENGTH = 12,
};

int main()
{
    return MyTable::LENGTH;
}


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

* [Bug c/63554] [5 Regression] ice in "execute_todo, at passes.c:1797" with -O3
  2014-10-16  6:49 [Bug c/63554] New: ice in "execute_todo, at passes.c:1797" with -O3 dcb314 at hotmail dot com
@ 2014-10-16  8:44 ` rguenth at gcc dot gnu.org
  2014-10-16 12:26 ` rguenth at gcc dot gnu.org
  2014-10-16 12:26 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-16  8:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.


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

* [Bug c/63554] [5 Regression] ice in "execute_todo, at passes.c:1797" with -O3
  2014-10-16  6:49 [Bug c/63554] New: ice in "execute_todo, at passes.c:1797" with -O3 dcb314 at hotmail dot com
  2014-10-16  8:44 ` [Bug c/63554] [5 Regression] " rguenth at gcc dot gnu.org
@ 2014-10-16 12:26 ` rguenth at gcc dot gnu.org
  2014-10-16 12:26 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-16 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


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

* [Bug c/63554] [5 Regression] ice in "execute_todo, at passes.c:1797" with -O3
  2014-10-16  6:49 [Bug c/63554] New: ice in "execute_todo, at passes.c:1797" with -O3 dcb314 at hotmail dot com
  2014-10-16  8:44 ` [Bug c/63554] [5 Regression] " rguenth at gcc dot gnu.org
  2014-10-16 12:26 ` rguenth at gcc dot gnu.org
@ 2014-10-16 12:26 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-16 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Oct 16 12:25:52 2014
New Revision: 216315

URL: https://gcc.gnu.org/viewcvs?rev=216315&root=gcc&view=rev
Log:
2014-10-16  Richard Biener  <rguenther@suse.de>

    PR middle-end/63554
    * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
    (fold_builtin_strncat_chk): Move ...
    * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
    (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.

    * gcc.dg/torture/pr63554.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr63554.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2014-10-16 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16  6:49 [Bug c/63554] New: ice in "execute_todo, at passes.c:1797" with -O3 dcb314 at hotmail dot com
2014-10-16  8:44 ` [Bug c/63554] [5 Regression] " rguenth at gcc dot gnu.org
2014-10-16 12:26 ` rguenth at gcc dot gnu.org
2014-10-16 12:26 ` rguenth at gcc dot gnu.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).