[Bug lto/93493] New: -flto -flto-partition=none -fipa-pass -fdump-ipa-pass dump_file still in /tmp
erick.ochoa@theobroma-systems.com
gcc-bugzilla@gcc.gnu.org
Wed Jan 29 15:19:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93493
Bug ID: 93493
Summary: -flto -flto-partition=none -fipa-pass -fdump-ipa-pass
dump_file still in /tmp
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: erick.ochoa@theobroma-systems.com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 47728
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47728&action=edit
Hello world IPA pass
Hello,
I am working on an optimization and using -fdump-ipa-$pass for debugging
purposes.
I was initially compiling some test programs in the following way:
```
/path/to/gcc -flto -fipa-hello-world -fdump-ipa-hello-world a.c
```
And a `cc*.074i.hello-world` with the debug information was always available in
my current working directory after compiling
However, recently, I've needed change my compilation scripts by adding
`-flto-partition=none`. Compiling in the following way:
```
/path/to/gcc -flto -flto-partition=none -fipa-hello-world
-fdump-ipa-hello-world a.c
```
Produces no `cc*.074i.hello-world` file in my current working directory.
However, I do see it in the /tmp/ folder.
I attach a "hello world pass" patch to replicate this issue via the commands
given in this ticket.
I have rebased the patch against the following commit:
commit f214ffb336d582a66149068a2a96b7fcf395b5de (HEAD -> gcc-bug-0,
upstream/master, gcc-master)
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jan 29 13:56:49 2020 +0000
More information about the Gcc-bugs
mailing list