public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59602] New: ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0
@ 2013-12-26 13:21 Sergey.Belyashov at gmail dot com
  2014-01-08 11:28 ` [Bug c/59602] " rearnsha at gcc dot gnu.org
  2021-09-28  0:52 ` [Bug target/59602] " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: Sergey.Belyashov at gmail dot com @ 2013-12-26 13:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59602

            Bug ID: 59602
           Summary: ARM, __attribute__((interrupt("FIQ"))) causes internal
                    compiler error with -O0
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Sergey.Belyashov at gmail dot com

I try to compile simple program. If I use some level of optimization more than
zero then no problem. But without optimization compiler dies:

$ arm-none-eabi-gcc -O0 -marm -march=armv4 -nostdlib -std=gnu99 -c -o bootldr.o
bootldr.c
bootldr.c: In function 'fiqHandler':
bootldr.c:5:1: error: insn does not satisfy its constraints:
 }
 ^
(insn 13 12 14 (set (reg/f:SI 13 sp)
        (plus:SI (reg/f:SI 11 fp)
            (const_int 4 [0x4]))) bootldr.c:5 5 {*arm_addsi3}
     (nil))
bootldr.c:5:1: internal compiler error: in note_invalid_constants, at
config/arm/arm.c:15751

$ cat bootldr.c
void fiqHandler(void) __attribute__ ((interrupt("FIQ")));
void fiqHandler(void)
{
    __asm__ volatile("nop");
}

$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/bin/../lib/gcc/arm-none-eabi/4.8.3/lto-wrapper
Target: arm-none-eabi
Configured with: /build/buildd/gcc-arm-none-eabi-4-8-2013q4/src/gcc/configure
--target=arm-none-eabi
--prefix=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native
--libexecdir=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/lib
--infodir=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/share/doc/gcc-arm-none-eabi/info
--mandir=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/share/doc/gcc-arm-none-eabi/man
--htmldir=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/share/doc/gcc-arm-none-eabi/html
--pdfdir=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/share/doc/gcc-arm-none-eabi/pdf
--enable-languages=c,c++ --enable-plugins --disable-decimal-float
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath
--disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared
--disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib
--with-headers=yes --with-python-dir=share/gcc-arm-none-eabi
--with-sysroot=/build/buildd/gcc-arm-none-eabi-4-8-2013q4/install-native/arm-none-eabi
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-pkgversion='GNU Tools for ARM Embedded Processors'
--with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 4.8.3 20131129 (release) [ARM/embedded-4_8-branch revision 205641]
(GNU Tools for ARM Embedded Processors) 

$ lsb_release -d
Description:    Ubuntu 12.04.3 LTS


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

* [Bug c/59602] ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0
  2013-12-26 13:21 [Bug c/59602] New: ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0 Sergey.Belyashov at gmail dot com
@ 2014-01-08 11:28 ` rearnsha at gcc dot gnu.org
  2021-09-28  0:52 ` [Bug target/59602] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2014-01-08 11:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59602

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Target|                            |arm
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-08
     Ever confirmed|0                           |1

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Not sure why anyone would want unoptimized FIQ code (read fast interrupts), but
still a bug.

Has probably been broken since Thumb2 support was added.


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

* [Bug target/59602] ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0
  2013-12-26 13:21 [Bug c/59602] New: ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0 Sergey.Belyashov at gmail dot com
  2014-01-08 11:28 ` [Bug c/59602] " rearnsha at gcc dot gnu.org
@ 2021-09-28  0:52 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-28  0:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.3

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 6.3.0+.

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

end of thread, other threads:[~2021-09-28  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-26 13:21 [Bug c/59602] New: ARM, __attribute__((interrupt("FIQ"))) causes internal compiler error with -O0 Sergey.Belyashov at gmail dot com
2014-01-08 11:28 ` [Bug c/59602] " rearnsha at gcc dot gnu.org
2021-09-28  0:52 ` [Bug target/59602] " 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).