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]

[PTR-PLUS] Fix the first bug report reported against the branch (PR 32015)


Hi,
  The problem here is that chrec_apply was using the type of the left hand 
side of the chrec to convert the number of iteractions for the 
multiplications to the right hand side.  This patch uses chrec_convert_rhs 
instead of chrec_convert for that variable and also adds extra checking in 
build2_stat to make sure MULT_EXPR is not used for pointers.

Committed to the branch after a bootstrap/test on i686-linux-gnu with no 
regressions.

Thanks,
Andrew Pinski

ChangeLog:

        * tree.c (build2_stat): Make sure that
        MULT_EXPR is not used with pointers.
        * tree-chrec.c (chrec_apply): Use chrec_convert_rhs
        on the argument x instead of chrec_convert.


        * gcc.c-torture/compile/20070520-1.c: New test.

Attachment: fixpr32015.diff.txt
Description: Text document


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