Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
Hello everyone,
I built gcc from the repo and it took around 2 hours but I am
wondering should I wait two hours after every modification?
Is there any way to recompile faster.
That's very important as we will add some files and tests  for OMPD.
Thanks


Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
Make sure to use all the cores available.

make -j N

e.g; make -j 8


On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc  wrote:

> Hello everyone,
> I built gcc from the repo and it took around 2 hours but I am
> wondering should I wait two hours after every modification?
> Is there any way to recompile faster.
> That's very important as we will add some files and tests  for OMPD.
> Thanks
>


Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
Hello,
  Only modified files will be recompiled, won't it?


في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad  كتب:

> Make sure to use all the cores available.
>
> make -j N
>
> e.g; make -j 8
>
>
> On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc 
> wrote:
>
>> Hello everyone,
>> I built gcc from the repo and it took around 2 hours but I am
>> wondering should I wait two hours after every modification?
>> Is there any way to recompile faster.
>> That's very important as we will add some files and tests  for OMPD.
>> Thanks
>>
>


Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
Yes, that is right.

On Mon, Feb 7, 2022, 12:38 AM Mohamed Atef 
wrote:

> Hello,
>   Only modified files will be recompiled, won't it?
>
>
> في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad  كتب:
>
>> Make sure to use all the cores available.
>>
>> make -j N
>>
>> e.g; make -j 8
>>
>>
>> On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc 
>> wrote:
>>
>>> Hello everyone,
>>> I built gcc from the repo and it took around 2 hours but I am
>>> wondering should I wait two hours after every modification?
>>> Is there any way to recompile faster.
>>> That's very important as we will add some files and tests  for OMPD.
>>> Thanks
>>>
>>


Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
After i built it
I tried make - j 8 and it's recompiling now i thought i will have messege
like
Every thing is up to date or there are no change done
But it actually started to compile again


في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٨ م Mir Immad  كتب:

> Yes, that is right.
>
> On Mon, Feb 7, 2022, 12:38 AM Mohamed Atef 
> wrote:
>
>> Hello,
>>   Only modified files will be recompiled, won't it?
>>
>>
>> في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad  كتب:
>>
>>> Make sure to use all the cores available.
>>>
>>> make -j N
>>>
>>> e.g; make -j 8
>>>
>>>
>>> On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc 
>>> wrote:
>>>
 Hello everyone,
 I built gcc from the repo and it took around 2 hours but I am
 wondering should I wait two hours after every modification?
 Is there any way to recompile faster.
 That's very important as we will add some files and tests  for OMPD.
 Thanks

>>>


Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
The build system probably first tries to make sure if everything is in
place and if there were any changes and re-compiles the new/changed files.

How much time does it take when you try to rebuild?

On Mon, Feb 7, 2022, 12:43 AM Mohamed Atef 
wrote:

> After i built it
> I tried make - j 8 and it's recompiling now i thought i will have messege
> like
> Every thing is up to date or there are no change done
> But it actually started to compile again
>
>
> في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٨ م Mir Immad  كتب:
>
>> Yes, that is right.
>>
>> On Mon, Feb 7, 2022, 12:38 AM Mohamed Atef 
>> wrote:
>>
>>> Hello,
>>>   Only modified files will be recompiled, won't it?
>>>
>>>
>>> في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad  كتب:
>>>
 Make sure to use all the cores available.

 make -j N

 e.g; make -j 8


 On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc 
 wrote:

> Hello everyone,
> I built gcc from the repo and it took around 2 hours but I am
> wondering should I wait two hours after every modification?
> Is there any way to recompile faster.
> That's very important as we will add some files and tests  for OMPD.
> Thanks
>



Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
45 mins and i am waiting

في الأحد، ٦ فبراير، ٢٠٢٢ ٩:١٨ م Mir Immad  كتب:

> The build system probably first tries to make sure if everything is in
> place and if there were any changes and re-compiles the new/changed files.
>
> How much time does it take when you try to rebuild?
>
> On Mon, Feb 7, 2022, 12:43 AM Mohamed Atef 
> wrote:
>
>> After i built it
>> I tried make - j 8 and it's recompiling now i thought i will have messege
>> like
>> Every thing is up to date or there are no change done
>> But it actually started to compile again
>>
>>
>> في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٨ م Mir Immad  كتب:
>>
>>> Yes, that is right.
>>>
>>> On Mon, Feb 7, 2022, 12:38 AM Mohamed Atef 
>>> wrote:
>>>
 Hello,
   Only modified files will be recompiled, won't it?


 في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad  كتب:

> Make sure to use all the cores available.
>
> make -j N
>
> e.g; make -j 8
>
>
> On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc 
> wrote:
>
>> Hello everyone,
>> I built gcc from the repo and it took around 2 hours but I am
>> wondering should I wait two hours after every modification?
>> Is there any way to recompile faster.
>> That's very important as we will add some files and tests  for OMPD.
>> Thanks
>>
>


Query regarding generating NOTE instruction at GIMPLE level

2022-02-06 Thread Shubham Narlawar via Gcc
Hello,

Is it possible to generate a NOTE instruction at GIMPLE level?

My use case scenario is as below -
I want to create a note for __builtin_xyz(_x) such that there is a
placeholder just before function call and in RTL pass, I want to
modify/assign register number at this placeholder location.

_x = (unsigned int) _y;
__builtin_xyz(_x);//_x is constant expression

For above builtin function call, I want to insert a note just before the
function call. I tried generating GIMPLE_NOP instruction as below -

_x = (unsigned int) _y;
GIMPLE_NOP
__builtin_xyz(_x);

But as per my understanding, a NOTE instruction behaves similar to
GIMPLE_NOP that is to create a placeholder for some computation.


1. Is there any attribute that can be added to GIMPLE instruction? If yes,
then there must be a mechanism that translates those attributes to NOTE
instructions in the RTL pass?


2. Is there any different approach on achieving above goal?

Thanks and Regards,
Shubham


Re: Compiling GCC source

2022-02-06 Thread Martin Jambor
Hello,

On Sun, Feb 06 2022, Mohamed Atef via Gcc wrote:
> Hello everyone,
> I built gcc from the repo and it took around 2 hours but I am
> wondering should I wait two hours after every modification?
> Is there any way to recompile faster.
> That's very important as we will add some files and tests  for OMPD.

Of course it depends on the hardware that you use but generally no, it
should not take hours, certainly not to recompile after simple
modifications.

Above all, at configure time:

1) Make sure that you disable bootstrap by passing --disable-bootstrap

   If you make any modifications to the compiler, please make sure you
   test them with bootstrap enabled before you submit them upstream,
   though.

2) If you use x86_64, you can speed up compilation by disabling building
   of 32-bit libraries by using --disable-multilib.

3) Only select languages that you need.  For example, if you just need
   C, C++ and Fortran, use: --enable-languages=c,c++,fortran

   Again, the final test should cover every language you might have
   affected, but for OMPT the above could suffice.

And of course, pass an appropriate -j option to make.

This should help to significantly reduce build times for you.

Martin


gcc-12-20220206 is now available

2022-02-06 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220206 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/12-20220206/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 12 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch master 
revision 8eb329e963593342855b6072e5692659107337b7

You'll find:

 gcc-12-20220206.tar.xz   Complete GCC

  SHA256=15a67d1e569a366ff277cdf7c2fd678d83850c5266535e76ce677a635d90fbd8
  SHA1=52cc96ccae5fa91d0894d85859174257f5ee54f7

Diffs from 12-20220130 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-12
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.


[Intel SPR] Progress of GCC support for Intel SPR features

2022-02-06 Thread LiYancheng via Gcc

Hello everyone!

I have some questions to ask:

1. How does GCC support Sapphrie Rapids CPU now?

2. Does GCC 11 fully support all the features of SPR?
From the release note, it seems that 5g ISA (fp16)/hfni is
not supported yet.

3. What is the simulation tool used by GCC to verify SPR characteristics?
Is it open source?

Thanks for all the help,

yancheng



Re: [Intel SPR] Progress of GCC support for Intel SPR features

2022-02-06 Thread Andrew Pinski via Gcc
On Sun, Feb 6, 2022 at 5:59 PM LiYancheng via Gcc  wrote:
>
> Hello everyone!
>
> I have some questions to ask:
>
> 1. How does GCC support Sapphrie Rapids CPU now?
>
> 2. Does GCC 11 fully support all the features of SPR?
>  From the release note, it seems that 5g ISA (fp16)/hfni is
> not supported yet.

It will be included in GCC 12 which should be released in less than 4 months.

>
> 3. What is the simulation tool used by GCC to verify SPR characteristics?
> Is it open source?

Intel is doing the patching to GCC and binutils so I suspect they
verify using their internal tools and I highly doubt it is free
source.


Thanks,
Andrew Pinski


>
> Thanks for all the help,
>
> yancheng
>


Re: [Intel SPR] Progress of GCC support for Intel SPR features

2022-02-06 Thread LiYancheng via Gcc



On 2022/2/7 10:03, Andrew Pinski wrote:

On Sun, Feb 6, 2022 at 5:59 PM LiYancheng via Gcc  wrote:

Hello everyone!

I have some questions to ask:

1. How does GCC support Sapphrie Rapids CPU now?

2. Does GCC 11 fully support all the features of SPR?
  From the release note, it seems that 5g ISA (fp16)/hfni is
not supported yet.

It will be included in GCC 12 which should be released in less than 4 months.

Thank you for your reply!

3. What is the simulation tool used by GCC to verify SPR characteristics?
Is it open source?

Intel is doing the patching to GCC and binutils so I suspect they
verify using their internal tools and I highly doubt it is free
source.


Thanks,
Andrew Pinski


Any suggestions from Intel?

Thanks!

yancheng


Thanks for all the help,

yancheng



Re: [Intel SPR] Progress of GCC support for Intel SPR features

2022-02-06 Thread Hongtao Liu via Gcc
On Mon, Feb 7, 2022 at 11:16 AM LiYancheng via Gcc  wrote:
>
>
> On 2022/2/7 10:03, Andrew Pinski wrote:
> > On Sun, Feb 6, 2022 at 5:59 PM LiYancheng via Gcc  wrote:
> >> Hello everyone!
> >>
> >> I have some questions to ask:
> >>
> >> 1. How does GCC support Sapphrie Rapids CPU now?
> >>
> >> 2. Does GCC 11 fully support all the features of SPR?
> >>   From the release note, it seems that 5g ISA (fp16)/hfni is
> >> not supported yet.
> > It will be included in GCC 12 which should be released in less than 4 
> > months.
> Thank you for your reply!
> >> 3. What is the simulation tool used by GCC to verify SPR characteristics?
> >> Is it open source?
> > Intel is doing the patching to GCC and binutils so I suspect they
> > verify using their internal tools and I highly doubt it is free
> > source.
> >
> >
> > Thanks,
> > Andrew Pinski
> >
> Any suggestions from Intel?
>
You can use Intel SDE(software-development-emulator)
refer to 
https://www.intel.com/content/www/us/en/developer/articles/tool/software-development-emulator.html.

And please use GCC12(main trunk, not released yet), and binutils
2.38(main trunk, not released yet).


> Thanks!
>
> yancheng
>
> >> Thanks for all the help,
> >>
> >> yancheng
> >>



-- 
BR,
Hongtao