expr.c (highest_pow2_factor, [...]): Fix error in last change.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sun, 16 Dec 2001 18:19:34 +0000 (18:19 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 16 Dec 2001 18:19:34 +0000 (13:19 -0500)
* expr.c (highest_pow2_factor, case INTEGER_CST): Fix error in
last change.

From-SVN: r48077

gcc/ChangeLog
gcc/expr.c

index 202c3fa..783fd59 100644 (file)
@@ -1,3 +1,8 @@
+Sun Dec 16 13:13:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * expr.c (highest_pow2_factor, case INTEGER_CST): Fix error in
+       last change.
+
 2001-12-16  Richard Henderson  <rth@redhat.com>
 
        * toplev.c (parse_options_and_default_flags): Don't enable
index 906a04e..a36ce7b 100644 (file)
@@ -5804,7 +5804,8 @@ highest_pow2_factor (exp)
       else if (host_integerp (exp, 0))
        {
          c0 = tree_low_cst (exp, 0);
-         return c0 < 0 ? - c0 : c0;
+         c0 = c0 < 0 ? - c0 : c0;
+         return c0 & -c0;
        }
       break;