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]

[PATCH]: Fix obvious bug in perfect_nestify/can_convert_to_perfect_nestin lambda-code.c


As zdenek noticed with one of his patches, there is an obvious bug in that can_convert_to_perfect_nest returns true for a loop perfect_nestify can't handle.

This patch fixes it by moving the one check that perfect_nestify was doing to can_convert_to_perfect_nest

Bootstrapped and regtested on i686-pc-linux-gnu.

Committed as obvious.

--Dan

Attachment: nestifybug.diff
Description: Text document


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