delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/31/17:11:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: Bug: Missing va_end() in cygwin_internal() (OT)
Date: Fri, 31 Dec 2004 14:10:32 -0800
Lines: 19
Message-ID: <cr4iop$991$1@sea.gmane.org>
References: <04b601c4eeb3$c2cc6bb0$5308a8c0 AT robinson DOT cam DOT ac DOT uk> <NUTMEGtROUUHiC0iBRw00000b49 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: adsl-68-122-35-173.dsl.pltn13.pacbell.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041201 Thunderbird/1.0RC1 Mnenhy/0.7
In-Reply-To: <NUTMEGtROUUHiC0iBRw00000b49@NUTMEG.CAM.ARTIMI.COM>
X-IsSubscribed: yes

Dave Korn wrote:

>   Well, it's only gcc for which we can be absolutely sure it's a no-op.  It
> might be important to other compilers for all we know.  

The last architecture I'm aware of where it would make a difference was 
the old HP-3000 16-bit stack architecture (obsolete since 1986), where 
the arguments were laid out in the wrong order. (And it's way too old 
and obsolete to have a gcc port, anyway :-/).

Normally, args on such architectures are laid out such that the first 
argument is at a known (negative) offset from the stack frame base, and 
the others have increasing (negative) offsets. The HP-3000 was 
*ss-backwards, in that the first argument had the largest negative 
offset, with each succeeding argument having a smaller negative offset, 
so you had to go through incredible calisthenics to support varargs..

Max: keep looking for those nitpicky errors, though - the next one may 
be significant..


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019