delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/19/15:00:11

From: "Richard Thomas Harrison" <void AT black-hole DOT invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: gcc automatically undefines -mmmx and -m3dnow also -fverbose-asm compiles with errors ???
Lines: 123
Organization: MIBnet
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <PgR4a.4411$Vx2.397614@wards>
Date: Wed, 19 Feb 2003 19:51:00 -0000
NNTP-Posting-Host: 195.166.145.95
X-Complaints-To: abuse AT plus DOT net DOT uk
X-Trace: wards 1045684399 195.166.145.95 (Wed, 19 Feb 2003 19:53:19 GMT)
NNTP-Posting-Date: Wed, 19 Feb 2003 19:53:19 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Originally posted to gnu.gcc.help

Here is a verbose output of the problems I have

First the -fverbose-asm compile errors

gcc -v -c  -mcpu=athlon -march=athlon -mmmx -m3dnow -fverbose-asm  -O6
-funroll-loops -funroll-all-loops -fno-force-mem -fpeephole -Wall -W -Werror
-Wno-unused -save-temps -I. -I/usr/include  -o trade.o trade.c
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.21/specs
Configured with: /devel/gnu/gcc/3.2/gnu/gcc-3.21/configure
i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.2.1
 c:/djgpp/lib/gcc-lib/djgpp/3.21/cpp0.exe -lang-c -v -I. -I/usr/include
-D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1
-D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__
-D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix
-D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386
-D__i386__ -D__athlon -D__athlon__ -D__tune_athlon__ -D__MMX__ -D__3dNOW__
-D__3dNOW_A__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap
-imacros c:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver trade.c -Wall -W -Werror
-Wno-unused trade.i
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/include
 C:/usr/include
 c:/djgpp/lib/gcc-lib/djgpp/3.21/include
 c:/djgpp/include
End of search list.
 c:/djgpp/lib/gcc-lib/djgpp/3.21/cc1.exe -fpreprocessed trade.i -quiet
-dumpbase trade.c -mcpu=athlon -march=athlon -mmmx -m3dnow -O6 -Wall -W
-Werror -Wno-unused -version -fverbose-asm -funroll-loops -funroll-all-loops
-fno-force-mem -fpeephole -o trade.s
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
GNU C version 3.2.1 (djgpp)
        compiled by GNU C version 3.2.1.
 c:/djgpp/bin/as.exe --traditional-format -o trade.o trade.s
trade.s: Assembler messages:
trade.s:43: Error: junk `(%ebp)/keys' after expression
trade.s:45: Error: junk `/fn' after register
trade.s:46: Error: bad expression
trade.s:46: Error: missing ')'
trade.s:46: Error: junk `esp)/fn' after expression
trade.s:48: Error: junk `(%ebp)/f' after expression
trade.s:49: Error: junk `/f' after register
trade.s:50: Error: junk `/keys' after register
trade.s:53: Error: junk `/buf' after register
...

and then the undefining of -mmmx and -m3dnow, note the -mno-mmx and the
-mno-3dnow

 .file "trade.c"
/ GNU C version 3.2.1 (djgpp)
/ compiled by GNU C version 3.2.1.
/ options passed:  -fpreprocessed -mcpu=athlon -march=athlon -mmmx -m3dnow
/ -O6 -Wall -W -Werror -Wno-unused -fverbose-asm -funroll-loops
/ -funroll-all-loops -fno-force-mem -fpeephole
/ options enabled:  -fdefer-pop -foptimize-sibling-calls -fcse-follow-jumps
/ -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
/ -fstrength-reduce -funroll-loops -funroll-all-loops -fpeephole
/ -ffunction-cse -fkeep-static-consts -fcaller-saves -fpcc-struct-return
/ -fgcse -fgcse-lm -fgcse-sm -frerun-cse-after-loop -frerun-loop-opt
/ -fdelete-null-pointer-checks -fschedule-insns2 -fsched-interblock
/ -fsched-spec -fbranch-count-reg -freorder-blocks -frename-registers
/ -fcprop-registers -fcommon -fverbose-asm -fgnu-linker -fregmove
/ -foptimize-register-move -fargument-alias -fstrict-aliasing
/ -fmerge-constants -fident -fpeephole2 -fguess-branch-probability
/ -fmath-errno -ftrapping-math -m80387 -mhard-float -mno-soft-float
/ -mieee-fp -mfp-ret-in-387 -mmmx -mno-mmx -m3dnow -mno-3dnow -mcpu=athlon
/ -march=athlon

 .section .text
LC0:
 .ascii "rt\0"
LC3:
 .ascii "=\0"
LC1:
 .ascii " \11\0"
LC4:
 .ascii "\0\0"
LC5:
 .ascii "\1\0"
LC2:
 .ascii "[]\0"
 .p2align 4,,15
.globl _parse_data_file
_parse_data_file:
 pushl %ebp
 movl %esp, %ebp
 pushl %edi
 pushl %esi
 pushl %ebx
 subl $9804, %esp
 movl $0, -9760(%ebp) /  keys
 movl $LC0, 4(%esp)
 movl 8(%ebp), %eax /  fn,  fn
 movl %eax, (%esp) /  fn
 call _fopen
 movl %eax, -9756(%ebp) /  f
 movl -9756(%ebp), %ecx /  f
 movl $-1, %eax /  keys
 testl %ecx, %ecx
 je L1
 leal -4120(%ebp), %edi /  buf
...

Is this a problem with gcc 3.2.1 ???

Or is it a problem just with DJGPP compiled version of gcc 3.2.1 ???

Richard
--
------------------------------------------------------------------------
CATGACGCACTAGCGGATTCCAATCGGGTAGTTCCCCCCGCGCACTTATGCCTCAATAGATCTGCCACATCG
CATGGTGATCATCCCATTCTTCGCCCGGGATATCTTAAGCAATGGGGGAAGTGTGGCATCCTTTTGCTTCAG
dna.pl v0.2.4 (c) 20020613                    (tm) rth @ mibnet.plus.com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019