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]

Re: [PATCH] Handle weak symbols



The assembly I get for that test case looks OK to me using a
powerpc-linux-gnu cross compiler based on today's sources:

  main:
	  mflr 0
	  stwu 1,-16(1)
	  lis 9,foo@ha
	  stw 0,20(1)
	  la 0,foo@l(9)
	  lis 3,.LC0@ha
	  cmpwi 0,0,0
	  la 3,.LC0@l(3)
	  li 4,0
	  beq- 0,.L4
	  lwz 4,foo@l(9)
  .L4:
	  crxor 6,6,6
	  bl printf
	  lwz 0,20(1)
	  addi 1,1,16
	  mtlr 0
	  blr

Does that look right to you?  If so, we need another test-case.

It may be that the reason that this is working now is that some other
optimization (delete_null_pointer_checks?) has gotten broken somehow.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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