public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rong Xu <xur@google.com>
To: Xinliang David Li <davidxl@google.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
	Richard Biener <richard.guenther@gmail.com>,
		Jan Hubicka <hubicka@ucw.cz>,
	GCC Patches <gcc-patches@gcc.gnu.org>,
		Xinliang David Li <xinliangli@gmail.com>,
	Teresa Johnson <tejohnson@google.com>,
		Dehao Chen <dehao@google.com>
Subject: Re: [PATCH] offline gcda profile processing tool
Date: Fri, 11 Jul 2014 18:30:00 -0000	[thread overview]
Message-ID: <CAF1bQ=QGdDgirnSA4dWDD-gym7V9KBW-9aOEvEH4Kbx5jvs2OQ@mail.gmail.com> (raw)
In-Reply-To: <CAF1bQ=Tf1KT=0PkZ96ZLmw49P0v1Y-Mm41C_vS=nK-kW1Z7eag@mail.gmail.com>

Richard,

I looked at my patch again. I already add -Wno-error to libgcov-util.o
compilation:
In line 200 of gcc/Makefile.in
libgcov-util.o-warn = -Wno-error

In my test, I used gcc-4.6 as the host compiler. I got warning like this:

In file included from ../../gcc/gcc/../libgcc/libgcov-util.c:30:0:
../../gcc/gcc/../libgcc/libgcov.h:184:30: warning: ISO C++ forbids
zero-size array ‘ctrs’ [-pedantic]

Can you check your buildlog to see if -Wno-error is added to the command line?

Thanks,

-Rong

On Fri, Jul 11, 2014 at 9:47 AM, Rong Xu <xur@google.com> wrote:
> I did see the warning in the bootstrap, but it did not exit the build.
> I thought it was ok.
>
> I'll have a patch for this and send for review.
>
> -Rong
>
> On Fri, Jul 11, 2014 at 9:13 AM, Xinliang David Li <davidxl@google.com> wrote:
>> right.
>>
>> Rong, the fix would be just change ctr array size to 1. For each
>> function, there should be at least one kind of counters -- see the
>> assertion in build_fn_info_type.  There are some code that do
>> 'sizeof(gcov_fn_info)' when computing heap size -- they can be
>> adjusted or leave it as it is (if not doing memcpy for the whole
>> array).
>>
>> David
>>
>> On Fri, Jul 11, 2014 at 8:44 AM, Jakub Jelinek <jakub@redhat.com> wrote:
>>> On Fri, Jul 11, 2014 at 08:42:27AM -0700, Xinliang David Li wrote:
>>>> I wonder why. The struct definition for gcov_fn_info has not changed
>>>> in this patch.
>>>
>>> Perhaps it has been used only in C until now?
>>>
>>>         Jakub

  reply	other threads:[~2014-07-11 18:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 20:43 Rong Xu
2014-01-16 17:30 ` Rong Xu
2014-03-03 22:02   ` Rong Xu
2014-04-15 22:05     ` Jan Hubicka
2014-04-16 17:28       ` Rong Xu
2014-04-17  5:19         ` Jan Hubicka
2014-05-01 22:37           ` Rong Xu
2014-05-05 17:17             ` Rong Xu
2014-07-11  8:07               ` Richard Biener
2014-07-11  8:12                 ` Christophe Lyon
2014-07-11 15:50                   ` Xinliang David Li
2014-07-11 16:44                     ` Rong Xu
2014-07-11 15:42                 ` Xinliang David Li
2014-07-11 16:03                   ` Jakub Jelinek
2014-07-11 16:13                     ` Xinliang David Li
2014-07-11 16:48                       ` Rong Xu
2014-07-11 18:30                         ` Rong Xu [this message]
2014-07-11 18:46                           ` Jan Hubicka
2014-07-11 18:53                             ` Rong Xu
2014-07-13  7:49                           ` Andreas Schwab
2014-05-15 20:37             ` Jan Hubicka
2014-05-20 22:59               ` Rong Xu
2014-05-25 23:43                 ` Jan Hubicka

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='CAF1bQ=QGdDgirnSA4dWDD-gym7V9KBW-9aOEvEH4Kbx5jvs2OQ@mail.gmail.com' \
    --to=xur@google.com \
    --cc=davidxl@google.com \
    --cc=dehao@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=jakub@redhat.com \
    --cc=richard.guenther@gmail.com \
    --cc=tejohnson@google.com \
    --cc=xinliangli@gmail.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).