public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/26983]  New: Missing label in a nested function
@ 2006-04-02  2:07 hebisch at math dot uni dot wroc dot pl
  2006-04-02  8:59 ` [Bug middle-end/26983] Missing label in a nested function with builtin_setjmp/longjmp pinskia at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2006-04-02  2:07 UTC (permalink / raw)
  To: gcc-bugs

The following program:

void
Object (void)
{
void * jmpbuf_1[6];
void P (void)
{
  {
    void * jmpbuf_3[6];

    if (__builtin_setjmp (&jmpbuf_3)) goto nonlocal_exit_2; else (void) 0;;
    __builtin_longjmp (&jmpbuf_1, 1);
    nonlocal_exit_2:;;
  }
}
  {
    if (__builtin_setjmp (&jmpbuf_1)) goto nonlocal_exit_0; else (void) 0;;
    P ();
    nonlocal_exit_0:;;
  }
}

int
main(void)
{
  Object ();
}

gives me:
../gcc-lin/prev-gcc/xgcc -B../gcc-lin/prev-gcc
mjmp2.c/tmp/cc06O64A.o(.text+0x5a): In function `P.1525':
: undefined reference to `.L8'
collect2: ld returned 1 exit status

Using gcc-4.2-20060401. The problem also shows up with gcc-4.0.2 and
gcc-4.1.0 on amd64. Also the problem shows in the output of a
cross-compiler targetting powerpc-apple-darwin7. The original problem
was discovered in GNU Pascal on powerpc-apple-darwin7 and the program
above tries to reproduce Pascal problem. The program compiles using
gcc-3.4.4.


-- 
           Summary: Missing label in a nested function
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hebisch at math dot uni dot wroc dot pl
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2006-09-22 15:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-02  2:07 [Bug ada/26983] New: Missing label in a nested function hebisch at math dot uni dot wroc dot pl
2006-04-02  8:59 ` [Bug middle-end/26983] Missing label in a nested function with builtin_setjmp/longjmp pinskia at gcc dot gnu dot org
2006-04-02  9:01 ` [Bug middle-end/26983] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-06-04 18:22 ` mmitchel at gcc dot gnu dot org
2006-06-11  9:21 ` steven at gcc dot gnu dot org
2006-06-11 13:55 ` pinskia at gcc dot gnu dot org
2006-07-25 22:53 ` steven at gcc dot gnu dot org
2006-07-27 13:00 ` [Bug middle-end/26983] [4.0/4.1/4.2 Regression] Missing label " reichelt at gcc dot gnu dot org
2006-07-27 13:25 ` steven at gcc dot gnu dot org
2006-08-02 17:03 ` atgraham at gmail dot com
2006-08-02 17:24 ` pinskia at gcc dot gnu dot org
2006-09-10 11:00 ` steven at gcc dot gnu dot org
2006-09-10 11:16 ` steven at gcc dot gnu dot org
2006-09-10 18:40 ` patchapp at dberlin dot org
2006-09-10 20:09 ` steven at gcc dot gnu dot org
2006-09-10 20:10 ` [Bug middle-end/26983] [4.0/4.1 " steven at gcc dot gnu dot org
2006-09-21  2:14 ` sayle at gcc dot gnu dot org
2006-09-21 23:38 ` [Bug middle-end/26983] [4.0 " sayle at gcc dot gnu dot org
2006-09-22 15:40 ` roger at eyesopen dot com

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).