make osr_flag_default a define, because "simple-minded" CRecoder cannot handle this
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 9 Jun 2006 11:37:49 +0000 (11:37 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 9 Jun 2006 11:37:49 +0000 (11:37 +0000)
[r7902]

ir/opt/opt_osr.h

index e41d53d..cabcdab 100644 (file)
@@ -20,10 +20,13 @@ typedef enum osr_flags {
        osr_flag_none               = 0,  /**< no additional flags */
        osr_flag_lftr_with_ov_check = 1,  /**< do only linear function test replacement
                                               if no overflow occurs. */
-       /** default setting */
-       osr_flag_default = osr_flag_lftr_with_ov_check
 } osr_flags;
 
+/* FirmJNI cannot handle identical enum values... */
+
+/** default setting */
+#define osr_flag_default osr_flag_lftr_with_ov_check
+
 /**
  * Do the Operator Scalar Replacement optimization and linear
  * function test replacement for loop control.