Re: [RFC][PATCH] contrib: add git-commit-mklog wrapper

2021-06-23 Thread Martin Liška
On 6/22/21 8:40 PM, Jason Merrill wrote: On 6/22/21 3:30 AM, Martin Liška wrote: Hello. There's a patch candidate that comes up with a wrapper for 'git commit-mklog' alias. Using my patch, one can do: $ git commit-mklog -a -b 12345, Thoughts? Looks good to me. Cool, I've just pushed

Re: Semantics of OBJ_TYPE_REF

2021-06-23 Thread Erick Ochoa via Gcc
Cool, thanks! I think I understand now. On Tue, 22 Jun 2021 at 23:58, Martin Jambor wrote: > > Hi, > > On Fri, Jun 18 2021, Erick Ochoa via Gcc wrote: > > Hi, > > > > I am having some trouble understanding the semantics of OBJ_TYPE_REF. > > I understand that it is made of three operands: > > > >

Why does printing a pointer cause it to escape?

2021-06-23 Thread Erick Ochoa via Gcc
Hello, I know that some BUILT_IN functions are treated in a special way by the points-to analysis. Those functions are those that take pointers as arguments or return them but do not change their points-to set and similar cases. (E.g. strcpy returns a pointer to the same object as their first argu

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Martin Jambor
Hi, On Wed, Jun 23 2021, Erick Ochoa via Gcc wrote: > Hello, > > I know that some BUILT_IN functions are treated in a special way by > the points-to analysis. Those functions are those that take pointers > as arguments or return them but do not change their points-to set and > similar cases. (E.g.

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Alexander Monakov via Gcc
On Wed, 23 Jun 2021, Martin Jambor wrote: > Hi, > > On Wed, Jun 23 2021, Erick Ochoa via Gcc wrote: > > Hello, > > > > I know that some BUILT_IN functions are treated in a special way by > > the points-to analysis. Those functions are those that take pointers > > as arguments or return them but d

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Liu Hao via Gcc
在 6/23/21 6:32 PM, Erick Ochoa via Gcc 写道: I notice that in these special cases, the printf function is nowhere to be found, and if one prints a pointer using printf the pointer points to escaped memory. Why is this the case? I think it is due to the incapability of ruling out the possibilit

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Erick Ochoa via Gcc
> I guess that to assume otherwise, one would have to make sure the > pointer does not correspond to a "%n" (or similar, perhaps even future) > conversion specifier. > Oh, wow, I didn't know about the %n specifier. Thanks Martin!

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Erick Ochoa via Gcc
Hi Liu, thanks, this also seems correct. I originally thought that (in your example) ptr would be marked as pointing to { ESCAPE NONLOCAL } and that would be enough to hinder some optimizations that might influence variable value. Therefore, it wasn't necessary to mark "value" as pointing to { ESC

Re: GCC documentation: porting to Sphinx

2021-06-23 Thread Martin Liška
Hello. I've just made a first version of the patchset that sits in GCC source tree: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=log;h=refs/users/marxin/heads/sphinx-v2 Changes since the last submission: 1) I made a brief proofreading and fixed most of the formatting and other issues 2) target

Re: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-06-23 Thread Martin Liška
On 5/21/21 10:29 AM, Martin Liška wrote: On 5/20/21 5:55 PM, Jan Hubicka wrote: Quick solution is to also modify partitioner to use the local symbol names when doing incremental linking (those mixing in source code and random seeds) to avoid clashes. Good hint. I added hash based on object fil

Re: GCC documentation: porting to Sphinx

2021-06-23 Thread Joseph Myers
On Wed, 23 Jun 2021, Martin Liška wrote: > @Joseph: Can you share your thoughts about the used Makefile integration? What > do you suggest for 2) > (note that explicit listing of all .rst file would be crazy)? You can write dependencies on e.g. doc/gcc/*.rst (which might be more files than actua

GNU Tools @ Linux Plumbers Conference 2021

2021-06-23 Thread Jeremy Bennett
Hi all, Once again we have been unable to hold GNU Tools Cauldron this year due to COVID-19. We plan to be back in 2022! In the meantime, our friends at the Linux Plumbers Conference have again provided a GNU Tools track at their 2021 virtual conference 20-24 September. The scope is the same as