This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH-ppc 1/5] Add basic support for new VSX register set


> > +      t = init_composite_type ("__ppc_builtin_type_vec128", TYPE_CODE_UNION);
> > +      append_composite_type_field (t, "uint128", builtin_type_uint128);
> > +      append_composite_type_field (t, "v4_float",
> > +				   init_vector_type (builtin_type_float, 4));
> > +      append_composite_type_field (t, "v4_int32",
> > +				   init_vector_type (builtin_type_int32, 4));
> > +      append_composite_type_field (t, "v8_int16",
> > +				   init_vector_type (builtin_type_int16, 8));
> > +      append_composite_type_field (t, "v16_int8",
> > +				   init_vector_type (builtin_type_int8, 16));
> 
> Please use builtin_type (gdbarch)->builtin_... instead of builtin_type_...
> I'm just trying to get rid of those ...

This might have been a bit confusing: the platform-independent types like
builtin_type_int8 are of course fine to use.  I was referring to the
platform-dependent types like builtin_type_float (and builtin_type_double
that you're using elsewhere).

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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