Deleted Added
full compact
typeck.c (171826) typeck.c (220150)
1/* Build expressions with type checking for C++ compiler.
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 Hacked by Michael Tiemann (tiemann@cygnus.com)
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify

--- 6590 unchanged lines hidden (view full) ---

6599 if (fn_returns_value_p && flag_elide_constructors)
6600 {
6601 if (retval != NULL_TREE
6602 && (current_function_return_value == NULL_TREE
6603 || current_function_return_value == retval)
6604 && TREE_CODE (retval) == VAR_DECL
6605 && DECL_CONTEXT (retval) == current_function_decl
6606 && ! TREE_STATIC (retval)
1/* Build expressions with type checking for C++ compiler.
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 Hacked by Michael Tiemann (tiemann@cygnus.com)
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify

--- 6590 unchanged lines hidden (view full) ---

6599 if (fn_returns_value_p && flag_elide_constructors)
6600 {
6601 if (retval != NULL_TREE
6602 && (current_function_return_value == NULL_TREE
6603 || current_function_return_value == retval)
6604 && TREE_CODE (retval) == VAR_DECL
6605 && DECL_CONTEXT (retval) == current_function_decl
6606 && ! TREE_STATIC (retval)
6607 && ! DECL_ANON_UNION_VAR_P (retval)
6607 && (DECL_ALIGN (retval)
6608 >= DECL_ALIGN (DECL_RESULT (current_function_decl)))
6609 && same_type_p ((TYPE_MAIN_VARIANT
6610 (TREE_TYPE (retval))),
6611 (TYPE_MAIN_VARIANT
6612 (TREE_TYPE (TREE_TYPE (current_function_decl))))))
6613 current_function_return_value = retval;
6614 else

--- 383 unchanged lines hidden ---
6608 && (DECL_ALIGN (retval)
6609 >= DECL_ALIGN (DECL_RESULT (current_function_decl)))
6610 && same_type_p ((TYPE_MAIN_VARIANT
6611 (TREE_TYPE (retval))),
6612 (TYPE_MAIN_VARIANT
6613 (TREE_TYPE (TREE_TYPE (current_function_decl))))))
6614 current_function_return_value = retval;
6615 else

--- 383 unchanged lines hidden ---