This is the mail archive of the
mailing list for the GCC project.
RE: [patch] Hide the caret for -Wstack-usage
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>
- Date: Fri, 11 Jul 2014 00:00:31 +0200
- Subject: RE: [patch] Hide the caret for -Wstack-usage
- Authentication-results: sourceware.org; auth=none
> since displaying the caret was made the default, the -Wstack-usage warning has
> a strange-looking final part:
> stack-usage-2.c: In function 'foo2':
> stack-usage-2.c:16:1: warning: stack usage is 920 bytes [-Wstack-usage=]
Your patch hides the caret but the location still points to the
closing brace (so if you use an IDE like emacs this is where you will
Is there a location for the definition? Could we store/pass one to this point?
Otherwise, would it be appropriate to point to the declaration of the
function? After all, this is what -fstack-usage seems to do.
Then you could use warning_at(loc, ...).