[svn:parrot] r39212 - trunk/config/auto

allison at svn.parrot.org allison at svn.parrot.org
Thu May 28 06:38:54 UTC 2009


Author: allison
Date: Thu May 28 06:38:51 2009
New Revision: 39212
URL: https://trac.parrot.org/parrot/changeset/39212

Log:
[cage] On Ubuntu karmic, the lpia architecture builds with -Os by
default (thanks to Robert Collins for digging up that tip). Among other
things, -Os disables the -falign-functions optimization (in order to
save space). Parrot can build with or without aligned function pointers,
but it was detecting lpia as ordinary i386, and so expecting them, and
failing on an assert in src/multidispatch.c. This config patch detects
the lpia architecture using the "-gnulp" element of the archname (which
is unique to lpia), and correctly sets Parrot's config value for
"aligned_funcptr" to 0. Parrot now successfully builds on karmic lpia.

Modified:
   trunk/config/auto/gcc.pm

Modified: trunk/config/auto/gcc.pm
==============================================================================
--- trunk/config/auto/gcc.pm	Thu May 28 01:23:05 2009	(r39211)
+++ trunk/config/auto/gcc.pm	Thu May 28 06:38:51 2009	(r39212)
@@ -96,7 +96,8 @@
         HAS_aligned_funcptr => 1
     );
     $conf->data->set( HAS_aligned_funcptr => 0 )
-        if $conf->data->get_p5('OSNAME') eq 'hpux';
+        if (  $conf->data->get_p5('OSNAME') eq 'hpux'
+           || $conf->data->get('archname') =~ /gnulp/); # lpia arch
     return 1;
 }
 


More information about the parrot-commits mailing list