public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-16 13:26 ` rguenth at gcc dot gnu.org
2011-04-28 16:20 ` [Bug tree-optimization/41089] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.2 |4.5.3
--- Comment #52 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:31 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6/4.7 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:26 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu.org
@ 2011-04-28 16:20 ` rguenth at gcc dot gnu.org
2012-07-02 13:43 ` [Bug tree-optimization/41089] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 16:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.3 |4.5.4
--- Comment #53 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:45 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.6/4.7/4.8 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:26 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu.org
2011-04-28 16:20 ` [Bug tree-optimization/41089] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
@ 2012-07-02 13:43 ` rguenth at gcc dot gnu.org
2013-04-12 15:18 ` [Bug tree-optimization/41089] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 13:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.4 |4.6.4
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.7/4.8/4.9 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2012-07-02 13:43 ` [Bug tree-optimization/41089] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
@ 2013-04-12 15:18 ` jakub at gcc dot gnu.org
2014-06-12 13:49 ` [Bug tree-optimization/41089] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 15:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.4 |4.7.4
--- Comment #54 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 15:17:06 UTC ---
GCC 4.6.4 has been released and the branch has been closed.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.7/4.8/4.9/4.10 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2013-04-12 15:18 ` [Bug tree-optimization/41089] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
@ 2014-06-12 13:49 ` rguenth at gcc dot gnu.org
2014-12-19 13:43 ` [Bug tree-optimization/41089] [4.8/4.9/5 " jakub at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.4 |4.8.4
--- Comment #55 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.8/4.9/5 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-06-12 13:49 ` [Bug tree-optimization/41089] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-12-19 13:43 ` jakub at gcc dot gnu.org
2015-02-05 17:55 ` burnus at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.4 |4.8.5
--- Comment #56 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.8/4.9/5 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2014-12-19 13:43 ` [Bug tree-optimization/41089] [4.8/4.9/5 " jakub at gcc dot gnu.org
@ 2015-02-05 17:55 ` burnus at gcc dot gnu.org
2015-04-20 9:52 ` [Bug tree-optimization/41089] [4.8/4.9/5/6 " vries at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu.org @ 2015-02-05 17:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #57 from Tobias Burnus <burnus at gcc dot gnu.org> ---
See also PR64950
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2015-02-05 17:55 ` burnus at gcc dot gnu.org
@ 2015-04-20 9:52 ` vries at gcc dot gnu.org
2015-04-20 10:09 ` ubizjak at gmail dot com
` (4 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: vries at gcc dot gnu.org @ 2015-04-20 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu.org,
| |vries at gcc dot gnu.org
--- Comment #58 from vries at gcc dot gnu.org ---
(In reply to Tobias Burnus from comment #57)
> See also PR64950
[ Adding alpha maintainer to cc. ]
Given the fix of PR64950, we should be able to remove the workaround committed
for this PR.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2015-04-20 9:52 ` [Bug tree-optimization/41089] [4.8/4.9/5/6 " vries at gcc dot gnu.org
@ 2015-04-20 10:09 ` ubizjak at gmail dot com
2015-04-21 6:24 ` ubizjak at gmail dot com
` (3 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-20 10:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
--- Comment #59 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to vries from comment #58)
> Given the fix of PR64950, we should be able to remove the workaround
> committed for this PR.
I have started bootstrap/regtest with the following revert:
--cut here--
Index: config/alpha/alpha.c
===================================================================
--- config/alpha/alpha.c (revision 222228)
+++ config/alpha/alpha.c (working copy)
@@ -5957,10 +5957,6 @@ alpha_build_builtin_va_list (void)
integer_type_node);
DECL_FIELD_CONTEXT (ofs) = record;
DECL_CHAIN (ofs) = space;
- /* ??? This is a hack, __offset is marked volatile to prevent
- DCE that confuses stdarg optimization and results in
- gcc.c-torture/execute/stdarg-1.c failure. See PR 41089. */
- TREE_THIS_VOLATILE (ofs) = 1;
base = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__base"),
--cut here--
>From gcc-bugs-return-484045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 20 10:21:11 2015
Return-Path: <gcc-bugs-return-484045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91092 invoked by alias); 20 Apr 2015 10:21: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 91015 invoked by uid 48); 20 Apr 2015 10:21:05 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65801] [5/6 Regression] Allow -Wno-narrowing to silence stricter C++11 narrowing rules
Date: Mon, 20 Apr 2015 10:21: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: enhancement
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
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:
Message-ID: <bug-65801-4-CgUgCWvl4K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65801-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65801-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: 2015-04/txt/msg01597.txt.bz2
Content-length: 377
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide801
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Well, at the time I think we agreed that we wanted to be strict at least about
enums... Otherwise, yes, we can do that plus setting ok = true in that case
too, thus collapsing the last two ifs (+ reverting the docs change and
adjusting the testsuite).
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2015-04-20 10:09 ` ubizjak at gmail dot com
@ 2015-04-21 6:24 ` ubizjak at gmail dot com
2015-04-21 6:59 ` [Bug target/41089] " ubizjak at gmail dot com
` (2 subsequent siblings)
12 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-21 6:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com
--- Comment #60 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #59)
> (In reply to vries from comment #58)
>
> > Given the fix of PR64950, we should be able to remove the workaround
> > committed for this PR.
>
> I have started bootstrap/regtest with the following revert:
Testresults at [1] show that it is now safe to revert the workaround.
[1] https://gcc.gnu.org/ml/gcc-testresults/2015-04/msg02422.html
>From gcc-bugs-return-484130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 21 06:30:15 2015
Return-Path: <gcc-bugs-return-484130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65334 invoked by alias); 21 Apr 2015 06:30:15 -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 65087 invoked by uid 55); 21 Apr 2015 06:30:11 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
Date: Tue, 21 Apr 2015 06:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-41089-4-A7Rt8M0K9t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41089-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41089-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: 2015-04/txt/msg01682.txt.bz2
Content-length: 508
https://gcc.gnu.org/bugzilla/show_bug.cgi?idA089
--- Comment #61 from uros at gcc dot gnu.org ---
Author: uros
Date: Tue Apr 21 06:29:37 2015
New Revision: 222257
URL: https://gcc.gnu.org/viewcvs?rev"2257&root=gcc&view=rev
Log:
PR tree-optimization/64950
Revert:
2010-08-02 Uros Bizjak <ubizjak@gmail.com>
PR target/41089
* config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
as volatile.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/alpha/alpha.c
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2015-04-21 6:24 ` ubizjak at gmail dot com
@ 2015-04-21 6:59 ` ubizjak at gmail dot com
2015-05-04 13:10 ` ro at gcc dot gnu.org
2015-05-05 10:40 ` vries at gcc dot gnu.org
12 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-21 6:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Component|tree-optimization |target
Depends on| |64950
Resolution|--- |FIXED
Target Milestone|4.8.5 |6.0
--- Comment #62 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed for gcc 6, no plan to backport.
>From gcc-bugs-return-484132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 21 07:41:41 2015
Return-Path: <gcc-bugs-return-484132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55125 invoked by alias); 21 Apr 2015 07:41:41 -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 55063 invoked by uid 48); 21 Apr 2015 07:41:37 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/65823] New: [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c -O0/-O1 for arm
Date: Tue, 21 Apr 2015 07:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-65823-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: 2015-04/txt/msg01684.txt.bz2
Content-length: 1683
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide823
Bug ID: 65823
Summary: [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c
-O0/-O1 for arm
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
Comparing:
- https://gcc.gnu.org/ml/gcc-testresults/2015-04/msg02096.html (r222178) and
- https://gcc.gnu.org/ml/gcc-testresults/2015-04/msg02042.html (r222164)
shows two new stdarg-2.c failures for arm:
...
FAIL: gcc.c-torture/execute/stdarg-2.c -O0 (internal compiler error)
FAIL: gcc.c-torture/execute/stdarg-2.c -O0 (test for excess errors)
...
According to https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01114.html :
...
/projects/.../src/gcc/gcc/testsuite/gcc.c-torture/execute/stdarg-2.c:
In function 'f3':
/projects/.../src/gcc/gcc/testsuite/gcc.c-torture/execute/stdarg-2.c:61:1:
error: incorrect sharing of tree nodes
aps[4]
# .MEM_5 = VDEF <.MEM_11>
aps[4] = aps[4];
/projects/.../src/gcc/gcc/testsuite/gcc.c-torture/execute/stdarg-2.c:61:1:
internal compiler error: verify_gimple failed
0xae4893 verify_gimple_in_cfg(function*, bool)
/projects/.../src/gcc/gcc/tree-cfg.c:5136
0x9e3f2f execute_function_todo
/projects/.../src/gcc/gcc/passes.c:1946
0x9e48d3 execute_todo
/projects/.../src/gcc/gcc/passes.c:2003
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.
...
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2015-04-21 6:59 ` [Bug target/41089] " ubizjak at gmail dot com
@ 2015-05-04 13:10 ` ro at gcc dot gnu.org
2015-05-05 10:40 ` vries at gcc dot gnu.org
12 siblings, 0 replies; 20+ messages in thread
From: ro at gcc dot gnu.org @ 2015-05-04 13:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Bug 41089 depends on bug 64950, which changed state.
Bug 64950 Summary: postpone expanding va_arg till pass_stdarg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64950
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/41089] [4.8/4.9/5/6 Regression] stdarg pass produces wrong code
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2015-05-04 13:10 ` ro at gcc dot gnu.org
@ 2015-05-05 10:40 ` vries at gcc dot gnu.org
12 siblings, 0 replies; 20+ messages in thread
From: vries at gcc dot gnu.org @ 2015-05-05 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
Bug 41089 depends on bug 64950, which changed state.
Bug 64950 Summary: postpone expanding va_arg till pass_stdarg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64950
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs
@ 2009-08-17 11:35 ubizjak at gmail dot com
2010-07-31 9:33 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2009-08-17 11:35 UTC (permalink / raw)
To: gcc-bugs
r147980 [1] breaks stdargs on alpha [2]:
FAIL: gcc.c-torture/execute/stdarg-1.c execution, -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/stdarg-1.c execution, -O3 -g
FAIL: gcc.c-torture/execute/stdarg-4.c execution, -O1
FAIL: gcc.c-torture/execute/stdarg-4.c execution, -O2
FAIL: gcc.c-torture/execute/stdarg-4.c execution, -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/stdarg-4.c execution, -O3 -g
FAIL: gcc.c-torture/execute/stdarg-4.c execution, -Os
...
FAIL: gcc.dg/tree-ssa/stdarg-2.c scan-tree-dump stdarg "f15: va_list escapes 1,
needs to save all GPR units and all FPR units"
Before new SRA, stdarg dump for gcc.dg/tree-ssa/stdarg-2.c, f15 () showed:
--cut here--
va_list escapes in # .MEMD.2039_12 = VDEF <.MEMD.2039_2>
apD.2040 = apD.1263;
f15: va_list escapes 1, needs to save all GPR units and all FPR units.
--cut here--
With new SRA (r147980):
bb2 will be executed at most once for each va_start in bb2
bb3 will be executed at most once for each va_start in bb2
f15: va_list escapes 0, needs to save 8 GPR units and 0 FPR units.
The last OK testresults were from r147610 [3] and started to fail in r148747
[4]
The problem can be triggered by compiling following test (distilled from
stdarg-2.c) with a crosscompiler to alpha-linux-gnu:
--cut here--
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
long x;
inline void __attribute__((always_inline))
f15_1 (va_list ap)
{
x = __builtin_va_arg(ap,long);
}
void
f15 (int i, ...)
{
va_list ap;
__builtin_va_start(ap,i);
f15_1 (ap);
__builtin_va_end(ap);
}
--cut here--
gcc -O2 -fdump-tree-stdarg.
Runtime failure will be triggered by following test (sorry for the debug
printk's):
--cut here--
# 1 "t.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "t.c"
# 1 "/space/uros/gcc-build-44/gcc/include/stdarg.h" 1 3 4
# 40 "/space/uros/gcc-build-44/gcc/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 102 "/space/uros/gcc-build-44/gcc/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 2 "t.c" 2
extern void abort (void);
int foo_arg;
long x;
void
foo (int v, va_list ap)
{
printf ("__base = %p\n", ap.__base);
printf ("__offset = %i\n", ap.__offset);
switch (v)
{
case 5: foo_arg = __builtin_va_arg(ap,int);
printf ("foo_arg = %i\n", foo_arg);
break;
default: abort ();
}
printf ("__base = %p\n", ap.__base);
printf ("__offset = %i\n", ap.__offset);
}
void
__attribute__((noinline))
f4 (int i, ...)
{
va_list ap;
__builtin_va_start(ap,i);
printf ("f4 __base = %p\n", ap.__base);
printf ("f4 __offset = %i\n", ap.__offset);
x = __builtin_va_arg(ap,double);
foo (i, ap);
printf ("f4 __base = %p\n", ap.__base);
printf ("f4 __offset = %i\n", ap.__offset);
__builtin_va_end(ap);
}
int
main (void)
{
f4 (5, 16.0, 128);
if (x != 16 || foo_arg != 128)
abort ();
return 0;
}
--cut here--
foo_arg will be 0 at the final test.
[1] http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00959.html
[2] http://gcc.gnu.org/ml/gcc-testresults/2009-08/msg01508.html
[3] http://gcc.gnu.org/ml/gcc-testresults/2009-05/msg01614.html
[4] http://gcc.gnu.org/ml/gcc-testresults/2009-06/msg01912.html
--
Summary: [4.5 Regression] r147980 (New SRA) breaks stdargs
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ubizjak at gmail dot com
GCC target triplet: alphaev68-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
@ 2010-07-31 9:33 ` rguenth at gcc dot gnu dot org
2010-08-01 12:50 ` ubizjak at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 9:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #46 from rguenth at gcc dot gnu dot org 2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.1 |4.5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
2010-07-31 9:33 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu dot org
@ 2010-08-01 12:50 ` ubizjak at gmail dot com
2010-08-02 17:13 ` ubizjak at gmail dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-01 12:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #47 from ubizjak at gmail dot com 2010-08-01 12:50 -------
(In reply to comment #39)
> or alpha could make the va_list struct copies volatile. Or we can
> schedule tree-stdarg earlier.
Well, following patch fixes remaining gcc.c-torture/execute/stdarg-1.c failure
as well:
Index: alpha/alpha.c
===================================================================
--- alpha/alpha.c (revision 162794)
+++ alpha/alpha.c (working copy)
@@ -5948,6 +5948,7 @@ alpha_build_builtin_va_list (void)
ofs = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__offset"),
integer_type_node);
+ TREE_THIS_VOLATILE (ofs) = 1;
DECL_FIELD_CONTEXT (ofs) = record;
DECL_CHAIN (ofs) = space;
Does this patch makes sense w.r.t to stdarg optimizations?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
2010-07-31 9:33 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu dot org
2010-08-01 12:50 ` ubizjak at gmail dot com
@ 2010-08-02 17:13 ` ubizjak at gmail dot com
2010-08-02 17:33 ` ubizjak at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-02 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #48 from ubizjak at gmail dot com 2010-08-02 17:12 -------
Patch at http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00021.html.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2010-
| |08/msg00021.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
` (2 preceding siblings ...)
2010-08-02 17:13 ` ubizjak at gmail dot com
@ 2010-08-02 17:33 ` ubizjak at gmail dot com
2010-08-03 18:45 ` uros at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-02 17:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #49 from ubizjak at gmail dot com 2010-08-02 17:33 -------
Author: uros
Date: Mon Aug 2 17:26:40 2010
New Revision: 162826
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162826
Log:
target/41089
* config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
as volatile.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/alpha/alpha.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
` (3 preceding siblings ...)
2010-08-02 17:33 ` ubizjak at gmail dot com
@ 2010-08-03 18:45 ` uros at gcc dot gnu dot org
2010-08-03 18:53 ` ubizjak at gmail dot com
2010-08-03 18:56 ` ubizjak at gmail dot com
6 siblings, 0 replies; 20+ messages in thread
From: uros at gcc dot gnu dot org @ 2010-08-03 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #50 from uros at gcc dot gnu dot org 2010-08-03 18:45 -------
Subject: Bug 41089
Author: uros
Date: Tue Aug 3 18:44:56 2010
New Revision: 162846
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162846
Log:
PR target/41089
* config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
as volatile.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/alpha/alpha.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
` (4 preceding siblings ...)
2010-08-03 18:45 ` uros at gcc dot gnu dot org
@ 2010-08-03 18:53 ` ubizjak at gmail dot com
2010-08-03 18:56 ` ubizjak at gmail dot com
6 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-03 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #51 from ubizjak at gmail dot com 2010-08-03 18:53 -------
Fixed, but there are certainly better ways to fix, see [1] and [2].
[1] http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00070.html
[2] http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00165.html
So, marked as suspended...
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
` (5 preceding siblings ...)
2010-08-03 18:53 ` ubizjak at gmail dot com
@ 2010-08-03 18:56 ` ubizjak at gmail dot com
6 siblings, 0 replies; 20+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-03 18:56 UTC (permalink / raw)
To: gcc-bugs
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2015-05-05 10:40 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-41089-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:26 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu.org
2011-04-28 16:20 ` [Bug tree-optimization/41089] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
2012-07-02 13:43 ` [Bug tree-optimization/41089] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2013-04-12 15:18 ` [Bug tree-optimization/41089] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2014-06-12 13:49 ` [Bug tree-optimization/41089] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:43 ` [Bug tree-optimization/41089] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-02-05 17:55 ` burnus at gcc dot gnu.org
2015-04-20 9:52 ` [Bug tree-optimization/41089] [4.8/4.9/5/6 " vries at gcc dot gnu.org
2015-04-20 10:09 ` ubizjak at gmail dot com
2015-04-21 6:24 ` ubizjak at gmail dot com
2015-04-21 6:59 ` [Bug target/41089] " ubizjak at gmail dot com
2015-05-04 13:10 ` ro at gcc dot gnu.org
2015-05-05 10:40 ` vries at gcc dot gnu.org
2009-08-17 11:35 [Bug tree-optimization/41089] New: [4.5 Regression] r147980 (New SRA) breaks stdargs ubizjak at gmail dot com
2010-07-31 9:33 ` [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code rguenth at gcc dot gnu dot org
2010-08-01 12:50 ` ubizjak at gmail dot com
2010-08-02 17:13 ` ubizjak at gmail dot com
2010-08-02 17:33 ` ubizjak at gmail dot com
2010-08-03 18:45 ` uros at gcc dot gnu dot org
2010-08-03 18:53 ` ubizjak at gmail dot com
2010-08-03 18:56 ` ubizjak at gmail dot com
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).