[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-20 Thread Davide Italiano via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL300845: [Utility] Placate another GCC warning. (authored by davide). Changed prior to commit: https://reviews.llvm.org/D32137?vs=95485=95961#toc Repository: rL LLVM https://reviews.llvm.org/D32137

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-20 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. In https://reviews.llvm.org/D32137#731727, @labath wrote: > Thanks for digging into this, I've learned something new today. Fixing this > with a cast seems reasonable then. Me too, apparently C++ integer promotion is less obvious than I thought ;)

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-20 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thanks for digging into this, I've learned something new today. Fixing this with a cast seems reasonable then. https://reviews.llvm.org/D32137 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-19 Thread Stephane Sezer via Phabricator via lldb-commits
sas accepted this revision. sas added inline comments. This revision is now accepted and ready to land. Comment at: source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.cpp:59 + assert(m_num_registers == + static_cast(m_registers_count[gpr_registers_count] + +

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-19 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. Reference for the future (http://www.open-std.org/jtc1/sc22/open/n2356/conv.html [conv.prom1]) https://reviews.llvm.org/D32137 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-19 Thread Davide Italiano via Phabricator via lldb-commits
davide added a subscriber: nlewycky. davide added a comment. And I was wrong. @nlewycky explained on IRC: 14:23 < nlewycky> gcc is correct, in 'char + char' each char gets promoted to 'int' first then summed, then you've got an unsigned int == int comparison 14:23 < nlewycky> uint8_t and

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-19 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. I reduced it: https://gist.github.com/dcci/01c10b405041fa8d139a4f71aec102f7 https://reviews.llvm.org/D32137 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-18 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I am confused. `m_registers_count` is declared as `uint8_t` at `RegisterContextPOSIX_mips64.h:67`... https://reviews.llvm.org/D32137 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

2017-04-17 Thread Davide Italiano via Phabricator via lldb-commits
davide created this revision. For reference/discussion. GCC complains about signed-vs-unsigned comparison. I'm actually surprised that `m_registers_count` is a `signed` integer, as I can hardly imagine a negative register count. I'm under the impression that we could change `m_register_count`