From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3908 invoked by alias); 14 Jun 2006 15:08:56 -0000 Received: (qmail 3764 invoked by uid 48); 14 Jun 2006 15:08:35 -0000 Date: Wed, 14 Jun 2006 15:09:00 -0000 Message-ID: <20060614150834.3763.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/27528] compiling linux kernels 2.6.16.14/15 2.6.17-rc3 on powerpc (7450) get error on long exixting code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hp at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01368.txt.bz2 List-Id: ------- Comment #10 from hp at gcc dot gnu dot org 2006-06-14 15:08 ------- I can't help but thinking the code is valid and that this is a valid bug. Arguably, it *might* be hard to fix, and we'll have to cop out and adjust the documentation instead. I mean, the "i" constraint purpose is documented as: "this includes symbolic constants whose values will be known only at assembly time or later." In this case, "later" is link-time. In some cases, including variables, the "later" would be dynamic-link-time which will be a bit beyond reach; but as long as GCC generates an internal label, it should work with no warnings. See also PR19708 and 17346. If the C standard defines something other than programmer sense for "symbolic constant", that isn't as interesting; we're already in asm-land and are supposed to be useful, not pedantic. Taking the address of a constant string is useful... And oh, I almost forgot to mention that I get the warning with 3.2 for cris-axis-linux-gnu too. Yes, in the kernel, for the same use. (Sigh.) I'm a bit behind on gcc work so I don't know if I get it for 4.2 as well. I assigned the PR to me to avoid the feeling of adding to peoples workload, but I guess I'll have to hack trees and that might take a while. -- hp at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hp at gcc dot gnu dot org Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27528