Common options funny things

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm playing with frontend creation, and i got through funny behaviour
about -fdump-passes (and other common options) with gcc 14.1 and gcc
14.2.

Raw facts:
$install/bin/gcc -o out mysource.myext -fdump-passes
Does NOT dump passes, even if i copy fdump-passes option def in my
lang.opt.

gdb $install/bin/gcc / run -o out mysource.myext -fdump-passes
Dumps passes as expected if i follow inferior (set follow-fork-mode
child / set detach-on-fork off, unsensitive to set
disable-randomization).
Does not dump passes if not following inferiors.

$install/libexec/[...]/myfrontend -o out mysource.myext -fdump-passes
Dumps passes as expected.

All that raises some questions:
- what is the expected behaviour when invoking gcc? (in my
  understanding, it should dump).
- is there a known reason to explain this behaviour mismatch
  under gdb depending on gdb's configuration?
- is there anything i should do to support common options in my
  frontend?

I can provide more informations about my frontend, but i do nothing
fancy in here, that's just to learn how to code in GENERIC.

Thanks for having read until this point.

Regards




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux