develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34423 - trunk/compilers/imcc

From:
infinoid
Date:
December 27, 2008 06:33
Subject:
[svn:parrot] r34423 - trunk/compilers/imcc
Message ID:
20081227143309.3AFBECBA12@x12.develooper.com
Author: infinoid
Date: Sat Dec 27 06:33:08 2008
New Revision: 34423

Modified:
   trunk/compilers/imcc/optimizer.c

Log:
[cage] Re-add some #ifdef guards that were removed by 'make headerizer'.
This kills a gcc warning.

Modified: trunk/compilers/imcc/optimizer.c
==============================================================================
--- trunk/compilers/imcc/optimizer.c	(original)
+++ trunk/compilers/imcc/optimizer.c	Sat Dec 27 06:33:08 2008
@@ -83,6 +83,8 @@
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
 
+#if DO_LOOP_OPTIMIZATION
+
 PARROT_WARN_UNUSED_RESULT
 static int _is_ins_save(
     ARGIN(const IMC_Unit *unit),
@@ -93,6 +95,8 @@
         __attribute__nonnull__(2)
         __attribute__nonnull__(3);
 
+#endif /* DO_LOOP_OPTIMIZATION */
+
 static int branch_branch(PARROT_INTERP, ARGMOD(IMC_Unit *unit))
         __attribute__nonnull__(1)
         __attribute__nonnull__(2)
@@ -149,6 +153,8 @@
         __attribute__nonnull__(2)
         FUNC_MODIFIES(*unit);
 
+#if DO_LOOP_OPTIMIZATION
+
 PARROT_WARN_UNUSED_RESULT
 static int is_ins_save(PARROT_INTERP,
     ARGIN(const IMC_Unit *unit),
@@ -160,6 +166,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)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About