From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>
Subject: Re: [PATCH v2] gdbserver: Suffix generated C files with -generated
Date: Fri, 31 Mar 2017 15:13:00 -0000 [thread overview]
Message-ID: <38db6e08-ed78-59ce-a514-03398fe5fe70@redhat.com> (raw)
In-Reply-To: <20170331145554.26349-1-simon.marchi@ericsson.com>
On 03/31/2017 03:55 PM, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
>
> I noticed that there were some missing files in gdbserver's gitignore
> (some generated register format .c files). Of course the easy fix would
> be to add those files to .gitignore, but I think we can do a better job,
> so that we don't have to worry about adding generated files to
> .gitignore or the clean Makefile target.
>
> I suggest naming all generated source files -generated.c. This way, we
> can use a single rule in .gitignore and do a "rm -f *-generated.c" to
> clean them up.
>
> New in v2:
>
> - Don't rename version.o and xml-builtin.o
>
> gdb/gdbserver/ChangeLog:
>
> * .gitignore: Remove generated files, replace with wildcard.
> * (clean): Replace removal of generated files with wildcard.
> (version.c): Replace with...
> (version-generated.c): ...this.
> (xml-builtin.c): Replace with...
> (xml-builtin-generated.c): ...this.
> (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
> (%.c: *regformats*): Replace with...
> (%-generated.c: *regformats*): ...this.
OK.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2017-03-31 15:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 3:14 [PATCH] " Simon Marchi
2017-03-30 3:31 ` Simon Marchi
2017-03-31 12:24 ` Pedro Alves
2017-03-31 13:35 ` Simon Marchi
2017-03-31 14:56 ` [PATCH v2] " Simon Marchi
2017-03-31 15:13 ` Pedro Alves [this message]
[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=38db6e08-ed78-59ce-a514-03398fe5fe70@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.com \
--cc=simon.marchi@polymtl.ca \
/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