This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]