From: adisaacs@trurl.resnet.mtu.edu (Andy Isaacson)
Subject: Re: Netscape for Alpha?
Date: 1998/04/07 [thread overview]
Message-ID: <slrn6ijd7p.gol.adisaacs@trurl.resnet.mtu.edu> (raw)
In-Reply-To: 3528c791.0@rainbow.hrz.uni-siegen.de
On 6 Apr 98 12:16:17 GMT, Nils Faerber <nils@unix-ag.org> spake unto us:
> I think I found a problem with lesstif.
> Somewhere in Xfe some files reference two functions called _XmPopup and
> _XmPopdown which are not existent in lesstif; I donot know about Motif.
> I commented out the offending lines to get it to link :(
That's what I did as well.
> Afterwards I saw that the last link of the binary is done with g++. Is this
> really necessary? Because linking with g++ casues libg++ to be linked to the
> binary which is not needed.
I _think_ that g++ is necessary, perhaps for static constructors? I really
don't know. Anyway, I just used egcs and it seems to work (but see below).
> After linking I tried to start mozilla-export ... and it ...
> did not run :( It crashed with a floating point exeption right after start
> (i.e. no windows appeared, etc.). This was today morning at about 05:00am
> and I decided to go to bed instead of running gdb on it. I will try so
> tonight.
> So far my experiences.
The floating point exception is apparently caused by a bug in gcc. David
Mosberger-Tang posted a patch for gcc 2.7.2.something here, and it can be
applied to egcs with some fuss. You could try the EGCS cvs snapshot, but I
ran into some other problems with that code. Here's the patches I applied
to egcs-1.0.2 in order to get mozilla (closer to) running:
(apply in gcc/config/alpha)
--- alpha.c.orig Mon Apr 6 01:27:38 1998
+++ alpha.c Mon Apr 6 10:54:18 1998
@@ -1417,6 +1417,25 @@
fputs ("su", file);
break;
+ case '(':
+ /* Generates trap-mode suffix for instructions that accept the
+ v, sv, and svi suffix. The only instruction that needs this
+ is cvttq. */
+ switch(alpha_fptm)
+ {
+ case ALPHA_FPTM_N:
+ case ALPHA_FPTM_U:
+ fputs ("v", file);
+ break;
+ case ALPHA_FPTM_SU:
+ fputs ("sv", file);
+ break;
+ case ALPHA_FPTM_SUI:
+ fputs ("svi", file);
+ break;
+ }
+ break;
+
case ')':
/* Generates trap-mode suffix for instructions that accept the u, su,
and sui suffix. This is the bulk of the IEEE floating point
--- alpha.h.orig Tue Nov 25 15:53:07 1997
+++ alpha.h Tue Apr 7 00:58:18 1998
@@ -2052,6 +2052,10 @@
' Generates trap-mode suffix for instructions that accept the
su suffix only (cmpt et al).
+ ( Generates trap-mode suffix for instructions that accept the
+ v, sv, and svi suffix. The only instruction that needs this
+ is cvttq.
+
) Generates trap-mode suffix for instructions that accept the
u, su, and sui suffix. This is the bulk of the IEEE floating
point instructions (addt et al).
@@ -2067,8 +2071,8 @@
*/
#define PRINT_OPERAND_PUNCT_VALID_P(CODE) \
- ((CODE) == '&' || (CODE) == '\'' || (CODE) == ')' || (CODE) == '+' \
- || (CODE) == ',' || (CODE) == '-')
+ ((CODE) == '&' || (CODE) == '\'' || (CODE) == '(' || (CODE) == ')' \
+ || (CODE) == '+' || (CODE) == ',' || (CODE) == '-')
\f
/* Print a memory address as an operand to reference that memory location. */
--- alpha.md.orig Fri Nov 14 09:48:31 1997
+++ alpha.md Tue Apr 7 00:58:14 1998
@@ -1507,20 +1507,39 @@
[(set_attr "type" "fadd")
(set_attr "trap" "yes")])
+(define_insn ""
+ [(set (match_operand:DI 0 "register_operand" "=&f")
+ (fix:DI (match_operand:DF 1 "reg_or_fp0_operand" "fG")))]
+ "TARGET_FP && alpha_tp == ALPHA_TP_INSN"
+ "cvt%-q%(c %R1,%0"
+ [(set_attr "type" "fadd")
+ (set_attr "trap" "yes")])
+
(define_insn "fix_truncdfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(fix:DI (match_operand:DF 1 "reg_or_fp0_operand" "fG")))]
"TARGET_FP"
- "cvt%-qc %R1,%0"
- [(set_attr "type" "fadd")])
+ "cvt%-q%(c %R1,%0"
+ [(set_attr "type" "fadd")
+ (set_attr "trap" "yes")])
+
+(define_insn ""
+ [(set (match_operand:DI 0 "register_operand" "=&f")
+ (fix:DI (float_extend:DF
+ (match_operand:SF 1 "reg_or_fp0_operand" "fG"))))]
+ "TARGET_FP && alpha_tp == ALPHA_TP_INSN"
+ "cvt%-q%(c %R1,%0"
+ [(set_attr "type" "fadd")
+ (set_attr "trap" "yes")])
(define_insn "fix_truncsfdi2"
[(set (match_operand:DI 0 "register_operand" "=f")
(fix:DI (float_extend:DF
(match_operand:SF 1 "reg_or_fp0_operand" "fG"))))]
"TARGET_FP"
- "cvt%-qc %R1,%0"
- [(set_attr "type" "fadd")])
+ "cvt%-q%(c %R1,%0"
+ [(set_attr "type" "fadd")
+ (set_attr "trap" "yes")])
(define_insn ""
[(set (match_operand:SF 0 "register_operand" "=&f")
Unfortunately, although this patch allows Mozilla to start up, I still have
problems. Specifically, it segfaults after about 30 seconds (on a UDB);
when I run it under GDB gdb swallows 200 MB of swap and then tells me that
it occurred in memmove. GDB is unable to produce a full backtrace.
Hope this helps someone,
-andy
--
Andy Isaacson adisaacs@mtu.edu adi@acm.org Fight Spam, join CAUCE:
http://www.csl.mtu.edu/~adisaacs/ http://www.cauce.org/
next prev parent reply other threads:[~1998-04-07 4:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-01 5:00 Netscape for Alpha? Nils Faerber
1998-04-01 5:00 ` Arun Sharma
1998-04-02 5:00 ` Nils Faerber
1998-04-02 5:00 ` Arun Sharma
1998-04-02 5:00 ` Nils Faerber
1998-04-04 5:00 ` slewis10
1998-04-04 5:00 ` Arun Sharma
1998-04-04 5:00 ` limping mozilla David.Mosberger
1998-04-06 4:00 ` Netscape for Alpha? Nils Faerber
1998-04-07 4:00 ` Andy Isaacson [this message]
1998-04-07 4:00 ` Nils Faerber
1998-04-07 4:00 ` Alpha NT and Wordperfect Suite 8 Install problem Dr.Vibhas Aravamuthan
1998-04-08 4:00 ` Nils Faerber
1998-04-13 4:00 ` Mike Parson
1998-04-08 4:00 ` Netscape for Alpha? Andy Isaacson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox