GCC Bugzilla – Attachment 42919 Details for
Bug 83201
[7/8 Regression] SPEC CPU2017 505.mcf_r produces incorrect output when built with -flto and FDO
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that removes violation of aliasing rules
fix-mcf-qsort.patch (text/plain), 765 bytes, created by
Martin Liška
on 2017-12-19 14:50:33 UTC
(
hide
)
Description:
Patch that removes violation of aliasing rules
Filename:
MIME Type:
Creator:
Martin Liška
Created:
2017-12-19 14:50:33 UTC
Size:
765 bytes
patch
obsolete
>diff --git a/benchspec/CPU/505.mcf_r/src/spec_qsort/spec_qsort.c b/benchspec/CPU/505.mcf_r/src/spec_qsort/spec_qsort.c >index 05cad501..04a2dbb6 100755 >--- a/benchspec/CPU/505.mcf_r/src/spec_qsort/spec_qsort.c >+++ b/benchspec/CPU/505.mcf_r/src/spec_qsort/spec_qsort.c >@@ -73,9 +73,7 @@ static INLINE void swapfunc(char *, char *, int, int, int); > } while (--i > 0); \ > } > >-#define SWAPINIT(TYPE, a, es) swaptype_ ## TYPE = \ >- ((char *)a - (char *)0) % sizeof(TYPE) || \ >- es % sizeof(TYPE) ? 2 : es == sizeof(TYPE) ? 0 : 1; >+#define SWAPINIT(TYPE, a, es) swaptype_ ## TYPE = swaptype_long = swaptype_int = 2; > > static INLINE void > swapfunc(char *a, char *b, int n, int swaptype_long, int swaptype_int)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 83201
: 42919