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]

Re: [PATCH] XCOFF select section tweak


>>>>> 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


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