| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
April 02, 2014 core.atomic and -profile switch | ||||
|---|---|---|---|---|
| ||||
Hello
For this test program ('test.d'):
import core.atomic;
int func1(shared int a)
{
return atomicLoad(a);
}
These invocations of dmd succeed:
1. dmd -main test.d
2. dmd -main -debug test.d
3. dmd -main -release test.d
But this one fails:
dmd -main -profile test.d
With error:
/usr/include/dmd/druntime/import/core/atomic.d(910): Error: asm statements are assumed to throw
Is there a workaround for this? I have a decent sized codebase which I wish to profile for hotspots - but it won't compile with '-profile'.
Warm Regards,
Saurabh
| ||||
April 02, 2014 Re: core.atomic and -profile switch | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Saurabh Das | Saurabh Das:
> With error:
> /usr/include/dmd/druntime/import/core/atomic.d(910): Error: asm statements are assumed to throw
>
> Is there a workaround for this? I have a decent sized codebase which I wish to profile for hotspots - but it won't compile with '-profile'.
Isn't this a recent regression?
Bye,
bearophile
| |||
April 02, 2014 Re: core.atomic and -profile switch | ||||
|---|---|---|---|---|
| ||||
Posted in reply to bearophile |
I see. I wasn't sure - hence I asked.
In general, how do I check if this is a known issue?
Thanks,
Saurabh
On Wednesday, 2 April 2014 at 11:19:16 UTC, bearophile wrote:
> Saurabh Das:
>
>> With error:
>> /usr/include/dmd/druntime/import/core/atomic.d(910): Error: asm statements are assumed to throw
>>
>> Is there a workaround for this? I have a decent sized codebase which I wish to profile for hotspots - but it won't compile with '-profile'.
>
> Isn't this a recent regression?
>
> Bye,
> bearophile
| |||
April 02, 2014 Re: core.atomic and -profile switch | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Saurabh Das | Saurabh Das: > I see. I wasn't sure - hence I asked. https://d.puremagic.com/issues/show_bug.cgi?id=11471 > In general, how do I check if this is a known issue? Search in Bugzilla and/or ask to people. Bye, bearophile | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply