summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-28 19:05:32 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-28 19:05:32 +0000
commit9ec2b43b5898c5b1a665cbcbd8d43a77d6efaaff (patch)
tree2ca5ff4f74fb918a95afb926bab36463201b4722 /gcc/c-parse.in
parentf96e4fb1461ce5dfa7ee42fb83528789ff8d3a55 (diff)
downloadgcc-9ec2b43b5898c5b1a665cbcbd8d43a77d6efaaff.tar.gz
* c-parse.in (yylexstring): Use a location_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 8ae1e14274f..2316ca7dfa3 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -3688,15 +3688,14 @@ yylexstring ()
varray_type strings;
ifc
- static int last_lineno = 0;
- static const char *last_input_filename = 0;
+ static location_t last_location;
if (warn_traditional && !in_system_header
- && (input_line != last_lineno || !last_input_filename ||
- strcmp (last_input_filename, input_filename)))
+ && (input_location.line != last_location.line
+ || !last_location.file ||
+ strcmp (last_location.file, input_location.file)))
{
warning ("traditional C rejects string concatenation");
- last_lineno = input_line;
- last_input_filename = input_filename;
+ last_location = input_location;
}
end ifc