public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53375] New: [AVR] Internal compiler error when O1 or Os are active
@ 2012-05-16 11:25 ruka.araujo at gmail dot com
  2012-05-16 11:26 ` [Bug c/53375] " ruka.araujo at gmail dot com
  2012-09-23 17:43 ` [Bug other/53375] [AVR] internal compiler error: in propagate_rtx, at fwprop.c:684 gjl at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ruka.araujo at gmail dot com @ 2012-05-16 11:25 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53375
           Summary: [AVR] Internal compiler error when O1 or Os are active
    Classification: Unclassified
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ruka.araujo@gmail.com


Created attachment 27421
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27421
The preprocessor output with Os


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

* [Bug c/53375] [AVR] Internal compiler error when O1 or Os are active
  2012-05-16 11:25 [Bug c/53375] New: [AVR] Internal compiler error when O1 or Os are active ruka.araujo at gmail dot com
@ 2012-05-16 11:26 ` ruka.araujo at gmail dot com
  2012-09-23 17:43 ` [Bug other/53375] [AVR] internal compiler error: in propagate_rtx, at fwprop.c:684 gjl at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ruka.araujo at gmail dot com @ 2012-05-16 11:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Rui Araújo <ruka.araujo at gmail dot com> 2012-05-16 11:24:50 UTC ---
When running:
 avr-gcc -v -save-temps  -Wall -g3 -Os -fpack-struct -fshort-enums -std=gnu99
-funsigned-char -funsigned-bitfields -gdwarf-2 -mmcu=atmega8 -DF_CPU=14745600UL
 -c -o scheduler.o scheduler.c

I get this error:

scheduler.c:189:1: internal compiler error: in propagate_rtx, at fwprop.c:684


The output in the console is:
$ avr-gcc -v -save-temps  -Wall -g3 -Os -fpack-struct -fshort-enums -std=gnu99
-funsigned-char -funsigned-bitfields -gdwarf-2 -mmcu=atmega8 -DF_CPU=14745600UL
 -c -o scheduler.o scheduler.c

Using built-in specs.
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/avr/4.5.3/lto-wrapper
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib
--infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin
--libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib
--enable-long-long --enable-nls --without-included-gettext --disable-libssp
--build=i686-linux-gnu --host=i686-linux-gnu --target=avr
Thread model: single
gcc version 4.5.3 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-g3' '-Os' '-fpack-struct'
'-fshort-enums' '-std=gnu99' '-funsigned-char' '-funsigned-bitfields'
'-gdwarf-2' '-mmcu=atmega8' '-DF_CPU=14745600UL' '-c' '-o' 'scheduler.o'
 /usr/lib/gcc/avr/4.5.3/cc1 -E -quiet -v -imultilib avr4 -dD -DF_CPU=14745600UL
scheduler.c -mmcu=atmega8 -std=gnu99 -Wall -fpack-struct -fshort-enums
-funsigned-char -funsigned-bitfields -g3 -gdwarf-2 -fworking-directory -Os
-fpch-preprocess -o scheduler.i
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.5.3/../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/avr/4.5.3/include
 /usr/lib/gcc/avr/4.5.3/include-fixed
 /usr/lib/gcc/avr/4.5.3/../../../avr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-g3' '-Os' '-fpack-struct'
'-fshort-enums' '-std=gnu99' '-funsigned-char' '-funsigned-bitfields'
'-gdwarf-2' '-mmcu=atmega8' '-DF_CPU=14745600UL' '-c' '-o' 'scheduler.o'
 /usr/lib/gcc/avr/4.5.3/cc1 -fpreprocessed scheduler.i -quiet -dumpbase
scheduler.c -mmcu=atmega8 -auxbase-strip scheduler.o -g3 -gdwarf-2 -Os -Wall
-std=gnu99 -version -fpack-struct -fshort-enums -funsigned-char
-funsigned-bitfields -o scheduler.s
GNU C (GCC) version 4.5.3 (avr)
    compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (GCC) version 4.5.3 (avr)
    compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 591284b680435834ad2fbe6642ff4fee
scheduler.c:34:17: warning: ‘tick_counter’ defined but not used
scheduler.c: In function ‘switch_task’:
scheduler.c:189:1: internal compiler error: in propagate_rtx, at fwprop.c:684
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


This only happens with Os and O1. With O2 and O3 there is no error.


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

* [Bug other/53375] [AVR] internal compiler error: in propagate_rtx, at fwprop.c:684
  2012-05-16 11:25 [Bug c/53375] New: [AVR] Internal compiler error when O1 or Os are active ruka.araujo at gmail dot com
  2012-05-16 11:26 ` [Bug c/53375] " ruka.araujo at gmail dot com
@ 2012-09-23 17:43 ` gjl at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-09-23 17:43 UTC (permalink / raw)
  To: gcc-bugs


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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |avr
             Status|UNCONFIRMED                 |RESOLVED
          Component|c                           |other
         Resolution|                            |WORKSFORME
            Summary|[AVR] Internal compiler     |[AVR] internal compiler
                   |error when O1 or Os are     |error: in propagate_rtx, at
                   |active                      |fwprop.c:684

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-09-23 17:42:46 UTC ---
This bug look similar to PR46409 closed in 4.6.0 and I can compile the test
case with avr-gcc 4.6.2 without a problem.

Please notice that register allocation is a matter of the compiler; I don't
know what you try to achieve with the register asm declarations.  Just remove
them and clean up your code.

If you cannot switch to a supported version of the compiler (the oldest
supported release series is 4.6) then you can also compile with
-fno-forward-propagate.


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

end of thread, other threads:[~2012-09-23 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 11:25 [Bug c/53375] New: [AVR] Internal compiler error when O1 or Os are active ruka.araujo at gmail dot com
2012-05-16 11:26 ` [Bug c/53375] " ruka.araujo at gmail dot com
2012-09-23 17:43 ` [Bug other/53375] [AVR] internal compiler error: in propagate_rtx, at fwprop.c:684 gjl 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).