> Here's the output of Configure.pl --verbose on a SPARC where the required 
> alignment is 4.  The test correctly deduces that alignments of 64, 32, 16, 
> 8, and 4 all work, but apparently throws that information away when the 2 
> and 1 byte alignment tests fail.

And here's a simple patch to fix it.  It reverses the order of the tests
and saves the first successful one.

--- parrot-current/config/auto/alignptrs.pm     Thu Jan  3 16:17:39 2008
+++ parrot-andy/config/auto/alignptrs.pm        Thu Jan  3 16:24:49 2008
@@ -55,9 +55,10 @@
         # Now really test by compiling some code
         $conf->cc_gen('config/auto/alignptrs/test_c.in');
         $conf->cc_build();
-        for my $try_align ( 64, 32, 16, 8, 4, 2, 1 ) {
+        for my $try_align ( 1, 2, 4, 8, 16, 32, 64 ) {
             my $results = $conf->cc_run_capture($try_align);
             $align = _evaluate_results($results, $try_align);
+            last if defined($align);
         }
         $conf->cc_clean();
 

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to