From: Juan Quintela <quintela@mandrakesoft.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: linux mips mailing list <linux-mips@linux-mips.org>,
Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH]: fix compiler warnings in the math-emulator
Date: 18 Dec 2002 23:21:17 +0100 [thread overview]
Message-ID: <m2el8fnf36.fsf@demo.mitica> (raw)
In-Reply-To: <Pine.GSO.3.96.1021218194246.5977G-100000@delta.ds2.pg.gda.pl>
>>>>> "maciej" == Maciej W Rozycki <macro@ds2.pg.gda.pl> writes:
maciej> On 18 Dec 2002, Juan Quintela wrote:
maciej> Is it needed? The part that returns .mx should be optimized away by the
maciej> compiler automagically if unused.
>>
>> Idea was to make things compile without warnings, that way when you
>> change anything, you search for warnings :(
maciej> The idea is fine, sure.
>> With the changes that I sent, I have put the warnings levels down to
>> (for IP22) to:
>> - 7 C warnings
>> - 2 Asm warnings
maciej> A few warnings are unavoidable -- e.g. there is no way to shut up gas
maciej> complaining about macros expanding into multiple instructions in branch
maciej> delay slots. Too bad.
I tried the
.set nowarn
and found it didn't work.
maciej> How about this patch? -- it seems to work here (gcc 2.95.4).
Nope, the probem is that in the 3 places that I use the SETANDTEST()
macro they need the returned value.
Later, Juan.
maciej> --
maciej> + Maciej W. Rozycki, Technical University of Gdansk, Poland +
maciej> +--------------------------------------------------------------+
maciej> + e-mail: macro@ds2.pg.gda.pl, PGP key available +
maciej> patch-mips-2.4.20-pre6-20021212-setcx-0
maciej> diff -up --recursive --new-file linux-mips-2.4.20-pre6-20021212.macro/arch/mips/math-emu/ieee754int.h linux-mips-2.4.20-pre6-20021212/arch/mips/math-emu/ieee754int.h
maciej> --- linux-mips-2.4.20-pre6-20021212.macro/arch/mips/math-emu/ieee754int.h 2002-12-16 17:17:55.000000000 +0000
maciej> +++ linux-mips-2.4.20-pre6-20021212/arch/mips/math-emu/ieee754int.h 2002-12-18 18:31:51.000000000 +0000
maciej> @@ -58,10 +58,10 @@
maciej> #define CLPAIR(x,y) ((x)*6+(y))
maciej> #define CLEARCX \
maciej> - (ieee754_csr.cx = 0)
maciej> + (ieee754_csr.cx = 0)
maciej> #define SETCX(x) \
maciej> - (ieee754_csr.cx |= (x),ieee754_csr.sx |= (x),ieee754_csr.mx & (x))
maciej> + ({ieee754_csr.cx |= (x); ieee754_csr.sx |= (x); ieee754_csr.mx & (x);})
maciej> #define TSTX() \
maciej> (ieee754_csr.cx & ieee754_csr.mx)
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
next prev parent reply other threads:[~2002-12-18 22:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-18 1:43 [PATCH]: fix compiler warnings in the math-emulator Juan Quintela
2002-12-18 16:43 ` Maciej W. Rozycki
2002-12-18 17:51 ` Juan Quintela
2002-12-18 18:47 ` Maciej W. Rozycki
2002-12-18 19:42 ` Greg Lindahl
2002-12-18 19:50 ` Hartvig Ekner
2002-12-18 19:50 ` Hartvig Ekner
2002-12-18 21:09 ` Maciej W. Rozycki
2002-12-18 21:27 ` Greg Lindahl
2002-12-18 22:27 ` Juan Quintela
2002-12-19 11:52 ` Maciej W. Rozycki
2002-12-18 22:21 ` Juan Quintela [this message]
2002-12-19 11:44 ` Maciej W. Rozycki
2002-12-19 0:20 ` Ralf Baechle
2002-12-19 11:09 ` Maciej W. Rozycki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2el8fnf36.fsf@demo.mitica \
--to=quintela@mandrakesoft.com \
--cc=linux-mips@linux-mips.org \
--cc=macro@ds2.pg.gda.pl \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.