Displaying 5 results from an estimated 5 matches for "strahinja".
2016 Feb 09
2
Question about __builtin_object_size
...his out!
George
On Tue, Feb 9, 2016 at 11:06 AM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> What version of clang/LLVM are you using? George (cc'ed ) has improved
> __builtin_object_size support in Clang recently.
>
> David
>
> On Tue, Feb 9, 2016 at 6:37 AM, Strahinja Petrovic via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>> I have question about __builtin_object_size behaviour. LLVM for
>> __builtin_object_size function doesn't calculate correct value when pointer
>> is used only in __builtin_objec...
2016 Feb 09
2
Question about __builtin_object_size
...this issue:
include <assert.h>
int main() {
struct V { char buf1[10];
int b;
char buf2[10];
} var;
char *p = &var.buf1[1], *q = &var.b;
assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
return 0;
}
Thanks,
Strahinja
2016 Mar 17
3
Problem with __builtin_object_size when it depends on a condition
I made a mistake here, I get zero same as you. I want to fix it to get
correct value.
On 16.03.2016. 19:28, Duncan P. N. Exon Smith wrote:
>> On 2016-Mar-16, at 09:39, Strahinja Petrovic via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> Optimizer doesn't know how to calculate the object size when it finds condition that cannot be eliminated. There is example:
>>
>> -----------------------------------------------
>> #include<s...
2016 Mar 16
4
Problem with __builtin_object_size when it depends on a condition
Optimizer doesn't know how to calculate the object size when it finds
condition that cannot be eliminated. There is example:
-----------------------------------------------
#include<stdlib.h>
#define STATIC_BUF_SIZE 10
#define LARGER_BUF_SIZE 30
size_t foo(int flag) {
char *cptr;
char chararray[LARGER_BUF_SIZE];
char chararray2[STATIC_BUF_SIZE];
if(flag)
cptr =
2016 Jun 17
2
question about ARM 32 big endian
Hi everyone,
I have a question about ARM 32 big endian calling convention. It's about
sending small structures as function argument.
For example if passing 3 chars in a structure should alignment in
register (argument register for passing those chars in function) be
right-adjusted ?
LLVM (trunk version) is passing those chars left-adjusted in register,
and trying to read them like they