[Bug target/90309] New: Spurious warning shift-negative-value

2019-05-02 Thread philipp.lucas at siemens dot com
Assignee: unassigned at gcc dot gnu.org Reporter: philipp.lucas at siemens dot com Target Milestone: --- Created attachment 46272 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46272&action=edit Test case Consider the following code: struct O {

[Bug c++/90309] Spurious warning shift-negative-value

2019-05-21 Thread philipp.lucas at siemens dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90309 Philipp Lucas changed: What|Removed |Added Target|mips|mips, arm URL|

[Bug c++/90309] Spurious warning shift-negative-value

2019-05-22 Thread philipp.lucas at siemens dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90309 --- Comment #5 from Philipp Lucas --- (In reply to Marek Polacek from comment #4) > ...but first it'd be nice to find out *why* we're shifting by -4 and how > that can be. It's not shifting /by/ -4, the -4 is shifted by 1. The ARM ABI says in ยง3