OSDN Git Service

2008-12-06 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Dec 2008 10:25:24 +0000 (10:25 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Dec 2008 10:25:24 +0000 (10:25 +0000)
PR libstdc++/38421
* include/tr1/ell_integral.tcc: Avoid __ea, future SPU badname.
* doc/xml/manual/appendix_contributing.xml: Add __ea to the list
of badnames.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142519 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/appendix_contributing.xml
libstdc++-v3/include/tr1/ell_integral.tcc

index e3094da..7bcae27 100644 (file)
@@ -1,3 +1,10 @@
+2008-12-06  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/38421
+       * include/tr1/ell_integral.tcc: Avoid __ea, future SPU badname.
+       * doc/xml/manual/appendix_contributing.xml: Add __ea to the list
+       of badnames.
+
 2008-12-05  Tom Tromey  <tromey@redhat.com>
 
        * include/tr1_impl/functional (_Mu): Fix typo.
index f9edbe1..86723d6 100644 (file)
@@ -364,6 +364,9 @@ indicate a place that may require attention for multi-thread safety.
       _res_ext
       __tg_*
 
+      SPU adds:
+      __ea
+
       For GCC:
 
       [Note that this list is out of date. It applies to the old
index 404cc27..d1587fc 100644 (file)
@@ -371,17 +371,18 @@ namespace tr1
               __zn = __c0 * (__zn + __lambda);
             }
 
-          _Tp __ea = __xndev * __yndev;
+         // Note: __ea is an SPU badname.
+          _Tp __eaa = __xndev * __yndev;
           _Tp __eb = __zndev * __zndev;
-          _Tp __ec = __ea - __eb;
-          _Tp __ed = __ea - _Tp(6) * __eb;
+          _Tp __ec = __eaa - __eb;
+          _Tp __ed = __eaa - _Tp(6) * __eb;
           _Tp __ef = __ed + __ec + __ec;
           _Tp __s1 = __ed * (-__c1 + __c3 * __ed
                                    / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef
                                    / _Tp(2));
           _Tp __s2 = __zndev
                    * (__c2 * __ef
-                    + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea));
+                    + __zndev * (-__c3 * __ec - __zndev * __c4 - __eaa));
 
           return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2)
                                         / (__mu * std::sqrt(__mu));
@@ -634,16 +635,17 @@ namespace tr1
               __pn = __c0 * (__pn + __lambda);
             }
 
-          _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev;
+         // Note: __ea is an SPU badname.
+          _Tp __eaa = __xndev * (__yndev + __zndev) + __yndev * __zndev;
           _Tp __eb = __xndev * __yndev * __zndev;
           _Tp __ec = __pndev * __pndev;
-          _Tp __e2 = __ea - _Tp(3) * __ec;
-          _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec);
+          _Tp __e2 = __eaa - _Tp(3) * __ec;
+          _Tp __e3 = __eb + _Tp(2) * __pndev * (__eaa - __ec);
           _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4)
                             - _Tp(3) * __c4 * __e3 / _Tp(2));
           _Tp __s2 = __eb * (__c2 / _Tp(2)
                    + __pndev * (-__c3 - __c3 + __pndev * __c4));
-          _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3)
+          _Tp __s3 = __pndev * __eaa * (__c2 - __pndev * __c3)
                    - __c2 * __pndev * __ec;
 
           return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3)