From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8736 invoked by alias); 1 Jan 2018 10:38:51 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 8726 invoked by uid 89); 1 Jan 2018 10:38:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Greetings, brian, H*x:iPhone, H*UA:iPhone X-HELO: mail-yw0-f176.google.com Received: from mail-yw0-f176.google.com (HELO mail-yw0-f176.google.com) (209.85.161.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Jan 2018 10:38:49 +0000 Received: by mail-yw0-f176.google.com with SMTP id v187so11116005ywc.2 for ; Mon, 01 Jan 2018 02:38:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uUIwayCu2EhCT77jcQET40HbNep+aawkgnBkZkpc+t4=; b=lJdaSH6dteIVa+X0MUF4UOw1Bl26GehTL8vd3EsOWKP0ORqnCF6iSjaUpfuXgpk4AH 9WzB9fgXBwFUhHjLMnW0HO0TlROZm4J1Gvr0agYMmt8xqfCNOyhoYaHcta98QaV/jEef 7XkTveQ3lOdnPzHnvLZcpIXUM0AUEnzfdEqvJ4iGcrxzfT0lKGkgxAD+otW2aqiJwFJu emKG3mwrUu+rBpPcxaWRIwKDk+4tEfUW2FxYkMU3nQp7VUpI+coLP/5zRGziwLLnBLYS 41flHBs2wYKnNiDL/PqrRuCPVClDaja/faklG3HWvXrGtQbD0SAc8H0sQeZjEqrbF1zX 62dg== X-Gm-Message-State: AKGB3mLwE1gFGsU2ikG0Dx6hdayEc2/xZHk1h66L7p0kHxxQ71Due0ra hxdh38JERRT6WVc4gvY1KqsNCoW+ X-Google-Smtp-Source: ACJfBov2ocHGdz/875QkdW34Hy++k9mKyrNAk/XHgTSJkEiswaVKaSp7fJHIm6roqDu8PuczCFj1Pw== X-Received: by 10.129.155.209 with SMTP id s200mr29880216ywg.173.1514803127943; Mon, 01 Jan 2018 02:38:47 -0800 (PST) Received: from [192.168.1.59] (cpe-45-37-45-251.nc.res.rr.com. [45.37.45.251]) by smtp.gmail.com with ESMTPSA id l37sm8118533ywa.5.2018.01.01.02.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jan 2018 02:38:47 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: add support for x86_64-w64-mingw32 and cut the fat from libgcj From: Brian Jones In-Reply-To: Date: Mon, 01 Jan 2018 10:38:00 -0000 Cc: java@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <3BC75108-7D53-4CCB-AFEF-51C8EC98F9B3@gmail.com> References: To: Yale Zhang X-SW-Source: 2018-01/txt/msg00002.txt.bz2 I believe the idea of including only code which you specify is required cam= e up before on the list many years ago. Hopefully a search through archive= s can be instructive. Brian=20 > On Dec 24, 2017, at 2:44 PM, Yale Zhang wrote: >=20 > Greetings. I have a patch that allows GNU java to target MingW64 > (host=3DGNU/Linux only). Are you guys still taking patches now that Java > has been removed from GCC 7? Or would it be more appropriate to host > it on my own website or instructables.com? >=20 > I also have another patch that cuts all the GUI, cryptography, and non > UTF8/16 charset support from libgcj. This reduces the size of > statically linked EXEs a lot (~27MiB to 4.5 MiB for a hello world > program). This is important for a legacy utility that other developers > use on Windows and who don't want to install a Java runtime. >=20 > Commenting out and deleting code is a crude way to do, I know. Should > use conditional compilation and even explore what's causing GUI code > to be dragged into a hello world program. Maybe dead code removal > isn't working (need to compile with -ffunction-sections and > --gc-sections?) >=20 > appreciate your feedback, > -Yale