public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][ARM][4.9]Backport "Fix definition of __ARM_SIZEOF_WCHAR_T"
@ 2015-01-07 13:53 Renlin Li
  2015-01-08 15:27 ` Richard Earnshaw
  0 siblings, 1 reply; 2+ messages in thread
From: Renlin Li @ 2015-01-07 13:53 UTC (permalink / raw)
  To: gcc-patches; +Cc: Ramana Radhakrishnan, richard Earnshaw

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Hi all,

This is a backport patch for 
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=213864

arm-none-eabi regression test has been done, no new issues.
Okay for branch 4.9?

gcc/ChangeLog

Fix PR target/61413
Backport from mainline.

2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

     PR target/61413
     * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
     of __ARM_SIZEOF_WCHAR_T.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: backport.patch --]
[-- Type: text/x-patch; name=backport.patch, Size: 620 bytes --]

diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index c0f2184..23333eb 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -74,8 +74,8 @@ extern char arm_arch_name[];
 	builtin_define_with_int_value (				\
 	  "__ARM_SIZEOF_MINIMAL_ENUM",				\
 	  flag_short_enums ? 1 : 4);				\
-	builtin_define_with_int_value (				\
-	  "__ARM_SIZEOF_WCHAR_T", WCHAR_TYPE_SIZE);		\
+	builtin_define_type_sizeof ("__ARM_SIZEOF_WCHAR_T",	\
+				    wchar_type_node);		\
 	if (TARGET_ARM_ARCH_PROFILE)				\
 	  builtin_define_with_int_value (			\
 	    "__ARM_ARCH_PROFILE", TARGET_ARM_ARCH_PROFILE);	\

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-08 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-07 13:53 [PATCH][ARM][4.9]Backport "Fix definition of __ARM_SIZEOF_WCHAR_T" Renlin Li
2015-01-08 15:27 ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).