public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/22099] New: builtin_setjmp gives duplicate labels
@ 2005-06-17  0:09 hebisch at math dot uni dot wroc dot pl
  2005-06-17  3:46 ` [Bug target/22099] " pinskia at gcc dot gnu dot org
  2005-06-17  3:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2005-06-17  0:09 UTC (permalink / raw)
  To: gcc-bugs

The following program, when compiled with -fPIC option (on by
default on Darwin) gives me duplicate label in assembler
output:
extern int printf(const char *, ...);

struct { int a[5];} jmp_buf;
void
f(void)
{
  void g(void)
  {
  }
  if (__builtin_setjmp(&jmp_buf))
    goto l;
  g();
  printf("failed\n");
l:;
}

int
main(void)
{
  f();
  return 0;
}

I can see duplicate label "L00000000001$pb" in the assemble output.
Note that I have not set up full cross-compile environmet, I just
configured gcc for i686-apple-darwin target. The build failed,
but cc1 is built. 
This is a reduced test case. Original problem appeared in GNU
Pascal in native compiler on i686-apple-darwin host.
The problem is also present in gcc-3.3.6 (the label is called
L1$pb) and in gcc-3.4.4.

-- 
           Summary: builtin_setjmp gives duplicate labels
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hebisch at math dot uni dot wroc dot pl
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-apple-darwin


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


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

* [Bug target/22099] builtin_setjmp gives duplicate labels
  2005-06-17  0:09 [Bug target/22099] New: builtin_setjmp gives duplicate labels hebisch at math dot uni dot wroc dot pl
@ 2005-06-17  3:46 ` pinskia at gcc dot gnu dot org
  2005-06-17  3:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-17  3:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-17 03:46 -------
Confirmed, good to know I did not cause this when I changed the how the PIC label is done on darwin.
What needs to be done is something like what is done for ppc-darwin.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   GCC host triplet|i686-pc-linux-gnu           |
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-17 03:46:37
               date|                            |
            Version|unknown                     |3.3.6


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


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

* [Bug target/22099] builtin_setjmp gives duplicate labels
  2005-06-17  0:09 [Bug target/22099] New: builtin_setjmp gives duplicate labels hebisch at math dot uni dot wroc dot pl
  2005-06-17  3:46 ` [Bug target/22099] " pinskia at gcc dot gnu dot org
@ 2005-06-17  3:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-17  3:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-17 03:48 -------
This most likely also breaks Ada also until the default exception handling is changed to dwarf-2.

Note you might get better response if you file this with Apple.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

end of thread, other threads:[~2005-06-17  3:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-17  0:09 [Bug target/22099] New: builtin_setjmp gives duplicate labels hebisch at math dot uni dot wroc dot pl
2005-06-17  3:46 ` [Bug target/22099] " pinskia at gcc dot gnu dot org
2005-06-17  3:48 ` pinskia at gcc dot gnu dot 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).