This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[fortran] Fix comment in f95-lang.c


Since I'm currently working on the topic of builtins in the Fortran front-end:

To close PR43040 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43040), I've checked that the comment below in f95-lang.c is incorrect. We do indeed define the family of round() builtins with the same prototype as in C, so there is not a problem.

OK to commit and close PR43040?

FX




2010-06-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        PR fortran/43040
        * f95-lang.c (gfc_init_builtin_functions): Remove comment.



Index: f95-lang.c
===================================================================
--- f95-lang.c	(revision 160457)
+++ f95-lang.c	(working copy)
@@ -755,8 +755,6 @@ gfc_init_builtin_functions (void)
 
 #include "mathbuiltins.def"
 
-  /* We define these separately as the fortran versions have different
-     semantics (they return an integer type) */
   gfc_define_builtin ("__builtin_roundl", mfunc_longdouble[0], 
 		      BUILT_IN_ROUNDL, "roundl", true);
   gfc_define_builtin ("__builtin_round", mfunc_double[0], 


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