From 67ada03659317adbf2d2920769aeda05d80345d4 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 25 Sep 2007 10:52:07 +0000 Subject: pull from ragge's repo: Do not try to print out common symbols if errors, from Stefan Kempf. --- usr.bin/pcc/cc/ccom/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/pcc/cc') 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(); -- cgit v1.2.3