2010-03-19 13:32:22 +00:00
|
|
|
Index: src/libpfm-3.y/lib/pfmlib_gen_ia32.c
|
|
|
|
|
===================================================================
|
2011-04-15 13:14:43 +00:00
|
|
|
--- src/libpfm-3.y/lib/pfmlib_gen_ia32.c.orig 2010-09-09 22:34:11.000000000 +0200
|
2012-04-23 15:14:43 +00:00
|
|
|
+++ src/libpfm-3.y/lib/pfmlib_gen_ia32.c 2012-02-20 12:31:08.877758682 +0100
|
2010-03-19 13:32:22 +00:00
|
|
|
@@ -257,7 +257,7 @@ pfm_gen_ia32_init(void)
|
|
|
|
|
unsigned int val;
|
|
|
|
|
pmu_eax_t eax;
|
|
|
|
|
pmu_edx_t edx;
|
|
|
|
|
- } eax, ecx, edx, ebx;
|
|
|
|
|
+ } eax = { 0 }, ecx = { 0 }, edx = { 0 }, ebx = { 0 };
|
|
|
|
|
unsigned int num_cnt, i;
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
Index: src/ctests/mendes-alt.c
|
|
|
|
|
===================================================================
|
2012-04-23 15:14:43 +00:00
|
|
|
--- src/ctests/mendes-alt.c.orig 2011-05-21 00:12:50.000000000 +0200
|
|
|
|
|
+++ src/ctests/mendes-alt.c 2012-02-20 12:31:08.877758682 +0100
|
|
|
|
|
@@ -18,14 +18,13 @@ static int EventSet = PAPI_NULL;
|
2010-03-19 13:32:22 +00:00
|
|
|
|
2011-04-15 13:14:43 +00:00
|
|
|
extern int TESTS_QUIET; /* Declared in test_utils.c */
|
2010-03-19 13:32:22 +00:00
|
|
|
|
2011-04-15 13:14:43 +00:00
|
|
|
-int
|
|
|
|
|
-main( argc, argv )
|
2010-03-19 13:32:22 +00:00
|
|
|
-int argc;
|
|
|
|
|
-char *argv[];
|
2011-04-15 14:18:38 +00:00
|
|
|
+void funcX(double a[MAX], double b[MAX], int n);
|
|
|
|
|
+void funcA(double a[MAX], double b[MAX], int n);
|
|
|
|
|
+
|
|
|
|
|
+int main(int argc, char *argv[])
|
2010-03-19 13:32:22 +00:00
|
|
|
{
|
2011-04-15 13:14:43 +00:00
|
|
|
int i, retval;
|
|
|
|
|
double a[MAX], b[MAX];
|
|
|
|
|
- void funcX( ), funcA( );
|
2010-03-19 13:32:22 +00:00
|
|
|
|
2011-04-15 13:14:43 +00:00
|
|
|
tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
|
2010-03-19 13:32:22 +00:00
|
|
|
|
2012-04-23 15:14:43 +00:00
|
|
|
@@ -158,10 +157,7 @@ char *argv[];
|
2011-04-15 13:14:43 +00:00
|
|
|
exit( 1 );
|
2010-03-19 13:32:22 +00:00
|
|
|
}
|
|
|
|
|
|
2011-04-15 13:14:43 +00:00
|
|
|
-void
|
|
|
|
|
-funcX( a, b, n )
|
2010-03-19 13:32:22 +00:00
|
|
|
-double a[MAX], b[MAX];
|
|
|
|
|
-int n;
|
|
|
|
|
+void funcX(double a[MAX], double b[MAX], int n)
|
|
|
|
|
{
|
2011-04-15 13:14:43 +00:00
|
|
|
int i, k;
|
|
|
|
|
for ( k = 0; k < TIMES; k++ )
|
2012-04-23 15:14:43 +00:00
|
|
|
@@ -169,10 +165,7 @@ int n;
|
2011-04-15 13:14:43 +00:00
|
|
|
a[i] = a[i] * b[i] + 1.;
|
2010-03-19 13:32:22 +00:00
|
|
|
}
|
|
|
|
|
|
2011-04-15 13:14:43 +00:00
|
|
|
-void
|
|
|
|
|
-funcA( a, b, n )
|
2010-03-19 13:32:22 +00:00
|
|
|
-double a[MAX], b[MAX];
|
|
|
|
|
-int n;
|
|
|
|
|
+void funcA(double a[MAX], double b[MAX], int n)
|
|
|
|
|
{
|
2011-04-15 13:14:43 +00:00
|
|
|
int i, k;
|
|
|
|
|
double t[MAX];
|