This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] S390: For zero, let is_power_of_two() return false
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Mon, 27 Apr 2015 06:56:35 -0400
- Subject: [binutils-gdb] S390: For zero, let is_power_of_two() return false
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 6dbc9c045741c27435b9b23246c2113221b26c2f ***
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Branch: master
Commit: 6dbc9c045741c27435b9b23246c2113221b26c2f
S390: For zero, let is_power_of_two() return false
This fixes a minor issue with the helper function is_power_of_two(),
which returned non-zero ("true") if the argument was zero. This led
to a wrong decision when passing a zero-sized struct in an inferior
function call.
gdb/ChangeLog:
* s390-linux-tdep.c (is_power_of_two): Add comment. Return
false if the argument is zero.