public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Denis Chertykov <chertykov@gmail.com>
To: Georg-Johann Lay <avr@gjlay.de>
Cc: Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>,
		Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Subject: Re: [patch,avr]: Part5: Fix various problems with specs and specs file generation.
Date: Tue, 17 Mar 2015 06:37:00 -0000	[thread overview]
Message-ID: <CADOs=zbVYZsHJ3-Mb=UFKBWSC0c_8rVHyfLMGqsj4UAmZkvkaA@mail.gmail.com> (raw)
In-Reply-To: <55071E4C.7000602@gjlay.de>

2015-03-16 21:17 GMT+03:00 Georg-Johann Lay <avr@gjlay.de>:
> This patch introduces a new avr specific command option '-nodevicelib' so
> that linking of libdev.a can be bypassed.
>
> The argument of -specs= is suffixed by %s instead of supplying the absolute
> path.  That way -specs= works with installation path that contains spaces.
>
> avr_mct_t.library_name and its initializers in avr-mcus.def are cleaned up.
>
> This field was used to define __AVR_DEV_LIB_NAME__.  If no device macro is
> defined because a device is not supported by avr-gcc, that hook macro can be
> defined to tell avr/io.h where to find the device's header file.
>
> This means it is pointless to define __AVR_DEV_LIB_NAME__ in avr-gcc:
>
> If a device is supported, the device macro (e.g. __AVR_ATmega8__) is defined
> and __AVR_DEV_LIB_NAME__ will never be used.
>
> The patch adds more help text to the device specs file to inform a potential
> reader about the role of the hook macro __AVR_DEV_LIB_NAME__.
>
> The patch also removes specs known to GCC and which don't directly depend on
> the device from the device specs file.  This makes the specs file smaller
> and easier less confusing.
>
> Ok for trunk?
>
> Johann
>
>
>         PR target/65296
>         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [AVR1]: Don't link
>         libgcc.a, libc.a, libm.a.
>         * config/avr/specs.h: Same.
>         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
>         which don't (directly) depend on the device.  Print more help.
>         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
>         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
>         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
>         case of an error.
>         (avr_devicespecs_file): Use suffix "%s" instead of absolute path.
>         for specs file name instead of absolute path.
>         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
>         * config/avr/avr-mcus.def: Same: Adjust initializers.
>         * config/avr/avr.opt (-nodevicelib): New option.
>         * doc/invoke.texi (AVR Options): Document it.
>

Please apply.

Denis.

  reply	other threads:[~2015-03-17  6:37 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 19:40 [patch,avr]: " Georg-Johann Lay
2015-03-03  7:46 ` Denis Chertykov
2015-03-03 13:20 ` Senthil Kumar Selvaraj
2015-03-09 16:03   ` [patch,avr]: Part2: " Georg-Johann Lay
2015-03-09 20:00     ` Denis Chertykov
2015-03-10 15:02       ` [patch,avr]: Part3 and 4: " Georg-Johann Lay
2015-03-11 18:18         ` Denis Chertykov
2015-03-16 18:18           ` [patch,avr]: Part5: " Georg-Johann Lay
2015-03-17  6:37             ` Denis Chertykov [this message]
2015-04-06  9:54     ` [patch,avr]: Part2: " Sivanupandi, Pitchumani
2015-04-07 12:34       ` Georg-Johann Lay
2015-04-08  8:28         ` Denis Chertykov
2015-04-08 11:25           ` Georg-Johann Lay
2015-04-09 10:59             ` Sivanupandi, Pitchumani
2015-04-09 11:23               ` Georg-Johann Lay
2015-04-09 12:55                 ` Sivanupandi, Pitchumani
2015-04-15 10:17                   ` Sivanupandi, Pitchumani
2015-04-17 14:03                     ` [patch,avr,installed] ad PR65296: Adjust specs to new avr-libc layout as of #44574 Georg-Johann Lay
2015-04-17 14:43                       ` Denis Chertykov
2015-04-17 15:32                         ` Georg-Johann Lay
2015-04-17 16:46                           ` Denis Chertykov
2015-04-09 11:44               ` [patch,avr,committed]: ad PR65296: work around device-specs file + dejagnu for c++ Georg-Johann Lay
2015-03-09 16:21   ` [patch,avr]: Fix various problems with specs and specs file generation Georg-Johann Lay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADOs=zbVYZsHJ3-Mb=UFKBWSC0c_8rVHyfLMGqsj4UAmZkvkaA@mail.gmail.com' \
    --to=chertykov@gmail.com \
    --cc=avr@gjlay.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joerg_wunsch@uriah.heep.sax.de \
    --cc=senthil_kumar.selvaraj@atmel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).