This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/28994] New: 64-bit problem in host-darwin.c
- From: "lucier at math dot purdue dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2006 00:33:18 -0000
- Subject: [Bug bootstrap/28994] New: 64-bit problem in host-darwin.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When configuring and bootstrapping with
#!/bin/tcsh
/bin/rm -rf *; env CC='gcc -mcpu=970 -m64' ../configure
--prefix=/pkgs/gcc-test-64 --enable-languages=c --disable-checking; make -j 16
bootstrap BOOT_CFLAGS='-O2 -g -mcpu=970 -m64' >& build.log
bootstrap fails with
/Users/gcc-test/programs/gcc/mainline/objdir-64-c/./prev-gcc/xgcc
-B/Users/gcc-test/programs/gcc/mainline/objdir-64-c/./prev-gcc/
-B/pkgs/gcc-test-64/powerpc-apple-darwin8.7.0/bin/ -c -O2 -g -mcpu=970 -m64
-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 -DHAVE_CONFIG_H
-I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
-I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber
-I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
-I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber
../../gcc/config/rs6000/host-darwin.c -o host-ppc-darwin.o
cc1: warnings being treated as errors
../../gcc/config/rs6000/host-darwin.c: In function 'segv_handler':
../../gcc/config/rs6000/host-darwin.c:81: warning: cast to pointer from integer
of different size
../../gcc/config/rs6000/host-darwin.c:131: warning: format '%08lx' expects type
'long unsigned int', but argument 3 has type 'unsigned int'
Now, you might say that this isn't the way to try to build a 64-bit compiler
that targets 32-bit binaries, but I still think that there are 32-bit
assumptions in this routine that need to be fixed.
Brad
--
Summary: 64-bit problem in host-darwin.c
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lucier at math dot purdue dot edu
GCC build triplet: powerpc-apple-darwin8.7.0
GCC host triplet: powerpc-apple-darwin8.7.0
GCC target triplet: powerpc-apple-darwin8.7.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28994