ham@Neon.Stanford.EDU (Peter R. Ham) (09/22/89)
This is minor, but I think a cleaner way to initialize a floating point constant to zero is as follows. The original code won't compile unless the floating point type is a numeric C type. In my cross compilation case, it is a structure. *** c-convert.c Thu Sep 21 11:46:22 1989 --- ../dist/c-convert.c Mon Aug 7 17:04:38 1989 *************** *** 101,107 **** { register tree tem = make_node (REAL_CST); TREE_TYPE (tem) = type; ! TREE_REAL_CST (tem) = REAL_VALUE_ATOF("0.0"); return tem; } } --- 101,107 ---- { register tree tem = make_node (REAL_CST); TREE_TYPE (tem) = type; ! TREE_REAL_CST (tem) = 0; return tem; } } -- Peter Ham PO Box 3430 (h)(415) 324-9645 MS Computer Science Student Stanford, CA ham@polya.stanford.edu Stanford University 94309 (o)(415) 723-2067