This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed patch for PR 7507 and PR 9289
- From: Dale Johannesen <dalej at apple dot com>
- To: Christian Ehrhardt <ehrhardt at mathematik dot uni-ulm dot de>
- Cc: Dale Johannesen <dalej at apple dot com>, gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 17 Jan 2003 10:31:34 -0800
- Subject: Re: Proposed patch for PR 7507 and PR 9289
On Friday, January 17, 2003, at 10:19 AM, Christian Ehrhardt wrote:
The problem arises if gcc generates a call placeholder and the address
of the called function is a complicated expression. The problem is that
this expression will be evaluated at least twice, once in each
alternative
of the call placeholder. Most of the time this doesn't hurt but e.g. if
the code contains labels/jumps the label will only be emitted for one
of the
alternatives. The other alternative(s) will still jump to that label
though.
This is (at least) the 3rd bug like this that has shown up. Might it
be a
good idea to rewrite the low-level label infrastructure to allow
duplicate labels in the placeholder alternatives? That might be
stabler.