[LLVMdev] strange visibility error when compiling llvm-gcc-4.2

Duncan Sands
Wed, 06 Feb 2008 18:50:16 -0000

> > Bill's change only affected darwin IIRC.  I don't know that
anyone has
> > built GOMP on linux yet, and OpenMP hasn't been widely tested at
all.
> > I'd suggest using --enable-languages=c,c++
>
> I am seeing the same errors with just building c,c++. (linux x86, also
debian)

This bit of Bill's patch did it:

-#ifdef HAVE_GAS_HIDDEN
+
+#if !defined(ENABLE_LLVM) && defined(HAVE_GAS_HIDDEN)
  fprintf (asm_out_file, "\t.%s\t", type);
  assemble_name (asm_out_file, name);
  fprintf (asm_out_file, "\n");
#else
  warning (OPT_Wattributes, "visibility attribute not supported "
           "in this configuration; ignored");
#endif