Closed Bug 196985 Opened 22 years ago Closed 22 years ago

NSPR forces Mips3 with MipsPro

Categories

(NSPR :: NSPR, defect)

SGI
IRIX
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nickb, Assigned: wtc)

Details

Attachments

(3 files)

BZ 4471: talks about changing config/IRIX.mk to force MipsPro to use mips3. Why? Surely how it is built should be specified via an environment variable (CFLAGS) or the system defaults (/etc/compiler.defaults). Forcing it to mips3 is very limiting. This occurs in the following files: nsprpub/config/IRIX.mk nsprpub/configure.in (and of course nsprpub/configure)
Unless SGI does not want Mozilla and Netscape browsers to run on mips3, I can't make this change. The -mips3 flag is necessary to ensure that the binaries run on mips3 even if the build machine is mips4.
Status: NEW → ASSIGNED
If you set CFLAGS, or you set the compiler.defaults file to compile mips3, the binaries will be be mips3, regardless of whether the build system is mips3 or not. IRIX is built completly on mips4 machines, and is (mostly) compiled mips3 for the very reasons you mention. However, restricting the build system to ONLY allow mips3 is wrong. In some cases we want to compile things at Misp4, to take advantage of the broader instruction set, and gain some performance benefits.
This is a philosophical difference is build systems. NSPR's build system was designed with a cross-platform developer in mind. We routinely build on more than seven operating systems, some of which have 32-bit and 64-bit builds. We cannot possibly remember the best CFLAGS for all these build configuraions. So we checked in the best CFLAGS in our build system. This design does not have the flexibilty that people who know what they are doing want. (NSS's build system, mozilla/security/coreconf, made the same design decision.) Sorry, I can't make this change.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: