diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-23 06:06:29 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-23 06:06:29 +0000 |
commit | 8a096472683581315df6e6747212356b3255087e (patch) | |
tree | dac105eba22e3c3a544b760bd2ca5b1db944f65e /gcc/fortran/intrinsic.c | |
parent | 63217c8a41fa03e943e9859df194ab78cbe8639b (diff) | |
download | gcc-8a096472683581315df6e6747212356b3255087e.tar.gz |
2008-06-23 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r137030
* gcc/melt/warm-basilys.bysl: some primitives got explicit casts.
* gcc/basilys.h: added casts to avoid implicit conversion from void*
disallowed with C++
* gcc/basilys.c: (delete_special, forwarded, scanning) likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@137031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/intrinsic.c')
-rw-r--r-- | gcc/fortran/intrinsic.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c index ebec5765ee5..df412757823 100644 --- a/gcc/fortran/intrinsic.c +++ b/gcc/fortran/intrinsic.c @@ -2853,7 +2853,7 @@ add_char_conversions (void) ncharconv++; /* Allocate memory. */ - char_conversions = gfc_getmem (sizeof (gfc_intrinsic_sym) * ncharconv); + char_conversions = XCNEWVEC (gfc_intrinsic_sym, ncharconv); /* Add the conversions themselves. */ n = 0; @@ -2905,13 +2905,14 @@ gfc_intrinsic_init_1 (void) sizing = SZ_CONVS; add_conversions (); - functions = gfc_getmem (sizeof (gfc_intrinsic_sym) * (nfunc + nsub) - + sizeof (gfc_intrinsic_arg) * nargs); + functions = XCNEWVAR (struct gfc_intrinsic_sym, + sizeof (gfc_intrinsic_sym) * (nfunc + nsub) + + sizeof (gfc_intrinsic_arg) * nargs); next_sym = functions; subroutines = functions + nfunc; - conversion = gfc_getmem (sizeof (gfc_intrinsic_sym) * nconv); + conversion = XCNEWVEC (gfc_intrinsic_sym, nconv); next_arg = ((gfc_intrinsic_arg *) (subroutines + nsub)) - 1; |