[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

Uroš Bizjak  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |ubizjak at gmail dot com
 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #17 from Uroš Bizjak  ---
Thanks for helping with tests!

Fixed for gcc-12.4+

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #16 from CVS Commits  ---
The releases/gcc-12 branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:4520e2dbc73262028ad556f732871565101ef615

commit r12-9770-g4520e2dbc73262028ad556f732871565101ef615
Author: Uros Bizjak 
Date:   Thu Jul 13 18:32:15 2023 +0200

alpha: Fix computation mode in alpha_emit_set_long_cost [PR106966]

PR target/106966

gcc/ChangeLog:

* config/alpha/alpha.cc (alpha_emit_set_long_const):
Always use DImode when constructing long const.

gcc/testsuite/ChangeLog:

* gcc.target/alpha/pr106966.c: New test.

(cherry picked from commit 337649c1660211db733c1ba34ae260b8c66a3578)

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #15 from CVS Commits  ---
The releases/gcc-13 branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:27e421319efcf47280339fbc17c263f36c92eee6

commit r13-7561-g27e421319efcf47280339fbc17c263f36c92eee6
Author: Uros Bizjak 
Date:   Thu Jul 13 18:32:15 2023 +0200

alpha: Fix computation mode in alpha_emit_set_long_cost [PR106966]

PR target/106966

gcc/ChangeLog:

* config/alpha/alpha.cc (alpha_emit_set_long_const):
Always use DImode when constructing long const.

gcc/testsuite/ChangeLog:

* gcc.target/alpha/pr106966.c: New test.

(cherry picked from commit 337649c1660211db733c1ba34ae260b8c66a3578)

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #14 from CVS Commits  ---
The master branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:337649c1660211db733c1ba34ae260b8c66a3578

commit r14-2503-g337649c1660211db733c1ba34ae260b8c66a3578
Author: Uros Bizjak 
Date:   Thu Jul 13 18:32:15 2023 +0200

alpha: Fix computation mode in alpha_emit_set_long_cost [PR106966]

PR target/106966

gcc/ChangeLog:

* config/alpha/alpha.cc (alpha_emit_set_long_const):
Always use DImode when constructing long const.

gcc/testsuite/ChangeLog:

* gcc.target/alpha/pr106966.c: New test.

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-13 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #13 from Matthias Klose  ---
search for "test-summary"
https://buildd.debian.org/status/logs.php?pkg=gcc-12=alpha

12.3.0-5 is gcc-12 branch 20230630
12.3.0-6 is gcc-12 branch 20230707 with the proposed patch applied

comparing gcc summary (-5 to -6):

=== gcc Summary ===

# of expected passes136199
# of unexpected failures657
# of unexpected successes   16
# of expected failures  1112
# of unresolved testcases   8
# of unsupported tests  2539
/<>/build/gcc/xgcc  version 12.3.0 (Debian 12.3.0-5) 

=== gcc Summary ===

# of expected passes136261
# of unexpected failures652
# of unexpected successes   16
# of expected failures  1112
# of unresolved testcases   8
# of unsupported tests  2539
/<>/build/gcc/xgcc  version 12.3.0 (Debian 12.3.0-6)

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-10 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #12 from Matthias Klose  ---
I'll apply the proposed patch for the next gcc-13 Debian upload, then reporting
back test results.

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-10 Thread matoro_gcc_bugzilla at matoro dot tk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #11 from matoro  ---
(In reply to Uroš Bizjak from comment #10)
> (In reply to matoro from comment #9)
> > (In reply to Uroš Bizjak from comment #8)
> > > Created attachment 55504 [details]
> > > Proposed patch.
> > > 
> > > Can someone please bootstrap and test the attached patch?
> > 
> > I can queue this up to test on real hardware.  By bootstrap, do you mean
> > with --enable-bootstrap, and by test do you mean a full testsuite run or
> > just checking that it doesn't ICE on the reproducer here?
> 
> I have already checked that it doesn't ICE with a crosscompiler. Regarding
> the bootstrap, please note that --enable-bootstrap is the default nowadays,
> so the option it is not needed to make a full build ("bootstrap"). Also,
> "make -j N -k check-gcc" should be enough to test the compiler, since other
> parts of the compiler never exercise -mbuild-constants (N in the command
> should be substituted with a number of processors to parallelize the
> testsuite run).

I was just checking because alpha hardware is quite antique, it's single-core
so a full compile with bootstrap takes around ~72 hours.  I don't know how long
the test suite takes because I've never run it on this machine, but I would
expect it to add a couple additional days to that.  If that's fine I'll kick it
off, just want to be clear on what exactly you'd like to see.

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

--- Comment #10 from Uroš Bizjak  ---
(In reply to matoro from comment #9)
> (In reply to Uroš Bizjak from comment #8)
> > Created attachment 55504 [details]
> > Proposed patch.
> > 
> > Can someone please bootstrap and test the attached patch?
> 
> I can queue this up to test on real hardware.  By bootstrap, do you mean
> with --enable-bootstrap, and by test do you mean a full testsuite run or
> just checking that it doesn't ICE on the reproducer here?

I have already checked that it doesn't ICE with a crosscompiler. Regarding the
bootstrap, please note that --enable-bootstrap is the default nowadays, so the
option it is not needed to make a full build ("bootstrap"). Also, "make -j N -k
check-gcc" should be enough to test the compiler, since other parts of the
compiler never exercise -mbuild-constants (N in the command should be
substituted with a number of processors to parallelize the testsuite run).

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-09 Thread matoro_gcc_bugzilla at matoro dot tk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

matoro  changed:

   What|Removed |Added

 CC||matoro_gcc_bugzilla@matoro.
   ||tk

--- Comment #9 from matoro  ---
(In reply to Uroš Bizjak from comment #8)
> Created attachment 55504 [details]
> Proposed patch.
> 
> Can someone please bootstrap and test the attached patch?

I can queue this up to test on real hardware.  By bootstrap, do you mean with
--enable-bootstrap, and by test do you mean a full testsuite run or just
checking that it doesn't ICE on the reproducer here?

[Bug target/106966] [12/13/14 Regression] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2023-07-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966

Uroš Bizjak  changed:

   What|Removed |Added

Summary|alpha cross build crashes   |[12/13/14 Regression] alpha
   |gcc-12 "internal compiler   |cross build crashes gcc-12
   |error: in emit_move_insn"   |"internal compiler error:
   ||in emit_move_insn"
   Target Milestone|--- |12.4
  Known to fail||12.3.1, 13.1.1, 14.0
  Known to work||11.4.1