[llvm-commits] [llvm-gcc-4.2] r46820 - /llvm-gcc-4.2/trunk/gcc/varasm.c
Bill Wendling
isanbard at gmail.com
Wed Feb 6 11:05:56 PST 2008
Author: void
Date: Wed Feb 6 13:05:56 2008
New Revision: 46820
URL: http://llvm.org/viewvc/llvm-project?rev=46820&view=rev
Log:
I meant to retain the behavior when ENABLE_LLVM wasn't defined, but not output
to the ASM file. My patch was wrong because it issued the warning
unconditionally when ENABLE_LLVM was defined. This should enable the old
behavior when ENABLE_LLVM is undefined and give us the warning when
HAVE_GAS_HIDDEN isn't defined.
Modified:
llvm-gcc-4.2/trunk/gcc/varasm.c
Modified: llvm-gcc-4.2/trunk/gcc/varasm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/varasm.c?rev=46820&r1=46819&r2=46820&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/varasm.c (original)
+++ llvm-gcc-4.2/trunk/gcc/varasm.c Wed Feb 6 13:05:56 2008
@@ -5316,10 +5316,13 @@
type = visibility_types[vis];
-#if !defined(ENABLE_LLVM) && defined(HAVE_GAS_HIDDEN)
+#ifdef HAVE_GAS_HIDDEN
+#ifndef ENABLE_LLVM
fprintf (asm_out_file, "\t.%s\t", type);
assemble_name (asm_out_file, name);
fprintf (asm_out_file, "\n");
+ /* LLVM LOCAL */
+#endif
#else
warning (OPT_Wattributes, "visibility attribute not supported "
"in this configuration; ignored");
More information about the llvm-commits
mailing list