HDTenEightyP/NetNews huggingface dataset:
From: greyham@research.canon.oz.au (Graham Stoney)
Subject: Re: gcc for 68332 and Position Independent Code/data
Keywords: 68332, PIC
Organization: Canon Information Systems Research Australia
Date: Tue, 18 Aug 1992 01:32:34 GMT

suresh@pi.COM (Suresh Kumar) writes:
>I am planning to use gcc to cross compile code for a Motorola
>68332 based hardware.  It was not clear from the documentation
>whether gcc-2.2.2  supports the following features.

I did this with gcc 1.40 and it worked really well, although I took a long
time configuring it and working out what tools I needed (but that should be
much easier in 2.2.2).

>1.  Has anybody on the net used gcc to generate Motorola 68332
>    instructions? 68332 instruction set is a superset of 68010
>    but a subset of 68020.

You just configure it to generate 68010 code in the config file, or pass
-m68000 on the gcc command line every time you compile. I'm not sure if gcc
uses any of the exotic 68020 addressing modes that the CPU32 doesn't have;
I'd be interested to find out. Note that the CPU32 _won't_ give you an
exception if it hits an unimplemented one, your code will just do the wrong
thing. I stuck with the lowest common denominator to be safe.

>2.  Can gcc generate PIC (Position Independent Code/Data) such that
>    all instructions are PC-relative with 32bit offset  and global/static
>    data is Ax register indirect with 32 bit offset? (Ax is one of the
>    address registers). Before I execute the code, I would set up the
>    Ax register to the data segment and then jump to the first instruction
>    in the text segment.

Consider whether you really need to do this. From what you go on to say, it
sounds like all you want to do is use the -Ttext and -Tdata switches to the
linker to relocate the code or data somewhere other than starting at 0.
Unless your dynamically loading programs in and out at different locations
each time (in a microcontroller? :-), you don't need PIC at all, and it's a
liability because it slows you down. (Also I think the real answer to your Qn
is "no" 2.2.2 doesn't support it [yet]).

Good luck,
Graham

-- 
Graham Stoney                    | "a Perl script is correct if it's halfway
Flip Dibner fan club, "Hi Flip!" |  readable and gets the job done before your
Ph: +61 2 805-2909  Fax: -2929   |  boss fires you." L. Wall & R. Schwartz
Newsgroups: gnu.gcc.help
From: feizal@hermes.chpc.utexas.edu (Feizal Mirza)
Subject: Problems with options of GCC
Organization: The University of Texas System - CHPC
Distribution: gnu
Date: Sat, 15 Aug 92 05:15:11 GMT

Hi

I am using Gcc2.2.2 on Sun Sparc machine. My problem is that
I am trying to compile a software whose makefile uses the
the following options of GCC:

-fPIC
-Wmissing-prototype
-Wall
-Werror

But when I try to compile , I get error saying that 
the above options are invalid. So, I want to the know
options in GCC2.2.2 that I should use instead of
the above ones.

Feizal
Center For High Performance Computing
Austin, Texas
-- 
Feizal Mirza                    Internet: feizal@hermes.chpc.utexas.edu
Graphics Group                            Phonenet: (512) 471-2424
Center for High Performance Computing     Snailnet: 10100 Burnet Road
The University of Texas System                      Austin, Texas 78758
Newsgroups: gnu.gcc.help
From: james@bigtex.CActus.ORG (James Van Artsdalen)
Subject: Re: Installing gcc-2.0 on AIX/PS/2
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 15 Aug 1992 03:16:53 GMT

Did you ever get a fix for this problem?

> Date: 8 Apr 92 13:00:32 GMT
> From: koch@tmipi6.telematik.informatik.uni-karlsruhe.de (Gernot Koch)

> The gcc-Compiler uses pseudo-ops, which the PS/2-Assembler doesn't know.
> These are '.section .init' and '.section .fini'. Which changes in the 
> source-code of gcc-2.0 are necessary to force the Compiler to omit these
> pseudo-ops?
> 
> The AIX/PS/2-version is 1.2.1
> 
> Gernot Koch
> koch@telematik.informatik.uni-karlsruhe.de
---
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789
Newsgroups: gnu.gcc.help
From: bturner@centerline.com (Bill Turner)
Subject: compiler switch for float args.
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 12 Aug 1992 10:50:26 GMT



Hello,

	Is there a switch to gcc to tell it
to treat float arguments/parameters as doubles,
similar to the way the -fpcc-struct-return
uses the same convention for struct return values
as pcc.  I need to be able to mix pcc(Sun bundled cc)
object code with gcc object code, and have
float args passed/used correctly.  Thanks
for your help.

Bill Turner
CenterLine Software
Newsgroups: gnu.gcc.help
From: scowen@wfpc3.la.asu.edu (Paul A. Scowen)
Subject: Re: gcc2.2.2 and X11R5
Organization: Dept. of Physics & Astronomy, Arizona State University
Date: Thu, 20 Aug 1992 19:28:18 GMT

In article <1992Aug20.124510.6429@hellgate.utah.edu>, law%schirf.cs.utah.edu@cs.utah.edu (Jeff Law) writes:
|> In article <1992Aug20.165136.2723@ennews.eas.asu.edu> scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:
|> >As a postscript to the last message, I have now built the server using cc
|> >instead of gcc and although the server runs ok, there are still broken
|> >facets to the environment - like the expansion icon in the upper right of
|> >twm windows being missing, and twm menu commands (shell escapes) failing.
|> >
|> >My recommendation to all people out there attempting this is DON'T USE GCC
|> >vers 2.2.2 TO BUILD X!!!  It does not appear to have what it takes.
|> I don't know what you're doing different, but I've had *extremely* good success
|> using gcc2 (assorted versions) on suns.  
|> 
|> Jeff

My personal experience is with R5pl16, gcc-2.2.2 and a DS 5000/25.  I've tried
all the tricks I can think of - any suggestions would be welcome.

-- 
-------------------------------------------------------------------------------
Paul A. Scowen				INTERNET: scowen@wfpc3.la.asu.edu
Department of Physics & Astronomy		  uk1@spacsun.rice.edu
Arizona State University		Tel:      (602) 965-0938
Tempe, AZ 85287-1504			FAX:      (602) 965-7954
-------------------------------------------------------------------------------
Newsgroups: gnu.gcc.help
From: gkb1@chempc1.york.ac.uk (Graham Barlow)
Subject: Is there a gcc for VAX/VMS?
Summary: Is there a gcc for VAX/VMS and if so from where?
Keywords: gcc, VAX/VMS
Organization: University of York, UK
Date: Fri, 14 Aug 1992 09:14:29 GMT

Is there a gcc I can run on a Vaxstation 3100?  If so is there 
an ftp site for it?

Thanks,
Graham
.________________________________________________________________________.
| Graham Barlow:NMR Service, Dept. of Chemistry, University of York, UK  |
| Internet: gkb1@chempc1.york.ac.uk               JANET: gkb1@uk.ac.york |
From: robert@triton.jpl.nasa.gov (Robert Angelino)
Newsgroups: gnu.gcc.help
Subject: Looking for Polynomial least-squares curve fit in C.
Date: 18 Aug 92 22:36:04 GMT
Reply-To: robert@triton.Jpl.Nasa.Gov
Organization: Jet Propulsion Laboratory, Pasadena CA

gcc gurus,
	I'm looking for a C function that determines a polynomial
that fits a given discrete set of data.	 Any help is appreciated.

thanks

-robert
Newsgroups: gnu.gcc.help
From: lrr@Princeton.EDU (Lawrence R. Rogers)
Subject: gcc-2.2.1 on Ultrix 4.2 - unaligned access
Originator: news@nimaster
Organization: Princeton University
Date: Mon, 17 Aug 1992 21:54:02 GMT

I get the following compiling the public domain ksh under ultrix:

gcc -g -O -g -O -D_BSD -I../std/h  -c expr.c
pid 11630 (cc1) was killed on an unaligned access, at pc 0x46e32c
gcc: Internal compiler error: program cc1 got fatal signal 10



How do I proceed on this?  Thanks.

 =====   ======= =======	Larry Rogers
=     =     =       =     	Manager, UNIX Systems
=           =       =     	Princeton University
=           =       =     	87 Prospect Street, Room 201
=           =       =     	Princeton, NJ 08544
=           =       =     	lrr@Princeton.EDU, princeton!lrr
=     =     =       =     	Phone: 609-258-6483/6000
 =====   =======    =     	FAX:   609-258-1069/3943
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: gnu.gcc.help
Subject: Re: gcc2.2.2 and X11R5
Date: 20 Aug 92 17:29:32 GMT
Distribution: world
Organization: lbl
NNTP-Posting-Host: 128.3.12.98

In article <1992Aug20.165136.2723@ennews.eas.asu.edu>, scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:
|> As a postscript to the last message, I have now built the server using cc
|> instead of gcc and although the server runs ok, there are still broken
|> facets to the environment - like the expansion icon in the upper right of
|> twm windows being missing, and twm menu commands (shell escapes) failing.
|> 
|> My recommendation to all people out there attempting this is DON'T USE GCC
|> vers 2.2.2 TO BUILD X!!!  It does not appear to have what it takes.

Well that may be true for Suns, but it seems to work fine for Vaxes.

-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
From: suresh@pi.COM (Suresh Kumar)
Newsgroups: gnu.gcc.help
Subject: gcc for 68332 and Position Independent Code/data
Keywords: 68332, PIC
Date: 16 Aug 92 00:13:48 GMT
Organization: Pi Systems Corp., Portland, OR 97223, USA


I am planning to use gcc to cross compile code for a Motorola
68332 based hardware.  It was not clear from the documentation
whether gcc-2.2.2  supports the following features.

1.  Has anybody on the net used gcc to generate Motorola 68332
    instructions? 68332 instruction set is a superset of 68010
    but a subset of 68020.

2.  Can gcc generate PIC (Position Independent Code/Data) such that
    all instructions are PC-relative with 32bit offset  and global/static
    data is Ax register indirect with 32 bit offset? (Ax is one of the
    address registers). Before I execute the code, I would set up the
    Ax register to the data segment and then jump to the first instruction
    in the text segment.

    As I understand from the documentation, gcc can generate PIC code
    but puts the globals/static in a table and addresses them via
    a 16-bit offset from the base address loaded into a register. I would
    like to setup this Ax register once and the compiler should generate
    code to address global/static data as a 32bit offset from the Ax register.
    The compiler should not generate code to load the Ax register everytime
    global/static data is accessed.


    Thanks in advance for any info.


Suresh Kumar
Pi Systems Corporation
(503) 293-9585

email :  suresh@pi.com       (internet)
         uunet!benjii!suresh (uucp)
From: eric@picard.sbi.com (Eric Ho)
Newsgroups: gnu.gcc.help
Subject: cross-development Sparc -> i386.
Date: 17 Aug 92 15:58:34 GMT
Distribution: gnu
Organization: Salomon Brothers Inc.

Hi,

Has anyone out there tried building a cross-development environment where the
host is a Sparc and the target is an 386-PC ?  The PC has no development tools
whatsoever and probably won't have enough disk space to do much development
anyway.

I'm worried about making libgcc1.a when building gcc as a cross-compiler.
I'm not sure about making gas nad gnu-ld as cross-assembler and cross-linker
though.

Any pointers/info much appreciated.

I'll summarize.
Newsgroups: gnu.gcc.help
From: mark@ux1.cso.uiuc.edu (mark)
Subject: (none)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 13 Aug 1992 01:52:11 GMT

I am attempting to install gcc on an iris 4D/80GT running IRIX 3.3.2.  
I believe this uses COFF-encapsulation.  I am stuck here...

>  7. If you are using COFF-encapsulation, you must convert `gnulib'
>     to a GNU-format library at this point.  See the file
>     `README-ENCAP' in the directory containing the GNU binary file
>     utilities, for directions.

I have no file named README-ENCAP in any directory distributed with gcc-1.40
Where can I find it?

Also, what exactly do I need in terms of a library to work with gcc?
Just the one included?  

Thank you for any help you can provide.


==================================================================
Mark Rendina               "There's nothin' wong, it just dodn wook"
jedi@.uiuc.edu 	                  - What I learned at Fermilab
University of Illinois       


Newsgroups: gnu.gcc.help
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: gcc-2.2.1 on Ultrix 4.2 - unaligned access
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 17 Aug 1992 18:38:06 GMT

    I get the following compiling the public domain ksh under ultrix:
    ...

    How do I proceed on this?  Thanks.

If GCC crashes, please assume this indicates a bug.
Please *do not* send a message about it to help-gcc; that is
the wrong place for a bug report.

Instead, please read the GCC Manual's chapter on Bugs.
It explains how and where to send a bug report that will get the
problem fixed.
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: gnu.gcc.help
Subject: Re: gcc2.2.2 and X11R5
Date: 21 Aug 1992 07:04:40 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

In article <1992Aug20.124510.6429@hellgate.utah.edu>,
law%schirf.cs.utah.edu@cs.utah.edu (Jeff Law) writes:
|> In article <1992Aug20.165136.2723@ennews.eas.asu.edu>
|> scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:
|> >My recommendation to all people out there attempting this is DON'T USE
|> GCC
|> >vers 2.2.2 TO BUILD X!!!  It does not appear to have what it takes.
|> I don't know what you're doing different, but I've had *extremely* good
|> success
|> using gcc2 (assorted versions) on suns.  

I have built X11R5 on a SPARCstation, but would not call the success
"extremly good", because I encountered problems with the font server. It
likes to crash when trying to render a non-ISO8859 Type-1 font. (Sorry, I
can't be more specific - otherwise I would file a bug report.) The rest of
the gcc 2.2.2 compiled X11R5 seems to run fine.

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
Newsgroups: gnu.gcc.help
From: scs@lokkur.dexter.mi.us (Steve Simmons)
Subject: Re: gcc2.2.2 and X11R5
Organization: Inland Sea
Date: Fri, 21 Aug 92 00:30:08 GMT

scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:

>As a postscript to the last message, I have now built the server using cc
>instead of gcc and although the server runs ok, there are still broken
>facets to the environment - like the expansion icon in the upper right of
>twm windows being missing, and twm menu commands (shell escapes) failing.

>My recommendation to all people out there attempting this is DON'T USE GCC
>vers 2.2.2 TO BUILD X!!!  It does not appear to have what it takes.

Wait a minute . . .

If the gcc version you build is broken, and the cc version is broken,
then there are fundamental errors somewhere which are independant of
the compilers.  *Something* is configured wrong: the way you build X,
your system, your C library, but *something*.  There are too damned
many existence proofs showing it works.
-- 
 "Voodoun is a very interesting religion for the whole family, even those
  members of it who are dead."
		-- "Good Omens", by Neil Gaiman and Terry Pratchett
Newsgroups: gnu.gcc.help
From: rich@delphi.bsd.uchicago.edu (Rich Long)
Subject: gcc2.2.2 and X11R5
Reply-To: rich@delphi.bsd.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 20 Aug 1992 12:50:42 GMT


	I have compiled gcc 2.2.2 on an SLC and have been trying to  
re-compile X11R5 with no luck.  I get ld errors and hoped someone had run  
across this and could help me out...  Below are the two types of errors I  
get.  Thanx in advance...

--Rich

-----------------------
..

rm -f phigsmon
gcc -fpcc-struct-return -o phigsmon phigsmon.o -O2   ../libphigs.a  
-L../../../..
/./lib/Xaw -lXaw -L../../../.././lib/Xmu -lXmu -L../../../.././lib/Xt -lXt  
-L../
./../.././extensions/lib -lXext -L../../../.././lib/X -lX11  
-L/home/spare/X11/l
ib   -lm -B/usr/bin/
ld: Undefined symbol
   _alloca
*** Error code 1
make: Warning: Target `phigsmon' not remade because of errors
Current working directory /home/spare/mit/extensions/lib/PEX/cp

..

gcc -fpcc-struct-return -o bmtoa bmtoa.o -O2   -L../.././lib/Xmu -lXmu  
-L/home/s
pare/X11/lib    -B/usr/bin/
ld: Undefined symbol
   _XGetVisualInfo
   _XFree
   _XInternAtom
   _XtMalloc
   // And a lot more... up to
   _XtDestroyWidget
*** Error code 1
Newsgroups: gnu.gcc.help
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: Fix for cc1plus internal error 6 ?
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 18 Aug 1992 23:14:46 GMT

In effect, you have said, "The compiler crashed.  Does anyone know how
to fix this?"  I'm flattered by your confidence in the GCC maintainers,
but we are not superhuman.  We cannot find a bug just knowing there
is a bug.  We need data to track it down.

If you find a bug, and you would like it to be fixed, you need to send
a proper bug report.  Read the chapter on Bugs in the GCC manual
to find out how and where to send a usable bug report.

I have said this over and over.  Doesn't anyone pay attention?
Newsgroups: gnu.gcc.help
From: burks@seena.eecs.umich.edu (Timothy Burks)
Subject: Getting debugging information on mips-dec-ultrix4.2?
Organization: University of Michigan, Ann Arbor
Date: Wed, 12 Aug 1992 16:22:12 GMT


I'm having trouble getting gcc (2.2.2) to produce debugging
information (using the -g option) on a DECstation.  Apparently,
the trouble is occurring in the mips-tfile program, which does
some updates of the mips symbol tables after assembly is complete.
Here's a partial transcript:

 /usr/local/lib/gcc-lib/mips-dec-ultrix4.2/2.2.2/mips-tfile -v -o Net.o /usr/tmp
mips-tfile version 2.2.2 [AL 1.1, MM 19] DECstation running ultrix
mips-tfile, /usr/tmp/cca16285.s:631 compiler error, badly formed #.def (internal
line:           #.def   ListEntry<class Pin*>;  .scl    10;     .type   0x8;def

mips-tfile, /usr/tmp/cca16285.s:633 compiler error, badly formed #.def (internal
line:           #.def   _prev;  .val    4;      .scl    8;      .tag    ListEntr
ze      12;     .type   0x18;   .endef

mips-tfile, /usr/tmp/cca16285.s:634 compiler error, badly formed #.def (internal
line:           #.def   _next;  .val    8;      .scl    8;      .tag    ListEntr
ze      12;     .type   0x18;   .endef

<error messages go on MUCH further>


Has anyone else encountered this?  Managed to fix the problem?

Thanks for any help,

Tim
Newsgroups: gnu.gcc.help
From: roman@pauli.theochem.tuwien.ac.at (Roman Augustyn)
Subject: Re: Libg++ on HP's
Originator: roman@pauli.theochem.tuwien.ac.at
Keywords: gnu,libg++,gcc,g++
Organization: Technical University Vienna / Austria
Date: Thu, 20 Aug 1992 07:54:28 GMT


> I built libg++ version 2.2 on a HP 9000/730 (running HP-UX 8.05)
> using GCC version 2.2.2.  Whenever I try to link libg++.a with
> any C++ program, no matter how trivial, I always get the following
> error from the linker:
>
> ld: Unsatisfied symbols:
>    _vt.filebuf (data)

A workaround for this problem was published by Per Bothner (bothner@cygnus.com)
in the news-group 'gnu.g++.lib.bug'.

Changing line 78 of ./libg++-2.2/libg++/utils/gen-params (as described by the
following 'diff' output) is doing the trick:

diff gen-params gen-params.orig
78c78
<     echo "#define ${macro_prefix}DOLLAR_IN_LABEL ${DOLLAR_IN_LABEL}"
---
>     echo "#define ${macro_prefix} ${DOLLAR_IN_LABEL} ${DOLLAR_IN_LABEL}"

I also applied a patch from Christoph Tietz (tietz@gmd.de, tietz@zi.gmd.dbp.de)
which corrects a problem with the 'contains' operation for SubString objects:
Change line 1077 of ./libg++-2.2/libg++/src/String.h according to the following
'diff' output.

diff String.h String.h.orig
1077c1077
<   return S.search(pos, pos+len, c) >= 0;
---
>   return S.search(pos, pos+len, 0, c) >= 0;

After that, 'make CC=gcc' followed by 'make CC=gcc check' passes most of
the tests. Unfortunately i get the following error when linking
'./libg++-2.2/libg++/tests/tString':

        gcc  tString.o -o tString ../libg++.a
ld: Unsatisfied symbols:
   RXdouble (code)
   RXalpha (code)
   RXwhite (code)
   RXint (code)
collect: /bin/ld returned 1 exit status
*** Error code 1

Stop.

I have not had the time to look into that error - perhaps someone can help me
out.

Thanks,

Roman Augustyn                           (roman@pauli.theochem.tuwien.ac.at)
Technical University Vienna
Getreidemarkt 9, 1060 Vienna, Austria, Europe
From: vic@class.gsfc.nasa.gov (James V. Ryan (Vic))
Newsgroups: gnu.gcc.help
Subject: Libg++ on HP's
Summary: Need libg++ for HP 9000-{78}00....
Keywords: gnu,libg++,gcc,g++
Date: 19 Aug 92 11:53:42 GMT
Organization: Goddard Space Flight Center

This is my second plea for HELP... 1st was on comp.sys.hp
All responses were asking me to let them know if I found
a answer.

Thus:  HELP..HELP..HELP

Machines:  HP 9000-845SE SRX - HP-UX 8.0.0
	   HP 9000-730PVRX   - HP-UX 8.0.7

I have compiled gnu gcc 2.2.2 both systems but CANNOT get
libg++ to compile on either system.

Does anybody have it working on a HP anywhere, and can they
share this wisdom with the networld.

Thank You, Vic

--James V. Ryan                           vic@class.gsfc.nasa.gov
  Code 530.2, Bldg. 25                    Phone 301-286-4841
  Goddard Space Flight Center             Fax   301-286-4355
  Greenbelt, MD  20771
Newsgroups: gnu.gcc.help
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: Experiences with modifying gcc/g++
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 20 Aug 1992 12:12:51 GMT

Cross-referencing should operate at source level.  It should not
work by compiling the program.  It is important for cross-references
to be made even for references that are inside failing conditionals.
Newsgroups: gnu.gcc.help
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: Another Obj-C Implementation (long) (was: Re: GNU runtime)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 13 Aug 1992 22:30:28 GMT

    Another "free" Obj-C implementation is available via anonymous ftp on
    ghost.dsi.unimi.it (yeah, it is in Italy!!), in the file pub/objective-C.tar.Z.
    It does contains a translator, a debugger and a runtime library (I think). 

We don't need the translator or the debugger, but we could use the library.
Would somebody like to adapt it to work with GCC?

Some of the library probably consists of class definitions, and those
should not need to be changed.  But the message dispatch part of the
library might need to be changed.  There is also the question of how
to represent the data structures that are used for dispatching at run
time, in order to make message dispatch fast.  It looks like part of
this is written in assembler, which is a problem; we need a version
written in C so it can be portable.


Newsgroups: gnu.gcc.help