From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,8f2471f1843203bd X-Google-Attributes: gid111c93,public From: adisaacs@trurl.resnet.mtu.edu (Andy Isaacson) Subject: Re: Netscape for Alpha? Date: 1998/04/07 Message-ID: #1/1 X-Deja-AN: 341602172 References: <3522d242.0@rainbow.hrz.uni-siegen.de> <3523795c.0@rainbow.hrz.uni-siegen.de> <3528c791.0@rainbow.hrz.uni-siegen.de> Reply-To: adisaacs@mtu.edu Organization: Michigan Technological University Newsgroups: comp.os.linux.alpha On 6 Apr 98 12:16:17 GMT, Nils Faerber 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) == '-') /* 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/