This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PING]Re: [PATCH]Use "unsigned int" instead of "int" to hold alignment in emit_local function.


Ping~

Thank you!
Renlin Li

On 04/06/15 12:05, Renlin Li wrote:
Hi all,

This is a simple patch to change the align variable (used in emit_local()) from type "int" to type "unsigned int".

It should be defined as "unsigned int" which is the same data type returned by symtab_node::get (decl)->definition_alignment () For the maximum alignment allowed by GCC(without producing "error: requested alignment is too large"), "int" will overflow.

Okay to Commit on the trunk and backport to branch 5.0?

Regards,
Renlin Li

gcc/ChangeLog:

2015-06-04  Renlin Li  <renlin.li@arm.com>

    * varasm.c (emit_local): Use unsigned int for align variable.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]