From 12cb78d1cca1387a092ec0bd49c250340bff4afc Mon Sep 17 00:00:00 2001 From: bstarynk Date: Wed, 29 Aug 2012 12:37:05 +0000 Subject: 2012-08-29 Basile Starynkevitch MELT branch merged with trunk rev 190745 using svnmerge, notably C++ conversion. [gcc/] 2012-08-29 Basile Starynkevitch {{merging with trunk, converted to C++}} * melt-runtime.h (MELT_FLEXIBLE_DIM): Set when C++. * melt-runtime.c (melt_tempdir_path): Don't use choose_tmpdir from libiberty. (meltgc_start_module_by_index): Use address-of & on VEC_index. (melt_really_initialize): When printing builtin settings, handle GCC 4.8 as with implicit ENABLE_BUILD_WITH_CXX. (meltgc_out_edge): Provide additional flag TDF_DETAILS for dump_edge_info. (melt_val2passflag): Handle PROP_referenced_vars only when defined. * melt-module.mk: Use GCCMELT_COMPILER instead of GCCMELT_CC. * melt-build-script.tpl: Transmit GCCMELT_COMPILER on every make using melt-module.mk and improve the error message. * melt-build-script.sh: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@190778 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/os/dir.go | 2 +- libgo/go/runtime/pprof/pprof_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'libgo/go') diff --git a/libgo/go/os/dir.go b/libgo/go/os/dir.go index 02b21e6f7da..c77560fc08c 100644 --- a/libgo/go/os/dir.go +++ b/libgo/go/os/dir.go @@ -49,7 +49,7 @@ func (file *File) readdirnames(n int) (names []string, err error) { file.dirinfo.dir = r } - entry_dirent := unsafe.Pointer(&file.dirinfo.buf[0]).(*syscall.Dirent) + entry_dirent := (*syscall.Dirent)(unsafe.Pointer(&file.dirinfo.buf[0])) size := n if size < 0 { diff --git a/libgo/go/runtime/pprof/pprof_test.go b/libgo/go/runtime/pprof/pprof_test.go index 82bb2a2926b..e933058e558 100644 --- a/libgo/go/runtime/pprof/pprof_test.go +++ b/libgo/go/runtime/pprof/pprof_test.go @@ -71,7 +71,8 @@ func TestCPUProfile(t *testing.T) { if f == nil { continue } - if strings.Contains(f.Name(), "ChecksumIEEE") { + if strings.Contains(f.Name(), "ChecksumIEEE") || + (strings.Contains(f.Name(), "update") && strings.Contains(f.Name(), "crc32")) { found = true } } -- cgit v1.2.1