public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/66274] New: gcc6: x86 -m32 emits 64bit register in inline asm
@ 2015-05-24 14:04 adam at os dot inf.tu-dresden.de
  2015-05-25  7:27 ` [Bug inline-asm/66274] " ubizjak at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: adam at os dot inf.tu-dresden.de @ 2015-05-24 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66274

            Bug ID: 66274
           Summary: gcc6: x86 -m32 emits 64bit register in inline asm
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adam at os dot inf.tu-dresden.de
  Target Milestone: ---

The following reduced test-case:

void f()
{
  asm ("push %0" : : "r" ((unsigned long long)456 >> 32));
}

produces:

$ gcc -c -m32 t.i
t.i: Assembler messages:
t.i:3: Error: bad register name `%rax'
$ gcc --version
gcc (GCC) 6.0.0 20150524 (experimental)

Works with gcc-5 and previous versions.


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

* [Bug inline-asm/66274] gcc6: x86 -m32 emits 64bit register in inline asm
  2015-05-24 14:04 [Bug inline-asm/66274] New: gcc6: x86 -m32 emits 64bit register in inline asm adam at os dot inf.tu-dresden.de
@ 2015-05-25  7:27 ` ubizjak at gmail dot com
  2015-05-25 17:50 ` uros at gcc dot gnu.org
  2015-05-25 17:54 ` [Bug target/66274] " ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2015-05-25  7:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66274

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-05-25
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
   Target Milestone|---                         |6.0
     Ever confirmed|0                           |1

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Oops.

--cut here--
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 223641)
+++ config/i386/i386.c  (working copy)
@@ -15229,7 +15229,7 @@ print_reg (rtx x, int code, FILE *file)
     case 8:
     case 4:
       if (LEGACY_INT_REGNO_P (regno))
-       putc (msize == 8 ? 'r' : 'e', file);
+       putc (msize == 8 && TARGET_64BIT ? 'r' : 'e', file);
     case 16:
     case 12:
     case 2:
--cut here--
>From gcc-bugs-return-487209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 25 07:37:44 2015
Return-Path: <gcc-bugs-return-487209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115865 invoked by alias); 25 May 2015 07:37:44 -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 115835 invoked by uid 48); 25 May 2015 07:37:38 -0000
From: "paulepanter at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/66277] New: [regression] cpp-5: fatal error: too many input files
Date: Mon, 25 May 2015 07:37: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.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paulepanter at users dot sourceforge.net
X-Bugzilla-Status: UNCONFIRMED
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66277-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-05/txt/msg02049.txt.bz2
Content-length: 5605

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf277

            Bug ID: 66277
           Summary: [regression] cpp-5: fatal error: too many input files
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paulepanter at users dot sourceforge.net
  Target Milestone: ---

With Debian Sid/unstable, trying to build GRUB master with GCC 5.1.1 fails with
the error `cpp-5: fatal error: too many input files`.

        $ cpp-5 --version
        cpp-5 (Debian 5.1.1-7) 5.1.1 20150522
        Copyright (C) 2015 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions.  There is
NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

        $ git clone git://git.savannah.gnu.org/grub.git
        $ cd grub
        $ git describe
        grub-2.02-beta2-420-g5e74a3e
        $ ./autogen.sh
        $ CC=gcc-5 CPP=cpp-5 ./configure --with-platform=coreboot
        $ make
        cpp-5 -DHAVE_CONFIG_H -I.  -Wall -W -DGRUB_UTIL=1
-D_FILE_OFFSET_BITSd -I./include -DGRUB_FILE=\"grub_script.tab.h\" -I. -I.
-I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/
-I./grub-core/lib/minilzo -I./grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H
-Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITSd -I./include
-DGRUB_FILE=\"grub_script.tab.h\" -I. -I. -I. -I. -I./include -I./include
-I./grub-core/lib/libgcrypt-grub/src/  -I./grub-core/gnulib
-I./grub-core/gnulib -D_FILE_OFFSET_BITSd \
          -D'GRUB_MOD_INIT(x)=@MARKER@x@' grub_script.tab.h grub_script.yy.h
grub-core/commands/blocklist.c grub-core/commands/macbless.c
grub-core/commands/xnu_uuid.c grub-core/commands/testload.c
grub-core/commands/ls.c grub-core/disk/dmraid_nvidia.c
grub-core/disk/loopback.c grub-core/disk/lvm.c grub-core/disk/mdraid_linux.c
grub-core/disk/mdraid_linux_be.c grub-core/disk/mdraid1x_linux.c
grub-core/disk/raid5_recover.c grub-core/disk/raid6_recover.c
grub-core/font/font.c grub-core/gfxmenu/font.c grub-core/normal/charset.c
grub-core/video/fb/fbblit.c grub-core/video/fb/fbutil.c
grub-core/video/fb/fbfill.c grub-core/video/fb/video_fb.c
grub-core/video/video.c grub-core/video/capture.c grub-core/video/colors.c
grub-core/unidata.c grub-core/io/bufio.c grub-core/fs/affs.c grub-core/fs/afs.c
grub-core/fs/bfs.c grub-core/fs/btrfs.c grub-core/fs/cbfs.c
grub-core/fs/archelp.c grub-core/fs/cpio.c grub-core/fs/cpio_be.c
grub-core/fs/odc.c grub-core/fs/newc.c grub-core/fs/ext2.c grub-core/fs/fat.c
grub-core/fs/exfat.c grub-core/fs/fshelp.c grub-core/fs/hfs.c
grub-core/fs/hfsplus.c grub-core/fs/hfspluscomp.c grub-core/fs/iso9660.c
grub-core/fs/jfs.c grub-core/fs/minix.c grub-core/fs/minix2.c
grub-core/fs/minix3.c grub-core/fs/minix_be.c grub-core/fs/minix2_be.c
grub-core/fs/minix3_be.c grub-core/fs/nilfs2.c grub-core/fs/ntfs.c
grub-core/fs/ntfscomp.c grub-core/fs/reiserfs.c grub-core/fs/romfs.c
grub-core/fs/sfs.c grub-core/fs/squash4.c grub-core/fs/tar.c grub-core/fs/udf.c
grub-core/fs/ufs2.c grub-core/fs/ufs.c grub-core/fs/ufs_be.c grub-core/fs/xfs.c
grub-core/fs/zfs/zfscrypt.c grub-core/fs/zfs/zfs.c grub-core/fs/zfs/zfsinfo.c
grub-core/fs/zfs/zfs_lzjb.c grub-core/fs/zfs/zfs_lz4.c
grub-core/fs/zfs/zfs_sha256.c grub-core/fs/zfs/zfs_fletcher.c
grub-core/lib/envblk.c grub-core/lib/hexdump.c grub-core/lib/LzFind.c
grub-core/lib/LzmaEnc.c grub-core/lib/crc.c grub-core/lib/adler32.c
grub-core/lib/crc64.c grub-core/normal/datetime.c grub-core/normal/misc.c
grub-core/partmap/acorn.c grub-core/partmap/amiga.c grub-core/partmap/apple.c
grub-core/partmap/sun.c grub-core/partmap/plan.c grub-core/partmap/dvh.c
grub-core/partmap/sunpc.c grub-core/partmap/bsdlabel.c grub-core/partmap/dfly.c
grub-core/script/function.c grub-core/script/lexer.c grub-core/script/main.c
grub-core/script/script.c grub-core/script/argv.c grub-core/io/gzio.c
grub-core/io/xzio.c grub-core/io/lzopio.c grub-core/kern/ia64/dl_helper.c
grub-core/kern/arm/dl_helper.c grub-core/kern/arm64/dl_helper.c
grub-core/lib/minilzo/minilzo.c grub-core/lib/xzembed/xz_dec_bcj.c
grub-core/lib/xzembed/xz_dec_lzma2.c grub-core/lib/xzembed/xz_dec_stream.c
util/misc.c grub-core/kern/command.c grub-core/kern/device.c
grub-core/kern/disk.c grub-core/lib/disk.c util/getroot.c
grub-core/osdep/unix/getroot.c grub-core/osdep/getroot.c
grub-core/osdep/devmapper/getroot.c grub-core/osdep/relpath.c
grub-core/kern/emu/hostdisk.c grub-core/osdep/devmapper/hostdisk.c
grub-core/osdep/hostdisk.c grub-core/osdep/unix/hostdisk.c
grub-core/osdep/exec.c grub-core/osdep/sleep.c grub-core/osdep/password.c
grub-core/kern/emu/misc.c grub-core/kern/emu/mm.c grub-core/kern/env.c
grub-core/kern/err.c grub-core/kern/file.c grub-core/kern/fs.c
grub-core/kern/list.c grub-core/kern/misc.c grub-core/kern/partition.c
grub-core/lib/crypto.c grub-core/disk/luks.c grub-core/disk/geli.c
grub-core/disk/cryptodisk.c grub-core/disk/AFSplitter.c grub-core/lib/pbkdf2.c
grub-core/commands/extcmd.c grub-core/lib/arg.c grub-core/disk/ldm.c
grub-core/disk/diskfilter.c grub-core/partmap/gpt.c grub-core/partmap/msdos.c
grub-core/fs/proc.c > libgrub.pp || (rm -f libgrub.pp; exit 1)
        cpp-5: fatal error: too many input files
        compilation terminated.
        Makefile:12465: recipe for target 'libgrub.pp' failed
        make: *** [libgrub.pp] Error 1

Using cpp-4.9, which is currently the default in Debian Sid/unstable, works.


Using cpp-4.9, which is currently the default in Debian Sid/unstable, works.


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

* [Bug inline-asm/66274] gcc6: x86 -m32 emits 64bit register in inline asm
  2015-05-24 14:04 [Bug inline-asm/66274] New: gcc6: x86 -m32 emits 64bit register in inline asm adam at os dot inf.tu-dresden.de
  2015-05-25  7:27 ` [Bug inline-asm/66274] " ubizjak at gmail dot com
@ 2015-05-25 17:50 ` uros at gcc dot gnu.org
  2015-05-25 17:54 ` [Bug target/66274] " ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: uros at gcc dot gnu.org @ 2015-05-25 17:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66274

--- Comment #2 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon May 25 17:49:28 2015
New Revision: 223649

URL: https://gcc.gnu.org/viewcvs?rev=223649&root=gcc&view=rev
Log:
        PR target/66274
        * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
        when LEGACY_INT_REGNO_P is processed.

testsuite/ChangeLog:

        PR target/66274
        * gcc.target/i386/pr66274.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr66274.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/66274] gcc6: x86 -m32 emits 64bit register in inline asm
  2015-05-24 14:04 [Bug inline-asm/66274] New: gcc6: x86 -m32 emits 64bit register in inline asm adam at os dot inf.tu-dresden.de
  2015-05-25  7:27 ` [Bug inline-asm/66274] " ubizjak at gmail dot com
  2015-05-25 17:50 ` uros at gcc dot gnu.org
@ 2015-05-25 17:54 ` ubizjak at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2015-05-25 17:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66274

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86
             Status|ASSIGNED                    |RESOLVED
          Component|inline-asm                  |target
         Resolution|---                         |FIXED

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-487231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 25 18:50:56 2015
Return-Path: <gcc-bugs-return-487231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59519 invoked by alias); 25 May 2015 18:50:56 -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 59484 invoked by uid 48); 25 May 2015 18:50:52 -0000
From: "ketan.surender at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66280] New: internal compiler error: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1322
Date: Mon, 25 May 2015 18:50: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: 4.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ketan.surender at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-66280-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-05/txt/msg02071.txt.bz2
Content-length: 2016

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66280

            Bug ID: 66280
           Summary: internal compiler error: in
                    vect_get_vec_def_for_operand, at
                    tree-vect-stmts.c:1322
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ketan.surender at gmail dot com
  Target Milestone: ---

Created attachment 35622
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35622&action=edit
preprocessed reproduction file

Hitting an internal compilation error for the attached repro.i file.

g++ -c -std=c++98 -pedantic -Wno-long-long -fwrapv -fPIC -O3 -fno-loop-optimize
repro.i

dtodoublessingleststscript4.cpp: In function ‘void
dtodoublessingleststscript4(short int, const cint16_T*, short int*, cint16_T*,
int*, cint32_T*, cint32_T*, int*, cint32_T*, cint16_T*, cint32_T*, int*, int*,
cint32_T*, cint32_T*, int*, cint32_T*, int*, int*, cint32_T*, cint32_T*,
cint16_T*, short int*, short int*, short int*, short int*)’:
dtodoublessingleststscript4.cpp:102:6: internal compiler error: in
vect_get_vec_def_for_operand, at tree-vect-stmts.c:1322
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I am seeing this on a Debian 7 machine.

g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/SNIP/glnxa64/gcc-4.7.2/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /SNIP/gcc-4.7/configure --prefix=/SNIP/glnxa64/gcc-4.7.2
--with-gmp=/SNIP/glnxa64/gcc-4.7/gmp --with-mpfr=/SNIP/glnxa64/gcc-4.7/mpfr
--with-mpc=/SNIP/glnxa64/gcc-4.7/mpc --enable-languages=c,c++,fortran
--with-as=/SNIP/glnxa64/gcc-4.7.2/bin/as
--with-ld=/SNIP/glnxa64/gcc-4.7.2/bin/ld
Thread model: posix
gcc version 4.7.2 (GCC)
>From gcc-bugs-return-487232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 25 19:02:02 2015
Return-Path: <gcc-bugs-return-487232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92283 invoked by alias); 25 May 2015 19:02:01 -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 92239 invoked by uid 48); 25 May 2015 19:01:58 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66280] [4.8/4.9/5/6 Regression]  ICE: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1472
Date: Mon, 25 May 2015 19:02: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.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-66280-4-z0yur5WBe8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66280-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66280-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-05/txt/msg02072.txt.bz2
Content-length: 2113

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66280

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-05-25
                 CC|                            |trippels at gcc dot gnu.org
            Summary|internal compiler error: in |[4.8/4.9/5/6 Regression]
                   |vect_get_vec_def_for_operan |ICE: in
                   |d, at                       |vect_get_vec_def_for_operan
                   |tree-vect-stmts.c:1322      |d, at
                   |                            |tree-vect-stmts.c:1472
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat repro.ii
typedef struct
{
  short re;
  short im;
} cint16_T;
typedef struct
{
  int re;
  int im;
} cint32_T;
int a;
short b;
cint16_T *c;
cint32_T *d, *e;
void
fn1 ()
{
  for (; a; a++)
    {
      d[a].re = d[a].im = e[a].re = c[a].re * b;
      e[a].im = c[a].im * b;
    }
}

markus@x4 tmp % g++ -c -O3 repro.ii
repro.ii: In function ‘void fn1()’:
repro.ii:16:1: internal compiler error: in vect_get_vec_def_for_operand, at
tree-vect-stmts.c:1472
 fn1 ()
  ^
0xe98c19 vect_get_vec_def_for_operand(tree_node*, gimple_statement_base*,
tree_node**)
        ../../gcc/gcc/tree-vect-stmts.c:1472
0xea1273 vectorizable_store
        ../../gcc/gcc/tree-vect-stmts.c:5330
0xeab8f0 vect_transform_stmt(gimple_statement_base*, gimple_stmt_iterator*,
bool*, _slp_tree*, _slp_instance*)
        ../../gcc/gcc/tree-vect-stmts.c:7345
0xeb0d84 vect_transform_loop(_loop_vec_info*)
        ../../gcc/gcc/tree-vect-loop.c:6185
0xecbe82 vectorize_loops()
        ../../gcc/gcc/tree-vectorizer.c:502
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-487233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 25 19:38:57 2015
Return-Path: <gcc-bugs-return-487233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32960 invoked by alias); 25 May 2015 19:38:57 -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 32936 invoked by uid 48); 25 May 2015 19:38:54 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66280] [4.8/4.9/5/6 Regression]  ICE: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1472
Date: Mon, 25 May 2015 19:38: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.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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-66280-4-Yh0o4sHVwW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66280-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66280-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-05/txt/msg02073.txt.bz2
Content-length: 726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66280

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
repro.ii: In function ‘void fn1()’:
repro.ii:16:1: error: definition in block 7 follows the use
 fn1 ()
 ^
for SSA_NAME: vect_patt_56.19_117 in statement:
vect_inter_high_132 = VEC_PERM_EXPR <vect_patt_56.19_117, vect_patt_56.19_117,
{ 0, 4, 1, 5 }>;
repro.ii:16:1: internal compiler error: verify_ssa failed
0xe77f79 verify_ssa(bool, bool)
        ../../gcc/gcc/tree-ssa.c:1068
0xbcfee5 execute_function_todo
        ../../gcc/gcc/passes.c:1953
0xbd06d3 execute_todo
        ../../gcc/gcc/passes.c:2003
Please submit a full bug report,
with preprocessed source if appropriate.
>From gcc-bugs-return-487234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 25 19:57:12 2015
Return-Path: <gcc-bugs-return-487234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56021 invoked by alias); 25 May 2015 19:57:12 -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 55702 invoked by uid 48); 25 May 2015 19:57:08 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66280] [4.8/4.9/5/6 Regression]  ICE: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1472
Date: Mon, 25 May 2015 19:57: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.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-66280-4-em3SdzNKU4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66280-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66280-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-05/txt/msg02074.txt.bz2
Content-length: 453

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf280

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r172817.


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

end of thread, other threads:[~2015-05-25 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-24 14:04 [Bug inline-asm/66274] New: gcc6: x86 -m32 emits 64bit register in inline asm adam at os dot inf.tu-dresden.de
2015-05-25  7:27 ` [Bug inline-asm/66274] " ubizjak at gmail dot com
2015-05-25 17:50 ` uros at gcc dot gnu.org
2015-05-25 17:54 ` [Bug target/66274] " 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).