From: andersen at uclibc.org <andersen@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/ltp-testsuite
Date: Thu, 7 Dec 2006 21:16:21 -0800 (PST) [thread overview]
Message-ID: <20061208051621.0A399485C6@busybox.net> (raw)
Author: andersen
Date: 2006-12-07 21:16:20 -0800 (Thu, 07 Dec 2006)
New Revision: 16808
Log:
stime is a reserved name, don't let ltp use it for a local variable
Added:
trunk/buildroot/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch
Changeset:
Added: trunk/buildroot/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch
===================================================================
--- trunk/buildroot/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch 2006-12-08 03:39:59 UTC (rev 16807)
+++ trunk/buildroot/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch 2006-12-08 05:16:20 UTC (rev 16808)
@@ -0,0 +1,93 @@
+--- ltp-full-20061121/testcases/misc/math/fptests/fptest01.c.orig 2006-12-07 22:14:38.000000000 -0700
++++ ltp-full-20061121/testcases/misc/math/fptests/fptest01.c 2006-12-07 22:16:08.000000000 -0700
+@@ -84,7 +84,7 @@
+ struct event rtrevent;
+ int waiting[EVENTMX]; /* array of waiting processors */
+ int nwaiting; /* number of waiting processors */
+-double stime; /* global clock */
++double xstime; /* global clock */
+ double lsttime; /* time used for editing */
+ double dtc, dts, alpha; /* timing parameters */
+ int nproc; /* number of processors */
+@@ -133,7 +133,7 @@
+ double dtw, dtwsig;
+
+ ncycle=0;
+- stime=0;
++ xstime=0;
+ lsttime=0;
+ barcnt=0;
+ nwaiting=0;
+@@ -148,7 +148,7 @@
+ }
+
+ for (p=1; p<=nproc; p++) {
+- addevent(ENTERWORK,p,stime);
++ addevent(ENTERWORK,p,xstime);
+ }
+
+ return(0);
+@@ -167,7 +167,7 @@
+ for (i=0; i < nproc; i++)
+ t_total += eventtab[i].time;
+
+- avgspd=ncycle/stime;
++ avgspd=ncycle/xstime;
+
+ v = t_total - MAGIC1;
+ if (v < 0.0)
+@@ -294,33 +294,33 @@
+ double nxttime;
+ int i, p, proc;
+
+- stime = ev->time;
++ xstime = ev->time;
+ proc = ev->proc;
+
+ switch (ev->type) {
+ case TRYCRIT :
+ if (critfree==TRUE)
+- addevent(ENTERCRIT,proc,stime);
++ addevent(ENTERCRIT,proc,xstime);
+ else
+ addwaiting(proc);
+ break;
+ case ENTERCRIT :
+ critfree = FALSE;
+- nxttime=stime+dtcrit();
++ nxttime=xstime+dtcrit();
+ addevent(LEAVECRIT,proc,nxttime);
+ break;
+ case LEAVECRIT :
+ critfree = TRUE;
+- addevent(ATBARRIER,proc,stime);
++ addevent(ATBARRIER,proc,xstime);
+ if ((p=getwaiting())!=0) {
+- nxttime=stime;
++ nxttime=xstime;
+ addevent(ENTERCRIT,p,nxttime);
+ }
+ break;
+ case ATBARRIER :
+ barcnt++;
+ if (barcnt==nproc) {
+- nxttime=stime;
++ nxttime=xstime;
+ for (i=1; i<=nproc; i++) {
+ nxttime+=dtspinoff();
+ addevent(ENTERWORK,i,nxttime);
+@@ -330,12 +330,12 @@
+ }
+ break;
+ case ENTERWORK :
+- nxttime=stime+dtwork();
++ nxttime=xstime+dtwork();
+ if (ncycle<ncycmax)
+ addevent(LEAVEWORK,proc,nxttime);
+ break;
+ case LEAVEWORK :
+- addevent(TRYCRIT,proc,stime);
++ addevent(TRYCRIT,proc,xstime);
+ break;
+ default:
+ tst_resm(TBROK,"Illegal event");
next reply other threads:[~2006-12-08 5:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-08 5:16 andersen at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-06 4:21 [Buildroot] svn commit: trunk/buildroot/package/ltp-testsuite sjhill at uclibc.org
2007-06-16 18:27 sjhill at uclibc.org
2007-06-06 18:10 aldot at uclibc.org
2007-05-09 22:59 sjhill at uclibc.org
2006-12-08 5:30 andersen at uclibc.org
2006-12-08 5:20 andersen at uclibc.org
2006-12-02 6:42 sjhill at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061208051621.0A399485C6@busybox.net \
--to=andersen@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox