* gcc 2.3.3 and alpha-osf odd assembly problem
@ 1993-04-20 16:49 Paul Tatarsky
1993-04-20 21:03 ` Paul Tatarsky
1993-04-26 1:38 ` Oooh! Ahhh! gcc 2.3.3 for the RT! Salvatore Petetti
0 siblings, 2 replies; 5+ messages in thread
From: Paul Tatarsky @ 1993-04-20 16:49 UTC (permalink / raw)
I know that 2.3.1 compiled with a configure alpha-dec-osf,
but for some reason, 2.3.3 is giving me the following problem:
BOX: DEC Alpha 3000/400
OS: OSF/1 1.2 rev 10
LOCAL: 1. configure alpha-dec-osf
2. changed the verstamp macro to match /usr/include/stamp.h
3. in rtl.def there is a macro conflict over the meaning of ABS
which is defined in /usr/include/asm.h to mean:
#define ABS(x, y)
which then conflicts with line 713 of rtl.def:
/* Absolute value */
DEF_RTL_EXPR(ABS, "abs", "e", '1')
Current hack is an #undef ABS in front of that declare.
Don't know if this is a really bad idea or not.
4. removed the -g items from the Makefile to cut down on warnings
about "this version doesn't support"
make LANGUAGES=c
....(no problems until we hit the first xcc build of libgcc.a)
for file in .. ; do if [ x${file} != x.. ]; then name=`echo ${file} | sed -e 's/[.]c$//' -e 's/[.]asm$//'`; echo ${name}; if [ ${name}.asm = ${file} ]; then cp ${file} ${name}.s || exit 1; file=${name}.s; else true; fi; cc -O -I. -I. -I./config -c ${file}; if [ $? -eq 0 ] ; then true; else exit 1; fi; ar qc tmplibgcc1.a ${name}.o; if [ $? -eq 0 ] ; then true; else exit 1; fi; rm -f ${name}.[so]; else true; fi; done
mv tmplibgcc1.a libgcc1.a
if [ -f /usr/include/limits.h ] ; then cat ./limitx.h ./glimits.h ./limity.h > xlimits.h; else cat ./glimits.h > xlimits.h; fi
if [ -f libgcc2.ready ] ; then true; else touch libgcc2.ready; fi
rm -f tmplibgcc2.a
set -e; for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2
_lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _udiv_w_sdiv _udivmoddi4 _cmpdi2
_ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi __gcc_bcmp _varargs _eprintf _builtin_new _caps_New
_builtin_del _bb _shtab _clear_cache _trampoline __main _exit _ctors;
do echo ${name}; ./xgcc -B./ -O2 -DIN_GCC -I. -I. -I./config -c
-DL${name} ./libgcc2.c -o ${name}.o; if [ $? -eq 0 ] ; then true;
else exit 1; fi; ar rc tmplibgcc2.a ${name}.o; rm -f ${name}.o; done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_lshldi3
_ashldi3
_ashrdi3
_udiv_w_sdiv
_udivmoddi4
libmld--as1: Error: /tmp/cc003584.s, line 5: .mask must have pcreg from .frame set if any bits are set in .mask or .fmask
The relevant assembly code being questioned is:
line 266:
.text
.align 3
.globl __udivmoddi4
.ent __udivmoddi4 2
__udivmoddi4:
ldgp $29,0($27)
lda $30,-32($30)
.frame $30,32,$26
stq $9,0($30)
stq $10,8($30)
stq $11,16($30)
stq $12,24($30)
.mask 0x1e00,-32
sra $17,32,$28
sra $16,32,$8
addl $17,$31,$17
Outside the scope of my knowledge to fix this, and Alpha assembly
wizards? Patch for gcc?
Paul Tatarsky email: paul@cse.ucsc.edu
UC Santa Cruz
CIS/CE Board
Technical Staff
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: gcc 2.3.3 and alpha-osf odd assembly problem
1993-04-20 16:49 gcc 2.3.3 and alpha-osf odd assembly problem Paul Tatarsky
@ 1993-04-20 21:03 ` Paul Tatarsky
1993-05-04 21:38 ` W.J. Sun
1993-04-26 1:38 ` Oooh! Ahhh! gcc 2.3.3 for the RT! Salvatore Petetti
1 sibling, 1 reply; 5+ messages in thread
From: Paul Tatarsky @ 1993-04-20 21:03 UTC (permalink / raw)
I have been pointed at crl.dec.com:/pub/DEC/Alpha/gcc-2.3.3+-alpha.README
which apparently addresses this problem. Sorry to have asked a FAQ.
Speaking of which, anyone doing a OSF/1/Alpha FAQ? I am locally, but
I suspect somebody out there has got one.
Paul Tatarsky email: paul@cse.ucsc.edu
UC Santa Cruz
CIS/CE Board
Technical Staff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc 2.3.3 and alpha-osf odd assembly problem
1993-04-20 21:03 ` Paul Tatarsky
@ 1993-05-04 21:38 ` W.J. Sun
1993-05-05 6:18 ` Arne Henrik Juul
0 siblings, 1 reply; 5+ messages in thread
From: W.J. Sun @ 1993-05-04 21:38 UTC (permalink / raw)
Hello,
I have copied crl.dec.com:/pub/DEC/Alpha/gcc-2.3.3+-alpha.tar.Z to install
gcc on an alpha. The compilation works fine except some warnings about
"doesn't support -g". The problem comes when I run "make compare", there
are some differences there. Original gcc manual said I should not see
any difference here. Is it normal or abnormal for this paticular version
of gcc?
Thanks.
Wern-Jieh Sun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc 2.3.3 and alpha-osf odd assembly problem
1993-05-04 21:38 ` W.J. Sun
@ 1993-05-05 6:18 ` Arne Henrik Juul
0 siblings, 0 replies; 5+ messages in thread
From: Arne Henrik Juul @ 1993-05-05 6:18 UTC (permalink / raw)
In article <1s6nojINNn1n@news.u.washington.edu> wsun@twolf3.ee.washington.edu (W.J. Sun) writes:
> I have copied crl.dec.com:/pub/DEC/Alpha/gcc-2.3.3+-alpha.tar.Z to install
> gcc on an alpha. The compilation works fine except some warnings about
> "doesn't support -g". The problem comes when I run "make compare", there
> are some differences there. Original gcc manual said I should not see
> any difference here. Is it normal or abnormal for this paticular version
> of gcc?
>
> Thanks.
> Wern-Jieh Sun
The DEC OSF 1.2 assembler puts the name of the (temporary) assembly
file into the object file, probably in the data section (often near
the very end of the file). You could try using cmp -l to compare
object files to see how much they differ - if it's only the timestamp
at the beginning of the file and the temporary file, the output is
only 5-10 lines, but if it's a real difference it just goes on and
on... :-)
-arnej
--
Arne H. Juul -- arnej@lise.unit.no -- University of Trondheim, Norway
^ permalink raw reply [flat|nested] 5+ messages in thread
* Oooh! Ahhh! gcc 2.3.3 for the RT!
1993-04-20 16:49 gcc 2.3.3 and alpha-osf odd assembly problem Paul Tatarsky
1993-04-20 21:03 ` Paul Tatarsky
@ 1993-04-26 1:38 ` Salvatore Petetti
1 sibling, 0 replies; 5+ messages in thread
From: Salvatore Petetti @ 1993-04-26 1:38 UTC (permalink / raw)
Followup-To:
Distribution: world
Organization: Columbia University
Keywords: gcc 2.3.3 IBMRT
Thanks to MANY MANY individuals on the net, I am now the proud owner of
a working port of gcc for the IBM PC-RT running AIX 2.1.1. This port
is available via anony ftp at wagner.musicnet.ua.edu (130.160.156.75)
Please help me spread the word. I don't want anyone to have to go thru
what *I* went thru. :-)
Addiditionally, I have decided to set aside about 100 meg of disk space
for a IBM RT/AIX ftp site. Please notify any rt owners you may know (!)
and let them know to send any WORKING ports of popular software they
may have to this site.
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-05-05 6:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-04-20 16:49 gcc 2.3.3 and alpha-osf odd assembly problem Paul Tatarsky
1993-04-20 21:03 ` Paul Tatarsky
1993-05-04 21:38 ` W.J. Sun
1993-05-05 6:18 ` Arne Henrik Juul
1993-04-26 1:38 ` Oooh! Ahhh! gcc 2.3.3 for the RT! Salvatore Petetti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox