Hello, I've noticed an issue with the note_defect3 function and have prepared a patch to fix it. The function is missing a return statement, which is causing undefined behavior. This patch adds the missing return statement, ensuring that the function returns the correct value.
Please consider applying this patch to correct the issue. Thank you. Best regards, Takahashi Akari --- diff --git a/gcc/config/sh/divtab.cc b/gcc/config/sh/divtab.cc index 30d57f2a1dd..cd3e709e3ab 100644 --- a/gcc/config/sh/divtab.cc +++ b/gcc/config/sh/divtab.cc @@ -75,12 +75,13 @@ note_defect3 (int val, double d2, double y2d, double x) if (defect < min_defect3) { min_defect3 = defect; min_defect3_x = x; min_defect3_val = val; } + return defect; } /* This function assumes 32-bit integers. */ static double calc_defect (double x, int constant, int factor) { ---