[Bug libfortran/52537] slow trim function

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 10:47:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52537

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-04-12 10:47:36 UTC ---
For this particular case,

if (trim(a) == '') 

could be simplified to

if (len_trim(a) == 0)

Probably best done via front-end optimization.



More information about the Gcc-bugs mailing list