[Bug c++/86522] gcc-7.3.0 on x86-only fails to compile mariadb/mysql: error: unsupported size for integer register

2018-07-14 Thread valko at linux dot karinthy.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86522

--- Comment #3 from valko at linux dot karinthy.hu ---
Created attachment 44394
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44394=edit
sql_prepare.ii.gz

[Bug c++/86522] gcc-7.3.0 on x86-only fails to compile mariadb/mysql: error: unsupported size for integer register

2018-07-14 Thread valko at linux dot karinthy.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86522

--- Comment #2 from valko at linux dot karinthy.hu ---
Created attachment 44393
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44393=edit
gcc compilation output (including -v)

[Bug c++/86522] New: gcc-7.3.0 on x86-only fails to compile mariadb/mysql: error: unsupported size for integer register

2018-07-14 Thread valko at linux dot karinthy.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86522

Bug ID: 86522
   Summary: gcc-7.3.0 on x86-only fails to compile mariadb/mysql:
error: unsupported size for integer register
   Product: gcc
   Version: 7.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: valko at linux dot karinthy.hu
  Target Milestone: ---

After switching to gcc-7.3.0, my Gentoo build system is no longer able to
compile mariadb and mysql packages on x86 platform.
Using the previous compiler version (6.4.0) in the same environment works.
Different versions of mariadb (10.0.35, 10.1.31, 10.2.15) or mysql (5.6.39) all
produce the same error message (the source file/function/line number is
different, but the error message is the same).
Using no optimization flag (removing -O2) works, using different levels of
optimization (-O1 or -O3) fails.

The problem only manifests itself on x86, a very similar amd64 build
environment works perfectly.

I reproduced the failure with a vanilla 7.3.0 to exclude the effects of
Gentoo-specific gcc patches.

[Bug c++/86522] gcc-7.3.0 on x86-only fails to compile mariadb/mysql: error: unsupported size for integer register

2018-07-14 Thread valko at linux dot karinthy.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86522

--- Comment #1 from valko at linux dot karinthy.hu ---
Created attachment 44392
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44392=edit
gcc command line failing