From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16498 invoked by alias); 4 Apr 2010 21:16:11 -0000 Received: (qmail 16385 invoked by uid 48); 4 Apr 2010 21:15:50 -0000 Date: Sun, 04 Apr 2010 21:16:00 -0000 Message-ID: <20100404211550.16384.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43643] gcc -m64 -pg corrupts %rdx / %rcx register In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jrgn dot keil at googlemail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00352.txt.bz2 ------- Comment #1 from jrgn dot keil at googlemail dot com 2010-04-04 21:15 ------- Created an attachment (id=20306) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20306&action=view) SUggested fix This patch should fix the problem. % /tmp/gcc4/bin/gcc -m64 -pg -o test test.c % ./test % gprof -b test gmon.out granularity: each sample hit covers 4 byte(s) no time propagated called/total parents index %time self descendents called+self name index called/total children 0.00 0.00 1/1 main [2] [1] 0.0 0.00 0.00 1 func [1] ----------------------------------------------- 0.00 0.00 1/1 _start [16] [2] 0.0 0.00 0.00 1 main [2] 0.00 0.00 1/1 func [1] ----------------------------------------------- granularity: each sample hit covers 4 byte(s) no time accumulated % cumulative self self total time seconds seconds calls ms/call ms/call name 0.0 0.00 0.00 1 0.00 0.00 func [1] 0.0 0.00 0.00 1 0.00 0.00 main [2] Index by function name [1] func [2] main Object modules 1: test -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43643