Skip to content

Commit

Permalink
riscv-cc: Rename variables in flattening example to avoid confusion
Browse files Browse the repository at this point in the history
The use of f and g to mean different things is highly confusing.

See #366

Signed-off-by: Jessica Clarke <[email protected]>
  • Loading branch information
jrtc27 authored Feb 16, 2023
1 parent 9a77e88 commit a8110bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv-cc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ floating-point registers than the ABI.

For the purposes of this section, "struct" refers to a C struct with its
hierarchy flattened, including any array fields. That is, `struct { struct
{ float f[1]; } g[2]; }` and `struct { float f; float g; }` are
{ float f[1]; } a[2]; }` and `struct { float f0; float f1; }` are
treated the same. Fields containing empty structs or unions are ignored while
flattening, even in {Cpp}, unless they have nontrivial copy constructors or
destructors. Fields containing zero-length bit-fields are ignored while
Expand Down

1 comment on commit a8110bf

@nick-knight
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses the confusion that caused me to file #366. Thanks.

Please sign in to comment.