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]

[gfortran] PATCH clean up arith.c


The attached patch moves a set of statements from 
several routines into a new functions, and removes
the duplicate code.  It also removes 2 conditional
statements that should never be triggered.

2005-02-13  Steven G. Kargl <kargls@comcast.net>

       *arith.c (gfc_check_result): New functions
       (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
        gfc_arith_times, gfc_arith_divide, gfc_arith_power): Use it.
       (gfc_int2real, gfc_int2complex): Remove useless conditional.
        
-- 
Steve

Attachment: arith.c.diff
Description: Text document


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