home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!prener
- From: prener@watson.ibm.com (Dan Prener)
- Subject: Re: gcc 2.2.2 wierd -g problem
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <PRENER.92Sep13010512@prener.watson.ibm.com>
- In-Reply-To: jhardin@csrp.tamu.edu's message of Sun, 13 Sep 1992 01:01:36 GMT
- Date: Sun, 13 Sep 1992 06:05:12 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Sep13.010136.1614@tamsun.tamu.edu>
- Nntp-Posting-Host: prener.watson.ibm.com
- Organization: IBM T.J. Watson Research Center, Hawthorne, New York
- Lines: 23
-
- In article <1992Sep13.010136.1614@tamsun.tamu.edu> jhardin@csrp.tamu.edu (James Hardin) writes:
-
- > I am having a problem compiling a large program with gcc version 2.2.2
- >using only the -g option. This is a big program (75,000 lines) and in one
- >of the later files during the make, I get:
-
- > Assembler:
- > /tmp/ccRkEDmb.s: line 195: branch address out of range
-
- >What does this mean?!? If I compile the offending file by hand, I get the
- >same message. If I instead use -O on the offending file and then restart
- >the make (which uses -g), then everything is fine. Is something wrong here?
- >I should say that the offending file does nothing unusual - includes only
- >the stdio.h file. Is this bizarre or is there something fundamentally wrong with
- >the gcc installation?
-
- If we take the assembler error message at face value, then what it means
- is that there is a branch that must reach over more than the +/- 32 MBytes
- that the 26-bit displacement field in a relative branch allows. This is
- consistent with the fact that it all works when you compile with -O, since
- optimization usually reduces the total volume of program text.
- --
- Dan Prener (prener@watson.ibm.com)
-