diff options
author | prathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-11 12:13:42 +0000 |
---|---|---|
committer | prathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-11 12:13:42 +0000 |
commit | 13caad157a14c466ffa3fb8d1c5170f062c74886 (patch) | |
tree | a28b8d88b7eb2a0cba2ea6e531b238bfc1617447 | |
parent | 04aaa94de121690ad28ff31473bb55142df70f39 (diff) | |
download | gcc-13caad157a14c466ffa3fb8d1c5170f062c74886.tar.gz |
2018-01-11 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR target/83514
* config/arm/arm.c (arm_declare_function_name): Set arch_to_print if
targ_options->x_arm_arch_string is non NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256529 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 48e2def073f..7ff69030e1a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-11 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> + + PR target/83514 + * config/arm/arm.c (arm_declare_function_name): Set arch_to_print if + targ_options->x_arm_arch_string is non NULL. + 2018-01-11 Tamar Christina <tamar.christina@arm.com> * config/aarch64/aarch64.h diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 196aa6de1ac..978c44af327 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -30953,8 +30953,13 @@ arm_declare_function_name (FILE *stream, const char *name, tree decl) gcc_assert (targ_options); /* Only update the assembler .arch string if it is distinct from the last - such string we printed. */ - std::string arch_to_print = targ_options->x_arm_arch_string; + such string we printed. arch_to_print is set conditionally in case + targ_options->x_arm_arch_string is NULL which can be the case + when cc1 is invoked directly without passing -march option. */ + std::string arch_to_print; + if (targ_options->x_arm_arch_string) + arch_to_print = targ_options->x_arm_arch_string; + if (arch_to_print != arm_last_printed_arch_string) { std::string arch_name |