Compiler output:
$ gcc -flto -r -nostdlib file[12].c
lto1: internal compiler error: in function_and_variable_visibility, at
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
returned 1 exit status
collect2: lto-wrapper returned 1 exit status

------ file1.c ------
extern void baz(void);
void *y = (void *)baz;
------ file2.c ------
static void bar(void) __attribute__ ((__weakref__("baz")));
void *x = (void *)bar;

I don't know if this is valid, but originally those were valid C and C++ files
including only system libraries.

Tested revisions:
r164287 - crash
r163636 - crash
r161659 - OK
r159696 - OK
r153685 - OK
4.5 r163761 - OK

           Summary: [4.6 Regression] ICE: in
                    function_and_variable_visibility, at ipa.c:673 with -
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu

Reply via email to