public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Tom de Vries <Tom_deVries@mentor.com>
Cc: Jakub Jelinek <jakub@redhat.com>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH, stage1] Make parloops gate more strict
Date: Wed, 18 Mar 2015 10:17:00 -0000	[thread overview]
Message-ID: <CAFiYyc2wKQYNXJorE7JehZjm2W7rUgMQKV2K6JRDuGa1jTDhYA@mail.gmail.com> (raw)
In-Reply-To: <55030211.5060203@mentor.com>

On Fri, Mar 13, 2015 at 4:28 PM, Tom de Vries <Tom_deVries@mentor.com> wrote:
> On 13-03-15 13:36, Richard Biener wrote:
>>
>> On Fri, Mar 13, 2015 at 1:07 PM, Jakub Jelinek <jakub@redhat.com> wrote:
>>>
>>> On Fri, Mar 13, 2015 at 01:04:57PM +0100, Richard Biener wrote:
>>>>
>>>> Not really (I don't like -fdump-passes ...), but we need to make sure
>>>> that -fdump-passes doesn't crash (because it runs very early and
>>>> with cfun == NULL I think)
>>>
>>>
>>> If it runs with cfun == NULL, then supposedly the gates that are
>>> dependent
>>> on current function should for -fdump-passes purposes also return true
>>> if cfun == NULL (well, of course do all the unconditional checks).
>>> Though of course, with optimize/target attributes this is harder, as
>>> different functions can use different options.
>>
>>
>> Yes, one reason why I think -fdump-passes is just broken
>> implementation-wise.
>>
>
> Atm fdump-passes doesn't run with cfun == NULL.
>
> From pass_manager::dump_passes:
> ...
>   FOR_EACH_FUNCTION (n)
>     if (DECL_STRUCT_FUNCTION (n->decl))
>       {
>         node = n;
>         break;
>       }
>
>   if (!node)
>     return;
>
>   push_cfun (DECL_STRUCT_FUNCTION (node->decl));

Um - this now picks a random function which may be one with
an optimize or target attribute associated to it.

Richard.

> ...
>
> This was discussed here:
> https://gcc.gnu.org/ml/gcc-patches/2011-06/msg00856.html
>
> Thanks,
> - Tom

  reply	other threads:[~2015-03-18 10:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 10:32 Tom de Vries
2015-03-13 10:36 ` Richard Biener
2015-03-13 11:12   ` Tom de Vries
2015-03-13 12:05     ` Richard Biener
2015-03-13 12:08       ` Jakub Jelinek
2015-03-13 12:36         ` Richard Biener
2015-03-13 15:28           ` Tom de Vries
2015-03-18 10:17             ` Richard Biener [this message]
2015-03-18 11:03               ` Tom de Vries
2015-03-18 11:18                 ` Richard Biener
2015-03-18 17:03                   ` Tom de Vries
2015-03-19  9:00                     ` Richard Biener
2015-03-19 22:40                       ` [PATCH] Fix fdump-passes Tom de Vries
2015-03-20  9:18                         ` Richard Biener
2015-06-14 10:12   ` [PATCH, stage1] Make parloops gate more strict Tom de Vries
2015-06-14 22:30     ` Bernhard Reutner-Fischer
2015-06-14 22:48       ` Tom de Vries
2015-06-16 11:28         ` Richard Biener
2015-06-19  7:50           ` Tom de Vries
2015-06-29 11:01             ` Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFiYyc2wKQYNXJorE7JehZjm2W7rUgMQKV2K6JRDuGa1jTDhYA@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=Tom_deVries@mentor.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).