Empty static constructor folding

Jan Hubicka hubicka@ucw.cz
Tue Sep 14 18:21:00 GMT 2010


Hi,
this fixes the other testcase.  I am affraid that empty consturctor folding
actually caused more testsuite fuzz than real world change (we probably now fold
some more testcases to nothing), but hope we did not lost too much of coverage.

Honza

Index: gcc.target/i386/funcspec-1.c
===================================================================
*** gcc.target/i386/funcspec-1.c	(revision 164250)
--- gcc.target/i386/funcspec-1.c	(working copy)
***************
*** 12,20 ****
  #define SIZE 1024
  #endif
  
! static float a[SIZE] __attribute__((__aligned__(16)));
! static float b[SIZE] __attribute__((__aligned__(16)));
! static float c[SIZE] __attribute__((__aligned__(16)));
  
  void sse_addnums (void) __attribute__ ((__target__ ("sse2")));
  
--- 12,20 ----
  #define SIZE 1024
  #endif
  
! float a[SIZE] __attribute__((__aligned__(16)));
! float b[SIZE] __attribute__((__aligned__(16)));
! float c[SIZE] __attribute__((__aligned__(16)));
  
  void sse_addnums (void) __attribute__ ((__target__ ("sse2")));
  
Index: ChangeLog
===================================================================
*** ChangeLog	(revision 164282)
--- ChangeLog	(working copy)
***************
*** 2,7 ****
--- 2,9 ----
  
  	* gfortran.dg/vect/fast-math-pr38968.f90: Add common to prevent
  	folding.
+ 	* gcc.target/i386/funcspec-1.c: Remove static keywords to prevent
+ 	folding.
  
  2010-09-14  Jakub Jelinek  <jakub@redhat.com>
  



More information about the Gcc-patches mailing list