I am using the last mspgcc compiler for MSP430 downloaded at
http://sourceforge.net/project/showfiles.php?group_id=42303&package_id=68584.

The bug is easily reproducible applying the following compiler line to the
source main of example tasker

msp430-gcc -mmcu=msp430x147 -g -O3 -Wall -Wcast-align -Wcast-qual -Wimplicit
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wredundant-decls -Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch -Wunused 
-Wunreachable-code -c -o main.o main.c


in the original line -Wunreachable-code in missed.

The error raised is 
main.c: In function `task1':
main.c:126: internal error: Segmentation fault


compiler version:

Reading specs from /cygdrive/c/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/specs
Configured with: ./configure --target=msp430
--prefix=/f/prog/msp430/sf/packagin
g/build/installed --disable-nls
Thread model: single
gcc version 3.2.3


-- 
           Summary: msp430-gcc with -Wunreachable-code Segmentation fault
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefano dot franzoni at marposs dot com


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

Reply via email to