[llvm-commits] [llvm-gcc-4.2] r71287 - in /llvm-gcc-4.2/trunk: build_gcc gcc/ChangeLog.apple gcc/config/arm/arm.c gcc/cp/mangle.c gcc/objc/ChangeLog.apple gcc/objc/objc-act.c gcc/testsuite/ChangeLog.apple gcc/testsuite/g++.apple/anon-1.C gcc/testsuite/gcc.apple/weak.c gcc/testsuite/objc.dg/property-16.m gcc/tree-eh.c gcc/version.c

Duncan Sands baldrick at free.fr
Fri May 8 23:37:04 PDT 2009


Hi,

> +      /* APPLE LOCAL begin weak variables 6822086 */
> +    case VAR_DECL:
> +      /* Assume that weak variables may trap.  */
> +      if (DECL_WEAK (expr))
> +	return true;
> +      return false;
> +      /* APPLE LOCAL end weak variables 6822086 */

shouldn't this only be needed for weak references
(gets turned into ExternalWeakLinkage in LLVM)?

Ciao,

Duncan.



More information about the llvm-commits mailing list