сб, 20 июн. 2026 г. в 14:21, Georg-Johann Lay <[email protected]>:
>
> This patch adds a new format %N to the avr_xdump functions.
> The purpose is to print a tree node, usually a DECL_P or
> a TYPE_P in a recursive form that's not too verbose.
> For example:
>
>     typedef int (* const __flash fun_t)(long, int);
>
>     int foo (fun_t (*f[][4]), int x, int y)
>     {
>        return (*f[x][y]) (x, y);
>     }
>
> will print with -mlog=insert_attributes, amongst others:
>
> avr_insert_attributes[:pass=?]:
>      <parm_decl 0x7f833edd8110 f>
>         <pointer_type 0x7f833edacb28>
>            <array_type 0x7f833edac888>
>               <pointer_type 0x7f833edac690>
>                  <pointer_type 0x7f833edac5e8 fun_t address-space-1>
> read-only
>                     <function_type 0x7f833edac3f0>
>                        <integer_type 0x7f833ec745e8 int> return
>                        <integer_type 0x7f833ec74738 long int>
>                        <integer_type 0x7f833ec745e8 int>
>                        <void_type 0x7f833ec7c1f8 void>
>
> Ok for trunk?

Ok.
Please apply.

Denis.

Reply via email to