This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch, avr] Tidy up avr-log.c


2015-02-24 16:09 GMT+03:00 Georg-Johann Lay <avr@gjlay.de>:
> avr-log.c and respective macros in avr-protos.h still assume that the
> implementation language is C90, i.e. no variadic macros are available.
>
> This patch cleans up the code from the cumbersome old approach and uses
> variadic macros for avr_dump, avr_edump and avr_fdump.
>
> Ok for trunk?
>
> Johann
>
>
>         Use variadic macros with avr-log.c.
>
>         * config/avr/avr-protos.h (avr_vdump): New prototype.
>         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
>         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
>         * config/avr/avr-log.c: Adjust comments.
>         (avr_vdump): New function.
>         (avr_vadump): Pass caller as 2nd argument instead of format string.
>         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
>         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.

Ok.

Denis.


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