diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-25 10:52:07 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-25 10:52:07 +0000 |
commit | 67ada03659317adbf2d2920769aeda05d80345d4 (patch) | |
tree | 38324690e1b3c0ec2fbc617efa8c0b147968d86d /usr.bin/pcc | |
parent | 6deef5f410cef47581f0950e6123d85bb88f7f62 (diff) |
pull from ragge's repo:
Do not try to print out common symbols if errors, from Stefan Kempf.
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r-- | usr.bin/pcc/cc/ccom/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/ccom/main.c b/usr.bin/pcc/cc/ccom/main.c index a61eecc0bda..a4ae51d0e9e 100644 --- a/usr.bin/pcc/cc/ccom/main.c +++ b/usr.bin/pcc/cc/ccom/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 2007/09/24 16:04:01 otto Exp $ */ +/* $OpenBSD: main.c,v 1.4 2007/09/25 10:52:06 otto Exp $ */ /* * Copyright (c) 2002 Anders Magnusson. All rights reserved. @@ -287,7 +287,8 @@ main(int argc, char *argv[]) yyaccpt(); ejobcode( nerrors ? 1 : 0 ); - lcommprint(); + if (!nerrors) + lcommprint(); if (sflag) prtstats(); |