This is the mail archive of the gcc-patches@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: [tree-ssa-cfg] Bugfixes


Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> writes:

>     /* Remove all the instructions in the block.  */
> !   for (i = bsi_last (bb); !bsi_end_p (i); i = bsi_last (bb))
>       {

Is this really correct?  You initialize with bsi_last (bb) and then go
to it in the next iteration again?  This looks to me - not knowing the
interface  -like an endless loop...

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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