Author: allison
Date: Sat May 10 08:00:22 2008
New Revision: 27414
Modified:
branches/pdd25cx/compilers/imcc/optimizer.c
branches/pdd25cx/compilers/imcc/pbc.c
Log:
[pdd25cx] Reverting two headerizer changes, suggested by chromatic.
Modified: branches/pdd25cx/compilers/imcc/optimizer.c
==============================================================================
--- branches/pdd25cx/compilers/imcc/optimizer.c (original)
+++ branches/pdd25cx/compilers/imcc/optimizer.c Sat May 10 08:00:22 2008
@@ -82,16 +82,6 @@
/* HEADERIZER BEGIN: static */
-PARROT_WARN_UNUSED_RESULT
-static int _is_ins_save(
- ARGIN(const IMC_Unit *unit),
- ARGIN(const Instruction *check_ins),
- ARGIN(const SymReg *r),
- int what)
- __attribute__nonnull__(1)
- __attribute__nonnull__(2)
- __attribute__nonnull__(3);
-
static int branch_branch(PARROT_INTERP, ARGMOD(IMC_Unit *unit))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
@@ -148,6 +138,18 @@
__attribute__nonnull__(2)
FUNC_MODIFIES(*unit);
+#if DO_LOOP_OPTIMIZATION
+
+PARROT_WARN_UNUSED_RESULT
+static int _is_ins_save(
+ ARGIN(const IMC_Unit *unit),
+ ARGIN(const Instruction *check_ins),
+ ARGIN(const SymReg *r),
+ int what)
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(2)
+ __attribute__nonnull__(3);
+
PARROT_WARN_UNUSED_RESULT
static int is_ins_save(PARROT_INTERP,
ARGIN(const IMC_Unit *unit),
@@ -159,6 +161,8 @@
__attribute__nonnull__(3)
__attribute__nonnull__(4);
+#endif /* DO_LOOP_OPTIMIZATION */
+
static int strength_reduce(PARROT_INTERP, ARGMOD(IMC_Unit *unit))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
Modified: branches/pdd25cx/compilers/imcc/pbc.c
==============================================================================
--- branches/pdd25cx/compilers/imcc/pbc.c (original)
+++ branches/pdd25cx/compilers/imcc/pbc.c Sat May 10 08:00:22 2008
@@ -183,8 +183,10 @@
__attribute__nonnull__(1)
__attribute__nonnull__(2);
+#ifdef HAS_JIT
PARROT_WARN_UNUSED_RESULT
static int old_blocks(void);
+#endif /* HAS_JIT */
PARROT_CONST_FUNCTION
PARROT_WARN_UNUSED_RESULT