[patch, fortran] use vec<> in frontend-passes.c

Thomas Koenig tkoenig@netcologne.de
Sat Aug 23 22:47:00 GMT 2014


Hello world,

the attached patch uses the vec<> templates instead of the
home-grown memory management.

Did I get the style right?  I was a bit confused because, with
the declarations used in the patch, using the vec_safe_truncate
function failed with a failure to find the right template.
I'm not an experienced C++ programmer, so I would appreciate a quick
look at what I did.

Regression-tested.  No test case because there is no new
functionality.

OK for trunk?  Any other comments?

	Thomas

2014-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

        * frontend_passes (expr_array):  Replace by vec template.
        (expr_size):  Remove.
        (expr_count):  Remove.
        (doloop_list):  Replace by vec template.
        (doloop_size):  Remove.
        (gfc_run_passes):  Adjust to use of vec template.
        (cfe_register_funcs):  Likewise.
        (cfe_expr_0):  Likewise.
        (doloop_code):  Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 5013 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140823/efcbd984/attachment.bin>


More information about the Fortran mailing list