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

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 2 01:14:00 GMT 2010



------- Comment #15 from hjl dot tools at gmail dot com  2010-01-02 01:14 -------
Created an attachment (id=19442)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19442&action=view)
A patch

lto-wrapper translates

/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -o gcc-dg-lto-20081222-31
-fdump-tree-all -v -mtune=generic c_lto_20081222_0.o c_lto_20081222_1.o 

to

/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -combine -x lto -c -o
/tmp/cclzoEg3.lto.o -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2
--fdump-tree-all -mtune=generic c_lto_20081222_0.o c_lto_20081222_1.o

There is no good way to tell which directory should be used for
dump. This patch adds -dumpdir. lto-wrapper uses it to tell lto1
where to dump files.



-- 

hjl dot tools at gmail dot com changed:

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


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



More information about the Gcc-bugs mailing list