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

Tobias Burnus burnus@net-b.de
Wed Oct 9 21:55:00 GMT 2013


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-64-gnu-linux.
OK?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt.diff
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131009/b923764f/attachment.bin>


More information about the Gcc-patches mailing list