Hello,

On Tue, Feb 25 2025, Jakub Jelinek wrote:
> On Tue, Feb 25, 2025 at 04:48:37PM +0100, Martin Jambor wrote:
>> --- /dev/null
>> +++ b/gcc/testsuite/g++.dg/lto/pr118785_0.C
>> @@ -0,0 +1,14 @@
>> +// { dg-lto-do link }
>> +// { dg-require-effective-target fpic }x
>
> Not a review, just a nit, what is the x doing above?

that is of course a typo, thanks for spotting it, I'll remove it.

Martin

>
>> +// { dg-lto-options { "-O3 -flto -fPIC" } }
>> +
>> +void WriteLiteral( unsigned long data, unsigned long bits) {}
>> +void WriteQIndexDelta( short qDelta)
>> +{
>> +  WriteLiteral(__builtin_abs(qDelta), 4);
>> +}
>> +__attribute((used))
>> +void ff(signed char *qIndexDeltaLumaDC) {
>> +  WriteQIndexDelta(*qIndexDeltaLumaDC);
>> +}
>> +int main(){}
>
>       Jakub

Reply via email to