public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59797] New: GCC doesn't warn AVX-512 ABI change
@ 2014-01-13 22:23 hjl.tools at gmail dot com
  2014-01-14  6:29 ` [Bug target/59797] " kirill.yukhin at intel dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-13 22:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59797

            Bug ID: 59797
           Summary: GCC doesn't warn AVX-512 ABI change
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: kirill.yukhin at intel dot com

[hjl@gnu-6 gcc]$ cat /tmp/z.i
typedef long long __m512i __attribute__ ((__vector_size__ (64),
__may_alias__));

__m512i
f1(__m512i x, __m512i y)
{
  return y;
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -S -O /tmp/z.i
/tmp/z.i: In function ‘f1’:
/tmp/z.i:4:1: note: The ABI for passing parameters with 64-byte alignment has
changed in GCC 4.6
 f1(__m512i x, __m512i y)
 ^
[hjl@gnu-6 gcc]$ ./xgcc -B./ -S -O /tmp/z.i -mavx512f
[hjl@gnu-6 gcc]$ 

When -mavx512f isn't used, GCC should warn ABI changes for passing/returning
AVX vector values.
>From gcc-bugs-return-440265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 13 22:23:42 2014
Return-Path: <gcc-bugs-return-440265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19299 invoked by alias); 13 Jan 2014 22:23:42 -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 19280 invoked by uid 48); 13 Jan 2014 22:23:38 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/59797] GCC doesn't warn AVX-512 ABI change
Date: Mon, 13 Jan 2014 22:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-59797-4-GOHUDAHeIB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59797-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-01/txt/msg01407.txt.bz2
Content-length: 450

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY797

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-13
   Target Milestone|---                         |4.9.0
     Ever confirmed|0                           |1


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

* [Bug target/59797] GCC doesn't warn AVX-512 ABI change
  2014-01-13 22:23 [Bug target/59797] New: GCC doesn't warn AVX-512 ABI change hjl.tools at gmail dot com
@ 2014-01-14  6:29 ` kirill.yukhin at intel dot com
  2014-01-14 13:00 ` hjl.tools at gmail dot com
  2014-02-19 16:55 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: kirill.yukhin at intel dot com @ 2014-01-14  6:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59797

--- Comment #1 from Yukhin Kirill <kirill.yukhin at intel dot com> ---
Sorry, didn't get the problem.

According to output you provided - GCC warns ABI changes

Here is analogue for AVX2:
$ cat 2.c
typedef long long __m256i __attribute__ ((__vector_size__ (32),
__may_alias__));

__m256i
f1(__m256i x, __m256i y)
{
  return y;
}
$ gcc -S 2.c
2.c: In function ‘f1’:
2.c:4:1: note: The ABI for passing parameters with 32-byte alignment has
changed in GCC 4.6
 f1(__m256i x, __m256i y)
 ^
2.c:4:1: warning: AVX vector argument without AVX enabled changes the ABI
[enabled by default]

Difference is that AVX[2] warns about using data types without enabling
AVX2. Is that the case
>From gcc-bugs-return-440284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 14 06:35:22 2014
Return-Path: <gcc-bugs-return-440284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14878 invoked by alias); 14 Jan 2014 06:35: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 14846 invoked by uid 48); 14 Jan 2014 06:35:17 -0000
From: "aivchenk at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59789] [4.9 Regression] ICE in in convert_move, at expr.c:333
Date: Tue, 14 Jan 2014 06:35: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.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aivchenk at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59789-4-KDSxp8xAgO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59789-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-01/txt/msg01426.txt.bz2
Content-length: 474

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY789

--- Comment #7 from Alexander Ivchenko <aivchenk at gmail dot com> ---
(In reply to H.J. Lu from comment #3)
> (In reply to Alexander Ivchenko from comment #2)
> > lets just say that my code is valid and I forgot to add "-msse2" :).
> >
>
> Does GCC ICE with -msse2?

No, you were right when you said that the code is incorrect. Seems that I
accidentally found this bug when compiling the initial code without "-msse2".


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

* [Bug target/59797] GCC doesn't warn AVX-512 ABI change
  2014-01-13 22:23 [Bug target/59797] New: GCC doesn't warn AVX-512 ABI change hjl.tools at gmail dot com
  2014-01-14  6:29 ` [Bug target/59797] " kirill.yukhin at intel dot com
@ 2014-01-14 13:00 ` hjl.tools at gmail dot com
  2014-02-19 16:55 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14 13:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59797

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yukhin Kirill from comment #1)
> Sorry, didn't get the problem.
> 
> According to output you provided - GCC warns ABI changes
> 
> Here is analogue for AVX2:
> $ cat 2.c
> typedef long long __m256i __attribute__ ((__vector_size__ (32),
> __may_alias__));
> 
> __m256i
> f1(__m256i x, __m256i y)
> {
>   return y;
> }
> $ gcc -S 2.c
> 2.c: In function ‘f1’:
> 2.c:4:1: note: The ABI for passing parameters with 32-byte alignment has
> changed in GCC 4.6

This isn't a ABI change warning.  It just informs users
that GCC has changed ABI in GCC 4.6.

>  f1(__m256i x, __m256i y)
>  ^
> 2.c:4:1: warning: AVX vector argument without AVX enabled changes the ABI
> [enabled by default]

This is the ABI change warning for __m256i when AVX is disabled.

> Difference is that AVX[2] warns about using data types without enabling
> AVX2. Is that the case

We need a similar warning for __m512i when AVX-512 is disabled.
>From gcc-bugs-return-440315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 14 13:13:53 2014
Return-Path: <gcc-bugs-return-440315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5184 invoked by alias); 14 Jan 2014 13:13:52 -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 5132 invoked by uid 48); 14 Jan 2014 13:13:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59800] Compilation with g++ fails when -Ofast -flto is used to compile code using some <random> distribution
Date: Tue, 14 Jan 2014 13:13: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.8.2
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: WAITING
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-59800-4-zJ9lExYoo0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59800-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-01/txt/msg01457.txt.bz2
Content-length: 598

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY800

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And looking at the libstdc++ code, it indeed has _M_saved initially
uninitialized, and all reads of it guarded by _M_saved_available flag.
Supposedly predicate aware unitialized warning pass isn't able to figure that
out.


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

* [Bug target/59797] GCC doesn't warn AVX-512 ABI change
  2014-01-13 22:23 [Bug target/59797] New: GCC doesn't warn AVX-512 ABI change hjl.tools at gmail dot com
  2014-01-14  6:29 ` [Bug target/59797] " kirill.yukhin at intel dot com
  2014-01-14 13:00 ` hjl.tools at gmail dot com
@ 2014-02-19 16:55 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2014-02-19 16:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59797
Bug 59797 depends on bug 59794, which changed state.

Bug 59794 Summary: [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59794

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


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

end of thread, other threads:[~2014-02-19 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 22:23 [Bug target/59797] New: GCC doesn't warn AVX-512 ABI change hjl.tools at gmail dot com
2014-01-14  6:29 ` [Bug target/59797] " kirill.yukhin at intel dot com
2014-01-14 13:00 ` hjl.tools at gmail dot com
2014-02-19 16:55 ` 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).