🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51530

Re: gcc 2.3.3 on aix 3.2

#51530
From: Phil Brown
Date: Fri, 30 Apr 1993 20:30
39 lines
2663 bytes
Chuck Strickland (chucks@iplmailcsdc02.orl.mmc.com) wrote:
:  I am getting the following errors when building gcc on aix 3.2

:        stage1/xgcc -Bstage1/  -DIN_GCC   -g -O     -I. -I. -I./config -c insn-emit.c
: insn-emit.c: In function `gen_uminsi3':
: insn-emit.c:266: warning: integer constant is so large that it is unsigned
: insn-emit.c:267: warning: integer constant is so large that it is unsigned
: insn-emit.c: In function `gen_umaxsi3':
: insn-emit.c:298: warning: integer constant is so large that it is unsigned
: insn-emit.c:299: warning: integer constant is so large that it is unsigned
:  
:  what is the correct fix for this.

CORRECTION, you are getting warnings.  For the most part you can ignore warnings.
The fix you need to worry about is for the assembler.  Otherwise you won't be
able to compile gcc-2.3.3 at all.  BTW, the PTF is U409205 for the assebler fix.

	There is one change in cse.c at about line 3200 or so under  case SMAX. as below

 case SMAX:
          if (width <= HOST_BITS_PER_WIDE_INT && GET_CODE (op1) == CONST_INT
              && INTVAL (op1) == (unsigned) GET_MODE_MASK (mode) >> 1
                                 ^^^^^^^^^^
              && ! side_effects_p (op0))
            return op1;
          else if (rtx_equal_p (op0, op1) && ! side_effects_p (op0))
            return op0;
          break;

Add the unsigned typecast to GET_MODE_MASK.  You'll need this if you want to compile
groff some day and who knows what else.  That's all I know...

		Phil

--
Philip Brown - Sys Admin      | "Welcome to Mousebat, Follicle, Goosecreature,
The Mitre Corporation         |  Ampersand, Spong, Wapcaplet, LooseLiver, Van- 
EMail: phil@mwunix.mitre.org  |  Vetter, and Prang." 
Error: funny.saying not found |                      -- Adrian Wapcaplet 
Technical Details
Message-ID: <1993Apr30.203008.5102@linus.mitre.org>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!linus!linus.mitre.org!crete.mitre.org!philsie
References: <1993Apr30.171947.6990@iplmail.orl.mmc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,37b9f4741a0a374d
X-Google-Attributes: gid11318c,public
X-Google-Thread: 115614,37b9f4741a0a374d
X-Google-Attributes: gid115614,public
X-Google-ArrivalTime: 1993-04-30 14:21:24 PST
Newsgroups: gnu.gcc.help,comp.unix.aix
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!linus!linus.mitre.org!crete.mitre.org!philsie
From: philsie@crete.mitre.org (Phil Brown)
Subject: Re: gcc 2.3.3 on aix 3.2
Message-ID: <1993Apr30.203008.5102@linus.mitre.org>
Followup-To: gnu.gcc.help,comp.unix.aix
Sender: news@linus.mitre.org (News Service)
Nntp-Posting-Host: crete.mitre.org
Organization: The MITRE Corp.
X-Newsreader: TIN [version 1.1 PL9]
References: <1993Apr30.171947.6990@iplmail.orl.mmc.com>
Date: Fri, 30 Apr 1993 20:30:08 GMT
Lines: 39