aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-04-26 15:12:55 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-04-26 15:12:55 +0000
commit5677efb0be578c0cb8b7df83700bed0de7cbf69f (patch)
treec42a351cde2f9b4b5a0b1c1389ead48d06933aa1 /gcc
parent3b07c79b24188241f5f76b5b08e68234b02e24e1 (diff)
downloadgcc-5677efb0be578c0cb8b7df83700bed0de7cbf69f.zip
gcc-5677efb0be578c0cb8b7df83700bed0de7cbf69f.tar.gz
gcc-5677efb0be578c0cb8b7df83700bed0de7cbf69f.tar.bz2
c-lex.c (c_lex): Remove # from %o diagnostic formatting.
.: * c-lex.c (c_lex): Remove # from %o diagnostic formatting. testsuite: * g++.old-deja/g++.other/lex1.C: New test. From-SVN: r41588
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-lex.c2
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/lex1.C12
4 files changed, 21 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 092820c..9f85328 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * c-lex.c (c_lex): Remove # from %o diagnostic formatting.
+
2001-04-26 Jakub Jelinek <jakub@redhat.com>
* integrate.c (expand_inline_function): Check for error_mark_node
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index f68ae35..6f60769 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -993,7 +993,7 @@ c_lex (value)
if (ISGRAPH (tok.val.c))
error ("stray '%c' in program", tok.val.c);
else
- error ("stray '\\%#o' in program", tok.val.c);
+ error ("stray '\\%o' in program", tok.val.c);
goto retry;
case CPP_NAME:
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7fea9e9..23436f9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.old-deja/g++.other/lex1.C: New test.
+
2001-04-26 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/noncompile/20010425-1.c: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lex1.C b/gcc/testsuite/g++.old-deja/g++.other/lex1.C
new file mode 100644
index 0000000..b639f05
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/lex1.C
@@ -0,0 +1,12 @@
+// Build don't link:
+//
+// Copyright (C) 2001 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 26 April 2001 <nathan@codesourcery.com>
+
+// Bug 2510. We ICEd when a bogus char was present.
+
+void foo ()
+{
+ // there is a ctrl-h on the next line
+  // ERROR - stray char
+}