[Bug debug/24801] -d option changes debug information

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 6 13:29:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24801

Oleg Endo <olegendo at gcc dot gnu.org> changed:

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

--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Jorn Wolfgang Rennecke from comment #1)
> 
> For sh-elf,
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-0
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-01
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-02
> all produce the same result (with address space randomization active),
> which is differs in debug info from what you get with any of:
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-1  -da
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-11  -da
> ./cc1 -fpreprocessed -g -O2  l0.c -o l0.s-12  -da

(In reply to Richard Biener from comment #2)
> Still?

I have checked the test case on sh-elf with the above flags.  The resulting
files are identical.  I guess we can close this PR.  Not sure how to add the
test case to the test suite though.


More information about the Gcc-bugs mailing list