This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ lenience PATCH to coerce_new_type
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 07 Jan 2002 20:47:29 +0000
- Subject: C++ lenience PATCH to coerce_new_type
It's useful to be able to compile preprocessed code from a platform with a
different version of size_t.
2002-01-07 Jason Merrill <jason@redhat.com>
* decl2.c (coerce_new_type): Downgrade error for size_t mismatch
to pedwarn.
*** decl2.c.~1~ Mon Jan 7 19:08:56 2002
--- decl2.c Sat Jan 5 00:32:42 2002
*************** coerce_new_type (type)
*** 2064,2070 ****
e = 2;
if (args && args != void_list_node)
args = TREE_CHAIN (args);
! error ("`operator new' takes type `size_t' (`%T') as first parameter", c_size_type_node);
}
switch (e)
{
--- 2064,2070 ----
e = 2;
if (args && args != void_list_node)
args = TREE_CHAIN (args);
! pedwarn ("`operator new' takes type `size_t' (`%T') as first parameter", c_size_type_node);
}
switch (e)
{