[Bug libstdc++/91263] New: unordered_map and unordered_set operator== double key comparison causes exponential behavior

2019-07-25 Thread terrelln at fb dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: terrelln at fb dot com Target Milestone: --- When unordered_map or unordered_set has a nested unordered_{map,set} as a key, operator== becomes

[Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow

2017-07-10 Thread terrelln at fb dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388 --- Comment #4 from Nick Terrell --- Good point Marc. The generated assembly is wrong because the loop should be run once, but it is run 2^63 times. Changing the amount dst is incremented by to 4 makes it run 2^62 times, and changing it to 8 ma

[Bug tree-optimization/81388] New: Incorrect code generation with -O1 -fno-strict-overflow

2017-07-10 Thread terrelln at fb dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: terrelln at fb dot com Target Milestone: --- gcc 7.1 on x86 produces incorrect output for correct code. gcc 6.3 produced correct assembly. See https://godbolt.org/g/mLyxGz or below