🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1623

GNU C's -mshort, and documentation

#1623
From: Francois Pinard
Date: Sun, 10 Jan 1993 14:29
42 lines
2107 bytes
Hi, James.  Copy to bug-gcc, because this report is not completely
specific to 386's.

   The documentation is wrong: there is no such [-mshort] option.

There probably had been one in the past.  I hardly believe that
someone distributed a product, having `gcc -mshort' in the Makefile,
without ever trying it...

   I don't see any easy way to make such a thing work.  It's easy to
   set ints to be 16 bits within gcc, but I doubt it would work.

The matter is not important to me.  Would the description of -mshort
be removed from GNU C documentation, I would consider that the bug
disappeared :-).

Here is the original message, for reference.

---------------------------------------------------------------------->
I'm using GNU C 1.41 under COFF encapsulation on this 386/ix 2.0.2
system.  The GNU C documentation says:

    `-mshort'
          Consider type `int' to be 16 bits wide, like `short int'.

But experience says otherwise:

   gcc -ansi -Di386 -O -DSYSV=1 -mshort -c arc.c
   gcc-cc1: Invalid option `short'

By the way, gcc.info does not confirm which version of GNU C it
pertains to.  The GNU standards dictate:

      The title page of the manual should state the version of the
   program which the manual applies to.  The Top node of the manual
   should also contain this information.
----------------------------------------------------------------------<

-- 
Franc,ois Pinard       ``Happy GNU Year!''      pinard@iro.umontreal.ca
(514) 588-4656                                   ...!uunet!iros1!pinard
About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
Technical Details
Message-ID: <9301101429.AA09679@icule.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard
References: <9301070604.AA26544@raid.dell.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard
From: pinard@icule.UUCP (Francois Pinard)
Subject: GNU C's -mshort, and documentation
Message-ID: <9301101429.AA09679@icule.UUCP>
Sender: gnulists@ai.mit.edu
Reply-To: pinard@iro.umontreal.ca
Organization: GNUs Not Usenet
References: <9301070604.AA26544@raid.dell.com>
Distribution: gnu
Date: Sun, 10 Jan 1993 14:29:26 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 43