re PR target/66655 (miscompilation due to ipa-ra on MinGW)

PR target/66655
	* config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
	decls if weak support is available.

From-SVN: r232071
This commit is contained in:
Nick Clifton 2016-01-05 10:57:01 +00:00 committed by Nick Clifton
parent 56f2741b17
commit 3360dc9fc2
2 changed files with 11 additions and 0 deletions

View 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.

View 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,