public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/65270] New: [5 regression] ICF needs to match TYPE attributes on memory accesses
@ 2015-03-02  0:49 hubicka at gcc dot gnu.org
  2015-03-02  8:58 ` [Bug ipa/65270] " rguenth at gcc dot gnu.org
                   ` (34 more replies)
  0 siblings, 35 replies; 36+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-03-02  0:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65270
           Summary: [5 regression] ICF needs to match TYPE attributes on
                    memory accesses
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org

As discussed here https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00028.html

$ more t.c
struct a 
{
  int a[100000];
}
__attribute__ ((aligned (32)));
struct b 
{
  int a[100000];
};
t2(struct a *a)
{
  int i;
  for (i=0;i<100000;i++)
    a->a[i]++;
}
t(struct b *a)
{
  int i;
  for (i=0;i<100000;i++)
    a->a[i]++;
}
$ ./xgcc -B ./ -O3 t.c -flto -c  -fno-inline 
t.c:10:1: warning: return type defaults to �int� [-Wimplicit-int]
 t2(struct a *a)
 ^
t.c:16:1: warning: return type defaults to �int� [-Wimplicit-int]
 t(struct b *a)
 ^
$ ./xgcc -B ./ -O3 t.o -flto  -r -nostdlib
$ objdump a.out -d

a.out:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <t2>:
   0:   48 8d 87 80 1a 06 00    lea    0x61a80(%rdi),%rax
   7:   66 0f 6f 0d 00 00 00    movdqa 0x0(%rip),%xmm1        # f <t2+0xf>
   e:   00 
   f:   90                      nop
  10:   48 83 c7 10             add    $0x10,%rdi
  14:   66 0f 6f 47 f0          movdqa -0x10(%rdi),%xmm0
  19:   66 0f fe c1             paddd  %xmm1,%xmm0
  1d:   0f 29 47 f0             movaps %xmm0,-0x10(%rdi)
  21:   48 39 c7                cmp    %rax,%rdi
  24:   75 ea                   jne    10 <t2+0x10>
  26:   f3 c3                   repz retq 
  28:   0f 1f 84 00 00 00 00    nopl   0x0(%rax,%rax,1)
  2f:   00 

0000000000000030 <t>:
  30:   e9 00 00 00 00          jmpq   35 <t+0x5>

The functions t and t2 are incorrectly unified.
>From gcc-bugs-return-478916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 02 01:03:13 2015
Return-Path: <gcc-bugs-return-478916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102431 invoked by alias); 2 Mar 2015 01:03: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 102359 invoked by uid 48); 2 Mar 2015 01:03:08 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65233] [5 Regression] ICE (segfault) on arm-linux-gnueabihf and aarch64-linux-gnu
Date: Mon, 02 Mar 2015 01:03: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: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65233-4-X4oJWS9bns@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65233-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65233-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-03/txt/msg00060.txt.bz2
Content-length: 189

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

--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Yep, this seems resonable patch to me. It is OK if it passes testing.


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

end of thread, other threads:[~2015-03-12 13:03 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02  0:49 [Bug ipa/65270] New: [5 regression] ICF needs to match TYPE attributes on memory accesses hubicka at gcc dot gnu.org
2015-03-02  8:58 ` [Bug ipa/65270] " rguenth at gcc dot gnu.org
2015-03-02 11:50 ` rguenth at gcc dot gnu.org
2015-03-02 14:32 ` rguenth at gcc dot gnu.org
2015-03-02 14:51 ` rguenth at gcc dot gnu.org
2015-03-02 18:25 ` hubicka at gcc dot gnu.org
2015-03-03 14:57 ` rguenther at suse dot de
2015-03-03 15:08 ` howarth at bromo dot med.uc.edu
2015-03-03 17:24 ` rguenther at suse dot de
2015-03-03 18:23 ` hubicka at gcc dot gnu.org
2015-03-03 20:38 ` hubicka at gcc dot gnu.org
2015-03-04  9:26 ` rguenth at gcc dot gnu.org
2015-03-04  9:45 ` rguenther at suse dot de
2015-03-04 10:35 ` rguenth at gcc dot gnu.org
2015-03-04 11:52 ` rguenth at gcc dot gnu.org
2015-03-04 11:57 ` rguenth at gcc dot gnu.org
2015-03-04 18:21 ` hubicka at gcc dot gnu.org
2015-03-05  0:11 ` hubicka at gcc dot gnu.org
2015-03-05  0:21 ` hubicka at gcc dot gnu.org
2015-03-05  0:42 ` hubicka at gcc dot gnu.org
2015-03-05  8:43 ` rguenth at gcc dot gnu.org
2015-03-05  9:40 ` rguenther at suse dot de
2015-03-05  9:42 ` rguenther at suse dot de
2015-03-05  9:45 ` rguenther at suse dot de
2015-03-05 11:30 ` marxin at gcc dot gnu.org
2015-03-05 19:47 ` [Bug ipa/65270] issues with merging memory accesses from different code paths hubicka at gcc dot gnu.org
2015-03-05 19:59 ` hubicka at gcc dot gnu.org
2015-03-05 20:11 ` hubicka at gcc dot gnu.org
2015-03-05 21:18 ` hubicka at gcc dot gnu.org
2015-03-06  8:32 ` rguenther at suse dot de
2015-03-06 15:41 ` hubicka at gcc dot gnu.org
2015-03-06 18:03 ` [Bug ipa/65270] [5 regression] " hubicka at gcc dot gnu.org
2015-03-09 11:11 ` rguenth at gcc dot gnu.org
2015-03-09 13:55 ` rguenth at gcc dot gnu.org
2015-03-09 13:55 ` rguenth at gcc dot gnu.org
2015-03-12 13:03 ` rguenth 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).