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] Fix target/19334, a CONST_DECL is placed in the wrong section on darwin



On Jan 11, 2005, at 2:54 AM, Richard Henderson wrote:


On Sun, Jan 09, 2005 at 03:06:41PM -0500, Andrew Pinski wrote:
This patch fixes the problem by
multiplying BITS_PER_UNIT when checking TYPE_SIZE.

As opposed to using TYPE_SIZE_UNIT?

I thought using that right after sending the patch and that seems a better
solution.


OK? Bootstrapped and tested on powerpc-darwin with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
	* config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
	of TYPE_SIZE where we mean the number of bytes.

Attachment: temp.diff.txt
Description: Text document


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