https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64240
Bug ID: 64240 Summary: [5.0 Regression][AArch64] SMS-3.c causes runtime exception(segfault) with -fPIC. Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: belagod at gcc dot gnu.org When sms-3 is compiled with -fPIC for aarch64, the test itself segfaults during execution. ../../bin/install/bin/aarch64-unknown-linux-gnu-gcc -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -fmodulo-sched -funroll-loops -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves -lm -mcmodel=small testsuite/gcc.dg/sms-3.c -o /tmp/sms-3.exe -g -fPIC When I reverse this patch out, it runs fine: https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02255.html