public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99393] New: Unoptimized tailcall with char and short as parameter (x86)
@ 2021-03-04 22:52 jonathan.poelen at gmail dot com
2021-03-04 23:57 ` [Bug c++/99393] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jonathan.poelen at gmail dot com @ 2021-03-04 22:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99393
Bug ID: 99393
Summary: Unoptimized tailcall with char and short as parameter
(x86)
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jonathan.poelen at gmail dot com
Target Milestone: ---
#include <cstdint>
int foo(uint8_t x);
int foo(uint32_t x);
struct Y { uint8_t x; };
struct X { uint32_t x; };
int foo(Y x);
int foo(X x);
e(unsigned char):
movzx edi, dil <--- unnecessary mov
jmp foo(unsigned char)
g(unsigned int):
jmp foo(unsigned int)
i(Y):
jmp foo(Y)
j(X):
jmp foo(X)
https://godbolt.org/z/K1vYc4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/99393] Unoptimized tailcall with char and short as parameter (x86)
2021-03-04 22:52 [Bug c++/99393] New: Unoptimized tailcall with char and short as parameter (x86) jonathan.poelen at gmail dot com
@ 2021-03-04 23:57 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-03-04 23:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99393
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 97607.
*** This bug has been marked as a duplicate of bug 97607 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-04 23:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 22:52 [Bug c++/99393] New: Unoptimized tailcall with char and short as parameter (x86) jonathan.poelen at gmail dot com
2021-03-04 23:57 ` [Bug c++/99393] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).