diff -r -u parrot-current/config/auto/gcc.pm parrot-andy/config/auto/gcc.pm
|
old
|
new
|
|
| 93 | 93 | $conf->data->set( |
| 94 | 94 | ccwarn => "$ccwarn", |
| 95 | 95 | gccversion => $gccversion, |
| 96 | | HAS_aligned_funcptr => 1 |
| 97 | 96 | ); |
| 98 | | $conf->data->set( HAS_aligned_funcptr => 0 ) |
| 99 | | if ( $conf->data->get_p5('OSNAME') eq 'hpux' |
| 100 | | || $conf->data->get('archname') =~ /gnulp/); # lpia arch |
| 101 | 97 | return 1; |
| 102 | 98 | } |
| 103 | 99 | |
diff -r -u parrot-current/src/multidispatch.c parrot-andy/src/multidispatch.c
|
old
|
new
|
|
| 1356 | 1356 | /* Create an NCI sub for the C function */ |
| 1357 | 1357 | PMC *sub_obj = constant_pmc_new(interp, enum_class_NCI); |
| 1358 | 1358 | |
| 1359 | | #ifdef PARROT_HAS_ALIGNED_FUNCPTR |
| 1360 | | PARROT_ASSERT((PTR2UINTVAL(func_ptr) & 3) == 0); |
| 1361 | | #endif |
| 1362 | | |
| 1363 | 1359 | VTABLE_set_pointer_keyed_str(interp, sub_obj, short_sig, |
| 1364 | 1360 | F2DPTR(func_ptr)); |
| 1365 | 1361 | |
diff -r -u parrot-current/t/steps/auto_gcc-01.t parrot-andy/t/steps/auto_gcc-01.t
|
old
|
new
|
|
| 5 | 5 | |
| 6 | 6 | use strict; |
| 7 | 7 | use warnings; |
| 8 | | use Test::More tests => 123; |
| | 8 | use Test::More tests => 122; |
| 9 | 9 | use Carp; |
| 10 | 10 | use lib qw( lib t/configure/testlib ); |
| 11 | 11 | use_ok('config::init::defaults'); |
| … |
… |
|
| 288 | 288 | "gccversion defined as expected"); |
| 289 | 289 | is($conf->data->get( 'gccversion' ), q{3.1}, |
| 290 | 290 | "Got expected value for gccversion"); |
| 291 | | is($conf->data->get( 'HAS_aligned_funcptr' ), 0, |
| 292 | | "Got expected value for HAS_aligned_funcptr"); |
| 293 | 291 | like($step->result(), qr/^yes/, "Got expected result"); |
| 294 | 292 | } |
| 295 | 293 | |