OSDN Git Service

* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
[pf3gnuchains/gcc-fork.git] / gcc / tree-nrv.c
index 0df0712..64e9636 100644 (file)
@@ -1,5 +1,5 @@
 /* Language independent return value optimizations
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -154,6 +154,7 @@ tree_nrv (void)
          /* The returned value must be a local automatic variable of the
             same type and alignment as the function's result.  */
          if (TREE_CODE (found) != VAR_DECL
+             || TREE_THIS_VOLATILE (found)
              || DECL_CONTEXT (found) != current_function_decl
              || TREE_STATIC (found)
              || TREE_ADDRESSABLE (found)