From 4dc6c528c2b8e858ae65d91a82c6fae661894302 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 29 Jun 2008 04:39:16 +0000 Subject: alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings. * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings. * df-scan.c (df_notes_rescan): Likewise. * ggc-page.c (set_page_table_entry): Likewise. * intl.c (gcc_gettext_width): Likewise. * varasm.c (get_unnamed_section, get_noswitch_section, get_section): Likewise. From-SVN: r137245 --- gcc/intl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/intl.c') diff --git a/gcc/intl.c b/gcc/intl.c index f76dbad..dfc015d 100644 --- a/gcc/intl.c +++ b/gcc/intl.c @@ -91,7 +91,7 @@ size_t gcc_gettext_width (const char *msgstr) { size_t nwcs = mbstowcs (0, msgstr, 0); - wchar_t *wmsgstr = alloca ((nwcs + 1) * sizeof (wchar_t)); + wchar_t *wmsgstr = XALLOCAVEC (wchar_t, nwcs + 1); mbstowcs (wmsgstr, msgstr, nwcs + 1); return wcswidth (wmsgstr, nwcs); -- cgit v1.1