diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-19 17:58:12 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-19 17:58:12 +0300 |
commit | 0c6f948c2100559a304372a69b1da71c9f4f49ba (patch) | |
tree | 023c46cfd3810f3cd8fea3496ab3e6fd171b46e9 /debian/patches/illumos-pragma-align.diff | |
parent | 11890f1485f765e1e6fcef56ec32d5b0c0ebfb18 (diff) | |
download | gcc-9-0c6f948c2100559a304372a69b1da71c9f4f49ba.tar.gz |
Refresh Dyson patches
Diffstat (limited to 'debian/patches/illumos-pragma-align.diff')
-rw-r--r-- | debian/patches/illumos-pragma-align.diff | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/patches/illumos-pragma-align.diff b/debian/patches/illumos-pragma-align.diff index b8ca929..4c6fdaf 100644 --- a/debian/patches/illumos-pragma-align.diff +++ b/debian/patches/illumos-pragma-align.diff @@ -2,26 +2,26 @@ Description: Allow #pragma align to be used after a variable is declared GCC mandates that #pragma align precede any declaration, Sun C does not. See http://wiki.illumos.org/display/illumos/GCC+Modifications -Index: gcc-5/src/gcc/config/sol2-c.c +Index: gcc-9.git/src/gcc/config/sol2-c.c =================================================================== ---- gcc-5.orig/src/gcc/config/sol2-c.c -+++ gcc-5/src/gcc/config/sol2-c.c -@@ -125,8 +125,9 @@ solaris_pragma_align (cpp_reader *pfile +--- gcc-9.git.orig/src/gcc/config/sol2-c.c ++++ gcc-9.git/src/gcc/config/sol2-c.c +@@ -112,8 +112,9 @@ solaris_pragma_align (cpp_reader *pfile { tree decl = identifier_global_value (t); if (decl && DECL_P (decl)) - warning (0, "%<#pragma align%> must appear before the declaration of " -- "%D, ignoring", decl); +- "%qD, ignoring", decl); + decl_attributes (&decl, build_tree_list (get_identifier ("aligned"), + build_tree_list (NULL, x)), + 0); else solaris_pending_aligns = tree_cons (t, build_tree_list (NULL, x), solaris_pending_aligns); -Index: gcc-5/src/gcc/testsuite/gcc.dg/pragma-align-2.c +Index: gcc-9.git/src/gcc/testsuite/gcc.dg/pragma-align-2.c =================================================================== ---- gcc-5.orig/src/gcc/testsuite/gcc.dg/pragma-align-2.c -+++ gcc-5/src/gcc/testsuite/gcc.dg/pragma-align-2.c +--- gcc-9.git.orig/src/gcc/testsuite/gcc.dg/pragma-align-2.c ++++ gcc-9.git/src/gcc/testsuite/gcc.dg/pragma-align-2.c @@ -26,9 +26,9 @@ void abort (void); #pragma align bad_align /* { dg-warning "malformed" } */ #pragma align 1(bad_align /* { dg-warning "malformed" } */ |