This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Right BOOT_CFLAGS for profiling sparcv9?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Mar 2002 14:27:03 +0100
- Subject: Re: Right BOOT_CFLAGS for profiling sparcv9?
- References: <200203181322.g2IDMUV16383@banach.math.purdue.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Mar 18, 2002 at 08:22:30AM -0500, Brad Lucier wrote:
> I want to profile gcc on sparcv9-sun-solaris2.8 and tried:
>
> ( /bin/rm -rf * ) ; ( env CC='cc -xarch=v9 -xildoff' ../configure --prefix=/home/c/lucier/local/gcc-3.1 --enable-checking=no --enable-languages='c' sparcv9-sun-solaris2.8 ) ; ( make -j 8 bootstrap BOOT_CFLAGS='-O2 -g -pg' BOOT_LDFLAGS='-pg' > & build.log ) &
>
> (I only enabled C because bootstrap fails in libstdc++.) This fails with
>
> make[2]: Entering directory `/export/u3/lucier/programs/gcc/gcc-3.1/objdir-sparcv9/gcc'
> stage1/xgcc -Bstage1/ -B/home/c/lucier/local/gcc-3.1/sparcv9-sun-solaris2.8/bin/ -c -DIN_GCC -O2 -g -pg -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/gengenrtl.c -o gengenrtl.o
> cc1: profiling does not support code models other than medlow
> make[2]: *** [gengenrtl.o] Error 1
>
> What does this mean and how do I fix it? I tried to add -m64 to
> BOOT_CFLAGS and BOOT_LDFLAGS and got the same message.
-m64 -mcmodel=medlow
Jakub