Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-21 Thread Martin Sebor
On 12/21/2017 02:13 AM, Martin Liška wrote: On 12/20/2017 06:45 PM, Jakub Jelinek wrote: Another thing is that the "/" in there is wrong, so const char dir_separator_str[] = { DIR_SEPARATOR, '\0' }; char *b = concat (profile_data_prefix, dir_separator_str, pwd, NULL); needs to be used instea

Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-21 Thread Martin Liška
On 12/20/2017 06:45 PM, Jakub Jelinek wrote: > Another thing is that the "/" in there is wrong, so > const char dir_separator_str[] = { DIR_SEPARATOR, '\0' }; > char *b = concat (profile_data_prefix, dir_separator_str, pwd, NULL); > needs to be used instead. This looks much nicer, I forgot abo

Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-20 Thread Martin Sebor
On 12/20/2017 10:45 AM, Jakub Jelinek wrote: On Wed, Dec 20, 2017 at 10:35:44AM -0700, Martin Sebor wrote: On 10/27/2017 07:17 AM, Martin Liška wrote: Hello. It's improvement that I consider still useful even though we're not going to use it for profiled bootstrap. Patch can bootstrap on ppc6

Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-20 Thread Jakub Jelinek
On Wed, Dec 20, 2017 at 10:35:44AM -0700, Martin Sebor wrote: > On 10/27/2017 07:17 AM, Martin Liška wrote: > > Hello. > > > > It's improvement that I consider still useful even though we're not > > going to use > > it for profiled bootstrap. > > > > Patch can bootstrap on ppc64le-redhat-linux an

Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-20 Thread Martin Sebor
On 10/27/2017 07:17 AM, Martin Liška wrote: Hello. It's improvement that I consider still useful even though we're not going to use it for profiled bootstrap. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. For what it's worth, although it looks correct as is, I thi

Re: [PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-12-20 Thread Martin Liška
PING^1 On 10/27/2017 03:17 PM, Martin Liška wrote: > Hello. > > It's improvement that I consider still useful even though we're not going to > use > it for profiled bootstrap. > > Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. > > Ready for trunk? > Thanks, > Martin

[PATCH] Append PWD to path when using -fprofile-generate=/some/path.

2017-10-27 Thread Martin Liška
00:00:00 2001 From: marxin Date: Wed, 16 Aug 2017 10:22:57 +0200 Subject: [PATCH] Append PWD to path when using -fprofile-generate=/some/path. gcc/ChangeLog: 2017-10-27 Martin Liska * coverage.c (coverage_init): Append absolute path of object file. * doc/invoke.texi: Document the behav