Re: [Linux-ia64] segv with gas using gcc 3.2

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-01-30 04:12:05
>>>>> On Wed, 29 Jan 2003 09:21:09 -0600, Robert K Gjertsen <gjertsen@us.ibm.com> said:

  Rob> I'm seeing gas yak/segv on some assembly code that we use to
  Rob> avoid pulling extraneous instructions into the instruction
  Rob> cache (avoid debugging code when debugging is turned off).
  Rob> This used to work with gcc 2.96 but now dies with gcc 3.2 when
  Rob> optimizations are turned on (-O or higher). I'm trying to
  Rob> reduce this to a smaller and manageable case and also figure
  Rob> out whether I'm doing something ill-advised given that we are
  Rob> making some assumptions on how the code is ordered in the
  Rob> remote section (works OK on i386 with gcc 3.2).  Just seeing if
  Rob> someone may have some insight on my example below.

Perhaps the block-reordering is causing the problems for you?
Might want to try -fno-reorder-blocks.

A general comment: I'd highly discourage to switch sections within a
procedure.  The problem is that the unwind info will be all wrong
otherwise.

	--david
Received on Wed Jan 29 09:13:44 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST