public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb
@ 2011-09-29 11:00 gjl at gcc dot gnu.org
2011-09-29 11:23 ` [Bug target/50566] " gjl at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-29 11:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
Bug #: 50566
Summary: [avr]: Add support for better logging similar to -mdeb
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
AssignedTo: gjl@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
CC: eric.weddington@atmel.com
Target: avr
-mdeb lets avr-gcc print log information as a file is being compiled but it's
hard to depict from the information
- what function is just being compiled
- what pass gcc is in
- ...
Forover, it would be nice to have a printf-like function to print formatted
output together with trees, RTXes, register classes, rtx codes, etc.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
@ 2011-09-29 11:23 ` gjl at gcc dot gnu.org
2011-09-29 11:58 ` gjl at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-29 11:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-09-29
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
2011-09-29 11:23 ` [Bug target/50566] " gjl at gcc dot gnu.org
@ 2011-09-29 11:58 ` gjl at gcc dot gnu.org
2011-09-29 16:41 ` gjl at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-29 11:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-09-29 11:52:04 UTC ---
Author: gjl
Date: Thu Sep 29 11:51:59 2011
New Revision: 179344
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179344
Log:
PR target/50566
* config.gcc (extra_objs): Add avr-log.o for $target in:
avr-*-rtems*, avr-*-*.
* config/avr/t-avr (avr-log.o): New rule to compile...
* config/avr/avr-log.c: ...this new file.
* config/avr/avr.opt (mlog=): New option.
* config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
(avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
(avr_log_set_avr_log): New prototype.
(avr_log_t): New typedef.
(avr_log): New declaration.
* config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
Added:
trunk/gcc/config/avr/avr-log.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
trunk/gcc/config/avr/avr-protos.h
trunk/gcc/config/avr/avr.c
trunk/gcc/config/avr/avr.opt
trunk/gcc/config/avr/t-avr
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
2011-09-29 11:23 ` [Bug target/50566] " gjl at gcc dot gnu.org
2011-09-29 11:58 ` gjl at gcc dot gnu.org
@ 2011-09-29 16:41 ` gjl at gcc dot gnu.org
2011-09-29 16:47 ` gjl at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-29 16:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-09-29 16:25:09 UTC ---
Author: gjl
Date: Thu Sep 29 16:24:57 2011
New Revision: 179359
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179359
Log:
PR target/50566
* config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
* config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
from avr_rtx_costs.
(avr_legitimate_address_p): Use avr_edump to print log information
filtered by avr_log.
(extra_constraint_Q): Ditto.
(avr_legitimize_address): Ditto.
(avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
(final_prescan_insn): Use avr_log.rtx_costs as filter.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr-log.c
trunk/gcc/config/avr/avr.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2011-09-29 16:41 ` gjl at gcc dot gnu.org
@ 2011-09-29 16:47 ` gjl at gcc dot gnu.org
2011-09-30 15:49 ` gjl at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-29 16:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-09-29 16:29:04 UTC ---
Done.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
` (3 preceding siblings ...)
2011-09-29 16:47 ` gjl at gcc dot gnu.org
@ 2011-09-30 15:49 ` gjl at gcc dot gnu.org
2011-10-04 8:24 ` gjl at gcc dot gnu.org
2011-11-25 11:32 ` gjl at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-09-30 15:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-09-30 15:15:32 UTC ---
Author: gjl
Date: Fri Sep 30 15:15:23 2011
New Revision: 179391
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179391
Log:
PR target/50566
* config/avr/avr-protos.h (avr_log_t): New field address_cost.
* config/avr/avr.c (avr_address_cost): Use it.
* config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
(avr_log_vadump): Unknown %-codes finish printing.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr-log.c
trunk/gcc/config/avr/avr-protos.h
trunk/gcc/config/avr/avr.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
` (4 preceding siblings ...)
2011-09-30 15:49 ` gjl at gcc dot gnu.org
@ 2011-10-04 8:24 ` gjl at gcc dot gnu.org
2011-11-25 11:32 ` gjl at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-10-04 8:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-10-04 08:23:08 UTC ---
Author: gjl
Date: Tue Oct 4 08:23:03 2011
New Revision: 179494
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179494
Log:
PR target/50566
* config/avr/avr-protos.h (avr_legitimize_reload_address): New
prototype.
* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
from here...
* config/avr/avr.c (avr_legitimize_reload_address) ...to this new
function. Log if avr_log.legitimize_reload_address.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr-protos.h
trunk/gcc/config/avr/avr.c
trunk/gcc/config/avr/avr.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/50566] [avr]: Add support for better logging similar to -mdeb
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
` (5 preceding siblings ...)
2011-10-04 8:24 ` gjl at gcc dot gnu.org
@ 2011-11-25 11:32 ` gjl at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-11-25 11:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50566
--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-11-25 10:46:15 UTC ---
Author: gjl
Date: Fri Nov 25 10:46:10 2011
New Revision: 181718
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181718
Log:
PR target/50566
* config/avr/avr-protos.h (avr_log_t): Add field .builtin.
* config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
(avr_log_vadump): Support %D and %X to print double_int.
(avr_double_int_pop_digit): New static function.
(avr_dump_double_int_hex): New static function.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr-log.c
trunk/gcc/config/avr/avr-protos.h
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-11-25 10:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29 11:00 [Bug target/50566] New: [avr]: Add support for better logging similar to -mdeb gjl at gcc dot gnu.org
2011-09-29 11:23 ` [Bug target/50566] " gjl at gcc dot gnu.org
2011-09-29 11:58 ` gjl at gcc dot gnu.org
2011-09-29 16:41 ` gjl at gcc dot gnu.org
2011-09-29 16:47 ` gjl at gcc dot gnu.org
2011-09-30 15:49 ` gjl at gcc dot gnu.org
2011-10-04 8:24 ` gjl at gcc dot gnu.org
2011-11-25 11:32 ` gjl at gcc dot gnu.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).