This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)
    {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]