[llvm-commits] [llvm-gcc-4.2] r64648 - /llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c
Devang Patel
dpatel at apple.com
Mon Feb 16 11:18:01 PST 2009
Author: dpatel
Date: Mon Feb 16 13:18:00 2009
New Revision: 64648
URL: http://llvm.org/viewvc/llvm-project?rev=64648&view=rev
Log:
A patch was added in gcc-4.2 to copy TYPE_DECL as the new type's typedef name if the type is anonymous.
This patch is not required in llvm-gcc. The difference is due to the way gcc and llvm-gcc walks gcc trees to emit debug info.
Modified:
llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c
Modified: llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c?rev=64648&r1=64647&r2=64648&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/name-lookup.c Mon Feb 16 13:18:00 2009
@@ -817,7 +817,12 @@
/* Make sure to do the copying if the type was anonymous */
else if (type != error_mark_node
&& ((TYPE_NAME (type) != x)
+#ifdef ENABLE_LLVM
+ /* llvm-gcc does not need a copy if the type was anonymous. */
+ )
+#else
|| (TYPE_LANG_SPECIFIC (type) && TYPE_WAS_ANONYMOUS (type)))
+#endif
/* APPLE LOCAL end radar 6007135, typedef of anonymous struct */
/* We don't want to copy the type when all we're
doing is making a TYPE_DECL for the purposes of
More information about the llvm-commits
mailing list