From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25415 invoked by alias); 10 Apr 2003 15:20:48 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25408 invoked from network); 10 Apr 2003 15:20:47 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 10 Apr 2003 15:20:47 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 193dr5-0003Jd-00; Thu, 10 Apr 2003 10:20:47 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 193dqw-00034d-00; Thu, 10 Apr 2003 11:20:38 -0400 Date: Thu, 10 Apr 2003 15:20:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: Andrew Cagney , Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA/TESTSUITE] build schedlock.c on 64-bit platforms Message-ID: <20030410152038.GA11800@nevyn.them.org> Mail-Followup-To: Andreas Schwab , Andrew Cagney , Elena Zannoni , gdb-patches@sources.redhat.com References: <16019.15635.929065.664152@localhost.redhat.com> <20030409131329.GA4525@nevyn.them.org> <16021.31692.763468.4182@localhost.redhat.com> <20030410141953.GA10379@nevyn.them.org> <3E958136.3060102@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00200.txt.bz2 On Thu, Apr 10, 2003 at 05:16:05PM +0200, Andreas Schwab wrote: > Andrew Cagney writes: > > |> > args[i] = 1; > |> >> - res = pthread_create(&threads[i], NULL, thread_function, (void *)i); > |> >> > |> > |> Try: > |> > |> (((char *) NULL) + i) > |> > |> and what ever the reverse of that is .... > > That is even less portable than the above. Really? What's non-portable about it? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer