Hi, I also encountered these complaints about undefined c_global_trees while
trying to compile the latest GDC with GCC v4.5.2 using MinGW64 and MSYS (native
--build=x86_64-w64-mingw32). I've been trying to build an up-to-date x64 D2
compiler for Windows to finally start playing around with D.
== Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article
> How do I debug gdc to find where the crash happens? Am I relegated to the
printf debugger? =)
> -Mike
gdc -c foo.d -wrapper gdb,--args
Will invoke the compiler under "gdb --args".
== Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article
> When doing -combine, is there a way to get gdc to feed all of the source to
> the
frontend all at once, such that all the definitions/bodies/etc. are all present
so
that inlining can occur? I would imagine even this strategy f
Trass3r Wrote:
> > // Assume __v4sf is defined by the compiler
> > pragma(set_attribute, _mm_add_ps, always_inline, artificial);
> > __v4sf _mm_add_ps (__v4sf __A, __v4sf __B)
> > {
> > return __builtin_ia32_addps(__A, __B);
> > }
>
> 2 notes:
> Isn't it pragma(GNU_set_attribute?
>
> And you
// Assume __v4sf is defined by the compiler
pragma(set_attribute, _mm_add_ps, always_inline, artificial);
__v4sf _mm_add_ps (__v4sf __A, __v4sf __B)
{
return __builtin_ia32_addps(__A, __B);
}
2 notes:
Isn't it pragma(GNU_set_attribute?
And you should be able to do
pragma(GNU_attribute, alwa
In my adventures with adding gcc __builtin_* functions, I was able to get them
to work if I defined any VECTOR_TYPE gcc trees as a D struct (long story, for
another post). When adding the builtin structs, if I registered the struct
definitions in the gcc.builtins module, and then built phobos2,
So, as I've been working on getting the gcc builtins available to D code
(somewhat successfully as of last night, I might add), I've run into a fairly
significant inlining problem.
Given a function definition in D, where I want to force inlining:
// Assume __v4sf is defined by the compiler
prag