Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2024 19:57:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280000] emulators/wine-devel: NtRaiseException
Message-ID:  <bug-280000-7788-YGxcZR6Iyd@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280000-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280000-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280000

--- Comment #16 from Brendan Shanks <mrpippy@gmail.com> ---
(In reply to Gerald Pfeifer from comment #15)

Sure, I created https://gitlab.winehq.org/wine/wine/-/merge_requests/6179 f=
or
this.

I looked into the problem more: this behavior in Clang is triggered by
'-mrelax-all' which -O0 currently passes, -O1 and higher do not. It was
intended to speed compile times, but doesn't seem to have a noticeable effe=
ct
any more.
Sure enough, if you build with -O0 and pass '-mno-relax-all', jmp uses the
shorter form.

Also, Clang 19 will no longer pass '-mrelax-all' for -O0:
https://maskray.me/blog/2024-04-27-clang-o0-output-branch-displacement-and-=
size-increase

This would be a good candidate for the wine-stable branch but those releases
don't seem to be happening this year, I'm not sure why. For the wine stable
port, maybe using '-mno-relax-all' is an option? Or just applying this patc=
h.


Also, does this port set CFLAGS or CROSSCFLAGS when building? Wine uses '-g
-O2' by default, which prevents this bug from showing up.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280000-7788-YGxcZR6Iyd>