This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/1489: gcc's invaild option -mno-486
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1489: gcc's invaild option -mno-486
- From: fsl at citiz dot net
- Date: 21 Dec 2000 15:47:49 -0000
- Reply-To: fsl at citiz dot net
>Number: 1489
>Category: c
>Synopsis: gcc's invaild option -mno-486
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: mistaken
>Submitter-Id: net
>Arrival-Date: Thu Dec 21 07:56:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: gyc
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
RedHat 5.x
Kernel 2.2.17
gcc can't compile with -mno-486 :
gcc -mno-486 cfile
output:
cc1: Invalid option `no-486'
gcc version
root@gyc#~>gcc --version
2.95.2
first is mozilla
Mozilla(Netscape 5)
root@gyc#/usr/local/src/mozilla>make
...
gcc -o Linux2.2.17_x86_DBG.OBJ/nsinstall.o -c -DXP_UNIX -g -ansi -Wall -pipe -DLINUX -Dlinux -DLINUX1_2 -mno-486 -Di386 -D_POSIX_SOURCE -D_BSD_SOURCE -DSW_THREADS -DNEED_ENDIAN_H -DNEED_GETOPT_H -DNEED_IOCTL_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DNEED_SYS_TIME_H -DHAVE_SYS_BITYPES_H -DNEED_UINT_T -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE -D_PR_LOCAL_THREADS_ONLY -DHAVE_STRERROR -DDEBUG -UNDEBUG -DDEBUG_root -DTRACING -DNSPR20 -DNETSCAPE -DOSTYPE=\"Linux2.2\" -DMOZILLA_CLIENT -DLAYERS -DUNIX_LDAP -DNSPR -DMOCHA -DUNIX_ASYNC_DNS -DDEVELOPER_DEBUG -I../include -I/usr/X11R6/include -I../dist/Linux2.2.17_x86_DBG.OBJ/include nsinstall.c
cc1: Invalid option `no-486'
now a test source code
My "HELLO" code
root@gyc#~/c-code>cat <<EOF > hello.c
> #include <stdio.h>
> void main (void) { printf("Hello World\n"); }
> EOF
root@gyc#~/c-code>ls
. .. hello.c
root@gyc#~/c-code>gcc -mno-486 hello.c -o hello
cc1: Invalid option `no-486'
hello.c: In function `main':
hello.c:2: warning: return type of `main' is not `int'
root@gyc#~/c-code>ls
. .. hello.c
now the test source code in http://www.codesourcery.com/gcc-compile.shtml
GCC Output
These are the results of processing your source code with the following command:
gcc -mno-486 [input]
Exit code: 256
Messages:
cc1: Invalid option `no-486'
/tmp/@31596.7.c: In function `main':
/tmp/@31596.7.c:2: warning: return type of `main' is not `int'
>How-To-Repeat:
gcc -mno-486 files
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: