public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/62090] New: ice in compute_may_aliases
@ 2014-08-11 15:35 dcb314 at hotmail dot com
  2014-08-11 16:57 ` [Bug c/62090] " trippels at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2014-08-11 15:35 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3209 bytes --]

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

            Bug ID: 62090
           Summary: ice in compute_may_aliases
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

For the attached code, compiled by gcc trunk dated 20140810,
the following crash message is produced

$ ../results/bin/gcc -std=gnu99 -O2 -c bug158.c
connection.c: In function ‘log_bad_request.isra.5’:
connection.c:679:1: internal compiler error: in compute_may_aliases, at
tree-ssa-structalias.c:7003
0xb02406 compute_may_aliases()
    ../../src/trunk/gcc/tree-ssa-structalias.c:7003
0x8bddb4 execute_function_todo
    ../../src/trunk/gcc/passes.c:1721
0x8be6cb do_per_function
    ../../src/trunk/gcc/passes.c:1476
0x8be6cb execute_todo
    ../../src/trunk/gcc/passes.c:1806
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.
$

Compiler flags -std=gnu99 -O2 required.
>From gcc-bugs-return-458171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 11 15:36:21 2014
Return-Path: <gcc-bugs-return-458171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15008 invoked by alias); 11 Aug 2014 15:36:21 -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 14969 invoked by uid 48); 11 Aug 2014 15:36:18 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/62090] ice in compute_may_aliases
Date: Mon, 11 Aug 2014 15:36: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.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail 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: attachments.created
Message-ID: <bug-62090-4-Q84YMmZznO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62090-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62090-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-08/txt/msg00668.txt.bz2
Content-length: 231

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Created attachment 33290
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id3290&actioníit
C source code


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

* [Bug c/62090] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
@ 2014-08-11 16:57 ` trippels at gcc dot gnu.org
  2014-08-13  8:34 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-08-11 16:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-08-11
                 CC|                            |trippels at gcc dot gnu.org
            Version|4.9.2                       |4.10.0
   Target Milestone|---                         |4.10.0
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat bug158.c
long a;
int *b;
extern __inline __attribute__ ((__always_inline__))
__attribute__ ((__gnu_inline__)) int sprintf (int *p1, char *p2, ...)
{
  a = __builtin_object_size (0, 0);
  return __builtin___sprintf_chk (0, 0, a, p2, __builtin_va_arg_pack ());
}

void
log_bad_request ()
{
  b += sprintf (0, "foo");
}

markus@x4 tmp % gcc -O2 -c bug158.c
bug158.c: In function ‘log_bad_request’:
bug158.c:11:1: internal compiler error: in execute_todo, at passes.c:1795
 log_bad_request ()
 ^
0x92b62c execute_todo
        ../../gcc/gcc/passes.c:1795
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.
>From gcc-bugs-return-458181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 11 17:41:12 2014
Return-Path: <gcc-bugs-return-458181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21102 invoked by alias); 11 Aug 2014 17:41:11 -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 21058 invoked by uid 48); 11 Aug 2014 17:41:07 -0000
From: "ssbssa at yahoo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/58042] MinGW GCC produces problematic x64 executable with -O2 -static -flto -m64
Date: Mon, 11 Aug 2014 17:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ssbssa at yahoo dot de
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-58042-4-9v5KYk6yZn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58042-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58042-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-08/txt/msg00678.txt.bz2
Content-length: 432

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

Domani Hannes <ssbssa at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at yahoo dot de

--- Comment #1 from Domani Hannes <ssbssa at yahoo dot de> ---
I can reproduce this with 4.8.3, but not with 4.9.0 or 4.9.1.


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

* [Bug c/62090] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
  2014-08-11 16:57 ` [Bug c/62090] " trippels at gcc dot gnu.org
@ 2014-08-13  8:34 ` rguenth at gcc dot gnu.org
  2014-08-14  9:02 ` [Bug middle-end/62090] [5 Regression] " rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-13  8:34 UTC (permalink / raw)
  To: gcc-bugs

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

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 #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Two different bugs I guess, both mine.


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
  2014-08-11 16:57 ` [Bug c/62090] " trippels at gcc dot gnu.org
  2014-08-13  8:34 ` rguenth at gcc dot gnu.org
@ 2014-08-14  9:02 ` rguenth at gcc dot gnu.org
  2014-08-14  9:02 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-14  9:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
          Component|c                           |middle-end
         Resolution|---                         |FIXED
            Summary|ice in compute_may_aliases  |[5 Regression] ice in
                   |                            |compute_may_aliases

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


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2014-08-14  9:02 ` [Bug middle-end/62090] [5 Regression] " rguenth at gcc dot gnu.org
@ 2014-08-14  9:02 ` rguenth at gcc dot gnu.org
  2014-08-18  7:50 ` dcb314 at hotmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-14  9:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Aug 14 09:02:18 2014
New Revision: 213951

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

    PR tree-optimization/62090
    * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
    (fold_builtin_2): Do not fold sprintf.
    (fold_builtin_3): Likewise.
    * gimple-fold.c (gimple_fold_builtin_sprintf): New function
    moved from builtins.c.
    (gimple_fold_builtin): Fold sprintf.

    * gcc.dg/pr62090.c: New testcase.

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


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2014-08-14  9:02 ` rguenth at gcc dot gnu.org
@ 2014-08-18  7:50 ` dcb314 at hotmail dot com
  2014-08-18  8:36 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2014-08-18  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
Created attachment 33345
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33345&action=edit
C source code

For the attached code, compiled by gcc trunk dated 20140817,
the following crash message is produced

$ ../results/bin/gcc -c -O2 bug160.c
adb.c: In function ‘send_connect’:
adb.c:316:13: internal compiler error: in compute_may_aliases, at
tree-ssa-structalias.c:6986
0xb1ada6 compute_may_aliases()
    ../../src/trunk/gcc/tree-ssa-structalias.c:6986
0x8d6514 execute_function_todo
    ../../src/trunk/gcc/passes.c:1721
0x8d6e2b do_per_function
    ../../src/trunk/gcc/passes.c:1476
0x8d6e2b execute_todo
    ../../src/trunk/gcc/passes.c:1806
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.

Compiler flag -O2 required.
>From gcc-bugs-return-458679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 18 07:52:10 2014
Return-Path: <gcc-bugs-return-458679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11007 invoked by alias); 18 Aug 2014 07:52:09 -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 10971 invoked by uid 48); 18 Aug 2014 07:52:06 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
Date: Mon, 18 Aug 2014 07:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-62090-4-TioQHLU7aL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62090-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62090-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-08/txt/msg01176.txt.bz2
Content-length: 476

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

David Binderman <dcb314 at hotmail dot com> changed:

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

--- Comment #7 from David Binderman <dcb314 at hotmail dot com> ---
New attachment might be a related bug, or something new.


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2014-08-18  7:50 ` dcb314 at hotmail dot com
@ 2014-08-18  8:36 ` rguenth at gcc dot gnu.org
  2014-08-18 14:51 ` rguenth at gcc dot gnu.org
  2014-08-18 14:57 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-18  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, same for sprintf.  Testing a patch.


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2014-08-18  8:36 ` rguenth at gcc dot gnu.org
@ 2014-08-18 14:51 ` rguenth at gcc dot gnu.org
  2014-08-18 14:57 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-18 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Aug 18 14:51:04 2014
New Revision: 214105

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

    PR tree-optimization/62090
    * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
    (fold_builtin_3): Do not fold snprintf.
    (fold_builtin_4): Likewise.
    * gimple-fold.c (gimple_fold_builtin_snprintf): New function
    moved from builtins.c.
    (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
    (gimple_fold_builtin): Do not fold sprintf here.

    * gcc.dg/pr62090-2.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr62090-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/62090] [5 Regression] ice in compute_may_aliases
  2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2014-08-18 14:51 ` rguenth at gcc dot gnu.org
@ 2014-08-18 14:57 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-18 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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


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

end of thread, other threads:[~2014-08-18 14:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 15:35 [Bug c/62090] New: ice in compute_may_aliases dcb314 at hotmail dot com
2014-08-11 16:57 ` [Bug c/62090] " trippels at gcc dot gnu.org
2014-08-13  8:34 ` rguenth at gcc dot gnu.org
2014-08-14  9:02 ` [Bug middle-end/62090] [5 Regression] " rguenth at gcc dot gnu.org
2014-08-14  9:02 ` rguenth at gcc dot gnu.org
2014-08-18  7:50 ` dcb314 at hotmail dot com
2014-08-18  8:36 ` rguenth at gcc dot gnu.org
2014-08-18 14:51 ` rguenth at gcc dot gnu.org
2014-08-18 14:57 ` 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).