https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114912

--- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #1)
> Since this happens while building libgcc during stage1, perhaps this can be
> reproduced with a cross?  Would it be possible to get the preprocessed file
> that's failing?

I doubt this can be seen in a cross: running the compilation under truss
reveals
the SIGBUS as

2834:       Incurred fault #5, FLTACCESS  %pc = 0x00723E58
2834:         siginfo: SIGBUS BUS_ADRALN addr=0xFFBFC954
2834:       Received signal #10, SIGBUS [caught]
2834:         siginfo: SIGBUS BUS_ADRALN addr=0xFFBFC954

i.e. an unaligned access.  While SPARC is a strict-alignment target, x86 cares
little if any about alignment at all.

> You could try /var/gcc/reghunt/sigbus-range/288807/./gcc/xgcc -save-temps
> [blah blah], and attach the libgcc2.i file that gets generated.

Sure, please find _muldi3.i attached.

cc1 invocation is

cc1 -fpreprocessed _muldi3.i -quiet -dumpbase _muldi3.c -dumpbase-ext .c
-mcpu=v9 -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-version -fbuilding-libgcc -fno-stack-protector -fPIC -fvisibility=hidden -o
_muldi3.s

Reply via email to