From 04b4b64b87f5bf40a32636a745dd02a77fc5ca59 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 25 Jan 2021 09:14:11 +0700 Subject: [PATCH] Remove optck (#286) This was for checking for a bug in old versions of the SunOS tools and is no longer relevant. --- CMakeLists.txt | 1 - bin/makefile-dos | 2 +- bin/optck.sh | 17 ----------------- src/optck.c | 43 ------------------------------------------- 4 files changed, 1 insertion(+), 62 deletions(-) delete mode 100755 bin/optck.sh delete mode 100644 src/optck.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e575a7..2bee69f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,6 @@ SET(BAD_SRCS src/mnwevent.c src/mnxmeth.c src/mouseif.c - src/optck.c src/picture.c src/rawcolor.c src/rawrs232c.c diff --git a/bin/makefile-dos b/bin/makefile-dos index 4280c5d..ac9de51 100644 --- a/bin/makefile-dos +++ b/bin/makefile-dos @@ -2,7 +2,7 @@ AFLAGS = /T ARCHFILES = dosmouse.obj doskbd.obj vesafns.obj vesainit.obj vgainit.obj kbdif.obj -ADMINFILES = makefile mkvdate.c optck.c +ADMINFILES = makefile mkvdate.c LPFILES = lpmain.obj lpread.obj lpsolve.obj lpwrite.obj lpdual.obj lptran.obj diff --git a/bin/optck.sh b/bin/optck.sh deleted file mode 100755 index 87a252c..0000000 --- a/bin/optck.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# -# Check whether Assembler optimization is correct or not. -# - -if [ -f ./optck ]; then - /bin/rm -f ./optck -fi -/bin/cc -O2 ../src/optck.c -o optck -res=`./optck` - -if [ "$res" = "wrong" ]; then - echo -n "-Qoption as -O~M" -fi - - - diff --git a/src/optck.c b/src/optck.c deleted file mode 100644 index 4389d87..0000000 --- a/src/optck.c +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* optck.c - * - * This example is almost same as one shown in - * SunOS 4.1 Release Manual: 4.2. Known Problems With SunOS Release 4.1 Products. - * - * Compiling this file with -O or -O2 level and executing, if assembler optimizes - * incorrectly, "wrong" message is printed out to stdout. - * - */ - -/************************************************************************/ -/* */ -/* (C) Copyright 1989-95 Venue. All Rights Reserved. */ -/* Manufactured in the United States of America. */ -/* */ -/************************************************************************/ - -#include "version.h" - -int boothowto = 1; - -int main(void) { - int unit; - - if (boothowto & 1) { - retry: - unit = -1; - while (unit == -1) { - if (unit != -1) { - printf("wrong"); - exit(1); - } - unit = 0; - foo(&unit); - } - } else { - unit = 0; - goto retry; - } -} - -foo(int *unitp) {}