From 33cd5f8f424cc16dad99b5dc54854b8c5fdb8287 Mon Sep 17 00:00:00 2001 From: Michael Collison Date: Sun, 23 Jul 2017 23:07:12 +0000 Subject: [PATCH] arm.c (arm_option_override): Deprecate use of -mstructure-size-boundary. 2017-07-23 Michael Collison * config/arm/arm.c (arm_option_override): Deprecate use of -mstructure-size-boundary. * config/arm/arm.opt: Deprecate -mstructure-size-boundary. * doc/invoke.texi: Deprecate -mstructure-size-boundary. From-SVN: r250465 --- gcc/ChangeLog | 7 +++++++ gcc/config/arm/arm.c | 2 ++ gcc/config/arm/arm.opt | 2 +- gcc/doc/invoke.texi | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7116fa6cc83..8887cef6388 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-07-23 Michael Collison + + * config/arm/arm.c (arm_option_override): Deprecate + use of -mstructure-size-boundary. + * config/arm/arm.opt: Deprecate -mstructure-size-boundary. + * doc/invoke.texi: Deprecate -mstructure-size-boundary. + 2017-07-23 Bill Schmidt PR target/80695 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index c3feb4983c7..25677d19e20 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3489,6 +3489,8 @@ arm_option_override (void) } else { + warning (0, "option %<-mstructure-size-boundary%> is deprecated"); + if (arm_structure_size_boundary != 8 && arm_structure_size_boundary != 32 && !(ARM_DOUBLEWORD_ALIGN && arm_structure_size_boundary == 64)) diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt index b6c707b1afd..6060516dd40 100644 --- a/gcc/config/arm/arm.opt +++ b/gcc/config/arm/arm.opt @@ -192,7 +192,7 @@ Target RejectNegative Alias(mfloat-abi=, soft) Undocumented mstructure-size-boundary= Target RejectNegative Joined UInteger Var(arm_structure_size_boundary) Init(DEFAULT_STRUCTURE_SIZE_BOUNDARY) -Specify the minimum bit alignment of structures. +Specify the minimum bit alignment of structures. (Deprecated). mthumb Target Report RejectNegative Negative(marm) Mask(THUMB) Save diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2bab550d676..d71f4e61405 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -15714,6 +15714,8 @@ incompatible. Code compiled with one value cannot necessarily expect to work with code or libraries compiled with another value, if they exchange information using structures or unions. +This option is deprecated. + @item -mabort-on-noreturn @opindex mabort-on-noreturn Generate a call to the function @code{abort} at the end of a -- 2.30.2