[PATCH] XCOFF select section tweak

David Edelsohn dje@watson.ibm.com
Wed Sep 11 19:12:00 GMT 2002


>>>>> Richard Henderson writes:

Richard> This won't work.
Richard> because the alignment of the two decls is different, which will
Richard> result in two different flags settings, which will fail the 
Richard> check in set_named_section_flags.

	IBM's assembler and linker doesn't care about the conflicting
alignments -- it will use the largest one.  Because the named section
machinery only passes flags and not the original DECL, there is no other
way to know the alignment when the section name is emitted.

	If all of the bits in flags really should be compared because of
the merge string size, maybe we need another targetm value with the flags
mask for the comparison.

Thanks, David



More information about the Gcc-patches mailing list