From patchwork Wed Oct 9 20:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "James K. Lowden" X-Patchwork-Id: 1995713 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XPfQ606Yyz1xtv for ; Fri, 11 Oct 2024 06:07:06 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 64BE43858290 for ; Thu, 10 Oct 2024 19:07:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.schemamania.org (syn-050-075-019-234.biz.spectrum.com [50.75.19.234]) by sourceware.org (Postfix) with ESMTP id 20EFE3858D37 for ; Thu, 10 Oct 2024 19:06:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20EFE3858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=schemamania.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=schemamania.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 20EFE3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=50.75.19.234 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728587204; cv=none; b=B+YabKOoTl3XK+67XvW/TF2jE2ekV/Pa1dza1tnfC0pnkNhyeOwNoEXXA6tfaqw4Jw431pXp7nXXrTC15xwHYICYov+G415YmDEAr/kHC7efkVEwsj/MG8L3O75eZdf3OPKyQ190ywoK/ccQYb/sropmIXrnCm+fTmTAf0CdY4A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728587204; c=relaxed/simple; bh=8ZSmwoBAXCbMcDeh0Hgp1km4jhoNJcwwkHkryOI7oYY=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=n1PKUKPTMI9IXasPCCKKWg6q0bsFQf0rwEdXSxIMdH6q7VfQU/3JZYIUwaK/7ssG/2+JqhKn+L/N0+x46hQTrKhzibNQxMGe56P9I+h0XxDQGfpV4CfCiKyI5NgrMrDwKD0afJyNW5ssJyjlvZ9cxI6K3gRwJOrPp78Z19MY0sc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from oak.schemamania.org (localhost [IPv6:::1]) by mail.schemamania.org (Postfix) with ESMTP id A2EA2256FABA for ; Wed, 9 Oct 2024 16:41:59 -0400 (EDT) Date: Wed, 9 Oct 2024 16:41:59 -0400 From: "James K. Lowden" To: gcc-patches@gcc.gnu.org Subject: [PATCH] Add 'cobol' to Makefile.def Message-Id: <20241009164159.c2c1393fdc681345a0fb70b6@schemamania.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64--netbsd) Mime-Version: 1.0 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DATE_IN_PAST_12_24, GIT_PATCH_0, KAM_DMARC_STATUS, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Hello, I just joined the list to begin contributing patches for the COBOL front end we've been touting for the last 4 years. It's my first attempt. Please tell me if you'd like to see something different. What follows mimics to some degree the output of "git format-patch". I don't think I can use that command literally, but if I can and that would be better, I'm happy to follow instructions. My plan is to send patches for one file at a time, starting from the top of the tree. Very soon we'll get to the front end proper, in gcc/cobol. After we work our way through those, there is a runtiime library. After that I have tests and documentation. And then we'll be done. Right? ;-) This patch adds "cobol" as a language and subdirectory. --jkl From 216ec55cdb2ad95728612d4b9b5550324e9b506fpatch 4 Oct 2024 12:01:22 -0400 From: "James K. Lowden" Date: Thu Oct 10 14:28:48 EDT 2024 Subject: [PATCH] Add 'cobol' to 1 file --- a/Makefile.def | +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefile.def b/Makefile.def index 19954e7d731..1192e852c7a 100644 --- a/Makefile.def +++ b/Makefile.def @@ -209,6 +209,7 @@ target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; }; target_modules = { module= libitm; lib_path=.libs; }; target_modules = { module= libatomic; bootstrap=true; lib_path=.libs; }; target_modules = { module= libgrust; }; +target_modules = { module= libgcobol; }; // These are (some of) the make targets to be done in each subdirectory. // Not all; these are the ones which don't have special options. @@ -324,6 +325,7 @@ flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; }; flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; }; flags_to_pass = { flag= DSYMUTIL_FOR_TARGET ; }; flags_to_pass = { flag= FLAGS_FOR_TARGET ; }; +flags_to_pass = { flag= GCOBOL_FOR_TARGET ; }; flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; }; flags_to_pass = { flag= GOC_FOR_TARGET ; }; flags_to_pass = { flag= GOCFLAGS_FOR_TARGET ; }; @@ -655,6 +657,7 @@ lang_env_dependencies = { module=libgcc; no_gcc=true; no_c=true; }; // built newlib on some targets (e.g. Cygwin). It still needs // a dependency on libgcc for native targets to configure. lang_env_dependencies = { module=libiberty; no_c=true; }; +lang_env_dependencies = { module=libgcobol; cxx=true; }; dependencies = { module=configure-target-fastjar; on=configure-target-zlib; }; dependencies = { module=all-target-fastjar; on=all-target-zlib; }; @@ -690,6 +693,7 @@ dependencies = { module=install-target-libvtv; on=install-target-libgcc; }; dependencies = { module=install-target-libitm; on=install-target-libgcc; }; dependencies = { module=install-target-libobjc; on=install-target-libgcc; }; dependencies = { module=install-target-libstdc++-v3; on=install-target-libgcc; }; +dependencies = { module=install-target-libgcobol; on=install-target-libstdc++-v3; }; // Target modules in the 'src' repository. lang_env_dependencies = { module=libtermcap; }; @@ -727,6 +731,8 @@ languages = { language=d; gcc-check-target=check-d; lib-check-target=check-target-libphobos; }; languages = { language=jit; gcc-check-target=check-jit; }; languages = { language=rust; gcc-check-target=check-rust; }; +languages = { language=cobol; gcc-check-target=check-cobol; + lib-check-target=check-target-libgcobol; }; // Toplevel bootstrap bootstrap_stage = { id=1 ; };