On 08/14/2018 03:42 AM, Ilya Leoshkevich wrote:
The following S/390 code

     struct {} b;
     void c() {
       __asm__("la 0,%0\n"
               "la 1,%1\n"
               :
               : "m" (b), "m" (b)
               : "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8",
                 "r9", "r10", "r12", "r14");
     }

results in

     internal compiler error: Floating point exception

when building with

     -fira-verbose=9 -fdump-rtl-all

gcc/ChangeLog:

2018-07-25  Ilya Leoshkevich  <i...@linux.ibm.com>

         PR target/86547
        * lra-lives.c (remove_some_program_points_and_update_live_ranges):
         Check whether lra_live_max_point is 0 before dividing.
Sure, the patch is ok for me and for committing it into the trunk.

Thank you, Ilya.

Reply via email to