[Bug tree-optimization/22158] char global_var[] = "larger than 32 bytes"; uses silly amounts of alignment even with -Os

vda at port dot imtp dot ilyichevsk dot odessa dot ua gcc-bugzilla@gcc.gnu.org
Thu Jun 23 06:59:00 GMT 2005


------- Additional Comments From vda at port dot imtp dot ilyichevsk dot odessa dot ua  2005-06-23 06:59 -------
Created an attachment (id=9131)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9131&action=view)
While we are at it, speed up ix86_data_alignment

All if()s below are true only if align<128, so we can skip all of them.

And what is this?

   if (AGGREGATE_TYPE_P (type)
	&& TYPE_SIZE (type)
	&& TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST
	&& (TREE_INT_CST_LOW (TYPE_SIZE (type)) >= 256
	   || TREE_INT_CST_HIGH (TYPE_SIZE (type))) && align < 256)
     return 256;

I do not remember anything which requires such wasteful alignment.
Maybe a comment would be in order there. (Or removal ;)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22158



More information about the Gcc-bugs mailing list