public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/56689] New: internal compiler error: in get_loop_body, at cfgloop.c:841
@ 2013-03-22 12:20 krebbel at gcc dot gnu.org
  2013-03-22 13:14 ` [Bug bootstrap/56689] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: krebbel at gcc dot gnu.org @ 2013-03-22 12:20 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56689
           Summary: internal compiler error: in get_loop_body, at
                    cfgloop.c:841
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: krebbel@gcc.gnu.org


gcc/reginfo.c: In function ‘void fix_register(const char*, int, int)’:
gcc/reginfo.c:680:1: internal compiler error: in get_loop_body, at
cfgloop.c:841
 fix_register (const char *name, int fixed, int call_used)
 ^

Reghunt indicates that it is related to r196792

+2013-03-19  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/56273
+       * gcc.dg/tree-ssa/vrp47.c: Adjust.
+       * c-c++-common/uninit-17.c: Likewise.
>From gcc-bugs-return-418069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:59:55 2013
Return-Path: <gcc-bugs-return-418069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16196 invoked by alias); 22 Mar 2013 12:59:55 -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 16062 invoked by uid 48); 22 Mar 2013 12:59:11 -0000
From: "aldot at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename"
Date: Fri, 22 Mar 2013 12:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldot at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: CC
Message-ID: <bug-36282-4-YcQlSikSdF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-36282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-36282-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01510.txt.bz2
Content-length: 1612


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

Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at ucw dot cz

--- Comment #4 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> 2013-03-22 12:59:10 UTC ---
(In reply to comment #3)
> Confirmed.
> 
> Still the same with gcc version 4.7.2 (Debian 4.7.2-5):
> $ cat <<EOF | gcc -x c -c - -o /dev/null
> #pragma weak __pthread_initialize
> extern void *memcpy(void *dest, const void *src, int n);
> extern typeof(memcpy) memcpy asm("__GI_memcpy");
> EOF
> <stdin>:2:14: warning: conflicting types for built-in function ‘memcpy’
> [enabled by default]
> <stdin>:3:1: warning: asm declaration ignored due to conflict with previous
> rename [-Wpragmas]

Works as expected if one provides a decl before the #pragma:

$ cat <<EOF | gcc -fno-builtin -x c -c - -o /dev/null
extern void __pthread_initialize (void);
#pragma weak __pthread_initialize
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm("__GI_memcpy");
EOF
$ cat <<EOF | gcc -fno-builtin -x c -c - -o /dev/null
#pragma weak __pthread_initialize
extern void __pthread_initialize (void);
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm("__GI_memcpy");
EOF
<stdin>:4:1: warning: asm declaration ignored due to conflict with previous
rename [-Wpragmas]

Honza, does that ring a bell, by chance?
>From gcc-bugs-return-418070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:07:31 2013
Return-Path: <gcc-bugs-return-418070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25196 invoked by alias); 22 Mar 2013 13:07:31 -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 24447 invoked by uid 48); 22 Mar 2013 13:06:48 -0000
From: "aldot at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/36282] [4.7/4.8/4.9 Regression] Spurious warning "asm declaration ignored due to conflict with previous rename"
Date: Fri, 22 Mar 2013 13:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldot at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Known to work Summary Known to fail
Message-ID: <bug-36282-4-bQFK3UGdmg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-36282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-36282-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01511.txt.bz2
Content-length: 2883


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

Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |3.4.6
            Summary|Spurious warning "asm       |[4.7/4.8/4.9 Regression]
                   |declaration ignored due to  |Spurious warning "asm
                   |conflict with previous      |declaration ignored due to
                   |rename"                     |conflict with previous
                   |                            |rename"
      Known to fail|                            |4.7.2, 4.8.0

--- Comment #5 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> 2013-03-22 13:06:47 UTC ---
$ gcc-3.4 -fno-exceptions -fomit-frame-pointer -fno-builtin -S pr36282.c -o
ok.s
$ gcc-4.7 -fno-exceptions -fomit-frame-pointer -fno-builtin -S pr36282.c -o
nak.s
pr36282.c:3:1: warning: asm declaration ignored due to conflict with previous
rename [-Wpragmas]

$ cat pr36282.c
#pragma weak __pthread_initialize
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm("__GI_memcpy");
char *usr(void) {
    char ch[2];
    return memcpy(&ch, "x", 2);
}
$ cat ok.s
    .file    "pr36282.c"
    .section    .rodata
.LC0:
    .string    "x"
    .text
.globl usr
    .type    usr, @function
usr:
.LFB2:
    subq    $24, %rsp
.LCFI0:
    movq    %rsp, %rdi
    movl    $2, %edx
    movl    $.LC0, %esi
    call    __GI_memcpy
    addq    $24, %rsp
    ret
.LFE2:
    .size    usr, .-usr
    .section    .eh_frame,"a",@progbits
.Lframe1:
    .long    .LECIE1-.LSCIE1
.LSCIE1:
    .long    0x0
    .byte    0x1
    .string    ""
    .uleb128 0x1
    .sleb128 -8
    .byte    0x10
    .byte    0xc
    .uleb128 0x7
    .uleb128 0x8
    .byte    0x90
    .uleb128 0x1
    .align 8
.LECIE1:
.LSFDE1:
    .long    .LEFDE1-.LASFDE1
.LASFDE1:
    .long    .LASFDE1-.Lframe1
    .quad    .LFB2
    .quad    .LFE2-.LFB2
    .byte    0x4
    .long    .LCFI0-.LFB2
    .byte    0xe
    .uleb128 0x20
    .align 8
.LEFDE1:
    .section    .note.GNU-stack,"",@progbits
    .ident    "GCC: (GNU) 3.4.6 (Debian 3.4.6-10)"

$ cat nak.s
    .file    "pr36282.c"
    .section    .rodata
.LC0:
    .string    "x"
    .text
    .globl    usr
    .type    usr, @function
usr:
.LFB0:
    .cfi_startproc
    subq    $24, %rsp
    .cfi_def_cfa_offset 32
    movq    %rsp, %rax
    movl    $2, %edx
    movl    $.LC0, %esi
    movq    %rax, %rdi
    call    memcpy
    addq    $24, %rsp
    .cfi_def_cfa_offset 8
    ret
    .cfi_endproc
.LFE0:
    .size    usr, .-usr
    .ident    "GCC: (Debian 4.7.2-5) 4.7.2"
    .section    .note.GNU-stack,"",@progbits


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

end of thread, other threads:[~2013-03-26 15:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22 12:20 [Bug bootstrap/56689] New: internal compiler error: in get_loop_body, at cfgloop.c:841 krebbel at gcc dot gnu.org
2013-03-22 13:14 ` [Bug bootstrap/56689] " rguenth at gcc dot gnu.org
2013-03-22 14:56 ` krebbel at gcc dot gnu.org
2013-03-25  8:01 ` krebbel at gcc dot gnu.org
2013-03-25  9:15 ` krebbel at gcc dot gnu.org
2013-03-25 10:37 ` [Bug bootstrap/56689] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-03-25 13:21 ` rguenth at gcc dot gnu.org
2013-03-26 15:08 ` krebbel 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).