if (TARGET_ILP32)
warning (OPT_Wdeprecated, "%<-mabi=ilp32%> is deprecated");
+ if (global_options.x_pcrelative_literal_loads == 1)
+ warning (OPT_Wdeprecated, "%<-mpc-relative-literal-loads%> is deprecated");
+
/* Convert -msve-vector-bits to a VG count. */
aarch64_sve_vg = aarch64_convert_sve_vector_bits (aarch64_sve_vector_bits);
mpc-relative-literal-loads
Target Save Var(pcrelative_literal_loads) Init(2) Save
-PC relative literal loads.
+PC relative literal loads. This option is deprecated.
mbranch-protection=
Target RejectNegative Joined Var(aarch64_branch_protection_string) Save
limits the maximum size of functions to 1MB. This is enabled by default for
@option{-mcmodel=tiny}.
+The @option{-mpc-relative-literal-loads} is deprecated.
+
@opindex msign-return-address
@item -msign-return-address=@var{scope}
Select the function scope on which return address signing will be applied.
/* { dg-do compile } */
-/* { dg-options "-O2 -mpc-relative-literal-loads" } */
+/* { dg-options "-O2 -mpc-relative-literal-loads -Wno-deprecated" } */
char *
foo ()
/* { dg-do compile } */
-/* { dg-options "-O2 -mcmodel=large -mpc-relative-literal-loads -fno-pie" } */
+/* { dg-options "-O2 -mcmodel=large -mpc-relative-literal-loads -fno-pie -Wno-deprecated" } */
/* { dg-require-effective-target lp64 } */
/* { dg-skip-if "-mcmodel=large, no support for -fpic" { aarch64-*-* } { "-fpic" } { "" } } */
/* { dg-do compile } */
-/* { dg-options "-O2 -mcmodel=large -mpc-relative-literal-loads -fno-pie" } */
+/* { dg-options "-O2 -mcmodel=large -mpc-relative-literal-loads -fno-pie -Wno-deprecated" } */
/* { dg-require-effective-target lp64 } */
/* { dg-skip-if "-mcmodel=large, no support for -fpic" { aarch64-*-* } { "-fpic" } { "" } } */
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
-/* { dg-options "-Os -mcpu=falkor -mpc-relative-literal-loads -mcmodel=large -fno-pie" } */
+/* { dg-options "-Os -mcpu=falkor -mpc-relative-literal-loads -mcmodel=large -fno-pie -Wno-deprecated" } */
extern void bar(const char *);