Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Nov 18, 2012
2 parents c73ae65 + 1cc9caa commit 524efde
Show file tree
Hide file tree
Showing 28 changed files with 55 additions and 39 deletions.
2 changes: 0 additions & 2 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
running.pod [GH #838] running.pod [GH #838]
- Tools - Tools
+ Improved gdb pretty-printing for multi-byte strings + Improved gdb pretty-printing for multi-byte strings
- Tests
- Community


2012-09-18 release 4.8.0 2012-09-18 release 4.8.0
- Core - Core
Expand Down
6 changes: 3 additions & 3 deletions MANIFEST.generated
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# See tools/dev/install_files.pl for documentation on the # See tools/dev/install_files.pl for documentation on the
# format of this file. # format of this file.
# Please re-sort this file after *EVERY* modification # Please re-sort this file after *EVERY* modification
blib/lib/libparrot.4.8.0.dylib [main]lib blib/lib/libparrot.4.9.0.dylib [main]lib
blib/lib/libparrot.a [main]lib blib/lib/libparrot.a [main]lib
blib/lib/libparrot.dylib [main]lib blib/lib/libparrot.dylib [main]lib
blib/lib/libparrot.so [main]lib blib/lib/libparrot.so [main]lib
blib/lib/libparrot.so.4.8.0 [main]lib blib/lib/libparrot.so.4.9.0 [main]lib
compilers/data_json/data_json.pbc [data_json] compilers/data_json/data_json.pbc [data_json]
config/gen/call_list/opengl.in [] config/gen/call_list/opengl.in []
cygparrot-4.8.0.dll [main]bin cygparrot-4.9.0.dll [main]bin
docs/ops/bit.pod [doc] docs/ops/bit.pod [doc]
docs/ops/cmp.pod [doc] docs/ops/cmp.pod [doc]
docs/ops/core.pod [doc] docs/ops/core.pod [doc]
Expand Down
2 changes: 1 addition & 1 deletion README.pod
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


=head1 NAME =head1 NAME


README.pod - Readme to Parrot, version 4.8.0. README.pod - Readme to Parrot, version 4.9.0.


=head1 DESCRIPTION =head1 DESCRIPTION


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Original file line Diff line number Diff line change
@@ -1 +1 @@
4.8.0 4.9.0
4 changes: 2 additions & 2 deletions config/auto/perldoc.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use strict;
use warnings; use warnings;


use File::Temp qw (tempfile ); use File::Temp qw (tempfile );
use File::Spec qw (catfile );
use base qw(Parrot::Configure::Step); use base qw(Parrot::Configure::Step);
use Parrot::Configure::Utils ':auto'; use Parrot::Configure::Utils ':auto';


Expand All @@ -35,8 +36,7 @@ sub _init {
sub runstep { sub runstep {
my ( $self, $conf ) = @_; my ( $self, $conf ) = @_;


my $slash = $conf->data->get('slash'); my $cmd = File::Spec->catfile($conf->data->get('scriptdirexp_provisional'), q{perldoc});
my $cmd = $conf->data->get('scriptdirexp_provisional') . $slash . q{perldoc};
my ( $fh, $filename ) = tempfile( UNLINK => 1 ); my ( $fh, $filename ) = tempfile( UNLINK => 1 );
my $content = capture_output("$cmd -ud $filename perldoc") || undef; my $content = capture_output("$cmd -ud $filename perldoc") || undef;


Expand Down
5 changes: 5 additions & 0 deletions config/auto/warnings.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ sub runstep {
push @{$self->{'warnings'}{$compiler}{'basic'}}, push @{$self->{'warnings'}{$compiler}{'basic'}},
'-fvisibility=hidden'; '-fvisibility=hidden';
}; };

# icu4.4 has a uset_openEmpty() declaration without (void)
$self->{'warnings'}{$compiler}{'never'}{'-Werror=strict-prototypes'} =
[ 'src/string/encoding/shared.c' ];

if ($conf->data->get('clang') and $compiler eq 'g++') { # clang++ if ($conf->data->get('clang') and $compiler eq 'g++') { # clang++
$self->{'warnings'}{'g++'}{'override'} = { $self->{'warnings'}{'g++'}{'override'} = {
'-Wno-parentheses-equality' => [ qw( '-Wno-parentheses-equality' => [ qw(
Expand Down
12 changes: 7 additions & 5 deletions config/gen/makefiles/root.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ MAKE_C = @make_c@
.c$(O) : # suffix rule (limited support) .c$(O) : # suffix rule (limited support)
$(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) -Isrc/ @cc_o_out@$@ -c $< $(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) -Isrc/ @cc_o_out@$@ -c $<
.c.i : # suffix rule (limited support) .c.i : # suffix rule (limited support)
$(CC) -E $(CFLAGS) -I$(@D) -Isrc/ @cc_o_out@$@ -c $< $(CC) -E $(CFLAGS) -I$(@D) -Isrc/ @cc_o_out@$@ $<


#UNLESS(win32):.s$(O) : # suffix rule (limited support) #UNLESS(win32):.s$(O) : # suffix rule (limited support)
#UNLESS(win32): $(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) @cc_o_out@$@ -c $< #UNLESS(win32): $(CC) $(CFLAGS) @optimize@ $(CC_WARN) -I$(@D) @cc_o_out@$@ -c $<
Expand Down Expand Up @@ -1992,11 +1992,13 @@ src/string/encoding/tables$(O) : \
src/string/encoding/tables.h \ src/string/encoding/tables.h \
src/string/encoding/tables.c src/string/encoding/tables.c


## SUFFIX OVERRIDE
src/string/encoding/shared$(O) : \ src/string/encoding/shared$(O) : \
$(PARROT_H_HEADERS) \ $(PARROT_H_HEADERS) \
src/string/encoding/shared.h \ src/string/encoding/shared.h \
src/string/encoding/shared.c \ src/string/encoding/shared.c \
src/string/encoding/tables.h src/string/encoding/tables.h
$(CC) $(CFLAGS) @optimize::src/string/encoding/shared.c@ @ccwarn::src/string/encoding/shared.c@ @cc_shared@ -I$(@D) @cc_o_out@$@ -c src/string/encoding/shared.c


src/string/encoding/null$(O) : \ src/string/encoding/null$(O) : \
$(PARROT_H_HEADERS) \ $(PARROT_H_HEADERS) \
Expand Down
1 change: 1 addition & 0 deletions docs/parrothist.pod
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,5 +147,6 @@ Starred release numbers indicate supported releases.
rurban 4.6.0 * 2012-Jul-17 "Wild Parrots of Telegraph Hill" rurban 4.6.0 * 2012-Jul-17 "Wild Parrots of Telegraph Hill"
Whiteknight 4.7.0 2012-Aug-22 "Hispaniolan" Whiteknight 4.7.0 2012-Aug-22 "Hispaniolan"
alvis 4.8.0 2012-Sep-18 "Spix's Macaw" alvis 4.8.0 2012-Sep-18 "Spix's Macaw"
dukeleto 4.9.0 * 2012-Oct-16 "Proto-Hydra"


=cut =cut
7 changes: 3 additions & 4 deletions docs/project/release_manager_guide.pod
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ on L<http://www.parrot.org>.


=item 1 =item 1


Create a new page for the release announcement by navigating to I<Create content> Create a new page for the release announcement by navigating to going to
-> I<Story>. There's some additional stuff needed at the top of the page; use one of the L<https://www.parrot.org/node/add/story>. There's some additional stuff needed
old announcements as a guide. at the top of the page; use one of the old announcements as a guide.


The "<!--break-->" line marks the end of the text that will appear on the front page. The "<!--break-->" line marks the end of the text that will appear on the front page.


Expand Down Expand Up @@ -544,7 +544,6 @@ The calendar of releases is available at the C<comp.lang.parrot> Google
calendar, visible at calendar, visible at
L<http://www.google.com/calendar/render?cid=ldhctdamsgfg5a1cord52po9h8@group.calendar.google.com>. L<http://www.google.com/calendar/render?cid=ldhctdamsgfg5a1cord52po9h8@group.calendar.google.com>.


- Oct 16, 2012 - 4.9.0 - dukeleto
- Nov 20, 2012 - 4.10.0 - rurban - Nov 20, 2012 - 4.10.0 - rurban
- Dec 18, 2012 - 4.11.0 - ?? - Dec 18, 2012 - 4.11.0 - ??
- Jan 15, 2013 - 5.0.0 - dukeleto - Jan 15, 2013 - 5.0.0 - dukeleto
Expand Down
2 changes: 1 addition & 1 deletion include/parrot/oplib/core_ops.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "parrot/runcore_api.h" #include "parrot/runcore_api.h"


PARROT_EXPORT PARROT_EXPORT
op_lib_t *Parrot_DynOp_core_4_8_0(PARROT_INTERP, long init); op_lib_t *Parrot_DynOp_core_4_9_0(PARROT_INTERP, long init);


opcode_t * Parrot_end(opcode_t *, PARROT_INTERP); opcode_t * Parrot_end(opcode_t *, PARROT_INTERP);
opcode_t * Parrot_noop(opcode_t *, PARROT_INTERP); opcode_t * Parrot_noop(opcode_t *, PARROT_INTERP);
Expand Down
3 changes: 2 additions & 1 deletion lib/Parrot/Pmc2c/Pmc2cMain.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ sub new {
die "Must have key 'args' which is a reference to a list of the remaining arguments" die "Must have key 'args' which is a reference to a list of the remaining arguments"
unless ( defined $allargsref->{args} and ref( $allargsref->{args} ) eq q{ARRAY} ); unless ( defined $allargsref->{args} and ref( $allargsref->{args} ) eq q{ARRAY} );


my $base = File::Spec->catdir($allargsref->{bin},'..','..');
unshift @{ $allargsref->{include} }, unshift @{ $allargsref->{include} },
'.', "$allargsref->{bin}/../..", "$allargsref->{bin}/../../src/pmc", "$allargsref->{bin}/../../src/dynpmc"; '.', $base, File::Spec->catdir($base,'src','pmc'), File::Spec->catdir($base,'src','dynpmc');


foreach my $opt ( qw(nolines) ) { foreach my $opt ( qw(nolines) ) {
if ( !defined $allargsref->{opt}{$opt} ) { if ( !defined $allargsref->{opt}{$opt} ) {
Expand Down
6 changes: 4 additions & 2 deletions lib/Parrot/Pmc2c/VTable.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use warnings;
use Storable (); use Storable ();
use Parrot::Vtable (); use Parrot::Vtable ();
use Parrot::Pmc2c::Method (); use Parrot::Pmc2c::Method ();
use File::Spec ();
use File::Basename; use File::Basename;
use Cwd qw(cwd); use Cwd qw(cwd);


Expand Down Expand Up @@ -51,8 +52,9 @@ sub dump {
my ($self) = @_; my ($self) = @_;


my $dump_filename = my $dump_filename =
cwd() . q{/} File::Spec->catfile( cwd(),
. basename( Parrot::Pmc2c::UtilFunctions::filename( $self->filename, '.dump' ) ); basename( Parrot::Pmc2c::UtilFunctions::filename( $self->filename, '.dump' ) )
);
Storable::nstore( $self, $dump_filename ); Storable::nstore( $self, $dump_filename );
return $dump_filename; return $dump_filename;
} }
Expand Down
2 changes: 1 addition & 1 deletion src/ops/core.ops
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ inline op result_info(out PMC) {
Parrot_str_new_constant(interp, "return_flags")); Parrot_str_new_constant(interp, "return_flags"));


/* If no elements, hand back empty array; otherwise PMC. */ /* If no elements, hand back empty array; otherwise PMC. */
if (!sig) if (PMC_IS_NULL(sig))
$1 = Parrot_pmc_new(interp, enum_class_FixedIntegerArray); $1 = Parrot_pmc_new(interp, enum_class_FixedIntegerArray);
else else
$1 = sig; $1 = sig;
Expand Down
14 changes: 8 additions & 6 deletions src/ops/core_ops.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13795,13 +13795,15 @@ Parrot_local_return_p(opcode_t *cur_opcode, PARROT_INTERP) {


opcode_t * opcode_t *
Parrot_jump_i(opcode_t *cur_opcode, PARROT_INTERP) { Parrot_jump_i(opcode_t *cur_opcode, PARROT_INTERP) {
opcode_t * const loc = INTVAL2PTR(opcode_t *, IREG(1)); opcode_t * const loc = INTVAL2PTR(opcode_t *, IREG(1));

return (opcode_t *)loc; return (opcode_t *)loc;
} }


opcode_t * opcode_t *
Parrot_jump_ic(opcode_t *cur_opcode, PARROT_INTERP) { Parrot_jump_ic(opcode_t *cur_opcode, PARROT_INTERP) {
opcode_t * const loc = INTVAL2PTR(opcode_t *, ICONST(1)); opcode_t * const loc = INTVAL2PTR(opcode_t *, ICONST(1));

return (opcode_t *)loc; return (opcode_t *)loc;
} }


Expand Down Expand Up @@ -14028,7 +14030,7 @@ Parrot_result_info_p(opcode_t *cur_opcode, PARROT_INTERP) {
PMC * const caller_ctx = Parrot_pcc_get_caller_ctx(interp, CURRENT_CONTEXT(interp)); PMC * const caller_ctx = Parrot_pcc_get_caller_ctx(interp, CURRENT_CONTEXT(interp));
PMC * const sig = VTABLE_get_attr_str(interp, caller_ctx, Parrot_str_new_constant(interp, "return_flags")); PMC * const sig = VTABLE_get_attr_str(interp, caller_ctx, Parrot_str_new_constant(interp, "return_flags"));


if ((!sig)) { if (PMC_IS_NULL(sig)) {
PREG(1) = Parrot_pmc_new(interp, enum_class_FixedIntegerArray); PREG(1) = Parrot_pmc_new(interp, enum_class_FixedIntegerArray);
} }
else { else {
Expand Down Expand Up @@ -24567,7 +24569,7 @@ op_lib_t core_op_lib = {
PARROT_FUNCTION_CORE, /* core_type = PARROT_XX_CORE */ PARROT_FUNCTION_CORE, /* core_type = PARROT_XX_CORE */
0, /* flags */ 0, /* flags */
4, /* major_version */ 4, /* major_version */
8, /* minor_version */ 9, /* minor_version */
0, /* patch_version */ 0, /* patch_version */
1129, /* op_count */ 1129, /* op_count */
core_op_info_table, /* op_info_table */ core_op_info_table, /* op_info_table */
Expand Down Expand Up @@ -24696,7 +24698,7 @@ static void hop_deinit(PARROT_INTERP)
hop_buckets = NULL; hop_buckets = NULL;
}PARROT_EXPORT }PARROT_EXPORT
op_lib_t * op_lib_t *
Parrot_DynOp_core_4_8_0(PARROT_INTERP, long init) { Parrot_DynOp_core_4_9_0(PARROT_INTERP, long init) {
/* initialize and return op_lib ptr */ /* initialize and return op_lib ptr */
if (init == 1) { if (init == 1) {


Expand Down Expand Up @@ -24725,7 +24727,7 @@ Parrot_lib_core_ops_load(PARROT_INTERP)


{ {
PMC *const lib = Parrot_pmc_new(interp, enum_class_ParrotLibrary); PMC *const lib = Parrot_pmc_new(interp, enum_class_ParrotLibrary);
((Parrot_ParrotLibrary_attributes*)PMC_data(lib))->oplib_init = (void *) Parrot_DynOp_core_4_8_0; ((Parrot_ParrotLibrary_attributes*)PMC_data(lib))->oplib_init = (void *) Parrot_DynOp_core_4_9_0;
dynop_register(interp, lib); dynop_register(interp, lib);
return lib; return lib;
} }
Expand Down
5 changes: 3 additions & 2 deletions src/pmc/callcontext.pmc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1019,8 +1019,9 @@ return current Namespace
else else
Parrot_ex_throw_from_c_args(INTERP, NULL, Parrot_ex_throw_from_c_args(INTERP, NULL,
EXCEPTION_ATTRIB_NOT_FOUND, "No such attribute '%S'", key); EXCEPTION_ATTRIB_NOT_FOUND, "No such attribute '%S'", key);

if (value)
return value; return value;
return PMCNULL;
} }


VTABLE INTVAL elements() { VTABLE INTVAL elements() {
Expand Down
1 change: 1 addition & 0 deletions src/pmc/filehandle.pmc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Mark active filehandle data as live.
Parrot_gc_mark_STRING_alive(INTERP, attrs->mode); Parrot_gc_mark_STRING_alive(INTERP, attrs->mode);
Parrot_gc_mark_STRING_alive(INTERP, attrs->filename); Parrot_gc_mark_STRING_alive(INTERP, attrs->filename);
Parrot_gc_mark_STRING_alive(INTERP, attrs->encoding); Parrot_gc_mark_STRING_alive(INTERP, attrs->encoding);
Parrot_gc_mark_STRING_alive(INTERP, attrs->record_separator);
Parrot_io_buffer_mark(interp, attrs->read_buffer); Parrot_io_buffer_mark(interp, attrs->read_buffer);
Parrot_io_buffer_mark(interp, attrs->write_buffer); Parrot_io_buffer_mark(interp, attrs->write_buffer);
} }
Expand Down
2 changes: 2 additions & 0 deletions src/pmc/socket.pmc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Mark active socket handle data as live.
if (data) { if (data) {
Parrot_gc_mark_PMC_alive(INTERP, data->local); Parrot_gc_mark_PMC_alive(INTERP, data->local);
Parrot_gc_mark_PMC_alive(INTERP, data->remote); Parrot_gc_mark_PMC_alive(INTERP, data->remote);
Parrot_gc_mark_STRING_alive(INTERP, data->encoding);
Parrot_gc_mark_STRING_alive(INTERP, data->record_separator);
Parrot_io_buffer_mark(interp, data->read_buffer); Parrot_io_buffer_mark(interp, data->read_buffer);
Parrot_io_buffer_mark(interp, data->write_buffer); Parrot_io_buffer_mark(interp, data->write_buffer);
} }
Expand Down
1 change: 1 addition & 0 deletions src/pmc/stringhandle.pmc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Mark active stringhandle data as live.
Parrot_gc_mark_STRING_alive(INTERP, data_struct->mode); Parrot_gc_mark_STRING_alive(INTERP, data_struct->mode);
Parrot_gc_mark_STRING_alive(INTERP, data_struct->encoding); Parrot_gc_mark_STRING_alive(INTERP, data_struct->encoding);
Parrot_gc_mark_STRING_alive(INTERP, data_struct->filename); Parrot_gc_mark_STRING_alive(INTERP, data_struct->filename);
Parrot_gc_mark_STRING_alive(INTERP, data_struct->record_separator);
Parrot_io_buffer_mark(interp, data_struct->read_buffer); Parrot_io_buffer_mark(interp, data_struct->read_buffer);
Parrot_io_buffer_mark(interp, data_struct->write_buffer); Parrot_io_buffer_mark(interp, data_struct->write_buffer);
} }
Expand Down
Binary file modified t/native_pbc/annotations.pbc
Binary file not shown.
Binary file modified t/native_pbc/integer.pbc
Binary file not shown.
Binary file modified t/native_pbc/integer_4.pbc
Binary file not shown.
Binary file modified t/native_pbc/number.pbc
Binary file not shown.
Binary file modified t/native_pbc/number_4.pbc
Binary file not shown.
Binary file modified t/native_pbc/number_5.pbc
Binary file not shown.
Binary file modified t/native_pbc/string.pbc
Binary file not shown.
Binary file modified t/native_pbc/string_4.pbc
Binary file not shown.
7 changes: 4 additions & 3 deletions tools/build/pmc2c.pl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
use warnings; use warnings;
use Getopt::Long (); use Getopt::Long ();
use FindBin qw($Bin); use FindBin qw($Bin);
use lib "$Bin/../lib"; # install location use File::Spec ();
use lib "$Bin/../../lib"; # build location use lib File::Spec->catdir($Bin,'..','lib'); # install location
use lib File::Spec->catdir($Bin,'..','..','lib'); # build location
use Parrot::Pmc2c::Pmc2cMain (); use Parrot::Pmc2c::Pmc2cMain ();


my ( %action, %options, @pmc_include_paths ); my ( %action, %options, @pmc_include_paths );
Expand Down Expand Up @@ -42,7 +43,7 @@
); );


if ( $action{default} ) { if ( $action{default} ) {
$self->dump_vtable("$Bin/../../src/vtable.tbl"); $self->dump_vtable(File::Spec->catfile($Bin,'..','..','src','vtable.tbl'));
exit; exit;
} }


Expand Down
10 changes: 5 additions & 5 deletions tools/release/release.json
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,8 @@
{ {
"release.version" : "4.8.0", "release.version" : "4.9.0",
"release.name" : "Spix's Macaw", "release.name" : "Proto-Hydra",
"release.day" : "Tuesday", "release.day" : "Tuesday",
"release.nextdate" : "16 October 2012", "release.nextdate" : "12 November 2012",


"web.root" : "http://parrot.org/", "web.root" : "http://parrot.org/",
"web.source" : "download", "web.source" : "download",
Expand All @@ -11,10 +11,10 @@
"web.org_root" : "https://github.com/parrot", "web.org_root" : "https://github.com/parrot",


"bugday.day" : "Saturday", "bugday.day" : "Saturday",
"bugday.date" : "13 October 2012", "bugday.date" : "10 November 2012",


"wiki.root" : "https://github.com/parrot/parrot/wiki", "wiki.root" : "https://github.com/parrot/parrot/wiki",
"wiki.bugday" : "bug_day_2012_10_13", "wiki.bugday" : "bug_day_2012_10_13",


"ftp.path" : "ftp://ftp.parrot.org/pub/parrot/releases/devel/4.8.0/" "ftp.path" : "ftp://ftp.parrot.org/pub/parrot/releases/devel/4.9.0/"
} }

0 comments on commit 524efde

Please sign in to comment.