Karim BELABAS on Mon, 16 Oct 2000 15:04:50 +0200 (MET DST)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: 2.0.20.beta warnings under MIPS

[Peter Montgomery: pari-dev-966]
> If we compile version 2.0.20.beta on MIPS using the native compiler
> MIPSPro 7.2.1, IRIX 6.5) with -64 -fullwarn (64-bit longs and pointers,
> full warnings) we get over a megabyte of compiler output. I summarize
> some causes below:


  thanks for all the Warnings. I just finished checking the list:

> remark(1506): implicit conversion from "unsigned long"
The uses of avma & friends should be indeed be cleaned up (use
ulong everywhere). I haven't done it yet, besides fixing the prototype
inconsistency for evalvalp/evalexpo.

> warning(1048): cast between pointer-to-object and pointer-to-function
I thought (void*) should have been enough. As long as we don't stumble on a
compiler that does produce broken code (and we don't have a nice fix), I'll
leave it as it stands

> "../src/basemath/bibli2.c", line 916: remark(1498): no prototype for the
> call

I would suppress all Warnings this type (missing prototype), since we allow
implicit declaration provided the definition comes first in the file [ I
checked that gcc -Wall had indeed caught all the other occurences ].
Besides the MIPSPro compiler seems to miss a quite few prototypes that
_are_ there, e.g did_break(),loop_break() in src/language/anal.h,
term_width(), term_height() in src/gp/gp.h, etc]

With the current CVS version, adding -woff 1048,1498,1506 to CFLAGS, I
would expect no other Warning than the following one [retained for the time
being, for the sake of calling interface consistency]:

cc -c -g -64 -fullwarn -woff 1048,1506 -I. -I../src/headers  -o alglin1.
o ../src/basemath/alglin1.c
"../src/basemath/alglin1.c", line 1859: remark(1174): parameter "T" was
          declared but never referenced
  static GEN Fq_add(GEN x, GEN y, GEN T, GEN p)

Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
PARI/GP Home Page: http://www.parigp-home.de/