[Bug target/92821] Miscompilation when passing 8-bit enum to extern function

2019-12-05 Thread emilio at crisal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821 Emilio Cobos Álvarez (:emilio) changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolu

[Bug target/92821] Miscompilation when passing 8-bit enum to extern function

2019-12-05 Thread emilio at crisal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821 --- Comment #8 from Emilio Cobos Álvarez (:emilio) --- (In reply to Jakub Jelinek from comment #6) > Note that for most types one ends up with zero or sign extension already due > to C/C++ promotion rules, though in the ABI still can't use that a

[Bug target/92821] Miscompilation when passing 8-bit enum to extern function

2019-12-05 Thread emilio at crisal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821 Emilio Cobos Álvarez (:emilio) changed: What|Removed |Added See Also||https://bugs.llvm.org/sh

[Bug target/92821] Miscompilation when passing 8-bit enum to extern function

2019-12-05 Thread emilio at crisal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821 --- Comment #3 from Emilio Cobos Álvarez (:emilio) --- If my reading of https://godbolt.org/z/BNHxEY is correct (sorry, still a bit of a noob with disassembly), it looks like GCC does correctly load only the low byte in the equivalent implementat

[Bug c++/92821] New: Miscompilation when passing 8-bit enum to extern function

2019-12-05 Thread emilio at crisal dot io
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emilio at crisal dot io Target Milestone: --- Created attachment 47427 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47427&action=edit Test-case that reproduces the bug with

[Bug libstdc++/89416] New: [regression] std::vector::push_back no longer builds.

2019-02-20 Thread emilio at crisal dot io
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: emilio at crisal dot io Target Milestone: --- Created attachment 45772 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45772&action=edit Test-case. The attached test-case no longer builds.