Test g++.dg/ext/altivec-3.C has been failing for mainline on powerpc64-linux
systems without VMX hardware since this patch, a fix for PR20103, was added:

  http://gcc.gnu.org/viewcvs?view=rev&rev=114119

  r114119 | mmitchel | 2006-05-25 20:18:26 +0000 (Thu, 25 May 2006)

The test calls a function at runtime to determine if VMX hardware is available
and if not, skips the rest of the test.  It now fails because vector global
variables are initialized by constructors instead of at compile time.  Here's a
minimal example:

  __vector signed int vsi = (__vector signed int) {40, 41, 42, 43};
  int main () { return 0; }

If the new behavior is expected then I'll change the test to be compile-only on
systems without VMX hardware.


-- 
           Summary: vectors initialized in ctors, not at  compile time,
                    cause altivec-3.C failure
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28113

Reply via email to