On Mon, 2 Oct 2017, David Malcolm wrote:
> gcc/c/ChangeLog:
> * c-decl.c (push_parm_decl): Store c_parm's location into the
> PARAM_DECL.
> (build_c_parm): Add "loc" param and store it within the c_parm.
> * c-parser.c (struct c_parser): Add "last_token_location" field.
>
On Mon, 2017-10-02 at 16:22 -0400, Paul Koning wrote:
> > On Oct 2, 2017, at 4:05 PM, David Malcolm
> > wrote:
> >
> > ...
> > the C FE currently emits (trunk):
> >
> > test.c: In function 'caller':
> > test.c:5:25: warning: passing argument 2 of 'callee' makes pointer
> > from
> > integer wi
> On Oct 2, 2017, at 4:05 PM, David Malcolm wrote:
>
> ...
> the C FE currently emits (trunk):
>
> test.c: In function 'caller':
> test.c:5:25: warning: passing argument 2 of 'callee' makes pointer from
> integer without a cast [-Wint-conversion]
> return callee (first, second, third);
>
On 09/20/2017 01:52 PM, David Malcolm wrote:
When we have a type mismatch in a C++ function call, e.g.
extern int callee (int one, const char *two, float three);
int caller (int first, int second, float third)
{
return callee (first, second, third);
}
we currently emit something li
On Wed, Sep 20, 2017 at 3:52 PM, David Malcolm wrote:
> + /* If we have a method, then DECL_ARGUMENTS begins with "this";
> + increment ARGNUM to skip it. */
> + if (TREE_CODE (TREE_TYPE (fndecl)) == METHOD_TYPE)
> +argnum++;
> +
> + /* Locate param by index within DECL_ARGUMENTS (fnde
On 09/20/2017 12:52 PM, David Malcolm wrote:
When we have a type mismatch in a C++ function call, e.g.
whereas underlining the mismatching things would make the messages
easier to comprehend:
test.c: In function 'int caller(int, int, float)':
test.c:5:38: error: invalid conversion from