public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
@ 2013-08-25 17:07 ` gdr at gcc dot gnu.org
  2013-08-25 18:07 ` pinskia at gcc dot gnu.org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: gdr at gcc dot gnu.org @ 2013-08-25 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
Here is the definition of pretty_printer::~pretty_printer ()
at the location indicated:

pretty_printer::~pretty_printer ()
{
  buffer->~output_buffer ();
  XDELETE (buffer);
}


The macro XDELETE is defined in include/libiberty.h

as:

    #define XDELETE(P)              free ((void*) ℗)


So, I do not see use of any 'operator delete' from
that code.

Is someone trying to #define XDELETE to something else?

-- Gaby
>From gcc-bugs-return-428366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 25 17:22:23 2013
Return-Path: <gcc-bugs-return-428366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23635 invoked by alias); 25 Aug 2013 17:22:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23590 invoked by uid 48); 25 Aug 2013 17:22:20 -0000
From: "gdr at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
Date: Sun, 25 Aug 2013 17:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gdr at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58239-4-acKJa2AgXS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58239-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58239-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg01290.txt.bz2
Content-length: 375

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX239

--- Comment #2 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
OK, I see the emitted reference to 'operator delete', and I suspect I
have an idea of why the compiler generated this reference even though
it isn't used anywhere in the input source code.

Why are we linking gnatlink with xgcc and not with xg++ -nostdc++?


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
  2013-08-25 17:07 ` [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)' gdr at gcc dot gnu.org
@ 2013-08-25 18:07 ` pinskia at gcc dot gnu.org
  2013-08-25 21:06 ` ebotcazou at gcc dot gnu.org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-08-25 18:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Gabriel Dos Reis from comment #2)
> OK, I see the emitted reference to 'operator delete', and I suspect I
> have an idea of why the compiler generated this reference even though
> it isn't used anywhere in the input source code.

It is due to virtual deconstructors and in-charge vs out-of-charge
deconstructors happening.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
  2013-08-25 17:07 ` [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)' gdr at gcc dot gnu.org
  2013-08-25 18:07 ` pinskia at gcc dot gnu.org
@ 2013-08-25 21:06 ` ebotcazou at gcc dot gnu.org
  2013-08-25 21:55 ` gdr at gcc dot gnu.org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-08-25 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-25
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> OK, I see the emitted reference to 'operator delete', and I suspect I
> have an idea of why the compiler generated this reference even though
> it isn't used anywhere in the input source code.
> 
> Why are we linking gnatlink with xgcc and not with xg++ -nostdc++?

Because we haven't had a real need up to now, IOW we always managed to massage
things so as to avoid the dependency.  Maybe it's the end of the road...


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-08-25 21:06 ` ebotcazou at gcc dot gnu.org
@ 2013-08-25 21:55 ` gdr at gcc dot gnu.org
  2013-08-26  0:23 ` gdr at gcc dot gnu.org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: gdr at gcc dot gnu.org @ 2013-08-25 21:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #4)
> > OK, I see the emitted reference to 'operator delete', and I suspect I
> > have an idea of why the compiler generated this reference even though
> > it isn't used anywhere in the input source code.
> > 
> > Why are we linking gnatlink with xgcc and not with xg++ -nostdc++?
> 
> Because we haven't had a real need up to now, IOW we always managed to
> massage things so as to avoid the dependency.  Maybe it's the end of the
> road...

Well, that was a latent bug in the existing code base.  The Ada front-end
(more specifically gnatmake, gnatlink and consorts) linked against
"common" files from GCC source code, most of which are compiled or are
C++ source files.  It should have linked with xg++.  I have a patch right
out of the door while typing this message.  I hope you get a chance to
review and comment it.  I only changed the parts that I empirically
determined to be in trouble.  I welcome your input as someone who has
a broader view to see whether they are other executables that need
to be linked with xg++.

-- Gaby


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-08-25 21:55 ` gdr at gcc dot gnu.org
@ 2013-08-26  0:23 ` gdr at gcc dot gnu.org
  2013-08-28  9:18 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: gdr at gcc dot gnu.org @ 2013-08-26  0:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #4)
> > OK, I see the emitted reference to 'operator delete', and I suspect I
> > have an idea of why the compiler generated this reference even though
> > it isn't used anywhere in the input source code.
> > 
> > Why are we linking gnatlink with xgcc and not with xg++ -nostdc++?
> 
> Because we haven't had a real need up to now, IOW we always managed to
> massage things so as to avoid the dependency.  Maybe it's the end of the
> road...

One more thing: Ada was already using -static-libstdc++ to build those tools.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-08-26  0:23 ` gdr at gcc dot gnu.org
@ 2013-08-28  9:18 ` rguenth at gcc dot gnu.org
  2013-08-30  9:47 ` iains at gcc dot gnu.org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-08-28  9:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2013-08-28  9:18 ` rguenth at gcc dot gnu.org
@ 2013-08-30  9:47 ` iains at gcc dot gnu.org
  2013-08-30 14:24 ` gdr at gcc dot gnu.org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: iains at gcc dot gnu.org @ 2013-08-30  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
note that the patch at:

http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01460.html

is not quite enough to fix this on Darwin - since we use :

 %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++
libstdc++.a%s)}

to implement -static-libstadc++.

The relevant dir needs to be added as "-B" for this to work - unfortunately,
I'm not able to look at this right now..


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2013-08-30  9:47 ` iains at gcc dot gnu.org
@ 2013-08-30 14:24 ` gdr at gcc dot gnu.org
  2013-08-30 14:54 ` iains at gcc dot gnu.org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: gdr at gcc dot gnu.org @ 2013-08-30 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #8)
> note that the patch at:
> 
> http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01460.html
> 
> is not quite enough to fix this on Darwin - since we use :
> 
>  %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++
> libstdc++.a%s)}
> 
> to implement -static-libstadc++.
> 
> The relevant dir needs to be added as "-B" for this to work - unfortunately,
> I'm not able to look at this right now..

-static-libstdc++ was already being used before this patch.  So, the "-B"
directories where already there.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2013-08-30 14:24 ` gdr at gcc dot gnu.org
@ 2013-08-30 14:54 ` iains at gcc dot gnu.org
  2013-08-30 15:01 ` ebotcazou at gcc dot gnu.org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: iains at gcc dot gnu.org @ 2013-08-30 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Gabriel Dos Reis from comment #9)
> (In reply to Iain Sandoe from comment #8)
> > note that the patch at:
> > 
> > http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01460.html
> > 
> > is not quite enough to fix this on Darwin - since we use :
> > 
> >  %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++
> > libstdc++.a%s)}
> > 
> > to implement -static-libstadc++.
> > 
> > The relevant dir needs to be added as "-B" for this to work - unfortunately,
> > I'm not able to look at this right now..
> 
> -static-libstdc++ was already being used before this patch.  So, the "-B"
> directories where already there.

"grep -R -static-libstdc++ gcc/ada" suggests that -static-libstdc++ only
appears in a Changelog entry.

also the gcc driver silently ignores -static-libstdc++.

certainly, the -B options are passed when other gcc components are built (or it
would fail to bootstrap on Darwin). 

However, your current patch fails with:
ld: file not found: libstdc++.a


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2013-08-30 14:54 ` iains at gcc dot gnu.org
@ 2013-08-30 15:01 ` ebotcazou at gcc dot gnu.org
  2013-08-30 15:07 ` gdr at gcc dot gnu.org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-08-30 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> "grep -R -static-libstdc++ gcc/ada" suggests that -static-libstdc++ only
> appears in a Changelog entry.
> 
> also the gcc driver silently ignores -static-libstdc++.
> 
> certainly, the -B options are passed when other gcc components are built (or
> it would fail to bootstrap on Darwin). 

-static-libstdc++ comes from the compiler via a Makefile variable, not from the
gnattools.  We probably miss another variable to get the -B options.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2013-08-30 15:01 ` ebotcazou at gcc dot gnu.org
@ 2013-08-30 15:07 ` gdr at gcc dot gnu.org
  2013-08-31 21:21 ` ebotcazou at gcc dot gnu.org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: gdr at gcc dot gnu.org @ 2013-08-30 15:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Gabriel Dos Reis <gdr at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #10)

> also the gcc driver silently ignores -static-libstdc++.

Isn't this the problem?

> certainly, the -B options are passed when other gcc components are built (or
> it would fail to bootstrap on Darwin). 

The Makefiles in gcc/ pass down those options in variables.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2013-08-30 15:07 ` gdr at gcc dot gnu.org
@ 2013-08-31 21:21 ` ebotcazou at gcc dot gnu.org
  2013-09-01  9:28 ` iains at gcc dot gnu.org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-08-31 21:21 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org

--- Comment #13 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 30734
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30734&action=edit
Tentative fix


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2013-08-31 21:21 ` ebotcazou at gcc dot gnu.org
@ 2013-09-01  9:28 ` iains at gcc dot gnu.org
  2013-09-01  9:49 ` ebotcazou at gcc dot gnu.org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: iains at gcc dot gnu.org @ 2013-09-01  9:28 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #30734|0                           |1
        is obsolete|                            |

--- Comment #14 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 30737
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30737&action=edit
tentative fix V1

thanks Eric,

As I was trying to say in earlier comments (and failing to be clear, I
suppose), Darwin needs the library dirs as "-B" in addition to "-L", because we
have to use spec substitution to access static libs.

The "-B" have always been missing - and the fact that the gcc driver was
invoked with "-static-libstdc++" would not show this up, since that
option/driver combination does not cause any libraries to be added to the link
line.

Anyway, the revised patch includes -B where you've added the -L.

With this (and a fix for pr58269), x86_64-darwin12 bootstraps and completes the
ada and gnat test-suites with no new fails.

I am bootstrapping x86_64-darwin10 (slower machine) and will try a darwin12 X
linux later (and powerpc-darwin9 maybe overnight).


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2013-09-01  9:28 ` iains at gcc dot gnu.org
@ 2013-09-01  9:49 ` ebotcazou at gcc dot gnu.org
  2013-09-01 16:16 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-09-01  9:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> As I was trying to say in earlier comments (and failing to be clear, I
> suppose), Darwin needs the library dirs as "-B" in addition to "-L", because
> we have to use spec substitution to access static libs.
> 
> The "-B" have always been missing - and the fact that the gcc driver was
> invoked with "-static-libstdc++" would not show this up, since that
> option/driver combination does not cause any libraries to be added to the
> link line.
> 
> Anyway, the revised patch includes -B where you've added the -L.

My bad, and the -B's are also present in the CXX variable of the gcc/ Makefile,
from which I cooked up the new variable...  Thanks for fixing it!

> With this (and a fix for pr58269), x86_64-darwin12 bootstraps and completes
> the ada and gnat test-suites with no new fails.

That's great, thanks again.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2013-09-01  9:49 ` ebotcazou at gcc dot gnu.org
@ 2013-09-01 16:16 ` dominiq at lps dot ens.fr
  2013-09-01 16:51 ` ebotcazou at gcc dot gnu.org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-09-01 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The patch in comment #14 allows to bootstrap x86_64-apple-darwin10 with Ada.
The only failures are for gnat.dg/specs/linker_alias.ads (see
http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00996.html).

Thanks for the patch.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2013-09-01 16:16 ` dominiq at lps dot ens.fr
@ 2013-09-01 16:51 ` ebotcazou at gcc dot gnu.org
  2013-09-01 16:54 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-09-01 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Sun Sep  1 16:51:41 2013
New Revision: 202150

URL: http://gcc.gnu.org/viewcvs?rev=202150&root=gcc&view=rev
Log:
    PR ada/58239
gnattools/
    * Makefile.in (CXX_LFLAGS): New.
    (TOOLS_FLAGS_TO_PASS_NATIVE): Pass CXX and CXX_LFLAGS.
    (TOOLS_FLAGS_TO_PASS_RE): Likewise.
    (TOOLS_FLAGS_TO_PASS_CROSS): Pass CXX.
gcc/ada/
    * gcc-interface/Makefile.in (GCC_LINK_FLAGS): Add -static-libstdc++.
    (GCC_LINK): Use CXX instead of CC.
    * gcc-interface/Make-lang.in (CXX_LFLAGS): New.
    (ADA_TOOLS_FLAGS_TO_PASS): Pass CXX, and CXX_LFLAGS for native.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/Make-lang.in
    trunk/gcc/ada/gcc-interface/Makefile.in
    trunk/gnattools/ChangeLog
    trunk/gnattools/Makefile.in


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2013-09-01 16:51 ` ebotcazou at gcc dot gnu.org
@ 2013-09-01 16:54 ` ebotcazou at gcc dot gnu.org
  2013-11-29 10:55 ` laguest at archeia dot com
  2013-11-29 11:07 ` ebotcazou at gcc dot gnu.org
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-09-01 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Presumably fixed.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2013-09-01 16:54 ` ebotcazou at gcc dot gnu.org
@ 2013-11-29 10:55 ` laguest at archeia dot com
  2013-11-29 11:07 ` ebotcazou at gcc dot gnu.org
  18 siblings, 0 replies; 19+ messages in thread
From: laguest at archeia dot com @ 2013-11-29 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

Luke A. Guest <laguest at archeia dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |laguest at archeia dot com

--- Comment #19 from Luke A. Guest <laguest at archeia dot com> ---
I think this fix has been reverted somewhere in source as I've just got trunk
from SVN and have had to patch by hand.


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

* [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'
       [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
                   ` (17 preceding siblings ...)
  2013-11-29 10:55 ` laguest at archeia dot com
@ 2013-11-29 11:07 ` ebotcazou at gcc dot gnu.org
  18 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-11-29 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I think this fix has been reverted somewhere in source as I've just got
> trunk from SVN and have had to patch by hand.

It's very easy to check, the patch is linked from comment #17...


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

end of thread, other threads:[~2013-11-29 11:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58239-4@http.gcc.gnu.org/bugzilla/>
2013-08-25 17:07 ` [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)' gdr at gcc dot gnu.org
2013-08-25 18:07 ` pinskia at gcc dot gnu.org
2013-08-25 21:06 ` ebotcazou at gcc dot gnu.org
2013-08-25 21:55 ` gdr at gcc dot gnu.org
2013-08-26  0:23 ` gdr at gcc dot gnu.org
2013-08-28  9:18 ` rguenth at gcc dot gnu.org
2013-08-30  9:47 ` iains at gcc dot gnu.org
2013-08-30 14:24 ` gdr at gcc dot gnu.org
2013-08-30 14:54 ` iains at gcc dot gnu.org
2013-08-30 15:01 ` ebotcazou at gcc dot gnu.org
2013-08-30 15:07 ` gdr at gcc dot gnu.org
2013-08-31 21:21 ` ebotcazou at gcc dot gnu.org
2013-09-01  9:28 ` iains at gcc dot gnu.org
2013-09-01  9:49 ` ebotcazou at gcc dot gnu.org
2013-09-01 16:16 ` dominiq at lps dot ens.fr
2013-09-01 16:51 ` ebotcazou at gcc dot gnu.org
2013-09-01 16:54 ` ebotcazou at gcc dot gnu.org
2013-11-29 10:55 ` laguest at archeia dot com
2013-11-29 11:07 ` ebotcazou 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).