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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|sanitizer                   |middle-end
           Keywords|                            |ice-on-valid-code
            Summary|-fsanitize=address ICE in   |-fsanitize=address ICE in
                   |prepare_function_start, at  |prepare_function_start with
                   |function.c                  |the RTL front-end and
                   |                            |constructors

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another testcase, this time without -fsanitize=address:

void f(void) __attribute__((constructor));
void f(void)
{
    ;
}
int __RTL (startwith ("rtl-dfinit")) times_two (int i)
{
(function "times_two"
  (insn-chain
    (block 2
      (edge-from entry (flags "FALLTHRU"))
      (cnote 4 [bb 2] NOTE_INSN_BASIC_BLOCK)
      (edge-to exit (flags "FALLTHRU"))
    ) ;; block 2
  ) ;; insn-chain
) ;; function "times_two"
}

Reply via email to