Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132806 Details for
Bug 194975
[gcc-4.2.1 and 4.2.2] works on ARM with additional patches from openembedded.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
arm-pragma-pack.patch
07_arm-pragma-pack.patch (text/plain), 1.15 KB, created by
Vladimir Smirnov (RETIRED)
on 2007-10-07 10:13:55 UTC
(
hide
)
Description:
arm-pragma-pack.patch
Filename:
MIME Type:
Creator:
Vladimir Smirnov (RETIRED)
Created:
2007-10-07 10:13:55 UTC
Size:
1.15 KB
patch
obsolete
>Index: gcc/stor-layout.c >=================================================================== >--- gcc/stor-layout.c (revision 117906) >+++ gcc/stor-layout.c (working copy) >@@ -525,7 +525,15 @@ start_record_layout (tree t) > #ifdef STRUCTURE_SIZE_BOUNDARY > /* Packed structures don't need to have minimum size. */ > if (! TYPE_PACKED (t)) >- rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY); >+ { >+ unsigned tmp; >+ >+ /* #pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */ >+ tmp = (unsigned) STRUCTURE_SIZE_BOUNDARY; >+ if (maximum_field_alignment != 0) >+ tmp = MIN (tmp, maximum_field_alignment); >+ rli->record_align = MAX (rli->record_align, tmp); >+ } > #endif > > rli->offset = size_zero_node; >Index: gcc/testsuite/gcc.dg/pragma-pack-4.c >=================================================================== >--- gcc/testsuite/gcc.dg/pragma-pack-4.c (revision 0) >+++ gcc/testsuite/gcc.dg/pragma-pack-4.c (revision 0) >@@ -0,0 +1,10 @@ >+/* Check that pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */ >+/* { dg-do compile } */ >+ >+#pragma pack(1) >+struct S >+{ >+ char a; >+}; >+ >+int test[sizeof(struct S) == 1 ? 1: -1];
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 194975
:
132804
| 132806