]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/66655 (miscompilation due to ipa-ra on MinGW)
authorNick Clifton <nickc@redhat.com>
Tue, 5 Jan 2016 10:57:01 +0000 (10:57 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 5 Jan 2016 10:57:01 +0000 (10:57 +0000)
PR target/66655
* config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
decls if weak support is available.

From-SVN: r232071

gcc/ChangeLog
gcc/config/i386/cygming.h

index 4ec3229be0ef37e9f27802b4ef2475e415cff586..c1f2cfc3be858f7c60fdbfda630d4a867a66916a 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-05  Nick Clifton  <nickc@redhat.com>
+
+       PR target/66655
+       * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
+       decls if weak support is available.
+
 2016-01-04  Martin Sebor  <msebor@redhat.com>
 
        * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
index 1cf56f676f1280826f5cbf83fff49870f7a84956..71019cbfdbc357f321653bac3011fb9582f07bd2 100644 (file)
@@ -432,6 +432,11 @@ do {                                               \
       fputc ('\n', (FILE));           \
     }                                 \
   while (0)
+
+/* Use the weak support for ONE_ONLY decls.  */
+#undef  MAKE_DECL_ONE_ONLY
+#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
+
 #endif /* HAVE_GAS_WEAK */
 
 /* FIXME: SUPPORTS_WEAK && TARGET_HAVE_NAMED_SECTIONS is true,