aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-06 14:39:46 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:31 +0100
commit4ec72feab8a555e73f7485b9c3792202b19cbe3c (patch)
tree9a21846588d18c1d103922ddfdeb8f09fdd0fe60 /gcc
parentf915a3fe9027a8eececd16425d890480bfec2fe7 (diff)
downloadgcc-4ec72feab8a555e73f7485b9c3792202b19cbe3c.zip
gcc-4ec72feab8a555e73f7485b9c3792202b19cbe3c.tar.gz
gcc-4ec72feab8a555e73f7485b9c3792202b19cbe3c.tar.bz2
gccrs: Reformat comments
gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::setup_abi_options): Reformat uncorrectly formatted comments. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/backend/rust-compile-base.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc
index 5255e57..d552a67 100644
--- a/gcc/rust/backend/rust-compile-base.cc
+++ b/gcc/rust/backend/rust-compile-base.cc
@@ -252,8 +252,8 @@ HIRCompileBase::handle_deprecated_attribute_on_fndecl (
auto key_value = converted_item->get_name_value_pair ();
if (key_value.first.as_string ().compare ("since") == 0)
{
- // valid, but this is handled by Cargo and some third-party audit
- // tools
+ // valid, but this is handled by Cargo and some third-party
+ // audit tools
continue;
}
else if (key_value.first.as_string ().compare ("note") == 0)
@@ -373,10 +373,10 @@ HIRCompileBase::setup_abi_options (tree fndecl, ABI abi)
case Rust::ABI::CDECL:
// `decl_attributes` function (not the macro) has the side-effect of
// actually switching the codegen backend to use the ABI we annotated.
- // However, since `cdecl` is the default ABI GCC will be using, explicitly
- // specifying that ABI will cause GCC to emit a warning saying the
- // attribute is useless (which is confusing to the user as the attribute
- // is added by us).
+ // However, since `cdecl` is the default ABI GCC will be using,
+ // explicitly specifying that ABI will cause GCC to emit a warning
+ // saying the attribute is useless (which is confusing to the user as
+ // the attribute is added by us).
DECL_ATTRIBUTES (fndecl)
= tree_cons (get_identifier ("cdecl"), NULL, DECL_ATTRIBUTES (fndecl));