This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFH] Fixing -fsection-anchors on powerpc-darwin
Andrew Pinski <pinskia@physics.uc.edu> writes:
> Now I run into another problem:
> /Users/pinskia/src/gcc/local/gcc/objdir.objc/./prev-gcc/xgcc
> -B/Users/pinskia/src/gcc/local/gcc/objdir.objc/./prev-gcc/
> -B/Volumes/temp/gcc/local.objc/powerpc-apple-darwin7.9.0/bin/ -c -g
> -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
> -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -I.
> -I. -I/Users/pinskia/src/gcc/local/gcc/gcc
> -I/Users/pinskia/src/gcc/local/gcc/gcc/.
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../include -I./../intl
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../libcpp/include
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../libdecnumber
> -I../libdecnumber -I. -I. -I/Users/pinskia/src/gcc/local/gcc/gcc
> -I/Users/pinskia/src/gcc/local/gcc/gcc/.
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../include -I./../intl
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../libcpp/include
> -I/Users/pinskia/src/gcc/local/gcc/gcc/../libdecnumber
> -I../libdecnumber
> /Users/pinskia/src/gcc/local/gcc/gcc/config/host-darwin.c
> /var/tmp//ccBWaqmT.s:130:Fixup of 1073745640 too large for field width
> of 26 bits
Heh, that's quite some stress test ;) It sounds like you know
what needs be changed, but out of interest, what are these fixups
against? An address of the form "anchor + big_offset"? If so,
why is the address in memory, and what does it look like without
section anchors? Could you send me the -fno-section-anchors and
-fsection-anchors versions of the .s file? I just want to make
sure that -fsection-anchors is doing what I expected in this case.
> PS Attached is my current patch:
Looks good to me FWIW.
Richard