From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 6CABB3858D37; Mon, 10 Oct 2022 14:11:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CABB3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665411081; bh=3YbUfwi8uQwwJXRl1bZ65+KxgyF34QOVf9Fct6wmKiU=; h=From:To:Subject:Date:From; b=RNVQvPV1hrKfBrbCfnLt1Npjw6lT+Jd16eOPeRfF/IXodlM++KD7iSSbXxW9dz5Q3 wibEjXTHQ+RbiF4Q9QZLYEHce6KrX2YQ+W/CHEEMUaB82+JoWjj/wEFpBOehcTESvd t+5/qYNg86kYjRtLDCvbuZIEOaCYjpz0yHFvx/bk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Remove unused script. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: b8bcd40cae5c18030f1adcd365eb875364d9ea76 X-Git-Newrev: c92177a3eb2846ef63602e794032bdcc0c82cced Message-Id: <20221010141121.6CABB3858D37@sourceware.org> Date: Mon, 10 Oct 2022 14:11:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c92177a3eb2846ef63602e794032bdcc0c82cced commit c92177a3eb2846ef63602e794032bdcc0c82cced Author: Gaius Mulley Date: Mon Oct 10 14:42:04 2022 +0100 Remove unused script. Remove an unused script. gcc/m2/ChangeLog: * tool-src/createUlmSys: (Removed). Signed-off-by: Gaius Mulley Diff: --- gcc/m2/tools-src/createUlmSys | 514 ------------------------------------------ 1 file changed, 514 deletions(-) diff --git a/gcc/m2/tools-src/createUlmSys b/gcc/m2/tools-src/createUlmSys deleted file mode 100755 index d0286595051..00000000000 --- a/gcc/m2/tools-src/createUlmSys +++ /dev/null @@ -1,514 +0,0 @@ -#!/bin/bash - -# createUlmSys creates a University of Ulm compatible SYSTEM module. -# Contributed by Gaius Mulley . - -# Copyright (C) 2000-2022 Free Software Foundation, Inc. -# This file is part of GNU Modula-2. -# -# GNU Modula-2 is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Modula-2 is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Modula-2; see the file COPYING. If not, write to the -# Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. -# - -LIBS_H=$1 - -PROTOTYPE_LIST=(i ii iii ip ipi ipp iipi ippp ipii iiip iip lp lili END) - -# -# createUlmSys - creates the Sys.def and SYSTEM.c files for the ulm -# libraries. The stategy is to provide access to the -# low level libc system call wrappers. We don't attempt -# to support all system calls, as the priority -# is portability. -# -# system call prototype -CALL_LIST=(access ipi - brk ip - close ii - creat ipi - dup ii - execve ippp - exit ii - fcntl iiip - fstat iip - getdents iipi - getgid i - getpid i - gettimeofday ipp - getuid i - ioctl iiip - kill iii - link ipp - lseek lili - open ipii - pause i - pipe ip - read iipi - setitimer iipp - setgid ii - setuid ii - stat ipp - times lp - unlink ip - wait ip - write iipi - END END) - -function createPrototypes () { - echo "int SYSTEM_UNIXCALL (int code, int *r0, int *r1, ...);" - echo "void _M2_SYSTEM_init ();" - echo "void _M2_SYSTEM_finish ();" - count=0 - proto=1 - while [ "${CALL_LIST[$count]}" != "END" ] ; do - echo "" - emitReturn ${CALL_LIST[$proto]} - func=`echo -n ${CALL_LIST[$count]}` - echo -n " no_$func " - emitPrototype ${CALL_LIST[$proto]} - echo ";" - count=`expr $count + 2` - proto=`expr $proto + 2` - done -} - -function createSyscall () { - cat < by #if defined($1) -# - -safeIncludeFile () { - echo "" - echo "#if defined($1)" - echo "# include <$2>" - echo "#endif" -} - -# -# createSystem - creates the SYSTEM.c file. -# It creates defines/includes/prototypes/syscalls. -# - -function createSystem () { - cat <& /dev/null ; then - echo "# if defined(HAVE_$func)" - echo " syscalls[CALL_${CALL_LIST[$count]}] = (void *)${CALL_LIST[$count]};" - echo "# else" - echo " syscalls[CALL_${CALL_LIST[$count]}] = (void *)no_${CALL_LIST[$count]};" - echo "# endif" - elif grep ^\#undef ${LIBS_H} \ - | grep HAVE_$func >& /dev/null ; then - echo "# if defined(HAVE_$func)" - echo " syscalls[CALL_${CALL_LIST[$count]}] = (void *)${CALL_LIST[$count]};" - echo "# else" - echo " syscalls[CALL_${CALL_LIST[$count]}] = (void *)no_${CALL_LIST[$count]};" - echo "# endif" - else - echo " /* ${LIBS_H} should test for the system call or libc call $func */" - echo " syscalls[CALL_${CALL_LIST[$count]}] = (void *)no_${CALL_LIST[$count]};" - fi - count=`expr $count + 1` - count=`expr $count + 1` - done - echo "}" - echo " " - echo "void _M2_SYSTEM_finish (void)" - echo "{" - echo "}" -} - -function createUnixFork () { - cat <