Displaying 3 results from an estimated 3 matches for "targetm_common".
2011 Aug 16
0
[LLVMdev] Segmented Stacks: Pre-midterm work
...o. I had
a look at the GO front-end and I see this suspicious code:
/* This is called by the Go frontend proper to add data to the
.go_export section. */
void
go_write_export_data (const char *bytes, unsigned int size)
{
static section* sec;
if (sec == NULL)
{
gcc_assert (targetm_common.have_named_sections);
sec = get_section (".go_export", SECTION_DEBUG, NULL);
}
switch_to_section (sec);
assemble_string (bytes, size);
}
So you might want to check if copying .go_export sections from the GCC compiled
assembler file into the dragonegg compile assembler...
2011 Aug 15
4
[LLVMdev] Segmented Stacks: Pre-midterm work
Hi!
I've been working on coroutines for some time, and it seems you were
right - it makes much more sense to have regular C (and assembly) code
for handling coroutines. For instance, I'd otherwise would have to
make an assumption about the threading model the platform has (or
assume there are no threads at all, which prevents me from allowing
goroutine like ("run parallel till you
2011 Aug 16
2
[LLVMdev] Segmented Stacks: Pre-midterm work
...us code:
>
> /* This is called by the Go frontend proper to add data to the
> .go_export section. */
>
> void
> go_write_export_data (const char *bytes, unsigned int size)
> {
> static section* sec;
>
> if (sec == NULL)
> {
> gcc_assert (targetm_common.have_named_sections);
> sec = get_section (".go_export", SECTION_DEBUG, NULL);
> }
>
> switch_to_section (sec);
> assemble_string (bytes, size);
> }
:-(
Fixing things like this was fairly painful in the past. It is sad to see new cases showing up.
&...