[PATCH][C++] Fix PR86763, wrong-code with TYPE_TYPELESS_STORAGE
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Aug 21 09:14:00 GMT 2018
On 20/08/18 10:33, Richard Biener wrote:
> On Mon, 20 Aug 2018, Szabolcs Nagy wrote:
>> On 02/08/18 09:30, Richard Biener wrote:
...
>>> + clock_gettime(CLOCK_REALTIME, &t);
>>
>> this fails on targets without clock_gettime (baremetal)
>> or targets that need -lrt at link time.
>>
>> can we use something else here?
>> e.g. time(&t) works on baremetal and does not depend on -lrt.
>
> You'd have to check that the original bug still reproduces. Since
> it depends on scheduling chances may be that it is fragile :/
>
> I suppose we could restrict the testcase to { *-*-linux }?
>
i decided to restrict it to linux:
clock_gettime is not available on some baremetal targets
and may require -lrt on some non-linux targets.
OK for trunk?
gcc/testsuite/ChangeLog:
2018-08-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
* g++.dg/torture/pr86763.C: Restrict to *-*-linux*.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr86763.diff
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180821/4efcfc93/attachment.bin>
More information about the Gcc-patches
mailing list