[Bug lto/41564] New: -fdump-tree-all does not work with lto

View: New views
11 Messages — Rating Filter:   Alert me  

[Bug lto/41564] New: -fdump-tree-all does not work with lto

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was testing out LTO and found -fdump-tree-all did not work.

I even made sure that -fdump-tree-all was added to the command line:
/home/pinskia/lto-gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto1 -quiet
-dumpbase lua.o -mtune=generic -auxbase-strip /tmp/ccMdUKXU.lto.o -O2 -Wall
-version -fdump-tree-all @t.sh

And it still does not work.


--
           Summary: -fdump-tree-all does not work with lto
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


[Bug driver/41564] -fdump-tree-all does not work as expected lto

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-10-04 09:20 -------
It works - look into /tmp.

$ ./xgcc -B. -o t t.i -flto -fdump-tree-all
$ ls /tmp/
ccJKyW5f.o.140t.optimized
ccJKyW5f.o.221t.statistics

you need to use -save-temps to get nice names here.  It also works with your
lto1 invocation which would dump in /tmp/lua.o.

So, is your complaint that it dumps to /tmp or that it dumps with a cc*.o
base if not using -save-temps?


--

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|lto                         |driver
           Keywords|                            |lto
            Summary|-fdump-tree-all does not    |-fdump-tree-all does not
                   |work with lto               |work as expected lto


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


[Bug driver/41564] -fdump-tree-all does not work as expected lto

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-10-04 16:13 -------
Ok, this works but /tmp seems the wrong place for the dumps.


pinskia@gcc13:~/src/lua-5.1.4/src$ !ls
ls /tmp/*.[0-9][0-9][0-9]t.*
/tmp/lua.o.057t.addressables  


--


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


[Bug driver/41564] -fdump-tree-all does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-04 18:58:10
               date|                            |
            Summary|-fdump-tree-all does not    |-fdump-tree-all does not
                   |work as expected lto        |work as expected


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


[Bug driver/41564] -fdump-tree-all does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-10-14 16:20 -------
*** Bug 41708 has been marked as a duplicate of this bug. ***


--

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl dot tools at gmail dot
                   |                            |com


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


[Bug driver/41564] -fdump-tree-all does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-10-14 16:23 -------
One symptom is that (from PR41708) the dg-torture leaves behind dump files
in /tmp:

[hjl@gnu-26 tmp]$ ls cc*
cc04uxjw.o.063t.alias      ccij5SzB.o.063t.alias      ccS3qzsd.o.063t.alias
cc2agDxi.o.063t.alias      ccIPR8Wx.o.063t.alias      ccsaxP8c.wpa.o.063t.alias
cc2P8Is7.o.063t.alias      cck79Seb.wpa.o.063t.alias  ccsLaryV.wpa.o.063t.alias
...


--


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


[Bug driver/41564] -fdump-tree-all for lto does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #5 from pinskia at gcc dot gnu dot org  2009-11-03 20:02 -------
My /tmp is small so this causes it to be filled up quickly.  Is there a simple
work around?


--

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
            Summary|-fdump-tree-all does not    |-fdump-tree-all for lto does
                   |work as expected            |not work as expected


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


[Bug driver/41564] -fdump-tree-all for lto does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #6 from rguenther at suse dot de  2009-11-04 09:32 -------
Subject: Re:  -fdump-tree-all for lto does not work as
 expected

On Tue, 3 Nov 2009, pinskia at gcc dot gnu dot org wrote:

> ------- Comment #5 from pinskia at gcc dot gnu dot org  2009-11-03 20:02 -------
> My /tmp is small so this causes it to be filled up quickly.  Is there a simple
> work around?

No.

Richard.


--


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


Re: [Bug driver/41564] -fdump-tree-all for lto does not work as expected

by Andrew Pinski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Sent from my iPhone

On Nov 4, 2009, at 1:32 AM, "rguenther at suse dot de" <gcc-bugzilla@...
 > wrote:

>
>
> ------- Comment #6 from rguenther at suse dot de  2009-11-04 09:32  
> -------
> Subject: Re:  -fdump-tree-all for lto does not work as
> expected
>
> On Tue, 3 Nov 2009, pinskia at gcc dot gnu dot org wrote:
>
>> ------- Comment #5 from pinskia at gcc dot gnu dot org  2009-11-03  
>> 20:02 -------
>> My /tmp is small so this causes it to be filled up quickly.  Is  
>> there a simple
>> work around?
>
> No.

Actually thinking about it, setting TMPDIR env is a workaround :)


>
> Richard.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41564
>

[Bug driver/41564] -fdump-tree-all for lto does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #7 from pinskia at gmail dot com  2009-11-04 13:57 -------
Subject: Re:  -fdump-tree-all for lto does not work as expected



Sent from my iPhone

On Nov 4, 2009, at 1:32 AM, "rguenther at suse dot de"
<gcc-bugzilla@...
 > wrote:

>
>
> ------- Comment #6 from rguenther at suse dot de  2009-11-04 09:32  
> -------
> Subject: Re:  -fdump-tree-all for lto does not work as
> expected
>
> On Tue, 3 Nov 2009, pinskia at gcc dot gnu dot org wrote:
>
>> ------- Comment #5 from pinskia at gcc dot gnu dot org  2009-11-03  
>> 20:02 -------
>> My /tmp is small so this causes it to be filled up quickly.  Is  
>> there a simple
>> work around?
>
> No.

Actually thinking about it, setting TMPDIR env is a workaround :)


>
> Richard.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41564
>


--


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


[Bug driver/41564] -fdump-tree-all for lto does not work as expected

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #8 from hjl dot tools at gmail dot com  2009-12-23 21:01 -------
Since LTO tree dump is quite different, can't we give it a different
command line option, something like -fdump-tree-lto-all, instead of
enabling it with -fdump-tree-all?


--


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