From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91177 invoked by alias); 25 Dec 2017 00:33:07 -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 91168 invoked by uid 89); 25 Dec 2017 00:33:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*f:sk:CALQF7Z, H*i:sk:CALQF7Z, H*Ad:U*java, website X-HELO: mail-yb0-f172.google.com Received: from mail-yb0-f172.google.com (HELO mail-yb0-f172.google.com) (209.85.213.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Dec 2017 00:33:05 +0000 Received: by mail-yb0-f172.google.com with SMTP id c15so10981499ybl.0 for ; Sun, 24 Dec 2017 16:33:05 -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:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1iI5cdQ2lFzDlFVp7SKe1HbDrpkN6Hh4F5YnrN5EStE=; b=q1kF1TiwU1H09JbgGsyR4qXC5hJ5FXxyn4gfeVvQbUvAvYiAh4dOiFoCgZdTgTMtLn VZSSVEzdfTAxgxFiXwyGrvpWzJ4jJO4wh3EnQpoHJPzblFr0K/pdpZh/LxnaO1EhIW1b cCxVRCGxiwr3MM/cf2imrwJLL6RrhQiWzJNTv4dx8KJKsfvHv2VPWjbLzWdFGTgy+BUJ rRc+3xtujp+lwOHqGZcqDqAdu5YED7GRpG/YUS23xcnFipwJ5SgMhgEdfy+y0LPOSA60 LHrshm2ZmpvKMaF8t1HdiMm+r/lgtdfXlFdohm1Ay688rx1TKmnq6vyfXNyRjjGxmJSF YkSA== X-Gm-Message-State: AKGB3mIAxSACgXXQwQCYkHx2rXxZu2AuPKDmz4hgqZ347b6IQsADA/G4 GHDk6pKqpc59AqZXUK5n3XFMD46gYQ3iBEy0yFU= X-Google-Smtp-Source: ACJfBoufQItVeDONOoDQugMi0upQEfj45SQ6sHSiE0fh6rcoOTkN+xU2RVlG87Ec4Lo21eOITfc0/P+PuvIuiR4uww0= X-Received: by 10.37.26.85 with SMTP id a82mr9498068yba.103.1514161983841; Sun, 24 Dec 2017 16:33:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.157.2 with HTTP; Sun, 24 Dec 2017 16:33:03 -0800 (PST) In-Reply-To: References: From: R0b0t1 Date: Mon, 25 Dec 2017 00:33:00 -0000 Message-ID: Subject: Re: add support for x86_64-w64-mingw32 and cut the fat from libgcj To: Yale Zhang Cc: java@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00002.txt.bz2 On Sun, Dec 24, 2017 at 1:44 PM, Yale Zhang wrote: > Greetings. I have a patch that allows GNU java to target MingW64 > (host=GNU/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? > My questions in a similar vein led to the suggestion to use the last version that supported GCJ. Development on this version has stopped. On the other hand, I am interested in your work, and know of at least a few people who would be; hosting it publicly would be a good idea. If GCC could accept the patches I suspect it would be beneficial, but the people to review your contributions may no longer exist. > 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. > > 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?) > Do your changes make it impossible to use the functionality you cut out? It is not really my place to say, but to me, that would be unsuitable for inclusion in GCC proper. I shouldn't guess, but it seems to me like the default classpath may just be copied into the executable. Optimization passes may not be run on it. Cheers, R0b0t1