Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752551AbbFNSHg (ORCPT ); Sun, 14 Jun 2015 14:07:36 -0400 Received: from mail.skyhub.de ([78.46.96.112]:39692 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbbFNSH3 (ORCPT ); Sun, 14 Jun 2015 14:07:29 -0400 Date: Sun, 14 Jun 2015 20:07:24 +0200 From: Borislav Petkov To: Enrico Mioso , Michael Matz Cc: linux-kernel@vger.kernel.org, x86-ml Subject: Re: X86 GIT GCC 5 compilation warning Message-ID: <20150614180724.GB14892@pd.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 32 On Sun, Jun 14, 2015 at 05:14:18PM +0200, Enrico Mioso wrote: > Hi guys. > Compiling my kernel with gcc (GCC) 5.1.0 > the GIT snapshot as of commit c8d17b451aa18b07b60e771addf17a5fdd4138c7 > I get the following warning you might be interested in: > arch/x86/kernel/head_32.S:66: Warning: shift count out of range (32 is not between 0 and 31) That's LOWMEM_PAGES = (((1<<32) - __PAGE_OFFSET) >> PAGE_SHIFT) and a 32-bit build. So gas hasn't been complaning so far about this. Micha, did something change wrt constants type and width in gas in gcc5? Judging by the warning, it seems gas considers the "1" a 4-byte type now and complains about the shift overflow. But it didn't before and the asm from gcc4.9 looks correct here. What's up? -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/