[patch, fortran] Always return malloc(1) for empty arrays in the library

Thomas Koenig tkoenig@netcologne.de
Tue Jun 28 22:37:00 GMT 2011

Hello world,

looking at PR 49479 and other functions in the library made me realize
there are lots of places where we don't malloc one byte for empty

This patch is an attempt at fixing the ton of regressions likely
caused by this (like in the PR) which haven't been found yet.
No test cases, as they haven't been found yet :-)

I also noticed two places where we had a memory leak (in eoshift1 and
eoshift3), which I also fixed.

Regression-tested.  OK for trunk and, after a few days, for 4.6?


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110628/d7487139/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 9581 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110628/d7487139/attachment.bin>

More information about the Gcc-patches mailing list