Support dtor sections on Mach-O.
[libfirm] / ir / ana / ircfscc.c
index b4ad406..25f9731 100644 (file)
@@ -28,9 +28,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
 
 #include "irloop_t.h"
 #include "irnode_t.h"
@@ -79,9 +77,7 @@ typedef struct scc_info {
 
 /** Allocate a new scc_info on the given obstack */
 static inline scc_info *new_scc_info(struct obstack *obst) {
-       scc_info *info = obstack_alloc(obst, sizeof(*info));
-       memset(info, 0, sizeof(*info));
-       return info;
+       return OALLOCZ(obst, scc_info);
 }
 
 /**