Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
efa6b9f6
Commit
efa6b9f6
authored
Oct 14, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Use a gcc pragma instead of a compiler flag for -fexcess-precision.
This will be needed to support building multiple architectures from the same tree.
parent
40b26279
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
80 deletions
+4
-80
configure
configure
+0
-71
configure.ac
configure.ac
+0
-7
Makefile.in
dlls/d2d1/Makefile.in
+0
-2
geometry.c
dlls/d2d1/geometry.c
+4
-0
No files found.
configure
View file @
efa6b9f6
...
...
@@ -733,7 +733,6 @@ GSM_PE_CFLAGS
FAUDIO_PE_LIBS
FAUDIO_PE_CFLAGS
MINGW_PKG_CONFIG
EXCESS_PRECISION_CFLAGS
CROSSDEBUG
DELAYLOADFLAG
CROSSLDFLAGS
...
...
@@ -11792,42 +11791,6 @@ fi ;;
esac
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -fexcess-precision=standard"
>
&5
printf
%s
"checking whether the cross-compiler supports -fexcess-precision=standard... "
>
&6
;
}
if
test
${
ac_cv_crosscflags__fexcess_precision_standard
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved_cc
=
$CC
ac_wine_try_cflags_saved_exeext
=
$ac_exeext
CFLAGS
=
"
$CFLAGS
$EXTRACROSSCFLAGS
-nostartfiles -nodefaultlibs -fexcess-precision=standard"
CC
=
"
$CROSSCC
"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int __cdecl mainCRTStartup(void) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
ac_cv_crosscflags__fexcess_precision_standard
=
yes
else
$as_nop
ac_cv_crosscflags__fexcess_precision_standard
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
CC
=
$ac_wine_try_cflags_saved_cc
ac_exeext
=
$ac_wine_try_cflags_saved_exeext
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_crosscflags__fexcess_precision_standard
"
>
&5
printf
"%s
\n
"
"
$ac_cv_crosscflags__fexcess_precision_standard
"
>
&6
;
}
if
test
"x
$ac_cv_crosscflags__fexcess_precision_standard
"
=
xyes
then
:
EXCESS_PRECISION_CFLAGS
=
"-fexcess-precision=standard"
fi
if
test
"x
$enable_werror
"
=
"xyes"
then
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the cross-compiler supports -Werror"
>
&5
...
...
@@ -19021,39 +18984,6 @@ then :
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wwrite-strings"
fi
if
test
-z
"
$CROSSTARGET
"
then
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fexcess-precision=standard"
>
&5
printf
%s
"checking whether the compiler supports -fexcess-precision=standard... "
>
&6
;
}
if
test
${
ac_cv_cflags__fexcess_precision_standard
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fexcess-precision=standard"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
ac_cv_cflags__fexcess_precision_standard
=
yes
else
$as_nop
ac_cv_cflags__fexcess_precision_standard
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__fexcess_precision_standard
"
>
&5
printf
"%s
\n
"
"
$ac_cv_cflags__fexcess_precision_standard
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__fexcess_precision_standard
"
=
xyes
then
:
EXCESS_PRECISION_CFLAGS
=
"-fexcess-precision=standard"
fi
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wpointer-arith"
>
&5
printf
%s
"checking whether the compiler supports -Wpointer-arith... "
>
&6
;
}
if
test
${
ac_cv_cflags__Wpointer_arith
+y
}
...
...
@@ -23343,7 +23273,6 @@ EXTRACROSSCFLAGS = $EXTRACROSSCFLAGS
CROSSLDFLAGS =
$CROSSLDFLAGS
DELAYLOADFLAG =
$DELAYLOADFLAG
CROSSDEBUG =
$CROSSDEBUG
EXCESS_PRECISION_CFLAGS =
$EXCESS_PRECISION_CFLAGS
MINGW_PKG_CONFIG =
$MINGW_PKG_CONFIG
FAUDIO_PE_CFLAGS =
$FAUDIO_PE_CFLAGS
FAUDIO_PE_LIBS =
$FAUDIO_PE_LIBS
...
...
configure.ac
View file @
efa6b9f6
...
...
@@ -997,8 +997,6 @@ then
esac
fi
WINE_TRY_CROSSCFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
if test "x$enable_werror" = "xyes"
then
WINE_TRY_CROSSCFLAGS([-Werror])
...
...
@@ -1847,11 +1845,6 @@ then
WINE_TRY_CFLAGS([-Wvla])
WINE_TRY_CFLAGS([-Wwrite-strings])
if test -z "$CROSSTARGET"
then
WINE_TRY_CFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
fi
dnl Check for noisy string.h
WINE_TRY_CFLAGS([-Wpointer-arith],
[saved_string_h_CFLAGS=$CFLAGS
...
...
dlls/d2d1/Makefile.in
View file @
efa6b9f6
...
...
@@ -21,5 +21,3 @@ C_SRCS = \
wic_render_target.c
RC_SRCS
=
version.rc
geometry_EXTRADEFS
=
$(EXCESS_PRECISION_CFLAGS)
dlls/d2d1/geometry.c
View file @
efa6b9f6
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC optimize "O2,no-strict-aliasing,excess-precision=standard"
#endif
#include "d2d1_private.h"
#include <float.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment