This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28113] New: vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2006 20:12:52 -0000
- Subject: [Bug c++/28113] New: vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
- Follow-Ups:
- [Bug c++/28113] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: mark at codesourcery dot com
- [Bug c++/28113] [4.2 Regression] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: pinskia at gcc dot gnu dot org
- [Bug c++/28113] [4.2 Regression] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: pinskia at gcc dot gnu dot org
- [Bug c++/28113] [4.2 Regression] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: mark at codesourcery dot com
- [Bug c++/28113] [4.2 Regression] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: pinskia at gcc dot gnu dot org
- [Bug c++/28113] [4.2 Regression] vectors initialized in ctors, not at compile time, cause altivec-3.C failure
- From: janis at gcc dot gnu dot org