Fix va_start related location
authorDodji Seketeli <dodji@redhat.com>
Mon, 30 Apr 2012 11:43:14 +0000 (11:43 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 30 Apr 2012 11:43:14 +0000 (13:43 +0200)
commit34c8879087689377b44c833c752948fc496f4f50
treecab53a5bbcf101f0462b2c5d3119d48bcfc3bf6c
parentbfd93a72d259d4f372846f6f9ad6adbf4bb7f367
Fix va_start related location

In gcc/testsuite/gcc.dg/pr30457.c, the first warning was not being
emitted because the relevant location was inside the var_start macro
defined in a system header.  It can even point to a token for a
builtin macro there.  This patch unwinds to the first token in real
source code in that case.

Tested on x86_64-unknown-linux-gnu against trunk.

* builtins.c (fold_builtin_next_arg): Unwinds to the first
location in real source code.

From-SVN: r186975
gcc/ChangeLog
gcc/builtins.c