[PATCH 3/3] Extend -falign-FOO=N to N[,M[,N2[,M2]]]

Bernd Schmidt bschmidt@redhat.com
Thu Oct 6 09:47:00 GMT 2016


On 09/30/2016 07:54 PM, Denys Vlasenko wrote:
> +struct target_flag_state {
> +  /* Each falign-foo can generate up to two levels of alignment:
> +     -falign-foo=N,M[,N2,M2] */
> +  struct align_flags x_align_loops[2];
> +  struct align_flags x_align_jumps[2];
> +  struct align_flags x_align_labels[2];
> +  struct align_flags x_align_functions[2];

> +#define align_loops              (this_target_flag_state->x_align_loops)
> +#define align_jumps              (this_target_flag_state->x_align_jumps)
> +#define align_labels             (this_target_flag_state->x_align_labels)

In addition to the points already raised, this also breaks ports which 
access variables like align_jumps and expect them to be integers. rs6000 
is one such port.


Bernd



More information about the Gcc-patches mailing list