public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/105955] New: ICE when using __attribute__((__sysv_abi__)) on Cygwin
@ 2022-06-13 18:19 mikulas at artax dot karlin.mff.cuni.cz
  2022-06-21  2:17 ` [Bug target/105955] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mikulas at artax dot karlin.mff.cuni.cz @ 2022-06-13 18:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105955
           Summary: ICE when using __attribute__((__sysv_abi__)) on Cygwin
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikulas at artax dot karlin.mff.cuni.cz
  Target Milestone: ---

Compile this piece of code on 64-bit Cygwin distribution with gcc 11.3.0 with
or without optimizations.

The result is:
during RTL pass: pro_and_epilogue
gcc-crash.e: In function 'fn3':
gcc-crash.e:16:1: internal compiler error: in choose_baseaddr, at
config/i386/i386.c:6915
   16 | }
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.


float fabsf(float x);

void * __attribute__((__sysv_abi__)) fn1(void);

_Bool __attribute__((__sysv_abi__)) fn2(float val)
{
        if (!(fabsf(val) < __builtin_huge_valf()))
                return 1;
        return 0;
}

_Bool fn3(void)
{
        void *p = fn1();
        return 1;
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/105955] ICE when using __attribute__((__sysv_abi__)) on Cygwin
  2022-06-13 18:19 [Bug target/105955] New: ICE when using __attribute__((__sysv_abi__)) on Cygwin mikulas at artax dot karlin.mff.cuni.cz
@ 2022-06-21  2:17 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-06-21  2:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 97822.

*** This bug has been marked as a duplicate of bug 97822 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-21  2:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 18:19 [Bug target/105955] New: ICE when using __attribute__((__sysv_abi__)) on Cygwin mikulas at artax dot karlin.mff.cuni.cz
2022-06-21  2:17 ` [Bug target/105955] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).