https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103012

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.3
      Known to fail|                            |11.1.0
           Keywords|                            |needs-bisection
            Summary|ICE with #pragma GCC        |[11/12 Regression] ICE with
                   |optimize followed by long   |#pragma GCC optimize
                   |line                        |followed by long line (4047
                   |                            |long)
      Known to work|                            |10.1.0, 7.5.0

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So decent testcase with macros, though you need -save-temps or preprocess it
beforehand if you are invoking cc1plus directly.
#pragma GCC optimize "Og"
#define a1(a) a
#define a2(a) a1(a)a1(a)
#define a4(a) a2(a)a2(a)
#define a8(a) a4(a)a4(a)
#define a16(a) a8(a)a8(a)
#define a32(a) a16(a)a16(a)
#define a64(a) a32(a)a32(a)
#define a128(a) a64(a)a64(a)
#define a256(a) a128(a)a128(a)
#define a512(a) a256(a)a256(a)
#define a1024(a) a512(a)a512(a)
#define a2048(a) a1024(a)a1024(a)
a2048(a)
---------- CUT ------
What I found also is the line needs to be 4047 characters long. The above line
will a little longer around 4096ish.

Also this worked at r10-6101 but failed at r11-6338.

Reply via email to