search for: fputc_unlock

Displaying 11 results from an estimated 11 matches for "fputc_unlock".

Did you mean: fputc_unlocked
2018 May 09
0
"Replace locked IO with unlocked IO" optimizations
It's probably worth going into a little more detail... a lot of people read llvmdev, and most of them won't click the link or follow the whole discussion. The transform in question is replacing "fputc(...)" with "fputc_unlocked(...)" when we can prove the FILE* doesn't escape. The question is whether it's safe for the compiler to emit a call to fputc_unlocked() on Linux, given it's a non-standard extension.  The bit I'm most worried about is some user defining a function named fputc_unlocked; it...
2018 May 08
2
"Replace locked IO with unlocked IO" optimizations
Hello, Please check this patch: https://reviews.llvm.org/D45736 as Eli noted, other opinions are highly welcomed.. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180509/c2eb9888/attachment.html>
2018 May 09
1
"Replace locked IO with unlocked IO" optimizations
...Friedman, Eli via llvm-dev wrote: > It's probably worth going into a little more detail... a lot of people > read llvmdev, and most of them won't click the link or follow the > whole discussion. > > The transform in question is replacing "fputc(...)" with > "fputc_unlocked(...)" when we can prove the FILE* doesn't escape.  The > question is whether it's safe for the compiler to emit a call to > fputc_unlocked() on Linux, given it's a non-standard extension.  The > bit I'm most worried about is some user defining a function named > f...
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
...PE, VOID_TYPE)) 4765│ return false; 4766│ printf("THERE!!\n") Is there a way to nicely dump arglist? gdb's print *arglist shows too much information.... $ /home/edwin/llvm-svn/obj42/./prev-gcc/cc1 charset.i vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked gnu_dev_major gnu_dev_minor gnu_dev_makedev atof atoi atol atoll stat lstat fstat mknod cpp_in_system_header ustrcmp ustrncmp ustrcspn ustrlen uxstrdup ustrchr ufputs one_utf8_to_cppchar one_cppchar_to_utf8 one_utf8_to_utf32 one_utf32_t...
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
Interestingly, in the .i file there are 2 __builtin_alloca, and EmitBuiltinAlloca is only being called once. Andrew On 2/16/08, Andrew Lenharth <andrewl at lenharth.org> wrote: > libcpp/charset.c:631 turns into: > > %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly > ; <i64> [#uses=1] > %tmp18 = tail call i64 @strlen( i8* %from ) nounwind
2012 Jan 20
1
Building R on RHEL 5
...inition of `putchar_unlocked' Rmain.o:/usr/include/bits/stdio.h:104: first defined here libR.a(main.o): In function `putc_unlocked': /usr/include/bits/stdio.h:97: multiple definition of `putc_unlocked' Rmain.o:/usr/include/bits/stdio.h:97: first defined here libR.a(main.o): In function `fputc_unlocked': ... several thousand similar errors... ... /usr/include/stdlib.h:330: multiple definition of `atof' libR.a(main.o):/usr/include/stdlib.h:330: first defined here collect2: ld returned 1 exit status make[3]: *** [R.bin] Error 1 make[3]: Leaving directory ...
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...e/stdio.h @@ -48,17 +48,24 @@ __extern int fseek(FILE *, off_t, int); #define fseeko fseek __extern void rewind(FILE *); __extern int fputs(const char *, FILE *); +__extern int fputs_unlocked(const char *, FILE *); __extern int puts(const char *); __extern int fputc(int, FILE *); +__extern int fputc_unlocked(int, FILE *); #define putc(c,f) fputc((c),(f)) +#define putc_unlocked(c,f) putc((c),(f)) #define putchar(c) fputc((c),stdout) +#define putchar_unlocked(c) putchar(c) __extern int fgetc(FILE *); +__extern int fgetc_unlocked(FILE *); __extern char *fgets(char *, int, FILE *); +__extern char...
2010 Oct 29
2
[LLVMdev] "multiple definition of .. " in clang 2.8
...locked': Hostname.c:(.text+0x610): multiple definition of `getchar_unlocked' av.o:av.c:(.text+0x610): first defined here Hostname.o: In function `putchar': Hostname.c:(.text+0x640): multiple definition of `putchar' av.o:av.c:(.text+0x640): first defined here Hostname.o: In function `fputc_unlocked': Hostname.c:(.text+0x660): multiple definition of `fputc_unlocked' av.o:av.c:(.text+0x660): first defined here Hostname.o: In function `putc_unlocked': Hostname.c:(.text+0x690): multiple definition of `putc_unlocked' av.o:av.c:(.text+0x690): first defined here Hostname.o: In func...
2008 Feb 16
3
[LLVMdev] linux/x86-64 codegen support
...; > 4766│ printf("THERE!!\n") > > Is there a way to nicely dump arglist? > gdb's print *arglist shows too much information.... > > $ /home/edwin/llvm-svn/obj42/./prev-gcc/cc1 charset.i > vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar > fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked > ferror_unlocked gnu_dev_major gnu_dev_minor gnu_dev_makedev atof atoi > atol atoll stat lstat fstat mknod cpp_in_system_header ustrcmp ustrncmp > ustrcspn ustrlen uxstrdup ustrchr ufputs one_utf8_to_cppchar > one_cppchar_to_utf8 one_utf8_...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...(FILE *__stream); extern int getchar (void); extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); extern int fgetc_unlocked (FILE *__stream); extern int fputc (int __c, FILE *__stream); extern int putc (int __c, FILE *__stream); extern int putchar (int __c); extern int fputc_unlocked (int __c, FILE *__stream); extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream); extern int putw (int __w, FILE *__stream); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ; extern char *get...