This is the mail archive of the gcc@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] |
| Other format: | [Raw text] | |
Alright. I've tried every which way I could to narrow down things, but I
really don't know what I'm doing. I have both the .i and .s output of
the file and have played with a bunch of optimization flags, and noticed
interesting things:
OK, just for reference these are the optimization flags used normally
when compiling quakeforge:
-march=k6-3 -O3 -ffast-math -funroll-loops -fomit-frame-pointer
-fexpensive-optimizations -fstrict-aliasing
What I've found is if you do any of the following:
1. Make -march=586 or less (486/386) OR remove entirely
2. make -O3 -O OR remove entirely
3. remove -ffast-math
the assembler does not complain about being given junk and the file
compiles. Note I have not actually tested if the output is correct by
trying to run the resulting program, which I will do if given enough
time *and* told I should do that (I don't like barking at the wrong
tree)
I'm a novice at these things, and I just plain don't have the *time* to
guess in a 2597 line c file what might possibly cause the problem,
especially as my computer is rather slow. :(
If there is anything else I can do, please let me know. I'm especially
curious if you want to see the output of the other combinations that
cause it to fail.
I have attached the bzip2 -9'd .i file resulting from:
gcc -v -save-temps -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../qw/include -g -march=k6-3 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fstrict-aliasing -pipe -Wall -Werror -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fno-common -c sv_main.c > temp.txt gcc: warning: -pipe ignored because -save-temps specified
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 (Debian)
/usr/lib/gcc-lib/i386-linux/3.3/cc1 -E -quiet -v -I. -I. -I../../include -I../../include -I../../qw/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -DHAVE_CONFIG_H sv_main.c -march=k6-3 -Wall -Werror -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fstrict-aliasing -fno-common -O3 sv_main.i
ignoring nonexistent directory "/usr/i386-linux/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../include"
#include "..." search starts here:
#include <...> search starts here:
.
../../include
../../qw/include
/usr/local/include
/usr/lib/gcc-lib/i386-linux/3.3/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-linux/3.3/cc1 -fpreprocessed sv_main.i -quiet -dumpbase sv_main.c -march=k6-3 -auxbase sv_main -g -O3 -Wall -Werror -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -version -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fstrict-aliasing -fno-common -o sv_main.s
GNU C version 3.3 (Debian) (i386-linux)
compiled by GNU C version 3.3 (Debian).
GGC heuristics: --param ggc-min-expand=51 --param ggc-min-heapsize=40314
as -V -Qy -o sv_main.o sv_main.s
GNU assembler version 2.14.90.0.2 (i386-linux) using BFD version 2.14.90.0.2 20030515 Debian GNU/Linux
sv_main.s: Assembler messages:
sv_main.s:4451: Error: value of ffffffffffffff7a too large for field of 1 bytes at 0000000000001ca9
Attachment:
sv_main.i.bz2
Description: application/bzip
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |