Re: [PATCH] x86-64: Add ABI warning for 64-bit vectors

2021-08-29 Thread Jakub Jelinek via Gcc-patches
On Sun, Aug 29, 2021 at 09:17:10AM -0700, H.J. Lu wrote: > How does it work? Depends on the terminal. E.g. in recent, at most a few years old gnome-terminal, that GCC 11.1 is dotted underlined and hovering with mouse on it shows it normal underlined and prints the URL, right click shows a menu in

Re: [PATCH] x86-64: Add ABI warning for 64-bit vectors

2021-08-29 Thread H.J. Lu via Gcc-patches
On Sun, Aug 29, 2021 at 8:34 AM Jakub Jelinek wrote: > > On Sun, Aug 29, 2021 at 08:24:10AM -0700, H.J. Lu via Gcc-patches wrote: > > + if (gcc_version) > > + { > > + if (in_return) > > + { > > + static bool warnedm64_ret; > > + if (!warnedm64_ret) > > +

Re: [PATCH] x86-64: Add ABI warning for 64-bit vectors

2021-08-29 Thread Jakub Jelinek via Gcc-patches
On Sun, Aug 29, 2021 at 08:24:10AM -0700, H.J. Lu via Gcc-patches wrote: > + if (gcc_version) > + { > + if (in_return) > + { > + static bool warnedm64_ret; > + if (!warnedm64_ret) > + { > + if (warning (OPT_Wpsabi, > +

[PATCH] x86-64: Add ABI warning for 64-bit vectors

2021-08-29 Thread H.J. Lu via Gcc-patches
TYPE_MODE of record and union depends on whether vector_mode_supported_p returns true or not. x86-64 backend uses TYPE_MODE to decide how to pass a parameter and return a value in a function. 64-bit integer vectors were supported only by MMX and 64-bit float vector was supported only by 3DNOW. GC