delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/30/07:44:13

Date: Mon, 30 Jun 1997 14:36:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nate Eldredge <eldredge AT ap DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Bug (?) in GCC - discarded struct returns
In-Reply-To: <199706262127.OAA25663@adit.ap.net>
Message-ID: <Pine.SUN.3.91.970630143525.22800I-100000@is>
MIME-Version: 1.0

On Thu, 26 Jun 1997, Nate Eldredge wrote:

> I've found a problem with GCC that I don't know whether to describe as a bug
> or just compiler stupidity. The problem is that when calling a function
> returning a struct several times and ignoring the return value, space is
> allocated on the stack for *each* of the ignored structs.
[snip]
> Turning on optimizations has no effect on this problem (except that -O3 or
> -finline-functions make it a lot harder to see). Unless someone can think of
> a justification for this inefficiency, I'm going to report it to GNU. 

Please do report this to GNU.  Thanks.

- Raw text -


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