This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: recent i386-tdep change breaks build


   Date: Wed, 4 Apr 2001 00:12:58 -0500
   From: Robert Lipe <robertlipe@usa.net>

   I haven't roamed the CVS logs to be sure Mark's change is the smoking
   gun, but this can't be right.

   void
   i386_extract_return_value (struct type *type, char *regbuf, char *valbuf)
   {
     int len = TYPE_LENGTH (type);

     if (TYPE_CODE (type) == TYPE_CODE_STRUCT
	 && TYPE_NFIELDS (type) == 1)
       return i386_extract_return_value (TYPE_FIELD_TYPE (type, 0),
					 regbuf, valbuf);

   (and another occurrence of similar return)   We're tryint to return a value
   from a void function?   Is this perhaps another GCC-ism (sigh) that sneaked
   in?

Argh, GCC doesn't warn about this.  Anyway, this is my mistake.  I was
somehow thinking that i386_extract_return_value *did* have a non-void
return type.

I'll fix it when the CVS machine is reachable again.

Thanks for spotting this,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]