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] Add some/remove comments and cleanup some code


Hi,
  This patch cleans up some code and adds some comments about why the code 
looks like it is and removes one outdated comment which is no longer true.

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

Thanks,
Andrew Pinski

ChangeLog:

        * fold-const.c (try_move_mult_to_index):
        Say why we strip the nops.
        (fold_unary <case NOP_EXPR>): Remove
        TODO as we cannot get that case.
        * tree-chrec.c (chrec_fold_plus):
        Cleanup the code to chose which
        tree code is used.
        (chrec_convert_rhs): Add comment on
        why the increment is sizetype for
        pointers.
        * tree-mudflap.c (mf_xform_derefs_1):
        Use size_int instead of build_int_cst.
        * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.


cp/ChangeLog:
        * typeck.c (build_binary_op): Add a comment on why creating
        the tree in pieces while processing templates.

Attachment: cleanupaddcomments.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]