Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267199AbUIORtL (ORCPT ); Wed, 15 Sep 2004 13:49:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266878AbUIORsL (ORCPT ); Wed, 15 Sep 2004 13:48:11 -0400 Received: from thebsh.namesys.com ([212.16.7.65]:44775 "HELO thebsh.namesys.com") by vger.kernel.org with SMTP id S267184AbUIORp7 (ORCPT ); Wed, 15 Sep 2004 13:45:59 -0400 From: Nikita Danilov MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-ID: <16712.32725.515306.890990@thebsh.namesys.com> Date: Wed, 15 Sep 2004 21:45:57 +0400 To: Linus Torvalds Cc: =?iso-8859-1?Q?J=F6rn?= Engel , Kernel Mailing List Subject: Re: Being more anal about iospace accesses.. In-Reply-To: References: <20040915165450.GD6158@wohnheim.fh-wedel.de> X-Mailer: VM 7.17 under 21.5 (patch 17) "chayote" (+CVS-20040321) XEmacs Lucid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 805 Lines: 33 Linus Torvalds writes: > > > On Wed, 15 Sep 2004, J?rn Engel wrote: > > > > C now supports pointer arithmetic with void*? > > C doesn't. gcc does. It's a documented extension, and it acts like if it > was done on a byte. > > See gcc's user guide "Extension to the C Language Family". > > It's a singularly good feature. Unfortunately it breaks even better identity foo *p; p + nr == (foo *)((char *)p + nr * sizeof *p) unless one thinks that is --together with gcc-- that nothing occupies exactly one byte. > > Linus Nikita. - 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/