[PATCH] update include/plugin-api.h to add hooks for section alignment + size

2016-02-26 Thread Than McIntosh
Hello, I would like to update the gcc plugin API to include interfaces for querying section size and alignment. The intent is to make it easier for plugins to do link-time reordering of .bss/.data/.rodata sections to reduce padding and/or improve cache utilization. I've posted a patch to binutils

[PATCH] fix PR 86213, split stack runtime clobber of SSE reg

2018-06-20 Thread Than McIntosh via gcc-patches
Hi all, Please find below a patch to fix PR 86213. This changes the runtime code for -fsplit-stack to move a couple of calls (getenv, etc) from the routine called by __morestack to a function called on startup, so as to avoid having the calls clobber SSE input regs. Thanks, Than --- libgcc/Chan

Re: libgo patch committed: break dependence on unwind-pe.h

2018-05-03 Thread Than McIntosh via gcc-patches
Thanks for catching that. I don't have access to test machines, but could you possibly try the attached patch? Thanks, Than On Thu, May 3, 2018 at 3:03 PM Rainer Orth wrote: > Hi Ian, > > This patch by Than McIntosh breaks the dependence of go-unwind.c on > > unwind

Re: [gofrontend-dev] Re: Go patch committed: Improve name mangling for package paths

2018-10-26 Thread Than McIntosh via gcc-patches
Thanks for reporting this. Sent https://go-review.googlesource.com/c/gofrontend/+/145017 with a tentative fix. Than On Fri, Oct 26, 2018 at 7:55 AM Rainer Orth wrote: > > Hi Ian, > > > This patch by Than McIntosh improves the mangling of package paths in > > the Go

Re: [gofrontend-dev] Re: Go patch committed: Improve name mangling for package paths

2018-10-26 Thread Than McIntosh via gcc-patches
OK, thanks again. Another fix sent: https://go-review.googlesource.com/c/gofrontend/+/145021 Cheers, Than On Fri, Oct 26, 2018 at 10:20 AM Rainer Orth wrote: > > Hi Than, > > > Thanks for reporting this. > > > > Sent https://go-review.googlesource.com/c/gofrontend/+/145017 with a > > tentative

libbacktrace patch: fix memory allocation buglet on DWARF line table with zero dirs

2017-05-12 Thread Than McIntosh via gcc-patches
Hello, The attached patch to libbacktrace is intended to fix a memory allocation bug involving reading of line table information. The scenario of interest takes place when libbacktrace reads a DWARF line table whose directory count is zero (an unusual case). If the memory allocator invocation tri

Re: libbacktrace patch: fix memory allocation buglet on DWARF line table with zero dirs

2017-05-19 Thread Than McIntosh via gcc-patches
ning a value here and elsewhere avoids a tailcall which + would mess up the backtrace. */ + return f3(x, __LINE__) + 3; +} diff --git a/mvifdiff.sh b/mvifdiff.sh new file mode 100755 index 000..976f282 --- /dev/null +++ b/mvifdiff.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Copyright (C) 2017 Fr