public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@ucw.cz>
To: Ramana Radhakrishnan <ramana.gcc@googlemail.com>
Cc: Christophe Lyon <christophe.lyon@linaro.org>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	Jakub Jelinek <jakub@redhat.com>, Martin Li?ka <mliska@suse.cz>
Subject: Re: Convert profile probabilities to new type
Date: Thu, 29 Jun 2017 22:24:00 -0000	[thread overview]
Message-ID: <20170629222440.GA2195@kam.mff.cuni.cz> (raw)
In-Reply-To: <CAJA7tRZEQRqYCxGoJzpdv6KcxRncsVVLj7hUokBEUff+7Hq3kg@mail.gmail.com>

> On Thu, Jun 29, 2017 at 11:19 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> >> After this commit (r249800), GCC builds fail for arm and aarch64:
> >>
> >> /gccsrc/gcc/except.c: In function ???void
> >> sjlj_emit_function_enter(rtx_code_label*)???:
> >> /gcc-fsf/gccsrc/gcc/except.c:1183: error: conversion from ???int??? to
> >> non-scalar type ???profile_probability??? requested
> >> make[2]: *** [except.o] Error 1
> >
> > The following patch should help
> > Index: except.c
> > ===================================================================
> > --- except.c    (revision 249800)
> > +++ except.c    (working copy)
> > @@ -1180,7 +1180,7 @@ sjlj_emit_function_enter (rtx_code_label
> >
> >        emit_cmp_and_jump_insns (x, const0_rtx, NE, 0,
> >                                TYPE_MODE (integer_type_node), 0,
> > -                              dispatch_label, REG_BR_PROB_BASE / 100);
> > +                              dispatch_label, profile_probability::unlikely ());
> >  #else
> >        expand_builtin_setjmp_setup (addr, dispatch_label);
> >  #endif
> >
> >
> > I will verify that cross compiler builds and commit it.
> 
> I also see on arm-none-eabi:
> 
> 
> In file included from
> /tmp/66508161.tmpdir/buildbot/rhe6x86_64--arm-none-eabi/build/src/gcc/gcc/config/arm/arm-builtins.c:30:0:
> /tmp/66508161.tmpdir/buildbot/rhe6x86_64--arm-none-eabi/build/src/gcc/gcc/optabs.h:251:10:
> error: 'profile_probability' has not been declared
>           profile_probability prob
>           ^
> /tmp/66508161.tmpdir/buildbot/rhe6x86_64--arm-none-eabi/build/src/gcc/gcc/optabs.h:252:8:
> error: 'profile_probability' has not been declared
>       = profile_probability::uninitialized ());
>         ^

Yep, this is because we opted to not have #includes in include files which makes it quite painful
to introduce new data types in their own types which are used elsewhere.
I will add #include <profile-count.h> into arm-builtins.c as well.

Honza

  reply	other threads:[~2017-06-29 22:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 12:28 Jan Hubicka
2017-06-29 18:28 ` Christophe Lyon
2017-06-29 22:19   ` Jan Hubicka
2017-06-29 22:22     ` Ramana Radhakrishnan
2017-06-29 22:24       ` Jan Hubicka [this message]
2017-06-29 22:29         ` Ramana Radhakrishnan
2017-06-29 22:39           ` Jan Hubicka
2017-06-30 23:06             ` Joseph Myers
2017-07-01  7:29               ` Jan Hubicka
2017-06-30  6:51 ` [Committed] S/390: Adjust to the recent branch probability changes Andreas Krebbel
2017-06-30  6:53 ` [Committed] profile-count.h: Fix typos and whitespace issues Andreas Krebbel
2017-06-30 16:33 ` Convert profile probabilities to new type Andreas Schwab
2017-06-30 18:28   ` Alexander Monakov
2017-06-30 19:26     ` Jan Hubicka
2017-07-01  7:49     ` Jan Hubicka
2017-07-13 20:39 ` [BUILDROBOT] RISC-V: ‘profile_probability’ has not been declared (was: Convert profile probabilities to new type) Jan-Benedict Glaw
2017-07-13 20:44   ` [BUILDROBOT] RISC-V: ‘profile_probability’ has not been declared Jeff Law
2017-07-13 20:45     ` [BUILDROBOT] RISC-V: ‘profile_probability’ " Palmer Dabbelt
2017-07-13 21:03     ` [BUILDROBOT] RISC-V: ‘profile_probability’ " Jan-Benedict Glaw

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=20170629222440.GA2195@kam.mff.cuni.cz \
    --to=hubicka@ucw.cz \
    --cc=christophe.lyon@linaro.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=mliska@suse.cz \
    --cc=ramana.gcc@googlemail.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).