public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu
@ 2015-07-02 23:36 thiago at kde dot org
2015-07-03 3:13 ` [Bug target/66746] " hjl.tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: thiago at kde dot org @ 2015-07-02 23:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
Bug ID: 66746
Summary: Failure to compile #include <x86intrin.h> with -miamcu
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: thiago at kde dot org
Target Milestone: ---
Source code:
#include <x86intrin.h>
Compiling with:
gcc -m32 -miamcu -c test.c
Produces a couple thousand errors, starting with:
/home/thiago/obj/gcc/gcc/include/ia32intrin.h:54:28: sorry, unimplemented: SSE
isn’t supported in Intel MCU psABI
#pragma GCC target("sse4.2")
^
/home/thiago/obj/gcc/gcc/include/ia32intrin.h:61:46: sorry, unimplemented: SSE
isn’t supported in Intel MCU psABI
__crc32b (unsigned int __C, unsigned char __V)
^
I don't want to use SSE, but x86intrin.h has useful intrinsics for instructions
from as early as the 8086 (like __ror[bwd]). This header should compile.
>From gcc-bugs-return-491314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jul 03 00:46:11 2015
Return-Path: <gcc-bugs-return-491314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82712 invoked by alias); 3 Jul 2015 00:46: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 82670 invoked by uid 55); 3 Jul 2015 00:46:07 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66743] [5/6 regression] ICE: tree check: expected record_type or union_type or qual_union_type, have underlying_type in for_each_template_parm_r, at cp/pt.c:8234
Date: Fri, 03 Jul 2015 00:46: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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-66743-4-rkSkwFnQmc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66743-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66743-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-07/txt/msg00204.txt.bz2
Content-length: 507
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf743
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jul 3 00:45:34 2015
New Revision: 225365
URL: https://gcc.gnu.org/viewcvs?rev"5365&root=gcc&view=rev
Log:
PR c++/66743
* pt.c (for_each_template_parm_r) [UNDERLYING_TYPE]: Use
TYPE_VALUES_RAW rather than TYPE_FIELDS.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-51.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
@ 2015-07-03 3:13 ` hjl.tools at gmail dot com
2015-07-03 3:54 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-03 3:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-07-03
CC| |hjl.tools at gmail dot com
Target Milestone|--- |6.0
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
2015-07-03 3:13 ` [Bug target/66746] " hjl.tools at gmail dot com
@ 2015-07-03 3:54 ` hjl.tools at gmail dot com
2015-07-03 7:43 ` thiago at kde dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-03 3:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg00174.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
2015-07-03 3:13 ` [Bug target/66746] " hjl.tools at gmail dot com
2015-07-03 3:54 ` hjl.tools at gmail dot com
@ 2015-07-03 7:43 ` thiago at kde dot org
2015-07-03 12:25 ` hjl at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: thiago at kde dot org @ 2015-07-03 7:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
--- Comment #2 from Thiago Macieira <thiago at kde dot org> ---
(In reply to H.J. Lu from comment #1)
> A patch is posted at
>
> https://gcc.gnu.org/ml/gcc-patches/2015-07/msg00174.html
Thanks H.J.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
` (2 preceding siblings ...)
2015-07-03 7:43 ` thiago at kde dot org
@ 2015-07-03 12:25 ` hjl at gcc dot gnu.org
2015-07-03 12:26 ` hjl.tools at gmail dot com
2015-07-08 20:02 ` hjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-07-03 12:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jul 3 12:25:10 2015
New Revision: 225376
URL: https://gcc.gnu.org/viewcvs?rev=225376&root=gcc&view=rev
Log:
Add IA MCU support to x86intrin.h
x86intrin.h has useful intrinsics for instructions for IA MCU. This
patch adds __iamcu__ check to x86intrin.h and ia32intrin.h.
gcc/
PR target/66746.
* config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
is defined.
(__crc32w): Likewise.
(__crc32d): Likewise.
(__rdpmc): Likewise.
(__rdtscp): Likewise.
(_rdpmc): Likewise.
(_rdtscp): Likewise.
* config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
is defined.
gcc/testsuite/
PR target/66746.
* gcc.target/i386/pr66746.c: New file.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/ia32intrin.h
trunk/gcc/config/i386/x86intrin.h
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
` (3 preceding siblings ...)
2015-07-03 12:25 ` hjl at gcc dot gnu.org
@ 2015-07-03 12:26 ` hjl.tools at gmail dot com
2015-07-08 20:02 ` hjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-03 12:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/66746] Failure to compile #include <x86intrin.h> with -miamcu
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
` (4 preceding siblings ...)
2015-07-03 12:26 ` hjl.tools at gmail dot com
@ 2015-07-08 20:02 ` hjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-07-08 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66746
--- Comment #5 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Jul 8 20:01:36 2015
New Revision: 225580
URL: https://gcc.gnu.org/viewcvs?rev=225580&root=gcc&view=rev
Log:
Allow <adxintrin.h> for IA MCU
It is OK to include <adxintrin.h> for IA MCU since GCC can generate ADX
intrinsics with alternative instuctions if ADX isn't enabled.
PR target/66746
* config/i386/x86intrin.h: Include <adxintrin.h> even if
__iamcu__ is defined.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/x86intrin.h
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-07-08 20:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-02 23:36 [Bug target/66746] New: Failure to compile #include <x86intrin.h> with -miamcu thiago at kde dot org
2015-07-03 3:13 ` [Bug target/66746] " hjl.tools at gmail dot com
2015-07-03 3:54 ` hjl.tools at gmail dot com
2015-07-03 7:43 ` thiago at kde dot org
2015-07-03 12:25 ` hjl at gcc dot gnu.org
2015-07-03 12:26 ` hjl.tools at gmail dot com
2015-07-08 20:02 ` hjl 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).