Re: [Patch, Fortran] PR58226 - Avoid invalid mem access with compiler_options

2013-10-09 Thread Steve Kargl
On Wed, Oct 09, 2013 at 11:51:30PM +0200, Tobias Burnus wrote: > A rather obvious fix; the memory is freed by the caller > (gfc_simplify_compiler_options). It is unlikely that the compiler has no > arguments as the driver tends to send some, e.g. "-mtune=generic > -march=x86-64" on my system. Ho

[Patch, Fortran] PR58226 - Avoid invalid mem access with compiler_options

2013-10-09 Thread Tobias Burnus
A rather obvious fix; the memory is freed by the caller (gfc_simplify_compiler_options). It is unlikely that the compiler has no arguments as the driver tends to send some, e.g. "-mtune=generic -march=x86-64" on my system. However, it is better to be safe than sorry. Build and regtested on x86