Re: [PATCH] Move class substring_loc from c-family into gcc

2016-09-06 Thread Martin Sebor
On 09/03/2016 03:13 AM, Manuel López-Ibáñez wrote: On 02/09/16 23:55, Martin Sebor wrote: diff --git a/gcc/substring-locations.h b/gcc/substring-locations.h index f839c74..bb0de4f 100644 --- a/gcc/substring-locations.h +++ b/gcc/substring-locations.h @@ -20,6 +20,73 @@ along with GCC; see the fi

Re: [PATCH] Move class substring_loc from c-family into gcc

2016-09-03 Thread Manuel López-Ibáñez
On 02/09/16 23:55, Martin Sebor wrote: diff --git a/gcc/substring-locations.h b/gcc/substring-locations.h index f839c74..bb0de4f 100644 --- a/gcc/substring-locations.h +++ b/gcc/substring-locations.h @@ -20,6 +20,73 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_SUBSTRING_LOC

Re: [PATCH] Move class substring_loc from c-family into gcc

2016-09-02 Thread David Malcolm
On Fri, 2016-09-02 at 16:55 -0600, Martin Sebor wrote: > I've successfully tested the patch below by incorporating it into > the -Wformat-length pass I've been working on. I'd like to submit > the latest and hopefully close to final version of my work for > review without duplicating this code and

Re: [PATCH] Move class substring_loc from c-family into gcc

2016-09-02 Thread Martin Sebor
I've successfully tested the patch below by incorporating it into the -Wformat-length pass I've been working on. I'd like to submit the latest and hopefully close to final version of my work for review without duplicating this code and it might be helpful if it was possible to build my latest pat

[PATCH] Move class substring_loc from c-family into gcc

2016-08-25 Thread David Malcolm
This patch is intended to help Martin's new middle-end sprintf format warning. It moves most of the on-demand locations-within-strings code in c-family into gcc, into a new substring-locations.c file to go with substring-locations.h: class substring_loc, representing a source caret and source rang