aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-08-20 14:56:29 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-08-20 14:56:29 +0000
commit8b92b0b55cfeaff29835997b370533d3d37f3ff3 (patch)
tree3cf196e0b9252db92da635b13594854090cf898e
parentcad90591bdfef1e57ba7e0ca89f99d23bd85ff9c (diff)
downloadgcc-8b92b0b55cfeaff29835997b370533d3d37f3ff3.zip
gcc-8b92b0b55cfeaff29835997b370533d3d37f3ff3.tar.gz
gcc-8b92b0b55cfeaff29835997b370533d3d37f3ff3.tar.bz2
cmath.tcc (__cmath_power): Revert previous commit: actually the warning is a front-end bug (c++/17120).
2004-08-20 Paolo Carlini <pcarlini@suse.de> * include/c_std/cmath.tcc (__cmath_power): Revert previous commit: actually the warning is a front-end bug (c++/17120). From-SVN: r86323
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/c_std/cmath.tcc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b58b6e1..3569d6c 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-20 Paolo Carlini <pcarlini@suse.de>
+
+ * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
+ actually the warning is a front-end bug (c++/17120).
+
2004-08-20 Matthias Klose <doko@debian.org>
* config/abi/s390-linux-gnu/baseline_symbols.txt: New.
diff --git a/libstdc++-v3/include/c_std/cmath.tcc b/libstdc++-v3/include/c_std/cmath.tcc
index c6df0a0..d771467 100644
--- a/libstdc++-v3/include/c_std/cmath.tcc
+++ b/libstdc++-v3/include/c_std/cmath.tcc
@@ -40,7 +40,7 @@ namespace std
{
_Tp __y = __n % 2 ? __x : 1;
- while ((__n >>= 1))
+ while (__n >>= 1)
{
__x = __x * __x;
if (__n % 2)