- Allocate register slots array separately on obstack
[libfirm] / ir / be / ppc32 / ppc32_nodes_attr.h
index 74ed775..e9770c1 100644 (file)
@@ -52,7 +52,6 @@ typedef enum {
 
 typedef struct _ppc32_attr_t {
        arch_irn_flags_t flags;     /**< indicating if spillable, rematerializeable ... etc. */
-       int              n_res;     /**< number of results for this node */
 
        const arch_register_req_t **in_req;  /**< register requirements for arguments */
        const arch_register_req_t **out_req; /**< register requirements for results */
@@ -69,8 +68,7 @@ typedef struct _ppc32_attr_t {
                void* empty;
        } data;
 
-       /* must be last, dynamically allocated */
-       const arch_register_t *slots[1];       /**< register slots for assigned registers */
+       const arch_register_t **slots;       /**< register slots for assigned registers */
 } ppc32_attr_t;
 
 #endif