About the effect of "O0" on inlining into a function

2024-06-28 Thread Basile Starynkevitch

Hello

Iain Sandoe wrote:


If I declare a function __attribute__((noipa, optimize (“-O0”))), I was kinda 
expecting that it would not be optimized at all ..

however it does not seem to prevent functions called by it from being inlined 
into its body ..

I would suggest coding your GCC plugin to add such a behavior.

(I think that your plugin should be open source)

--
Basile STARYNKEVITCH 
8 rue de la Faïencerie, 92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/ -gives my mobile number +33 6 8501 
See/voir:   https://github.com/RefPerSys/RefPerSys



Please help

2024-06-28 Thread MR DEEPAK via Gcc
Sir,
I am a student of class 11th . I want to know original C compiler is open
or closed source.

Like I talk about :- preprocessor
Compiler
Aasembler etc

I hope you can help me🥺


Re: Please help

2024-06-28 Thread Mohd Kashif via Gcc
Dear Deepak,
It's an Open Source Compiler for C
Thank & Regards
(MOHD KASHIF)

On Fri, Jun 28, 2024, 9:17 PM MR DEEPAK via Gcc  wrote:

> Sir,
> I am a student of class 11th . I want to know original C compiler is open
> or closed source.
>
> Like I talk about :- preprocessor
> Compiler
> Aasembler etc
>
> I hope you can help me🥺
>


Re: About the effect of "O0" on inlining into a function

2024-06-28 Thread Iain Sandoe
Hi Basile,

> On 28 Jun 2024, at 11:11, Basile Starynkevitch  
> wrote:

> Iain Sandoe wrote:
> 
>> If I declare a function __attribute__((noipa, optimize (“-O0”))), I was 
>> kinda expecting that it would not be optimized at all ..
>> 
>> however it does not seem to prevent functions called by it from being 
>> inlined into its body ..
> I would suggest coding your GCC plugin to add such a behavior.
> 
> (I think that your plugin should be open source)

The work is not a plugin - it is modifications to the core compiler to support 
changes to contract semantics - so, of course, is already open source ;-)

Iain]



gcc-13-20240628 is now available

2024-06-28 Thread GCC Administrator via Gcc
Snapshot gcc-13-20240628 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/13-20240628/
and on various mirrors, see https://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 13 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch 
releases/gcc-13 revision 84cae12ed9055153bb5a4b72d50f0c36110b8027

You'll find:

 gcc-13-20240628.tar.xz   Complete GCC

  SHA256=a5fb1e6527bbddef83a5e7e687fa6c5096069dec0f6316b84c276e339b61d59b
  SHA1=2022e15fe1943c0647660572880a6f531ca23a51

Diffs from 13-20240621 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-13
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.