[spu, i386-qnx] Remove unnecessary uses of builtin_define_std
Ulrich Weigand
uweigand@de.ibm.com
Tue Oct 5 16:33:00 GMT 2010
FX Coudert wrote:
> spu_cpu_cpp_builtins (struct cpp_reader *pfile)
> {
> - builtin_define_std ("__SPU__");
> + builtin_define ("__SPU__");
This (and the following changes) would break SPU build, because
"builtin_define" is only defined as a macro within c-cppbuiltins.c,
so it can be used directly from the TARGET_CPU_CPP_BUILTINS
macro, but not if the macro calls another function.
I guess you can use
cpp_define (pfile, "__SPU__");
instead.
> + cpp_assert (pfile, "__vector=__attribute__((__spu_vector__))");
This looks wrong; it should be cpp_define, not cpp_assert.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
More information about the Gcc-patches
mailing list