public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/65929] New: FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE
@ 2015-04-29 11:31 ubizjak at gmail dot com
  2015-04-29 11:33 ` [Bug gcov-profile/65929] " ubizjak at gmail dot com
  2015-04-30 17:49 ` ctice at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-29 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65929
           Summary: FAIL: gcc.dg/tree-prof/pr34999.c compilation,
                    -fprofile-use -D_PROFILE_USE
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com
  Target Milestone: ---

Revision r222473 causes following warning on alpha-linux-gnu when compiling
pr34999.c:

/tmp/ccPdj6Kv.s: Assembler messages:
/tmp/ccPdj6Kv.s:107: Warning: nested .ent directives
/tmp/ccPdj6Kv.s:121: Warning: .end directive names different symbol than .ent
/tmp/ccPdj6Kv.s:124: Warning: .end directive without matching .ent

The failure can be seen with a crosscompiler to from x86_64-linux-gnu to
alpha-linux-gnu with following command:

gcc-build-alpha/gcc/cc1 -O2 -freorder-blocks-and-partition -fprofile-use
-o pr34999.s -fpreprocessed pr34999.i

The resulting assembly shows nested .ent/.end directives where main.cold.0 was
inserted:

--cut here--
        .set noreorder
        .set volatile
        .set noat
        .section        .rodata
$LC0:
        .string "test"
        .section        .text.unlikely,"ax",@progbits
        .align 2
$LCOLDB1:
        .section        .text.startup,"ax",@progbits
$LHOTB1:
        .align 2
        .align 4
        .globl main
        .ent main
main:
        .frame $15,32,$26,0
        .mask 0x4008000,-32
$LFB1:
        ldgp $29,0($27)
$main..ng:
        lda $30,-32($30)
$LCFI0:
        lda $1,$LC0
        lda $3,buf
        bis $31,$31,$31
        stq $15,8($30)
$LCFI1:
        mov $30,$15
$LCFI2:
        stq $26,0($30)
$LCFI3:
        .prologue 1
        lda $30,-48($30)
        stq $30,16($15)
        lda $6,4($1)
        ldq_u $4,4($1)
        ldq_u $5,0($1)
        ldq_u $2,3($1)
        bis $31,$31,$31
        extbl $4,$6,$8
        ldl $19,4($30)
        extll $5,$1,$0
        lda $24,$L2
        extlh $2,$1,$7
        insbl $8,0,$21
        bic $19,255,$20
        cpys $f31,$f31,$f31
        bis $0,$7,$16
        stl $16,0($30)
        bis $21,$20,$22
        stl $22,4($30)
        stq $24,8($3)
        lda $23,16($15)
        stq $30,16($3)
        bis $31,$31,$31
        stq $23,0($3)
        lda $3,4096($31)
        ldl $25,0($30)
        sll $25,40,$26
        sra $26,56,$27
        s4addq $27,30,$28
        bic $28,15,$1
        cmpult $1,$3,$5
        subq $30,$1,$2
        bne $5,$L7
        lda $6,-4096($30)
        bis $31,$31,$31
$L6:
        stq $31,0($6)
        lda $6,-8192($6)
        cmpule $6,$2,$4
        beq $4,$L6
        stq $31,0($2)
$L7:
        mov $2,$30
        mov $30,$16
        ble $27,$L9
        subl $27,1,$0
        zapnot $0,15,$7
        mov $31,$17
        s4addq $7,4,$18
        jsr $26,memset
        ldgp $29,0($26)
$L9:
        jsr $26,sub2
$L2:
        lda $15,-16($15)
        br $27,$LSJ100
$LSJ100:
        ldgp $29,0($27)
        ldq $16,16($15)
        lda $17,$LC0
        jsr $26,strcmp
        ldgp $29,0($26)
        bne $0,$L17
        mov $31,$16
        jsr $26,exit
$L17:
        br $31,$L4
        .section        .text.unlikely
        .ent main.cold.0
main.cold.0:
        .frame $15,32,$26,0
        .mask 0x4008000,-32
$L4:
$LCFI4:
        jsr $26,abort
$LFE1:
        .section        .text.startup
        bis $31,$31,$31
        .end main
        .section        .text.unlikely
        bis $31,$31,$31
        .end main.cold.0
$LCOLDE1:
        .section        .text.startup
$LHOTE1:
        .section        .text.unlikely
        .align 2
$LCOLDB2:
        .text
$LHOTB2:
        .align 2
        .align 4
        .globl sub2
        .ent sub2
sub2:
        .frame $15,16,$26,0
        .mask 0x4008000,-16
$LFB0:
        ldgp $29,0($27)
$sub2..ng:
        lda $30,-16($30)
$LCFI5:
        lda $1,buf
        stq $15,8($30)
$LCFI6:
        mov $30,$15
$LCFI7:
        stq $26,0($30)
$LCFI8:
        .prologue 1
        ldq $27,8($1)
        ldq $15,0($1)
        ldq $30,16($1)
        jmp $31,($27),0
$LFE0:
        .end sub2
        .section        .text.unlikely
$LCOLDE2:
        .text
$LHOTE2:
[...]
--cut here--


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

* [Bug gcov-profile/65929] FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE
  2015-04-29 11:31 [Bug gcov-profile/65929] New: FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE ubizjak at gmail dot com
@ 2015-04-29 11:33 ` ubizjak at gmail dot com
  2015-04-30 17:49 ` ctice at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-29 11:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 35422
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35422&action=edit
Preprocessed source
>From gcc-bugs-return-484961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 29 11:34:35 2015
Return-Path: <gcc-bugs-return-484961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10012 invoked by alias); 29 Apr 2015 11:34:35 -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 9724 invoked by uid 48); 29 Apr 2015 11:34:31 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/65929] FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE
Date: Wed, 29 Apr 2015 11:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: attachments.created
Message-ID: <bug-65929-4-gFPFEIO9X5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65929-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65929-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-04/txt/msg02513.txt.bz2
Content-length: 232

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

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 35423
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35423&action=edit
gcda file
>From gcc-bugs-return-484962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 29 11:45:47 2015
Return-Path: <gcc-bugs-return-484962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36012 invoked by alias); 29 Apr 2015 11:45:47 -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 35957 invoked by uid 48); 29 Apr 2015 11:45:41 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/65929] FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE
Date: Wed, 29 Apr 2015 11:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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:
Message-ID: <bug-65929-4-CYCP62NmAK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65929-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65929-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-04/txt/msg02514.txt.bz2
Content-length: 722

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

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
The difference between new (zzz.s) and previous (yyy.s) asm dumps is:

--- yyy.s       2015-04-29 13:44:03.870706031 +0200
+++ zzz.s       2015-04-29 13:26:41.812887199 +0200
@@ -99,7 +99,10 @@
 $L17:
        br $31,$L4
        .section        .text.unlikely
+       .ent main.cold.0
 main.cold.0:
+       .frame $15,32,$26,0
+       .mask 0x4008000,-32
 $L4:
 $LCFI4:
        jsr $26,abort
@@ -108,6 +111,8 @@
        bis $31,$31,$31
        .end main
        .section        .text.unlikely
+       bis $31,$31,$31
+       .end main.cold.0
 $LCOLDE1:
        .section        .text.startup
 $LHOTE1:
>From gcc-bugs-return-484963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 29 11:49:57 2015
Return-Path: <gcc-bugs-return-484963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49294 invoked by alias); 29 Apr 2015 11:49: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 49247 invoked by uid 48); 29 Apr 2015 11:49:52 -0000
From: "shenders at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/51996] ICE in extract_insn gcc.dg/pr48335-5.c
Date: Wed, 29 Apr 2015 11:49: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.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: shenders at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: sameerad at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-51996-4-ij3gmDnwTO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51996-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51996-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-04/txt/msg02515.txt.bz2
Content-length: 571

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

Stuart Henderson <shenders at gcc dot gnu.org> changed:

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

--- Comment #2 from Stuart Henderson <shenders at gcc dot gnu.org> ---
FYI: Julian Brown from Codesourcery posted a patch here:
https://gcc.gnu.org/ml/gcc-patches/2013-06/msg00947.html
back in 2013, but it appears to have been orphaned along the way.


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

* [Bug gcov-profile/65929] FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE
  2015-04-29 11:31 [Bug gcov-profile/65929] New: FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE ubizjak at gmail dot com
  2015-04-29 11:33 ` [Bug gcov-profile/65929] " ubizjak at gmail dot com
@ 2015-04-30 17:49 ` ctice at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ctice at gcc dot gnu.org @ 2015-04-30 17:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Thu Apr 30 17:49:02 2015
New Revision: 222643

URL: https://gcc.gnu.org/viewcvs?rev=222643&root=gcc&view=rev
Log:
Define & use special macros to record the name & size of cold
partitions.  (Fix PR 65929).

gcc/ChangeLog

PR 65929
* config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
(ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
* doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
(ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
* final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
* varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.

gcc/testsuite/ChangeLog:

PR  65929
* gcc.dg/tree-prof/cold_partition_label.c:  Only check for cold
partition size on certain targets.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/elfos.h
    trunk/gcc/doc/tm.texi.in
    trunk/gcc/final.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-prof/cold_partition_label.c
    trunk/gcc/varasm.c


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

end of thread, other threads:[~2015-04-30 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 11:31 [Bug gcov-profile/65929] New: FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE ubizjak at gmail dot com
2015-04-29 11:33 ` [Bug gcov-profile/65929] " ubizjak at gmail dot com
2015-04-30 17:49 ` ctice 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).