Hello world, this is the last round of TRIM optimizations. This patch extends the treatment of trailing TRIMs in concatenations to comparisions. It also does a bit of code cleanup by removing some duplication, and by not changing the rhs in optimize_assignment. OK for trunk? Thomas 2011-06-13 Thomas Koenig * frontend-passes.c (remove_trim): New function. (optimize_assignment): Use it. (optimize_comparison): Likewise. Return correct status for previous change. 2011-06-13 Thomas Koenig * gfortran.dg/trim_optimize_8.f90: New test case.