summaryrefslogtreecommitdiff
path: root/src/cmd/cc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-08-08 21:06:06 -0400
committerRuss Cox <rsc@golang.org>2013-08-08 21:06:06 -0400
commit6d8e81a7f1add3c1a41c68bc23e023d028b1b9a2 (patch)
tree03d92867efb04774c19f34376166c4a8fe8d6abd /src/cmd/cc
parent46a6c7c7dce65e57007756caae5b9f00b424e72c (diff)
downloadgo-6d8e81a7f1add3c1a41c68bc23e023d028b1b9a2.tar.gz
cmd/cc: restore correct meaning of %Q
g% 6c ~/x.c /Users/rsc/x.c:1 duplicate types given: STRUCT s and VOID /Users/rsc/x.c:1 no return at end of function: f g% Fixes issue 6083. R=ken2 CC=golang-dev https://codereview.appspot.com/12691043
Diffstat (limited to 'src/cmd/cc')
-rw-r--r--src/cmd/cc/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c
index b46c368b5..d1aa2e483 100644
--- a/src/cmd/cc/lex.c
+++ b/src/cmd/cc/lex.c
@@ -118,6 +118,7 @@ main(int argc, char *argv[])
{
int c;
+ quotefmtinstall(); // before cinit, which overrides %Q
ensuresymb(NSYMB);
memset(debug, 0, sizeof(debug));
tinit();
@@ -126,7 +127,6 @@ main(int argc, char *argv[])
arginit();
fmtstrinit(&pragcgobuf);
- quotefmtinstall();
tufield = simplet((1L<<tfield->etype) | BUNSIGNED);
ndef = 0;