This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] lra: fix FPE when dumping


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  <iii@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]