[PATCH 1/2] Come up with function_decl_type and use it in tree_function_decl.

Marc Glisse marc.glisse@inria.fr
Thu Jul 25 12:21:00 GMT 2019


On Thu, 25 Jul 2019, Martin Liška wrote:

>> DCE has special code to avoid removing the LHS of malloc when it is unused. Is there something different about operator new that makes it not need the same handling?

If you take gcc.dg/torture/pr51692.c and replace __builtin_calloc (1, 
sizeof (double)) with new double(), we get an ICE with -O or higher...

-- 
Marc Glisse



More information about the Gcc-patches mailing list