[pypy-svn] r67636 - pypy/trunk/pypy/translator/c

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Sep 10 20:22:22 CEST 2009


Author: cfbolz
Date: Thu Sep 10 20:22:18 2009
New Revision: 67636

Modified:
   pypy/trunk/pypy/translator/c/genc.py
Log:
(fijal): -pg and -fomit-frame-pointer are incompatible, force it to
-fno-omit-frame-pointer in case of make profile



Modified: pypy/trunk/pypy/translator/c/genc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/genc.py	(original)
+++ pypy/trunk/pypy/translator/c/genc.py	Thu Sep 10 20:22:18 2009
@@ -472,7 +472,7 @@
             ('linuxmemchk', '', '$(MAKE) CFLAGS="-g -O1 -DRPY_ASSERT -DLINUXMEMCHK" $(TARGET)'),
             ('llsafer', '', '$(MAKE) CFLAGS="-O2 -DRPY_LL_ASSERT" $(TARGET)'),
             ('lldebug', '', '$(MAKE) CFLAGS="-g -DRPY_ASSERT -DRPY_LL_ASSERT" $(TARGET)'),
-            ('profile', '', '$(MAKE) CFLAGS="-g -O1 -pg $(CFLAGS)" LDFLAGS="-pg $(LDFLAGS)" $(TARGET)'),
+            ('profile', '', '$(MAKE) CFLAGS="-g -O1 -pg $(CFLAGS) -fno-omit-frame-pointer" LDFLAGS="-pg $(LDFLAGS)" $(TARGET)'),
             ]
         if self.has_profopt():
             rules.append(



More information about the Pypy-commit mailing list