[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek  ---
This actually isn't specific to __has_builtin, any of the following builtin
macros ICE when used in #pragma push_macro ("MACRO"):
__TIMESTAMP__
__TIME__
__DATE__
__FILE__
__BASE_FILE__
__LINE__
__INCLUDE_LEVEL__
__COUNTER__
__has_attribute
__has_cpp_attribute
__has_builtin
_Pragma
Surprisingly __STDC__ builtin macro doesn't ICE.
I guess the ICE started with r164729.

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #8 from fdlbxtqi  ---
(In reply to Andrew Pinski from comment #5)
> >Then how can I build a new version of GCC on MinGW? :(
> 
> Wait for the bug to fixed.  Bugs happen.  Most people compiling the trunk
> don't build using mingw.  You are the bleading edge with compiling on the
> trunk.
> 
> > Every day I have to rebuild the entire compiler since either some features 
> > fail to work or the compiler fails to compile.
> 
> That is what happens when you are compiling on the trunk of any sources. 
> You are doing QA.

I think I need to inform Martin Sebor  

He might be able to fix the problem. :)

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #7 from fdlbxtqi  ---
(In reply to Andrew Pinski from comment #5)
> >Then how can I build a new version of GCC on MinGW? :(
> 
> Wait for the bug to fixed.  Bugs happen.  Most people compiling the trunk
> don't build using mingw.  You are the bleading edge with compiling on the
> trunk.
> 
> > Every day I have to rebuild the entire compiler since either some features 
> > fail to work or the compiler fails to compile.
> 
> That is what happens when you are compiling on the trunk of any sources. 
> You are doing QA.

Sounds like gcc is trying to be compatible with clang by adding the new
"__has_builtin" macro

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #6 from fdlbxtqi  ---
(In reply to fdlbxtqi from comment #4)
> (In reply to Andrew Pinski from comment #2)
> > Most likely the reduced testcase is just:
> > #pragma push_macro("__has_builtin")
> > 
> > --- CUT ---
> > > I did finish compilation with the same script 3 days ago. Now It fails
> > 
> > That is because the support for __has_builtin was just added within the last
> > 3 days :).
> 
> Then how can I build a new version of GCC on MinGW? :(
> 
> 
> Every day I have to rebuild the entire compiler since either some features
> fail to work or the compiler fails to compile. Sad :(
> 
> 
> I have to use the new compiler for compiling my C++20 concepts based IO
> library.
> 
> 
> https://bitbucket.org/ejsvifq_mabmip/fast_io/src/default/

Compile gcc on linux for twice + MinGW for twice per day. :(

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #5 from Andrew Pinski  ---
>Then how can I build a new version of GCC on MinGW? :(

Wait for the bug to fixed.  Bugs happen.  Most people compiling the trunk don't
build using mingw.  You are the bleading edge with compiling on the trunk.

> Every day I have to rebuild the entire compiler since either some features 
> fail to work or the compiler fails to compile.

That is what happens when you are compiling on the trunk of any sources.  You
are doing QA.

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #4 from fdlbxtqi  ---
(In reply to Andrew Pinski from comment #2)
> Most likely the reduced testcase is just:
> #pragma push_macro("__has_builtin")
> 
> --- CUT ---
> > I did finish compilation with the same script 3 days ago. Now It fails
> 
> That is because the support for __has_builtin was just added within the last
> 3 days :).

Then how can I build a new version of GCC on MinGW? :(


Every day I have to rebuild the entire compiler since either some features fail
to work or the compiler fails to compile. Sad :(


I have to use the new compiler for compiling my C++20 concepts based IO
library.


https://bitbucket.org/ejsvifq_mabmip/fast_io/src/default/

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

--- Comment #3 from fdlbxtqi  ---
(In reply to Andrew Pinski from comment #2)
> Most likely the reduced testcase is just:
> #pragma push_macro("__has_builtin")
> 
> --- CUT ---
> > I did finish compilation with the same script 3 days ago. Now It fails
> 
> That is because the support for __has_builtin was just added within the last
> 3 days :).

Then how can I build a new version of GCC on MinGW? :(


Every day I have to rebuild the entire compiler since either some features fail
to work or the compiler fails to compile.

[Bug c/92296] [10 Regression] GCC build ICE on MinGW-w64. internal compiler error: Segmentation fault #pragma push_macro("__has_builtin")

2019-10-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||build, ice-on-valid-code
   Target Milestone|--- |10.0
Summary|GCC build ICE on MinGW-w64. |[10 Regression] GCC build
   |internal compiler error:|ICE on MinGW-w64. internal
   |Segmentation fault  #pragma |compiler error:
   |push_macro("__has_builtin") |Segmentation fault  #pragma
   ||push_macro("__has_builtin")

--- Comment #2 from Andrew Pinski  ---
Most likely the reduced testcase is just:
#pragma push_macro("__has_builtin")

--- CUT ---
> I did finish compilation with the same script 3 days ago. Now It fails

That is because the support for __has_builtin was just added within the last 3
days :).