From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 2 09:03:03 2015 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAB712A7 for ; Mon, 2 Mar 2015 09:03:03 +0000 (UTC) Received: from au-mx41.inxserver.com.au (au-mx41.inxserver.com.au [113.192.45.247]) by mx1.freebsd.org (Postfix) with ESMTP id 4C3B128C for ; Mon, 2 Mar 2015 09:03:02 +0000 (UTC) Received: from au-mx02d.bo.inxserver.com.au (au-mx02d.bo.inxserver.com.au [10.104.83.62]) by au-mx41.inxserver.com.au (Postfix) with ESMTP id B907D10A510B for ; Mon, 2 Mar 2015 19:28:08 +1100 (EST) Received: from localhost (au-mx02.bo.inxserver.com.au [10.104.83.51]) by au-mx02d.bo.inxserver.com.au (Postfix) with ESMTP id B73D010E04C4 for ; Mon, 2 Mar 2015 19:28:08 +1100 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=inxserver.com.au; h=x-mailer:list-unsubscribe:list-id:content-type:content-type :mime-version:subject:subject:message-id:reply-to:from:from:date :date:received:received; s=abc; t=1425284888; bh=KsVrzlQOZH2KJNA FhBzIuQHAKmjEQGkuaJ9ll6dbGsg=; b=Dq7IYofCJBKyfVrJD5Fyim4yRnxSs7T 0jCIuFqRCGramwXEUi1h5rqA5kBDwJPjzmeHPYu3xwmrOr9dUMiZsCB0x2TXwe1y ijeR8z3sRWLJvwijRRM6+lCr874PNYBqhDA+M0IfTDKLm6S0VVKG2Zxd1eluMRts kvTMj61lytCo= Received: from au-mx02d.bo.inxserver.com.au ([10.104.83.62]) by localhost (au-mx02.bo.inxserver.com.au [10.104.83.51]) (amavisd-new, port 10024) with ESMTP id FVE0cAIbra2M for ; Mon, 2 Mar 2015 19:28:08 +1100 (EST) Received: from au-app01.bo.inxserver.com.au (au-app01.bo.inxserver.com.au [10.104.83.40]) by au-mx02d.bo.inxserver.com.au (Postfix) with ESMTP id 5216310E0560 for ; Mon, 2 Mar 2015 19:28:08 +1100 (EST) Date: Mon, 2 Mar 2015 19:30:12 +1100 (EST) From: ImporterDeals Reply-To: ImporterDeals To: freebsd-bugs@freebsd.org Message-ID: Subject: Professional Modern Office Desk MIME-Version: 1.0 X-Mailer: Inxmail EE 4.3.2.106 X-CSA-Complaints: whitelist-complaints@eco.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 09:03:04 -0000 Importer Deals Pedestal Office Desk: http://rdir.importerdeals.com.au/d/d.html?q000006q00jris00d0000lyi00000000000flxb05 240 Watt Solar Folding - $290: http://rdir.importerdeals.com.au/d/d.html?q000004y00jris00d0000lyi00000000000fkg2i5 Safe Wash - $299: http://rdir.importerdeals.com.au/d/d.html?q000005000jris00d0000lyi00000000000fksdi5 un-subscribe: http://rdir.importerdeals.com.au/d/d.html?q000005i00jris00k0000lyi00000000000fck7i5 From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 2 10:30:53 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B0AF655 for ; Mon, 2 Mar 2015 10:30:53 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5960EDC5 for ; Mon, 2 Mar 2015 10:30:53 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t22AUrug079553 for ; Mon, 2 Mar 2015 10:30:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198151] /usr/include/sys/elf64.h macro ELF64_R_INFO needs a cast Date: Mon, 02 Mar 2015 10:30:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 9.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jphartmann@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 10:30:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198151 Bug ID: 198151 Summary: /usr/include/sys/elf64.h macro ELF64_R_INFO needs a cast Product: Base System Version: 9.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jphartmann@gmail.com Created attachment 153658 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153658&action=edit Trivial test case https://svnweb.freebsd.org/base/head/sys/sys/elf64.h?revision=276539&view=markup Line 160 in the current SVN: #define ELF64_R_INFO(sym, type) (((sym) << 32) + ((type) & 0xffffffffL)) This means that sym is not promoted to 64 bit and as a result it is truncated by the shift. Gcc 4.2.1 issues a warning about this. cc1: warnings being treated as errors elf.c: In function 'elfrld': elf.c:513: warning: left shift count >= width of type Linux defines the macro as #define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type)) [john@fb91 ~/src/z/hlasm]$ gcc --version gcc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 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. [john@fb91 ~/src/z/hlasm]$ uname -a FreeBSD fb91.jphartmann.net 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Tue Apr 8 06:17:44 CEST 2014 root@fb91.jphartmann.net:/usr/obj/usr/src/sys/GENERIC amd64 Test case in FreeBSD 9.1: [john@fb91 ~/src/testing]$ gcc ebug.c -o ebug ebug.c: In function 'main': ebug.c:25: warning: left shift count >= width of type [john@fb91 ~/src/testing]$ ./ebug 000000 000000 020000 000000 000000 000000 Same on Linux: [/home/john/src/testing] ./ebug 000000 000000 020000 010000 000000 000000 -- You are receiving this mail because: You are the assignee for the bug.