From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdbserver: Suffix generated C files with -generated
Date: Fri, 31 Mar 2017 13:35:00 -0000 [thread overview]
Message-ID: <31bcb2d7c1adc1c77a6c1eda58a88fb2@polymtl.ca> (raw)
In-Reply-To: <f2389355-1418-eed4-5a82-248448cad755@redhat.com>
On 2017-03-31 08:23, Pedro Alves wrote:
> Hi Simon,
>
> On 03/30/2017 04:31 AM, Simon Marchi wrote:
>
>>> @@ -8252,7 +8252,7 @@ $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1"
>>> >>confdefs.h
>>> fi
>>>
>>> if test "$srv_xmlfiles" != ""; then
>>> - srv_xmlbuiltin="xml-builtin.o"
>>> + srv_xmlbuiltin="xml-builtin-generated.o"
>>
>> Hmm actually we don't need to rename this, the other .o files are not
>> named -generated. You can forget changes to configure/configure.ac (I
>> removed them locally).
>
> I'm confused on what the result will be. The patch had this in
> Makefile.in,
> for example:
>
> - version.o \
> + version-generated.o \
>
> Can you post the updated patch?
Ah, yes, same mistake with that one. It probably shouldn't change as
well (although it would still work).
To explain the mistake, I first started changing the pattern to have:
foo-generated.c -> foo-generated.o
But then realized I would have to change everything in configure.srv,
and that would be ugly. So I decided to add the "%.o: %-generated.c"
and "%-ipa.o: %-generated.c" rules instead, which allows keeping the
change to a minimum. I however forgot to change version-generated.o
back to version.o and xml-builtin-generated.o to xml-builtin.o. It
still works, because they get picked up by the "%.o: %.c" rule.
I'll post the updated patch.
Simon
next prev parent reply other threads:[~2017-03-31 13:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 3:14 Simon Marchi
2017-03-30 3:31 ` Simon Marchi
2017-03-31 12:24 ` Pedro Alves
2017-03-31 13:35 ` Simon Marchi [this message]
2017-03-31 14:56 ` [PATCH v2] " Simon Marchi
2017-03-31 15:13 ` Pedro Alves
[not found] ` <3038cd35b397eeafa1f8f0447630fa8e@polymtl.ca>
2017-03-31 18:46 ` Simon Marchi
2017-03-31 19:39 ` Simon Marchi
2017-04-04 10:44 ` Pedro Alves
2017-04-04 14:52 ` [PATCH pushed] gdbserver: Clear .deps on clean Simon Marchi
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=31bcb2d7c1adc1c77a6c1eda58a88fb2@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=palves@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