This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] XCOFF select section tweak
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Sep 2002 22:12:21 -0400
- Subject: 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