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: David.Mosberger@REMOVEacmTHIS.org Subject: limping mozilla... Date: 1998/04/04 Message-ID: #1/1 X-Deja-AN: 340787767 References: <3522d242.0@rainbow.hrz.uni-siegen.de> <3523795c.0@rainbow.hrz.uni-siegen.de> To: axp-list@redhat.com Organization: Home Newsgroups: comp.os.linux.alpha If you want to get a mozilla that's at least limping along, try the following two patches. The first one is for mozilla itself, the second for gcc (it should be applied on top of the glibc-2.0.5c-10.src.rpm sources). I built mozilla using lesstif-0.82 and with the two patches below in place, things work reasonably well. There are plenty bugs left to hunt though and it currently crashes every couple of clicks, but it's a start. --david --- ns/nsprpub/pr/src/md/unix/unix.c~ Sat Apr 4 03:19:19 1998 +++ ns/nsprpub/pr/src/md/unix/unix.c Sat Apr 4 03:18:58 1998 @@ -2484,7 +2484,7 @@ goto exit; } - prot = PROT_READ|PROT_WRITE; + prot = PROT_READ|PROT_WRITE|PROT_EXEC; rv = mmap((vaddr != 0) ? vaddr : lastaddr, size, prot, _MD_MMAP_FLAGS, _pr_zero_fd, 0); -------------gcc patch-------------------------------------- diff -urN gcc-2.7.2.3/config/alpha/alpha.c gcc-2.7.2.3-fixed/config/alpha/alpha.c --- gcc-2.7.2.3/config/alpha/alpha.c Sat Apr 4 01:15:38 1998 +++ gcc-2.7.2.3-fixed/config/alpha/alpha.c Fri Apr 3 23:44:06 1998 @@ -1174,6 +1174,18 @@ } break; + case '(': + switch (alpha_fptm) + { + case ALPHA_FPTM_N: + case ALPHA_FPTM_U: + fputs ("vc", file); + break; + case ALPHA_FPTM_SU: fputs ("svc", file); break; + case ALPHA_FPTM_SUI: fputs ("svi", file); break; + } + break; + case ')': switch (alpha_fptm) { diff -urN gcc-2.7.2.3/config/alpha/alpha.h gcc-2.7.2.3-fixed/config/alpha/alpha.h --- gcc-2.7.2.3/config/alpha/alpha.h Sat Apr 4 01:15:37 1998 +++ gcc-2.7.2.3-fixed/config/alpha/alpha.h Fri Apr 3 22:16:28 1998 @@ -1964,7 +1964,9 @@ ' Generates trap-mode suffix for instructions that accept the su suffix only (cmpt et al). - ( Unused. + ( Generates trap-mode suffix for instructions that accept the + c, svc, and svic 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 diff -urN gcc-2.7.2.3/config/alpha/alpha.md gcc-2.7.2.3-fixed/config/alpha/alpha.md --- gcc-2.7.2.3/config/alpha/alpha.md Sat Apr 4 01:15:25 1998 +++ gcc-2.7.2.3-fixed/config/alpha/alpha.md Fri Apr 3 22:49:45 1998 @@ -1155,16 +1155,18 @@ [(set (match_operand:DI 0 "register_operand" "=f") (fix:DI (match_operand:DF 1 "reg_or_fp0_operand" "fG")))] "TARGET_FP" - "cvttqc %R1,%0" - [(set_attr "type" "fpop")]) + "cvttq%( %R1,%0" + [(set_attr "type" "fpop") + (set (attr "trap") (const_int 1))]) (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" - "cvttqc %R1,%0" - [(set_attr "type" "fpop")]) + "cvttq%( %R1,%0" + [(set_attr "type" "fpop") + (set (attr "trap") (const_int 1))]) (define_insn "" [(set (match_operand:SF 0 "register_operand" "=&f")