delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/11/02/15:29:27

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 2 Nov 2001 23:28:16 +0300
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin-patches AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <13143191436.20011102232816@logos-m.ru>
To: Christopher Faylor <cygwin-developers AT cygwin DOT com>
CC: cygwin-patches AT cygwin DOT com
Subject: Re: -mpreferred-stack-boundary=2?
In-Reply-To: <20011102001706.A10347@redhat.com>
References: <20011102001706 DOT A10347 AT redhat DOT com>
MIME-Version: 1.0

------------FB1755885E9E93
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

Friday, 02 November, 2001 Christopher Faylor cgf AT redhat DOT com wrote:

CF> I just added the -mpreferred-stack-boundary=2 option to Makefile.common.
CF> Is there a good reason not to do this?  From the description in
CF> gcc.info, it seems like the cases that they are talking about don't
CF> affect the cygwin part of things, although it would conceivably be iffy
CF> to use this switch in the newlib.

CF> The code size reduction is noticeable.

i have no problems with this. I'm getting a lot of "can't inline"
warnings with gcc-2.95.2 due to to-be-inlined function is defined
after it's called, however. gcc-3.0.2 doesn't have this problem but i
wonder if it's feasible to reorganize function order to accommodate
older compilers? patch attached.

btw, what do you think about -Werror ?

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19
------------FB1755885E9E93
Content-Type: application/octet-stream; name="fix-inline-warnings.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="fix-inline-warnings.diff"

SW5kZXg6IHdpbnN1cC9jeWd3aW4vZGxsX2luaXQuaAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvaG9t
ZS9kdWRhL2xvY2FsL3Zhci9taXJyb3JzL3NyYy93aW5zdXAvY3lnd2luL2RsbF9pbml0Lmgsdgpy
ZXRyaWV2aW5nIHJldmlzaW9uIDEuNApkaWZmIC11IC1wIC0yIC1yMS40IGRsbF9pbml0LmgKLS0t
IHdpbnN1cC9jeWd3aW4vZGxsX2luaXQuaAkyMDAxLzA5LzExIDIwOjAxOjAwCTEuNAorKysgd2lu
c3VwL2N5Z3dpbi9kbGxfaW5pdC5oCTIwMDEvMTEvMDIgMjA6MTQ6MzMKQEAgLTc0LDEwICs3NCw0
IEBAIHB1YmxpYzoKICAgdm9pZCBpbml0ICgpOwogICB2b2lkIGxvYWRfYWZ0ZXJfZm9yayAoSEFO
RExFLCBkbGwgKik7Ci0gIGRsbCAqaXN0YXJ0IChkbGxfdHlwZSB0KQotICB7Ci0gICAgaG9sZF90
eXBlID0gdDsKLSAgICBob2xkID0gJnN0YXJ0OwotICAgIHJldHVybiBpbmV4dCAoKTsKLSAgfQog
ICBkbGwgKmluZXh0ICgpCiAgIHsKQEAgLTg2LDQgKzgwLDEwIEBAIHB1YmxpYzoKIAlicmVhazsK
ICAgICByZXR1cm4gaG9sZDsKKyAgfQorICBkbGwgKmlzdGFydCAoZGxsX3R5cGUgdCkKKyAgewor
ICAgIGhvbGRfdHlwZSA9IHQ7CisgICAgaG9sZCA9ICZzdGFydDsKKyAgICByZXR1cm4gaW5leHQg
KCk7CiAgIH0KIH07CkluZGV4OiB3aW5zdXAvY3lnd2luL3NlY3VyaXR5LmgKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT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aW4vc3luYy5oCTIwMDEvMTEvMDIgMjA6MTQ6MzQK
QEAgLTIzLDQgKzIzLDkgQEAgcHVibGljOgogICBjbGFzcyBtdXRvICpuZXh0OwogICBjb25zdCBj
aGFyICpuYW1lOworCisgIG11dG8oKSB7fQorICAvKiBUaGUgcmVhbCBjb25zdHJ1Y3Rvci4gKi8K
KyAgbXV0byhpbnQgaW5oLCBjb25zdCBjaGFyICpuYW1lKTsKKwogICB2b2lkICpvcGVyYXRvciBu
ZXcgKHNpemVfdCwgdm9pZCAqcCkge3JldHVybiBwO30KICAgdm9pZCAqb3BlcmF0b3IgbmV3IChz
aXplX3QpIHtyZXR1cm4gOjpuZXcgbXV0bzsgfQpAQCAtMjgsNyArMzMsNCBAQCBwdWJsaWM6CiAJ
CQkJCWN1cnJlbnRseSAqLwogCi0gIG11dG8oKSB7fQotICAvKiBUaGUgcmVhbCBjb25zdHJ1Y3Rv
ci4gKi8KLSAgbXV0byhpbnQgaW5oLCBjb25zdCBjaGFyICpuYW1lKTsKICAgfm11dG8gKCk7CiAg
IGludCBhY3F1aXJlIChEV09SRCBtcyA9IElORklOSVRFKSBfX2F0dHJpYnV0ZV9fICgocmVncGFy
bSgxKSkpOyAvKiBBY3F1aXJlIHRoZSBsb2NrLiAqLwo=

------------FB1755885E9E93
Content-Type: application/octet-stream; name="fix-inline-warnings.ChangeLog"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="fix-inline-warnings.ChangeLog"

MjAwMS0xMS0wMiAgRWdvciBEdWRhICA8ZGVvQGxvZ29zLW0ucnU+CgoJKiBkbGxfaW5pdC5oIChj
bGFzcyBkbGxfbGlzdCk6IFJlb3JkZXIgZnVuY3Rpb25zIHRvIGF2b2lkIGNvbXBpbGVyCgkiY2Fu
J3QgaW5saW5lIiB3YXJuaW5ncy4KCSogc2VjdXJpdHkuaCAoY2xhc3MgY3lnc2lkKTogRGl0dG8u
CgkqIHNpZ3Byb2MuY2MgKGdldF9wcm9jX2xvY2spOiBEaXR0by4KCSogc2lncHJvYy5oIChjbGFz
cyBzaWdmcmFtZSk6IERpdHRvLgoJKiBzeW5jLmggKGNsYXNzIG11dG8pOiBEaXR0by4K

------------FB1755885E9E93--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019