public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59794] New: i386 backend fails to detect SSE return value
@ 2014-01-13 20:20 hjl.tools at gmail dot com
  2014-01-13 23:18 ` [Bug target/59794] i386 backend fails to detect SSE/AVX " hjl.tools at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-13 20:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59794
           Summary: i386 backend fails to detect SSE return value
           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: ubizjak at gmail dot com

[hjl@gnu-6 gcc]$ cat /tmp/f.i
typedef int __v4si __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_size__ (16),
__may_alias__));

__m128i
f1(void)
{
  return __extension__ (__m128i)(__v4si){ 0, 0, 0, 0 };
}
[hjl@gnu-6 gcc]$ gcc -S -O /tmp/f.i -mno-sse -m32
[hjl@gnu-6 gcc]$ gcc -S -O /tmp/f.i -mno-sse 
/tmp/f.i: In function ‘f1’:
/tmp/f.i:6:1: error: SSE register return with SSE disabled
 {
 ^
[hjl@gnu-6 gcc]$ 

Both -m32 and -m64 should issue the same warning.
>From gcc-bugs-return-440257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 13 21:20:03 2014
Return-Path: <gcc-bugs-return-440257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20365 invoked by alias); 13 Jan 2014 21:20:02 -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 20318 invoked by uid 48); 13 Jan 2014 21:19:56 -0000
From: "hstong at ca dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59795] New: Invalid use of "this" in a local class not diagnosed
Date: Mon, 13 Jan 2014 21:20: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: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hstong at ca dot ibm.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-59795-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/msg01399.txt.bz2
Content-length: 2324

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

            Bug ID: 59795
           Summary: Invalid use of "this" in a local class not diagnosed
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hstong at ca dot ibm.com

The following is reduced from the example in N3290 subclause 5.1.1
[expr.prim.general] paragraph 5:

class Outer {
   void f() {
      struct Inner {
         int c[sizeof(*this)]; // error: not inside a member function of Inner
      };
   }
};

GCC does not provide a diagnostic for this although, the declaration in
question runs afoul of the constraint in paragraph 4 for the subclause by using
"this" elsewhere in the member-declarator.

## Compile command:
g++-4.8 -std=c++11 nestedClassThisNonStaticDataMemDiag.cc

## Actual output:
(No diagnostics; clean compile).

## Expected output:
(Error message).

## g++ -v:
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-4.8
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.8.1-2ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04)


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

* [Bug target/59794] i386 backend fails to detect SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
@ 2014-01-13 23:18 ` hjl.tools at gmail dot com
  2014-01-13 23:21 ` hjl.tools at gmail dot com
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-13 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-13
            Version|4.9.0                       |4.7.0
            Summary|i386 backend fails to       |i386 backend fails to
                   |detect SSE return value     |detect SSE/AVX return value
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
The same problem with AVX for both -m32/-m64:

[hjl@gnu-6 gcc]$ cat /tmp/a.i 
typedef long long __m256i __attribute__ ((__vector_size__ (32),
__may_alias__));

extern __m256i y;

__m256i
f1()
{
  return y;
}
[hjl@gnu-6 gcc]$ gcc -mno-avx /tmp/a.i -S -O
[hjl@gnu-6 gcc]$ gcc -mno-avx /tmp/a.i -S -O -m32
[hjl@gnu-6 gcc]$


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

* [Bug target/59794] i386 backend fails to detect SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
  2014-01-13 23:18 ` [Bug target/59794] i386 backend fails to detect SSE/AVX " hjl.tools at gmail dot com
@ 2014-01-13 23:21 ` hjl.tools at gmail dot com
  2014-01-14  0:38 ` hjl.tools at gmail dot com
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-13 23:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.4

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
For -m32, the same warning is issued twice:

[hjl@gnu-6 gcc]$ gcc -mno-sse
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c -m32 -S
-Wno-psabi
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c: In
function ‘foo’:
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c:14:7:
warning: SSE vector argument without SSE enabled changes the ABI [enabled by
default]
   bar (x); /* { dg-message "warning: SSE vector argument without SSE enabled
changes the ABI" } */
       ^
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c:14:7:
warning: SSE vector argument without SSE enabled changes the ABI [enabled by
default]
[hjl@gnu-6 gcc]$ gcc -mno-sse
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c -S
-Wno-psabi
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c: In
function ‘foo’:
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/pr53425-1.c:14:7:
warning: SSE vector argument without SSE enabled changes the ABI [enabled by
default]
   bar (x); /* { dg-message "warning: SSE vector argument without SSE enabled
changes the ABI" } */
       ^
[hjl@gnu-6 gcc]$
>From gcc-bugs-return-440270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 14 00:30:12 2014
Return-Path: <gcc-bugs-return-440270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32413 invoked by alias); 14 Jan 2014 00:30: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 32329 invoked by uid 48); 14 Jan 2014 00:30:05 -0000
From: "michael.hudson at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/59744] miscompilation of unsigned comparison on aarch64
Date: Tue, 14 Jan 2014 00:30: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: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: michael.hudson at linaro dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59744-4-CeDUicPjKW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59744-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59744-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/msg01412.txt.bz2
Content-length: 316

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

--- Comment #7 from Michael Hudson-Doyle <michael.hudson at linaro dot org> ---
I saw the problem with Linaro GCC 4.8, but haven't tried the vanilla 4.8
branch.  If the committed test case doesn't fail, I'll believe that it is not a
problem.  Sorry for the noise.


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

* [Bug target/59794] i386 backend fails to detect SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
  2014-01-13 23:18 ` [Bug target/59794] i386 backend fails to detect SSE/AVX " hjl.tools at gmail dot com
  2014-01-13 23:21 ` hjl.tools at gmail dot com
@ 2014-01-14  0:38 ` hjl.tools at gmail dot com
  2014-01-14  3:28 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX " hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14  0:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 31826
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31826&action=edit
A patch

I am testing this patch.


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2014-01-14  0:38 ` hjl.tools at gmail dot com
@ 2014-01-14  3:28 ` hjl.tools at gmail dot com
  2014-01-14  4:37 ` hjl.tools at gmail dot com
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14  3:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu.org
            Summary|i386 backend fails to       |[4.7/4.8/4.9 Regression]
                   |detect SSE/AVX return value |i386 backend fails to
                   |                            |detect MMX/SSE/AVX return
                   |                            |value

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
This is a regression:

[hjl@gnu-6 tmp]$ cat m1.i
typedef int __v2si __attribute__ ((__vector_size__ (8)));

extern __v2si y;

__v2si
foo ()
{
  return y;
}
[hjl@gnu-6 tmp]$ cc -S -mno-mmx m1.i -m32
[hjl@gnu-6 tmp]$ 

This may be caused by r83533.  ix86_struct_value_rtx sees BLKmode
when SSE is disabled and DImode when MMX is disabled.


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2014-01-14  3:28 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX " hjl.tools at gmail dot com
@ 2014-01-14  4:37 ` hjl.tools at gmail dot com
  2014-01-14 13:23 ` hjl.tools at gmail dot com
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14  4:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31826|0                           |1
        is obsolete|                            |

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 31827
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31827&action=edit
An updated patch


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX return value
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2014-01-14  4:37 ` hjl.tools at gmail dot com
@ 2014-01-14 13:23 ` hjl.tools at gmail dot com
  2014-01-14 14:03 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes hjl.tools at gmail dot com
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-17 tmp]$ cat /tmp/f.i
typedef int __v4si __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_size__ (16),
__may_alias__));

__m128i
f1(void)
{
  return __extension__ (__m128i)(__v4si){ 0, 0, 0, 0 };
}
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/bin/gcc -S -O
/tmp/f.i -mno-sse -m32
/tmp/f.i: In function `f1':
/tmp/f.i:6: warning: SSE vector return without SSE enabled changes the ABI
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/bin/gcc -v
Reading specs from
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/lib/gcc/x86_64-unknown-linux-gnu/3.5.0/specs
Configured with: ../../../gcc/configure
--prefix=/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 3.5.0 20040615 (experimental)
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/bin/gcc -S -O
/tmp/f.i -mno-sse -m32
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/bin/gcc -v
Reading specs from
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/lib/gcc/x86_64-unknown-linux-gnu/3.5.0/specs
Configured with: ../../../gcc/configure
--prefix=/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 3.5.0 20040725 (experimental)
[hjl@gnu-17 tmp]$


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2014-01-14 13:23 ` hjl.tools at gmail dot com
@ 2014-01-14 14:03 ` hjl.tools at gmail dot com
  2014-01-14 14:19 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14 14:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7/4.8/4.9 Regression]    |[4.7/4.8/4.9 Regression]
                   |i386 backend fails to       |i386 backend fails to
                   |detect MMX/SSE/AVX return   |detect MMX/SSE/AVX ABI
                   |value                       |changes

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-17 tmp]$ cat /tmp/f.i
typedef int __v4si __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_size__ (16),
__may_alias__));

__m128i
f1(void)
{
  return __extension__ (__m128i)(__v4si){ 0, 0, 0, 0 };
}
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/bin/gcc -S -O
/tmp/f.i -mno-sse -m32
/tmp/f.i: In function `f1':
/tmp/f.i:6: warning: SSE vector return without SSE enabled changes the ABI
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/bin/gcc -v
Reading specs from
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr/lib/gcc/x86_64-unknown-linux-gnu/3.5.0/specs
Configured with: ../../../gcc/configure
--prefix=/export/gnu/import/git/gcc-regression/gcc-4_0-branch/83189/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 3.5.0 20040615 (experimental)
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/bin/gcc -S -O
/tmp/f.i -mno-sse -m32
[hjl@gnu-17 tmp]$
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/bin/gcc -v
Reading specs from
/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr/lib/gcc/x86_64-unknown-linux-gnu/3.5.0/specs
Configured with: ../../../gcc/configure
--prefix=/export/gnu/import/git/gcc-regression/gcc-4_0-branch/85148/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 3.5.0 20040725 (experimental)
[hjl@gnu-17 tmp]$


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2014-01-14 14:03 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes hjl.tools at gmail dot com
@ 2014-01-14 14:19 ` hjl.tools at gmail dot com
  2014-01-14 16:41 ` hjl at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-14 14:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00784.html


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

* [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2014-01-14 14:19 ` hjl.tools at gmail dot com
@ 2014-01-14 16:41 ` hjl at gcc dot gnu.org
  2014-01-17 18:52 ` [Bug target/59794] [4.7/4.8 " hjl at gcc dot gnu.org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu.org @ 2014-01-14 16:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Jan 14 16:41:10 2014
New Revision: 206603

URL: http://gcc.gnu.org/viewcvs?rev=206603&root=gcc&view=rev
Log:
Consolidate ABI warning into type_natural_mode

gcc/

    PR target/59794
    * config/i386/i386.c (type_natural_mode): Add a bool parameter
    to indicate if type is used for function return value.  Warn
    ABI change if the vector mode isn't available for function
    return value.
    (ix86_function_arg_advance): Pass false to type_natural_mode.
    (ix86_function_arg): Likewise.
    (ix86_gimplify_va_arg): Likewise.
    (function_arg_32): Don't warn ABI change.
    (ix86_function_value): Pass true to type_natural_mode.
    (ix86_return_in_memory): Likewise.
    (ix86_struct_value_rtx): Removed.
    (TARGET_STRUCT_VALUE_RTX): Likewise.

gcc/testsuite/

    PR target/59794
    * g++.dg/ext/vector23.C: Also prune ABI change for Linux/x86.
    * gcc.target/i386/pr39162.c (y): New __m256i variable.
    (bar): Change return type to void.  Set y to x.
    * gcc.target/i386/pr59794-1.c: New testcase.
    * gcc.target/i386/pr59794-2.c: Likewise.
    * gcc.target/i386/pr59794-3.c: Likewise.
    * gcc.target/i386/pr59794-4.c: Likewise.
    * gcc.target/i386/pr59794-5.c: Likewise.
    * gcc.target/i386/pr59794-6.c: Likewise.
    * gcc.target/i386/pr59794-7.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr59794-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-3.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-4.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-5.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-6.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/ext/vector23.C
    trunk/gcc/testsuite/gcc.target/i386/pr39162.c


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (8 preceding siblings ...)
  2014-01-14 16:41 ` hjl at gcc dot gnu.org
@ 2014-01-17 18:52 ` hjl at gcc dot gnu.org
  2014-01-17 18:52 ` hjl at gcc dot gnu.org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu.org @ 2014-01-17 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jan 17 18:52:14 2014
New Revision: 206728

URL: http://gcc.gnu.org/viewcvs?rev=206728&root=gcc&view=rev
Log:
Silence vector ABI change warnings for x86

    Backport from mainline
    PR target/59794
    * c-c++-common/convert-vec-1.c: Also prune ABI change for
    Linux/x86.
    * g++.dg/cpp0x/constexpr-53094-2.C: Likewise.
    * g++.dg/ext/attribute-test-1.C: Likewise.
    * g++.dg/ext/attribute-test-2.C: Likewise.
    * g++.dg/ext/attribute-test-3.C: Likewise.
    * g++.dg/ext/attribute-test-4.C: Likewise.
    * g++.dg/torture/pr38565.C: Likewise.
    * gcc.dg/pr53060.c: Likewise.
    * c-c++-common/scal-to-vec2.c: Add -msse2 for x86.
    * c-c++-common/vector-compare-2.c: Likewise.
    * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Likewise.
    * g++.dg/conversion/simd1.C: Add -msse2 for x86.  Adjust
    dg-message line number.

Modified:
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/convert-vec-1.c
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/scal-to-vec2.c
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/vector-compare-2.c
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/conversion/simd1.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ext/attribute-test-1.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ext/attribute-test-2.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ext/attribute-test-3.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ext/attribute-test-4.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/torture/pr38565.C
   
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr53060.c


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (9 preceding siblings ...)
  2014-01-17 18:52 ` [Bug target/59794] [4.7/4.8 " hjl at gcc dot gnu.org
@ 2014-01-17 18:52 ` hjl at gcc dot gnu.org
  2014-02-14 18:18 ` david.abdurachmanov at gmail dot com
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu.org @ 2014-01-17 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jan 17 18:51:27 2014
New Revision: 206727

URL: http://gcc.gnu.org/viewcvs?rev=206727&root=gcc&view=rev
Log:
Consolidate ABI warning into type_natural_mode

gcc/

    Backport from mainline
    PR target/59794
    * config/i386/i386.c (type_natural_mode): Add a bool parameter
    to indicate if type is used for function return value.  Warn
    ABI change if the vector mode isn't available for function
    return value.
    (ix86_function_arg_advance): Pass false to type_natural_mode.
    (ix86_function_arg): Likewise.
    (ix86_gimplify_va_arg): Likewise.
    (function_arg_32): Don't warn ABI change.
    (ix86_function_value): Pass true to type_natural_mode.
    (ix86_return_in_memory): Likewise.
    (ix86_struct_value_rtx): Removed.
    (TARGET_STRUCT_VALUE_RTX): Likewise.

gcc/testsuite/

    Backport from mainline
    PR target/59794
    * gcc.target/i386/pr39162.c (y): New __m256i variable.
    (bar): Change return type to void.  Set y to x.
    * gcc.target/i386/pr59794-1.c: New testcase.
    * gcc.target/i386/pr59794-2.c: Likewise.
    * gcc.target/i386/pr59794-3.c: Likewise.
    * gcc.target/i386/pr59794-4.c: Likewise.
    * gcc.target/i386/pr59794-5.c: Likewise.
    * gcc.target/i386/pr59794-6.c: Likewise.
    * gcc.target/i386/pr59794-7.c: Likewise.

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr39162.c


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (10 preceding siblings ...)
  2014-01-17 18:52 ` hjl at gcc dot gnu.org
@ 2014-02-14 18:18 ` david.abdurachmanov at gmail dot com
  2014-02-19 15:54 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: david.abdurachmanov at gmail dot com @ 2014-02-14 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

David Abdurachmanov <david.abdurachmanov at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.abdurachmanov at gmail dot c
                   |                            |om

--- Comment #13 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
Could we get this under -Wno-abi/-Wabi?

We have 256-bit vectors [__vector(4) double], but no AVX available/enabled. We
understand the affect on ABI compatibility and would like to disable such
warnings.


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (11 preceding siblings ...)
  2014-02-14 18:18 ` david.abdurachmanov at gmail dot com
@ 2014-02-19 15:54 ` uros at gcc dot gnu.org
  2014-02-19 16:50 ` uros at gcc dot gnu.org
  2014-02-19 16:55 ` ubizjak at gmail dot com
  14 siblings, 0 replies; 16+ messages in thread
From: uros at gcc dot gnu.org @ 2014-02-19 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed Feb 19 15:53:59 2014
New Revision: 207910

URL: http://gcc.gnu.org/viewcvs?rev=207910&root=gcc&view=rev
Log:
    PR target/59794
    * config/i386/i386.c (type_natural_mode): Warn for ABI changes
    only when -Wpsabi is enabled.

testsuite/ChangeLog:

    PR target/59794
    * gcc.target/i386/pr39162.c: Add dg-prune-output.
    (dg-options): Remove -Wno-psabi.
    * gcc.target/i386/59794-2.c: Ditto.
    * gcc.target/i386/60205-1.c: Ditto.
    * gcc.target/i386/sse-5.c: Ditto.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr39162.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr59794-3.c
    trunk/gcc/testsuite/gcc.target/i386/pr60205-1.c
    trunk/gcc/testsuite/gcc.target/i386/sse-5.c


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (12 preceding siblings ...)
  2014-02-19 15:54 ` uros at gcc dot gnu.org
@ 2014-02-19 16:50 ` uros at gcc dot gnu.org
  2014-02-19 16:55 ` ubizjak at gmail dot com
  14 siblings, 0 replies; 16+ messages in thread
From: uros at gcc dot gnu.org @ 2014-02-19 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed Feb 19 16:50:22 2014
New Revision: 207912

URL: http://gcc.gnu.org/viewcvs?rev=207912&root=gcc&view=rev
Log:
    Backport from mainline
    2014-02-19  Uros Bizjak  <ubizjak@gmail.com>

    PR target/59794
    * config/i386/i386.c (type_natural_mode): Warn for ABI changes
    only when -Wpsabi is enabled.

testsuite/ChangeLog:

    Backport from mainline
    2014-02-19  Uros Bizjak  <ubizjak@gmail.com>

    PR target/59794
    * gcc.target/i386/pr39162.c: Add dg-prune-output.
    (dg-options): Remove -Wno-psabi.
    * gcc.target/i386/pr59794-2.c: Ditto.
    * gcc.target/i386/sse-5.c: Ditto.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-1.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-2.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-3.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-4.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-5.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-6.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59794-7.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr39162.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/sse-5.c


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

* [Bug target/59794] [4.7/4.8 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes
  2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
                   ` (13 preceding siblings ...)
  2014-02-19 16:50 ` uros at gcc dot gnu.org
@ 2014-02-19 16:55 ` ubizjak at gmail dot com
  14 siblings, 0 replies; 16+ 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=59794

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.7.4                       |4.8.3

--- Comment #19 from Uroš Bizjak <ubizjak at gmail dot com> ---
This is now implemented for 4.8.3 and 4.9, including -Wpsabi option.

No plan to backport these patches to 4.7.x.

FIXED for 4.8.3+.
>From gcc-bugs-return-444238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 19 17:07:28 2014
Return-Path: <gcc-bugs-return-444238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8082 invoked by alias); 19 Feb 2014 17:07:27 -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 7991 invoked by uid 48); 19 Feb 2014 17:07:23 -0000
From: "corsepiu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/50925] [4.7/4.8/4.9 Regression][avr] ICE at spill_failure, at reload1.c:2118
Date: Wed, 19 Feb 2014 17:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: corsepiu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-50925-4-1bHLWpGg6c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50925-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50925-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-02/txt/msg01995.txt.bz2
Content-length: 645

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

Ralf Corsepius <corsepiu at gcc dot gnu.org> changed:

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

--- Comment #29 from Ralf Corsepius <corsepiu at gcc dot gnu.org> ---
(In reply to Jorn Wolfgang Rennecke from comment #28)
> I can't reproduce this with the current trunk.
Confirmed. gcc-4.9 doesn't show this bug for --target=avr-rtems4.11, anymore.

>  Can was mark this
> as "known to work" for 4.9 ?
I am inclined to agree.


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

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 20:20 [Bug target/59794] New: i386 backend fails to detect SSE return value hjl.tools at gmail dot com
2014-01-13 23:18 ` [Bug target/59794] i386 backend fails to detect SSE/AVX " hjl.tools at gmail dot com
2014-01-13 23:21 ` hjl.tools at gmail dot com
2014-01-14  0:38 ` hjl.tools at gmail dot com
2014-01-14  3:28 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX " hjl.tools at gmail dot com
2014-01-14  4:37 ` hjl.tools at gmail dot com
2014-01-14 13:23 ` hjl.tools at gmail dot com
2014-01-14 14:03 ` [Bug target/59794] [4.7/4.8/4.9 Regression] i386 backend fails to detect MMX/SSE/AVX ABI changes hjl.tools at gmail dot com
2014-01-14 14:19 ` hjl.tools at gmail dot com
2014-01-14 16:41 ` hjl at gcc dot gnu.org
2014-01-17 18:52 ` [Bug target/59794] [4.7/4.8 " hjl at gcc dot gnu.org
2014-01-17 18:52 ` hjl at gcc dot gnu.org
2014-02-14 18:18 ` david.abdurachmanov at gmail dot com
2014-02-19 15:54 ` uros at gcc dot gnu.org
2014-02-19 16:50 ` uros at gcc dot gnu.org
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).