* [RFA] patch for mips gdb build failure with latest gcc
@ 2001-11-07 10:37 Fred Fish
2001-11-07 10:43 ` Andrew Cagney
2001-11-07 11:31 ` Daniel Jacobowitz
0 siblings, 2 replies; 4+ messages in thread
From: Fred Fish @ 2001-11-07 10:37 UTC (permalink / raw)
To: gdb-patches; +Cc: fnf
Gdb for mips does not currently build with the latest gcc. The error
message is:
In file included from support.c:26:
sim-main.h:370: unnamed fields of type other than struct or union are not allowed
The problem is an enum declaration inside a struct declaration, which
is apparently now illegal. This patch fixes it.
2001-11-17 Fred Fish <fnf@redhat.com>
* sim-main.h (float_operation): Move enum declaration outside
of _sim_cpu struct declaration.
Index: sim-main.h
===================================================================
RCS file: /cvs/src/src/sim/mips/sim-main.h,v
retrieving revision 1.6
diff -u -p -r1.6 sim-main.h
--- sim-main.h 2001/04/12 14:53:20 1.6
+++ sim-main.h 2001/11/18 04:16:54
@@ -297,6 +297,13 @@ do { \
} while (0)
+enum float_operation
+ {
+ FLOP_ADD, FLOP_SUB, FLOP_MUL, FLOP_MADD,
+ FLOP_MSUB, FLOP_MAX=10, FLOP_MIN, FLOP_ABS,
+ FLOP_ITOF0=14, FLOP_FTOI0=18, FLOP_NEG=23
+ };
+
struct _sim_cpu {
@@ -361,13 +368,6 @@ struct _sim_cpu {
#endif
-
-enum float_operation
- {
- FLOP_ADD, FLOP_SUB, FLOP_MUL, FLOP_MADD,
- FLOP_MSUB, FLOP_MAX=10, FLOP_MIN, FLOP_ABS,
- FLOP_ITOF0=14, FLOP_FTOI0=18, FLOP_NEG=23
- };
/* To keep this default simulator simple, and fast, we use a direct
vector of registers. The internal simulator engine then uses
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [RFA] patch for mips gdb build failure with latest gcc
2001-11-07 10:37 [RFA] patch for mips gdb build failure with latest gcc Fred Fish
@ 2001-11-07 10:43 ` Andrew Cagney
2001-11-07 11:31 ` Daniel Jacobowitz
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2001-11-07 10:43 UTC (permalink / raw)
To: fnf; +Cc: gdb-patches
> Gdb for mips does not currently build with the latest gcc. The error
> message is:
>
> In file included from support.c:26:
> sim-main.h:370: unnamed fields of type other than struct or union are not allowed
>
> The problem is an enum declaration inside a struct declaration, which
> is apparently now illegal. This patch fixes it.
>
>
> 2001-11-17 Fred Fish <fnf@redhat.com>
>
> * sim-main.h (float_operation): Move enum declaration outside
> of _sim_cpu struct declaration.
>
Little choice on this one :-)
yes, 'n' thanks.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFA] patch for mips gdb build failure with latest gcc
2001-11-07 10:37 [RFA] patch for mips gdb build failure with latest gcc Fred Fish
2001-11-07 10:43 ` Andrew Cagney
@ 2001-11-07 11:31 ` Daniel Jacobowitz
2001-11-07 12:42 ` Fred Fish
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2001-11-07 11:31 UTC (permalink / raw)
To: fnf; +Cc: gdb-patches
On Sat, Nov 17, 2001 at 09:17:55PM -0700, Fred Fish wrote:
> Gdb for mips does not currently build with the latest gcc. The error
> message is:
>
> In file included from support.c:26:
> sim-main.h:370: unnamed fields of type other than struct or union are not allowed
>
> The problem is an enum declaration inside a struct declaration, which
> is apparently now illegal. This patch fixes it.
>
>
> 2001-11-17 Fred Fish <fnf@redhat.com>
>
> * sim-main.h (float_operation): Move enum declaration outside
> of _sim_cpu struct declaration.
For the record, I'm pretty sure this is a bug in GCC, and I think it
may have been fixed on the trunk. How recent is your "latest" GCC?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-18 7:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 10:37 [RFA] patch for mips gdb build failure with latest gcc Fred Fish
2001-11-07 10:43 ` Andrew Cagney
2001-11-07 11:31 ` Daniel Jacobowitz
2001-11-07 12:42 ` Fred Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox