https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112415
--- Comment #17 from dave.anglin at bell dot net --- On 2023-11-08 9:42 a.m., jeffreyalaw at gmail dot com wrote: > I'd probably continue with the process of narrowing down what code is > affected using the attributes. We already know the file, narrowing it > down to a function might help considerably with the evaluation effort. The problem seems to be in compiler_visit_expr(). -static int compiler_visit_expr(struct compiler *, expr_ty); +static int compiler_visit_expr(struct compiler *, expr_ty) __attribute__((optimize("no-inline-small-functions"))); Python builds okay if this function is not inlined, if it is compiled at -O1, or if -fno-inline-small-functions is specified as above. Can't specify -fno-fold-mem-offsets as a function attribute.