This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs build report


On Thu, 18 Jun 1998, Joe Buck wrote:

>> > Yes, we want -g included in the flags by default.
>> 
>> Why?
>...
>I don't want to suddenly get lots of mail from folks who can't debug
>their code (because someone installed a libstdc++ with no debug symbols).

Actually, this is a good point.  Although I don't know why c++ debugging
requires library symbols (I can debug my C code even though I can't step
into strcpy (why would I want to?)).  But the compiler itself surely
doesn't need -g to run.  Perhaps some selectivity is called for.

As long as we're on this, could somebody please satisfy my curiosity about
this: does -g impact the performance of -O?  In some compilers, -g turns
-O off, and that's mostly why I don't use it (unless I specifically want
to run gdb).  But what's the story with gcc/egcs?

Dr. Tom Holroyd
Behavior Control Lab, Human Informatics Dept.            The basis of
National Institute of Bioscience and Human-Technology    stability is
1-1 Higashi, Tsukuba-shi, Ibaraki 305, Japan             instability.
The 9th Amendment of the U.S. Constitution:
"The enumeration in the Constitution, of certain rights, shall not be
construed to deny or disparage others retained by the people."



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]