This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26219] New: longjmp dosn't work
- From: "mugita at jsdkk dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2006 09:52:00 -0000
- Subject: [Bug c/26219] New: longjmp dosn't work
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc version 4.1. 20060120
Configured with: ../configure --target=h8300-elf --prefix=/usr/local
--enable-languages=c,c++ --with-newlib
--with-headers=/usr/src/newlib-1.14.0/newlib/libc/include
/////////////////////////////////////
#include <setjmp.h>
jmp_buf jb_error;
void jump(void){
longjmp(jb_error,1);
}
void func1(void){
return;
}
int main(void){
setjmp(jb_error);
func1();
jump();
}
/////////////////////////////
This program compiled by h8300-elf-gcc(4.1) doesn't work.
The program compiled by h8300-elf-gcc(3.4.3) with same library works.
--
Summary: longjmp dosn't work
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mugita at jsdkk dot com
GCC host triplet: Cygwin1.5.19(0.150/4/2)
GCC target triplet: h8300-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26219