MiddleEnd ifunc attribute

2012-07-27 Thread Johannes Ziegenbalg
Hello everybody. I've already written that to the gcc-help list but there was no answer. I want to use the "ifunc" Attribute within my GCC plugin. The code should look like: typedef void (bar_fn_t)(uint32_t *); bar_fn_t bar __attribute__((ifunc("resolve_bar"))); I think I know how to build and

gcc-4.6-20120727 is now available

2012-07-27 Thread gccadmin
Snapshot gcc-4.6-20120727 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20120727/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Shared librares dependency at compile time

2012-07-27 Thread Ian Lance Taylor
On Fri, Jul 27, 2012 at 12:10 PM, LiLy wrote: > > I have two existing shared libraries liba.so, libb.so. > Liba.so depends on libb.so(liba.so is dynamically linked with libb.so > ). Now I want to compile an application which uses both liba.so and > libb.so. Please never send e-mail to both gcc

Shared librares dependency at compile time

2012-07-27 Thread LiLy
Hi All, I have two existing shared libraries liba.so, libb.so. Liba.so depends on libb.so(liba.so is dynamically linked with  libb.so ).  Now I want to compile an application which uses both liba.so and libb.so. 1. On Linux, following command can pass     gcc  -Wall -o app app.c -L.. -la    

RE: build6_stat removed?

2012-07-27 Thread Iyer, Balaji V
I think I am ok without it. I did find a workaround. Thanks, Balaji V. Iyer. -Original Message- From: Eric Botcazou [mailto:ebotca...@adacore.com] Sent: Friday, July 27, 2012 10:26 AM To: Iyer, Balaji V Cc: gcc@gcc.gnu.org Subject: Re: build6_stat removed? > I have a question re

Re: build6_stat removed?

2012-07-27 Thread Eric Botcazou
> I have a question regarding build6_stat. I saw that in 7/25 merge, > someone removed this function. Why was it removed? Because it has been unused for a while, as TARGET_MEM_REF has 5 operands now. > I am currently using it in my Cilk Plus branch. What is a work around >

Re: Integer promotion for register based arguments

2012-07-27 Thread Eric Botcazou
> The documentation for this comes under the " Passing Function Arguments on > the Stack" section, which says: > > "This target hook returns true if an argument declared in a prototype as an > integral type smaller than int should actually be passed as an int. In > addition to avoiding errors in c

Re: Double word left shift optimisation

2012-07-27 Thread Segher Boessenkool
Hi Jon, I'd like to try to optimise double word left shifts of sign/zero extended operands if a widening multiply instruction is available. For the following code: long long f(long a, long b) { return (long long)a << b; } I'd like to optimise this to something like: (long long) a * (

regsiter_tm_clones in crtbegin.o

2012-07-27 Thread Joey Ye
Since 4.7 register_tm_clones and deregister_tm_clones are added in crtbegin.o. Built for ARM they eat 80 precious bytes of flash for each application. They seem to be for transaction memory only and my build doesn't need it. I can simple disable them by -DUSE_TM_CLONE_REGISTERY=0 in a tmake_file.