Re: State of AutoFDO in GCC

2021-04-26 Thread Hongtao Yu via Gcc
with extended uses. Thanks, Hongtao From: Xinliang David Li Date: Monday, April 26, 2021 at 11:05 AM To: Andi Kleen Cc: Jan Hubicka , gcc@gcc.gnu.org , Wei Mi , Eugene Rozenfeld , Wenlei He , Hongtao Yu Subject: Re: State of AutoFDO in GCC On Mon, Apr 26, 2021 at 11:00 AM Andi Kleen

GCC plugins problem

2020-01-05 Thread Yu
lp you could give me. Thank you so much! Sincerely, Yu

"Uninitialized array" warnings by c++ with -O2

2017-06-07 Thread Kirill Yu Berezin
Hello! I have a code snippet (actually it is a part of larger project): #include #define UDP_PROTO_NUMBER 17 uint32_t calc_16bit_checksum_part(uint8_t* buf, int len, uint32_t ret) { uint16_t *ptr = reinterpret_cast(buf); int i; for( i = 0; i < (len / 2); ++i) {

Re: intrinsic function for the assembly x86 xchg command

2017-04-07 Thread Yichao Yu
On Fri, Apr 7, 2017 at 2:08 PM, fab10 <0xfa...@gmail.com> wrote: > It would be usefull to develop in gcc an intrinsic function for the assembly > x86 instruction xchg to implement a low level mutex. I believe that's what atomic_exchange is lowered to on x86?

Re: Calling convention for "Routines for floating point emulation"

2016-10-22 Thread Yichao Yu
Ref https://llvm.org/bugs/show_bug.cgi?id=30543#c10 > > That should not be the case, for libgcc functions that are not in RTABI. > > They should use the ABI of the multilib they are compiled for, which may > > be base ABI or VFP ABI depending on the options used for compiling that > > multilib. >

Re: Calling convention for "Routines for floating point emulation"

2016-09-28 Thread Yichao Yu
On Wed, Sep 28, 2016 at 8:07 PM, Joseph Myers wrote: > On Wed, 28 Sep 2016, Yichao Yu wrote: > >> >> Except where an external ABI defines things like that, the normal >> >> expectation for libgcc functions is that they have the same ABI as for an >> >> o

Re: Calling convention for "Routines for floating point emulation"

2016-09-28 Thread Yichao Yu
On Wed, Sep 28, 2016 at 7:45 PM, Yichao Yu wrote: > On Wed, Sep 28, 2016 at 7:39 PM, Joseph Myers wrote: >> On Wed, 28 Sep 2016, Yichao Yu wrote: >> >>> In particular, it seems that on all the platforms with a >>> arm*-*-gnueabihf triple I've checked (alarm

Re: Calling convention for "Routines for floating point emulation"

2016-09-28 Thread Yichao Yu
On Wed, Sep 28, 2016 at 7:39 PM, Joseph Myers wrote: > On Wed, 28 Sep 2016, Yichao Yu wrote: > >> In particular, it seems that on all the platforms with a >> arm*-*-gnueabihf triple I've checked (alarm armv7h, alarm armv6h, >> debian armhf, fedora armv7hl) the __p

Re: Calling convention for "Routines for floating point emulation"

2016-09-28 Thread Yichao Yu
On Wed, Sep 28, 2016 at 5:23 PM, Yichao Yu wrote: > Hi, > > I'd like to ask what should be the calling convention/ABI for these > routines on platforms with hardware floating point support (but > somehow still want to generate a libcall for whatever reasons). > > In pa

Calling convention for "Routines for floating point emulation"

2016-09-28 Thread Yichao Yu
ther case I think it's be nice if the document is a little more explicit about this. Yichao Yu

RE: Joseph Myers joins GCC Steering Committee

2013-12-08 Thread YU Charlie
Welcome Joseph. Wish everyone Happy Holidays and a wonderful 2014! Charlie -Original Message- From: gcc-announce-ow...@gcc.gnu.org [mailto:gcc-announce-ow...@gcc.gnu.org] On Behalf Of David Edelsohn Sent: Monday, December 09, 2013 3:28 AM To: gcc@gcc.gnu.org; gcc-annou...@gcc.gnu.org S

Question about local register variable

2013-08-28 Thread Jing Yu
Hi, I am wondering if the following piece of code is supposed to be valid. void* reg_v13() { register void* r __asm__ ("r13"); return r; } I did test with gcc on powerpc64, and confirmed that the function really returns r13 (thread pointer) value. However, LLVM issues a warning complaining

Generating data at link time

2013-06-01 Thread YU Chenkan
Dear all, I'm trying to generate a (very simple) special data section at link-time. It seems that LTO is too heavy, though I'm also not quite familiar with it. I think that what I first need is a new output format which wraps the standard ELF, so can anyone help to point out where I can get s

Re: Question on building a variably modified type at parameter scope

2013-03-08 Thread YU Chenkan
I found this is a bug in my front end because I used the same type for the parameters in different functions, so the references to the parameter in the structure messed up. The thing I want to implement is creating something like this pointers in C++ of structure type whose variably modified field

Question on building a variably modified type at parameter scope

2013-03-05 Thread YU Chenkan
HI, I'm a newbie and I'm trying to modify the front end to extend C. I know the following code can be accepted, void f (struct S { int a; } s, int a[][s.a]) { } . I'm wondering whether it is possible to build a structure which has a variably modified array whose size depends on an other

Re: About new project

2013-01-27 Thread Hongtao Yu
On 1/27/2013 5:04 PM, Gerald Pfeifer wrote: On Sat, 26 Jan 2013, Hongtao Yu wrote: How can I set up a new project under GCC and make it open-sourced? Thanks! That depends on what you mean by "under GCC", I'd say. If you have improvements for GCC, submitting those as patches a

About new project

2013-01-26 Thread Hongtao Yu
Hi All, How can I set up a new project under GCC and make it open-sourced? Thanks! Cheers, Hongtao

Symbolic range analysis

2010-11-14 Thread Hongtao Yu
Hi All, Does it perform symbolic range analysis or array section analysis in GCC-4.6 ? Thanks, Hongtao Yu Purdue University

How to find out all the calling instance of a class member function?

2008-10-29 Thread Peng Yu
Hi, Suppose I have a class B in namespace A, it has several overloaded member function doit. I'm wondering how to find all the lines where there is a statement that calls one particular overloaded doit member function? Is it possible to do so from g++ command line? Or I have to modify g++ to make

Re: GCC bug when using typeof

2008-10-20 Thread Peng Yu
On Mon, Oct 20, 2008 at 9:09 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 7:04 PM, Peng Yu <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I tried to compile the following program, but I got the following >> error. Is it a bug of GCC? H

Re: GCC bug when using typeof

2008-10-20 Thread Peng Yu
On Mon, Oct 20, 2008 at 9:09 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 7:04 PM, Peng Yu <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I tried to compile the following program, but I got the following >> error. Is it a bug of GCC? H

GCC bug when using typeof

2008-10-20 Thread Peng Yu
Hi, I tried to compile the following program, but I got the following error. Is it a bug of GCC? Has it been fixed in a newer version GCC? g++ -Wall -W -pedantic -g -c -o main-g.o main.cc main.cc:57: internal compiler error: in write_type, at cp/mangle.c:1651 Please submit a full bug report, wit

Re: no symbol in current context problem when debug the program in gdb

2008-09-19 Thread Peng Yu
On Mon, Sep 15, 2008 at 2:54 PM, Peng Yu <[EMAIL PROTECTED]> wrote: > > Hi, > > I have the following program. When I step in to test's constructor, I > would be able to print the variable three. It says > (gdb) n > 7 T three = 3; > (gdb) n > 8

Re: POSIX in g++

2008-07-15 Thread Peng Yu
On Tue, Jul 15, 2008 at 5:57 PM, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > "Peng Yu" <[EMAIL PROTECTED]> writes: > >> There is an options -ansi to make g++ ANSI compatible. I'm wondering >> if there is an option to make g++ POSIX compatible. Or

Re: POSIX in g++

2008-07-15 Thread Peng Yu
On Tue, Jul 15, 2008 at 5:57 PM, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > "Peng Yu" <[EMAIL PROTECTED]> writes: > >> There is an options -ansi to make g++ ANSI compatible. I'm wondering >> if there is an option to make g++ POSIX compatible. Or

POSIX in g++

2008-07-15 Thread Peng Yu
Hi, There is an options -ansi to make g++ ANSI compatible. I'm wondering if there is an option to make g++ POSIX compatible. Or g++ is already POSIX compatible without an option? Thanks, Peng

Why g++ does not emit any information for a local variable in a template class member function?

2008-06-03 Thread Peng Yu
Hi, I have the following code. I try to print the variable temp in the constructor of A. But gdb can not do that. The error message is shown blow the C++ code. According to the people from gdb mailing list, it is because that the compiler (g++) does not generate information for such variable in

RE: [PATCH] Fix bug on soft emulation of float point in gcc/longlong.c

2008-03-12 Thread Liu Yu
Hi Ian, Thanks a lot for your detailed explanation. > -Original Message- > From: Ian Lance Taylor [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2008 1:45 PM > To: Liu Yu > Cc: gcc@gcc.gnu.org > Subject: Re: [PATCH] Fix bug on soft emulation of float point &

[PATCH] Fix bug on soft emulation of float point in gcc/longlong.c

2008-03-12 Thread Liu Yu
There are 2 bugs existing in __udiv_qrnnd_c: 1. remainder could not be counted correctly __r1 and __r0 are not adding enough, so I use do..while to replace former if 2. the case of overflow of __m are not considered so I add a couple of lines to handle it I found the bugs from Linux kernel, for

[PATCH] Fix bug on soft emulation of float point in gcc/longlong.c

2008-03-12 Thread Liu Yu
t; : "(FAIL)"); printf(" %e / %e = %e\n", a.f, b.f, z.f); } int main() { union fu fa,fb,fe; fa.u = 0xc0843fff; fb.u = 0x80ff; fe.u = 0x7f044000; fdiv(fa,fb,fe); } --- Signed-off-by: Liu Yu <[EMAIL PROTECTED]> --- gcc/l

Re: request for new a syntactic design for C/C++.

2006-07-13 Thread Vladimir &#x27;Yu' Stepanov
Mike Stump wrote: On Jul 9, 2006, at 10:52 PM, Vladimir 'Yu' Stepanov wrote: I would like to offer one expansion for C/C++. Did you just reinvent downcasting in C++? If so, C++ already has that feature!? As for C, C, I'd claim C already has that feature[1], you merely h

Re: request for new a syntactic design for C/C++.

2006-07-13 Thread Vladimir &#x27;Yu' Stepanov
Ian Lance Taylor wrote: "Vladimir 'Yu' Stepanov" <[EMAIL PROTECTED]> writes: Current syntax C/C++: load_ptr = typeof(load_ptr)(((char *)init_ptr) - \ offsetof(typeof(init_ptr), field); The offered syntax: &load_ptr->field = init_ptr;

request for new a syntactic design for C/C++.

2006-07-09 Thread Vladimir &#x27;Yu' Stepanov
Hello ! I for the first time write to this list of dispatch. I would like to offer one expansion for C/C ++. It is quite well entered in an existing design of language. This expansion increases expressive power of language since preconditions for reduction of a role of macros and patterns are c

Problem with commas in macro parameters

2005-11-05 Thread Dmitry Yu. Bolkhovityanov
se is quite reasonable -- is there any "good" solution for this problem? Thanks in advance! _ Dmitry Yu. Bolkhovityanov The Budker Institute of Nuclear Physics Novosibirsk, Russia

array type has incomplete element type

2005-05-01 Thread David Yu
Hi, What's wrong with this ? It is ok in gcc 3 not not ok with gcc4: #define SERVICE_TYPE(type, val, state) SERVICE_##type = val, typedef enum service_e { SERVICE_TYPE(NONE, 0, false) SERVICE_TYPE(FTP,1, true) SERVICE_TYPE_MAX } service_type_t; Thanks dave