From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: PATCH: Workaround IRIX 5 compilation problem
Date: Wed, 28 Apr 2004 22:47:00 -0000 [thread overview]
Message-ID: <16528.13404.46736.251705@xayide.TechFak.Uni-Bielefeld.DE> (raw)
In-Reply-To: <40901FC3.1080704@gnu.org>
Andrew Cagney writes:
> Does the attached also work? This avoids blindly un/redefining _KMEMUSER.
Test in progress.
Two comments: you may want to keep the comment about the IRIX 5
<sys/proc.h> workaround in configure.in.
> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.in,v
> retrieving revision 1.151
> diff -u -r1.151 configure.in
> --- configure.in 25 Apr 2004 20:42:45 -0000 1.151
> +++ configure.in 28 Apr 2004 21:16:44 -0000
> @@ -632,7 +632,10 @@
> *-*-solaris2.[[6789]])
> AC_DEFINE(NEW_PROC_API)
> ;;
> - esac
> + mips-sgi-irix5*)
> + AC_DEFINE([_KMEMUSER], 1)
> + ;;
> + esac
Lost one space before esac :-)
I've already found one other (completely unrelated) problem: this time, I'm
building with gcc 3.5 from CVS: the build failed here:
/vol/gnu/src/gdb/gdb-6.1/sim/mips/interp.c: In function `mips_core_signal':
/vol/gnu/src/gdb/gdb-6.1/sim/mips/interp.c:2326: error: invalid lvalue in assignment
/vol/gnu/src/gdb/gdb-6.1/sim/mips/interp.c:2334: error: invalid lvalue in assignment
make[2]: *** [interp.o] Error 1
This is due to http://gcc.gnu.org/gcc-3.4/changes.html (The cast-as-lvalue
extension has been removed for C++ and deprecated for C and Objective-C.)
#define COP0_BADVADDR ((unsigned32)(COP0_GPR[8]))
The assignments to COP0_BADVADDR are hard errors now.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
next prev parent reply other threads:[~2004-04-28 22:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 20:43 Rainer Orth
2004-04-28 21:18 ` Andrew Cagney
2004-04-28 22:47 ` Rainer Orth [this message]
2004-04-29 0:08 ` Rainer Orth
2004-04-29 14:30 ` Andrew Cagney
2004-04-29 16:23 ` Rainer Orth
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=16528.13404.46736.251705@xayide.TechFak.Uni-Bielefeld.DE \
--to=ro@techfak.uni-bielefeld.de \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox