aboutsummaryrefslogtreecommitdiff
path: root/libcpp/init.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2012-04-30 11:43:14 +0000
committerDodji Seketeli <dodji@gcc.gnu.org>2012-04-30 13:43:14 +0200
commit34c8879087689377b44c833c752948fc496f4f50 (patch)
treecab53a5bbcf101f0462b2c5d3119d48bcfc3bf6c /libcpp/init.c
parentbfd93a72d259d4f372846f6f9ad6adbf4bb7f367 (diff)
downloadgcc-34c8879087689377b44c833c752948fc496f4f50.zip
gcc-34c8879087689377b44c833c752948fc496f4f50.tar.gz
gcc-34c8879087689377b44c833c752948fc496f4f50.tar.bz2
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
Diffstat (limited to 'libcpp/init.c')
0 files changed, 0 insertions, 0 deletions