This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C, C++: New warning for memset without multiply by elt size


On 04/22/2016 05:31 PM, Jason Merrill wrote:
On Fri, Apr 22, 2016 at 11:24 AM, Bernd Schmidt <bernds_cb1@t-online.de> wrote:
On 04/22/2016 03:57 PM, Jason Merrill wrote:
This looks good, but can we move the code into c-common rather than
duplicate it?

Probably not without a fair amount of surgery, since the cdw_ and ds_ codes
are private to each frontend.

I don't see any cdw_ or ds_ in this patch.

Ah sorry, that was the other patch. I'm somewhat jetlagged. I'll look into this; I do remember there being some differences in the C and C++ parts, but it may just be the bit where it looks past a CONST_DECL for C++.


Bernd



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]