https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Andrew Pinski changed:
What|Removed |Added
CC||steven.spark at gmail dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Andrew Pinski changed:
What|Removed |Added
Target Milestone|6.5 |8.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Martin Liška changed:
What|Removed |Added
CC||yellowriver2010 at hotmail dot
com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #34 from Benjamin Robin ---
Thank you a lot for the fix.
I have no idea what I did yesterday when I did test bf-ms-layout-2.c (Yes the
test was wrong, and by default cannot compile under Visual Studio VC)
The test can be slightly
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #32 from Jakub Jelinek ---
Author: jakub
Date: Wed Feb 28 17:17:29 2018
New Revision: 258075
URL: https://gcc.gnu.org/viewcvs?rev=258075=gcc=rev
Log:
PR target/52991
* stor-layout.c (update_alignment_for_field): For
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #31 from Jakub Jelinek ---
Thanks for the hint.
So:
#include
struct S {
int a : 2;
__declspec(align(8)) int b : 2;
int c : 28;
__declspec(align(16)) int d : 2;
int e : 30;
} s;
int a = sizeof (struct S);
void f1 (int x)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #30 from Benjamin Robin ---
The test cases bf-ms-layout.c and bf-ms-layout-2.c are valid.
You can test it with an online compiler, for example:
http://rextester.com/l/c_online_compiler_visual
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #29 from Jakub Jelinek ---
Created attachment 43522
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43522=edit
gcc8-pr52991.patch
Full untested patch (except for
make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m64\}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #28 from Jakub Jelinek ---
Trying:
--- gcc/stor-layout.c.jj2018-02-22 14:35:33.135216198 +0100
+++ gcc/stor-layout.c 2018-02-27 17:32:17.934820133 +0100
@@ -1038,7 +1038,7 @@ update_alignment_for_field (record_layou
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #26 from Benjamin Robin ---
I try to work on this bug, by curiosity... And I did found 3 bug in the current
layout of structure when ms_bitfield_layout_p = 1:
**
1) Basic packing (the failing test):
12 matches
Mail list logo