re PR target/17052 (altivec varargs failure if no optimization)
[gcc.git] / gcc / config / rs6000 / sysv4.h
index 75be99e344eca4f40b261035b544927313c9fb31..f3f722d6db8d615c663bb62b63f5f98b7f971805 100644 (file)
@@ -332,7 +332,7 @@ do {                                                                        \
 /* Size of the V.4 varargs area if needed.  */
 /* Override rs6000.h definition.  */
 #undef RS6000_VARARGS_AREA
-#define RS6000_VARARGS_AREA ((cfun->machine->sysv_varargs_p) ? RS6000_VARARGS_SIZE : 0)
+#define RS6000_VARARGS_AREA (current_function_stdarg ? RS6000_VARARGS_SIZE : 0)
 
 /* Override default big endianism definitions in rs6000.h.  */
 #undef BYTES_BIG_ENDIAN