* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
@ 2014-12-08 13:35 ` rguenth at gcc dot gnu.org
2014-12-11 11:49 ` rguenth at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-08 13:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Target| |powerpc64-*-*
Target Milestone|--- |5.0
Summary|powerpc64-linux |[5 Regression]
|--with-cpu=G5 bootstrap |powerpc64-linux
|failure |--with-cpu=G5 bootstrap
| |failure
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
2014-12-08 13:35 ` [Bug target/64205] [5 Regression] " rguenth at gcc dot gnu.org
@ 2014-12-11 11:49 ` rguenth at gcc dot gnu.org
2015-01-20 22:56 ` bergner at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-11 11:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
2014-12-08 13:35 ` [Bug target/64205] [5 Regression] " rguenth at gcc dot gnu.org
2014-12-11 11:49 ` rguenth at gcc dot gnu.org
@ 2015-01-20 22:56 ` bergner at gcc dot gnu.org
2015-01-20 23:04 ` bergner at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bergner at gcc dot gnu.org @ 2015-01-20 22:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |azanella at linux dot vnet.ibm.com
--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
*** Bug 64687 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (2 preceding siblings ...)
2015-01-20 22:56 ` bergner at gcc dot gnu.org
@ 2015-01-20 23:04 ` bergner at gcc dot gnu.org
2015-02-03 4:13 ` segher at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bergner at gcc dot gnu.org @ 2015-01-20 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-20
CC| |bergner at gcc dot gnu.org,
| |meissner at gcc dot gnu.org,
| |uweigand at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Peter Bergner <bergner at gcc dot gnu.org> ---
Confirmed. Here's a simplified test case and simplified options:
[bergner@makalu-lp1 PR64687]$ cat decode.i
union ieee754r_Decimal32
{
_Decimal32 sd;
unsigned int cc0;
};
unsigned int
__decoded32 (_Decimal32 a)
{
union ieee754r_Decimal32 d;
d.sd = a;
return d.cc0;
}
[bergner@makalu-lp1 PR64687]$
/home/bergner/gcc/build/gcc-fsf-mainline-pr64687-debug/gcc/xgcc
-B/home/bergner/gcc/build/gcc-fsf-mainline-pr64687-debug/gcc -O1 -mno-hard-dfp
-mcpu=power7 -S decode.i
decode.i: In function ‘__decoded32’:
decode.i:13:1: error: insn does not satisfy its constraints:
}
^
(insn 16 4 3 2 (set (mem/c:SD (plus:DI (reg/f:DI 1 1)
(const_int 48 [0x30])) [0 a+0 S4 A64])
(reg:SD 33 1)) decode.i:9 492 {movsd_hardfloat}
(nil))
decode.i:13:1: internal compiler error: in extract_constrain_insn, at
recog.c:2246
Basically we hit this with "-O1 -mno-hard-dfp -maltivec" which matches the ICE
seen with "-mcpu=G5" and "-mno-hard-dfp -mcpu=power7".
>From gcc-bugs-return-474146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 20 23:23:33 2015
Return-Path: <gcc-bugs-return-474146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26777 invoked by alias); 20 Jan 2015 23:23:32 -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 26743 invoked by uid 48); 20 Jan 2015 23:23:24 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64701] New: internal compiler error:=?UTF-8?Q? unexpected expression ‘?=<statement>=?UTF-8?Q?’ of kind do_stmt?Date: Tue, 20 Jan 2015 23:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
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: mpolacek 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 attachments.created
Message-ID: <bug-64701-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: 2015-01/txt/msg02140.txt.bz2
Content-length: 3086
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64701
Bug ID: 64701
Summary: internal compiler error: unexpected expression
‘<statement>’ of kind do_stmt
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Created attachment 34508
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34508&action=edit
preprocessed source
$ ./cc1plus -quiet -fpreprocessed ccBLvhHJ.err -o /dev/null
In file included from
/builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/hostinfo.h:34:0,
from dndGuest/rpcV3Util.cpp:45:
/builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/x86cpuid.h: In
function ‘uint32 CPUID_EFFECTIVE_FAMILY(uint32)’:
/builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/x86cpuid.h:1038:339:
internal compiler error: unexpected expression ‘<statement>’ of kind do_stmt
0x86232f cxx_eval_constant_expression
/home/marek/src/gcc/gcc/cp/constexpr.c:3450
0x86710f cxx_eval_statement_list
/home/marek/src/gcc/gcc/cp/constexpr.c:2855
0x8619fd cxx_eval_constant_expression
/home/marek/src/gcc/gcc/cp/constexpr.c:3374
0x8620ba cxx_eval_constant_expression
/home/marek/src/gcc/gcc/cp/constexpr.c:3380
0x86748b cxx_eval_outermost_constant_expr
/home/marek/src/gcc/gcc/cp/constexpr.c:3505
0x86acf8 maybe_constant_value(tree_node*, tree_node*)
/home/marek/src/gcc/gcc/cp/constexpr.c:3617
0x7b1bcc cp_convert_and_check(tree_node*, tree_node*, int)
/home/marek/src/gcc/gcc/cp/cvt.c:639
0x64fd87 convert_like_real
/home/marek/src/gcc/gcc/cp/call.c:6565
0x650e31 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int)
/home/marek/src/gcc/gcc/cp/call.c:9405
0x6f8fe1 digest_init_r
/home/marek/src/gcc/gcc/cp/typeck2.c:1068
0x6fbf5a digest_init_flags
/home/marek/src/gcc/gcc/cp/typeck2.c:1137
0x6fbf5a store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
/home/marek/src/gcc/gcc/cp/typeck2.c:811
0x6698e4 check_initializer
/home/marek/src/gcc/gcc/cp/decl.c:5980
0x690bdc cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
/home/marek/src/gcc/gcc/cp/decl.c:6616
0x776229 cp_parser_init_declarator
/home/marek/src/gcc/gcc/cp/parser.c:17291
0x7779ad cp_parser_simple_declaration
/home/marek/src/gcc/gcc/cp/parser.c:11601
0x7571d3 cp_parser_block_declaration
/home/marek/src/gcc/gcc/cp/parser.c:11475
0x758421 cp_parser_declaration_statement
/home/marek/src/gcc/gcc/cp/parser.c:11122
0x75b687 cp_parser_statement
/home/marek/src/gcc/gcc/cp/parser.c:9830
0x75be89 cp_parser_statement_seq_opt
/home/marek/src/gcc/gcc/cp/parser.c:10108
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-474147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 20 23:36:30 2015
Return-Path: <gcc-bugs-return-474147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32421 invoked by alias); 20 Jan 2015 23:36:29 -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 32378 invoked by uid 48); 20 Jan 2015 23:36:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64701] internal compiler error:=?UTF-8?Q? unexpected expression ‘?=<statement>=?UTF-8?Q?’ of kind do_stmt?Date: Tue, 20 Jan 2015 23: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: cc
Message-ID: <bug-64701-4-FdR0fR3enf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64701-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64701-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-01/txt/msg02141.txt.bz2
Content-length: 386
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd701
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reducing.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (3 preceding siblings ...)
2015-01-20 23:04 ` bergner at gcc dot gnu.org
@ 2015-02-03 4:13 ` segher at gcc dot gnu.org
2015-02-03 22:36 ` meissner at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: segher at gcc dot gnu.org @ 2015-02-03 4:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org
--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Doesn't happen with -mlra.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (4 preceding siblings ...)
2015-02-03 4:13 ` segher at gcc dot gnu.org
@ 2015-02-03 22:36 ` meissner at gcc dot gnu.org
2015-02-03 22:46 ` meissner at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-02-03 22:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
--- Comment #4 from Michael Meissner <meissner at gcc dot gnu.org> ---
Is -mcpu=power7 -mno-hard-dfp really a reasonable option?
I built a toolchain using --with-cpu=power5 from subversion id 219607 on a
powerpc64 linux system, and the system bootstrapped.
If I compile the code that Peter mentioned using -m32 -O2 -fPIC -S foo01.c
-mlong-double-128 -mno-minimal-toc -g -fbuilding-libgcc -fno-stack-protector -g
-mcpu=power5, it compiles fine.
As seger mentions, -mlra fixes this (but there are still problems with -mlra).
It does fail if you enable the stfiwx instruction (added in power7), but
disable DFP. How many people do this? I'm not sure this is a representation
of the original bug.
I suspect if you changed TARGET_NO_SDMODE_STACK in rs6000.h to eliminate the
TARGET_DFP test it should work.
#define TARGET_NO_SDMODE_STACK (TARGET_LFIWZX && TARGET_STFIWX)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (5 preceding siblings ...)
2015-02-03 22:36 ` meissner at gcc dot gnu.org
@ 2015-02-03 22:46 ` meissner at gcc dot gnu.org
2015-02-05 20:54 ` meissner at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-02-03 22:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Ah, ok, it helps to read the bug report. If you bootstrap with --with-cpu=G5
it fails, --with-cpu=power5 passes.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (6 preceding siblings ...)
2015-02-03 22:46 ` meissner at gcc dot gnu.org
@ 2015-02-05 20:54 ` meissner at gcc dot gnu.org
2015-02-05 20:55 ` meissner at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-02-05 20:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Michael Meissner <meissner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |meissner at gcc dot gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (7 preceding siblings ...)
2015-02-05 20:54 ` meissner at gcc dot gnu.org
@ 2015-02-05 20:55 ` meissner at gcc dot gnu.org
2015-02-06 19:16 ` meissner at gcc dot gnu.org
2015-02-06 19:34 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-02-05 20:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
--- Comment #6 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 34680
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34680&action=edit
Proposed patch to fix the problem
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (8 preceding siblings ...)
2015-02-05 20:55 ` meissner at gcc dot gnu.org
@ 2015-02-06 19:16 ` meissner at gcc dot gnu.org
2015-02-06 19:34 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-02-06 19:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
--- Comment #7 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Feb 6 19:15:56 2015
New Revision: 220485
URL: https://gcc.gnu.org/viewcvs?rev=220485&root=gcc&view=rev
Log:
[gcc]
2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/64205
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
add a general secondary reload handler for SDmode, unless we have
both read/write support for SDmode.
[gcc/testsuite]
2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/64205
* gcc.target/powerpc/pr64205.c: New file.
Added:
trunk/gcc/testsuite/gcc.target/powerpc/pr64205.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure
2014-12-05 23:52 [Bug target/64205] New: powerpc64-linux --with-cpu=G5 bootstrap failure amodra at gmail dot com
` (9 preceding siblings ...)
2015-02-06 19:16 ` meissner at gcc dot gnu.org
@ 2015-02-06 19:34 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-06 19:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread