This is the mail archive of the gcc-bugs@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]

i386 `-fPIC -fexceptions'


>Release:	3.0
target: i586-pc-sco3.2v5.0.2
as: binutils-2.11

This supplements <02473b3b381b35-gin@mo.msk.ru> (gnats id 3460).

The simplest command that reproduces failure which occurs when
compiling `unwind-dw2.c' is

./xgcc -B./ -fPIC -fexceptions

run in gcc build dir on cpp output:

extern void abort(void);
static void
f (void)
{
  abort ();
}

This generates asm:

	.type	f,@function
f:
.LFB1:
	; ...
	.section	.eh_frame, "aw"
	; ...
	.long	.LFB1@GOTOFF

gas loses on the last string.

gcc-2.95.3 with the same options generates just

	.long .LFB1

in `.eh_frame', and gas wins.

How new call stack unwinding code works, how it finds .eh_frame data
for program counters in shared objects and what it expects to find
there, I do not know.


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