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

emilio at crisal dot io gcc-bugzilla@gcc.gnu.org
Thu Dec 5 15:35:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821

Emilio Cobos Álvarez (:emilio) <emilio at crisal dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #10 from Emilio Cobos Álvarez (:emilio) <emilio at crisal dot io> ---
(In reply to Jakub Jelinek from comment #9)
> What really matters is what does the psABI say, and as you can see above
> clarified from one of the ABI authors, there is intentionally no zero or
> sign extension of shorter arguments.
> So LLVM has a bug and that bug should be fixed in there, not worked around
> in other compilers.

Well, we do make changes in Gecko to improve interop with other browser engines
even when the spec doesn't explicitly specify a given behavior... But yeah, I
totally get that, and I hate when we have to do that too. It was worth a shot
though :)

At this point I guess this should be closed as invalid, unless someone or
further evidence shows there's something to fix in GCC.

Thanks for all your work in GCC :)


More information about the Gcc-bugs mailing list