public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18553] New: Annoying warning with -ffunction-sections -g
@ 2004-11-18 19:41 bernie at develer dot com
2004-11-18 19:42 ` [Bug target/18553] " bernie at develer dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bernie at develer dot com @ 2004-11-18 19:41 UTC (permalink / raw)
To: gcc-bugs
When building with both -ffunction-sections and
-g, the compiler outputs an invalid warning for
each compiled file:
drv/timer.c:1: warning: -ffunction-sections may affect debugging on some targets
The code printing this is here:
--- gcc/toplev.c ---
#ifndef OBJECT_FORMAT_ELF
if (flag_function_sections && write_symbols != NO_DEBUG)
warning ("-ffunction-sections may affect debugging on some targets");
#endif
--- gcc/toplev.c ---
A possible fix could be adding elfos.h to the tm_file
list for the avr target in config.gcc, which may also
lead to simplifications in some parts of config/avr.h.
--
Summary: Annoying warning with -ffunction-sections -g
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: target
AssignedTo: denisc at overta dot ru
ReportedBy: bernie at develer dot com
CC: gcc-bugs at gcc dot gnu dot org,marekm at amelek dot gda
dot pl
GCC host triplet: avr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18553
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/18553] Annoying warning with -ffunction-sections -g
2004-11-18 19:41 [Bug target/18553] New: Annoying warning with -ffunction-sections -g bernie at develer dot com
@ 2004-11-18 19:42 ` bernie at develer dot com
2004-11-18 20:28 ` pinskia at gcc dot gnu dot org
2004-11-18 20:41 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: bernie at develer dot com @ 2004-11-18 19:42 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.3 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2004-11-18 19:42:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18553
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/18553] Annoying warning with -ffunction-sections -g
2004-11-18 19:41 [Bug target/18553] New: Annoying warning with -ffunction-sections -g bernie at develer dot com
2004-11-18 19:42 ` [Bug target/18553] " bernie at develer dot com
@ 2004-11-18 20:28 ` pinskia at gcc dot gnu dot org
2004-11-18 20:41 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-18 20:28 -------
*** Bug 18552 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18553
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/18553] Annoying warning with -ffunction-sections -g
2004-11-18 19:41 [Bug target/18553] New: Annoying warning with -ffunction-sections -g bernie at develer dot com
2004-11-18 19:42 ` [Bug target/18553] " bernie at develer dot com
2004-11-18 20:28 ` pinskia at gcc dot gnu dot org
@ 2004-11-18 20:41 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-18 20:41 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-11-18 19:42:06 |2004-11-18 20:41:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18553
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-18 20:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-18 19:41 [Bug target/18553] New: Annoying warning with -ffunction-sections -g bernie at develer dot com
2004-11-18 19:42 ` [Bug target/18553] " bernie at develer dot com
2004-11-18 20:28 ` pinskia at gcc dot gnu dot org
2004-11-18 20:41 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).