This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in tidy_fallthru_edges ?
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Jan 2002 18:52:39 +0100
- Subject: Re: Bug in tidy_fallthru_edges ?
Alexandre Oliva wrote:
>On Jan 14, 2002, "Ulrich Weigand" <Ulrich.Weigand@de.ibm.com> wrote:
>
>> What happens is that 'tidy_fallthru_edges' simply removes the
>> 'fake_return' label, because it apparently considers the 'return 0'
>> statement only reachable via fall-through from the main body,
>> without taking into account that there is a named label,
>> which is actually used somewhere ...
>
>such labels must always be used locally within the same function. The
>compiler only adds edges from computed gotos to labels whose addresses
>are taken. If there are no computed gotos, there are no such edges.
Ah, I see. We'll fix swapcontext then ...
Thanks,
Ulrich
--
Dr. Ulrich Weigand
Linux for S/390 Design & Development
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com