diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-16 11:40:25 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-16 11:40:25 +0000 |
commit | 8cd167a5ad8baf4988e07fcbc9c9cc338c02d3d1 (patch) | |
tree | 74fd60c507288ef44ed7f786fafeecbb5df0e160 /gcc/config/avr/gen-avr-mmcu-specs.c | |
parent | f80b5ea1605c9f9408c5aa386ba71c16d918ebbf (diff) | |
download | gcc-tarball-8cd167a5ad8baf4988e07fcbc9c9cc338c02d3d1.tar.gz |
gcc-5.2.0gcc-5.2.0
Diffstat (limited to 'gcc/config/avr/gen-avr-mmcu-specs.c')
-rw-r--r-- | gcc/config/avr/gen-avr-mmcu-specs.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/config/avr/gen-avr-mmcu-specs.c b/gcc/config/avr/gen-avr-mmcu-specs.c index 3594d8a771..d21125b39c 100644 --- a/gcc/config/avr/gen-avr-mmcu-specs.c +++ b/gcc/config/avr/gen-avr-mmcu-specs.c @@ -48,7 +48,10 @@ #define SPECFILE_DOC_URL \ - "http://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html" + "https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html" + +#define SPECFILE_USAGE_URL \ + "https://gcc.gnu.org/gcc-5/changes.html" /* Return true iff STR starts with PREFIX. */ @@ -81,7 +84,9 @@ static const char header[] = static const char help_copy_paste[] = "# If you intend to use an existing device specs file as a starting point\n" "# for a new device spec file, make sure you are copying from a specs\n" - "# file for a device from the same core architecture and SP width.\n"; + "# file for a device from the same core architecture and SP width.\n" + "# See <" SPECFILE_USAGE_URL "> for a description\n" + "# of how to use such own spec files.\n"; #if defined (WITH_AVRLIBC) static const char help_dev_lib_name[] = @@ -171,11 +176,11 @@ print_mcu (const avr_mcu_t *mcu) if (is_device) { fprintf (f, "*avrlibc_startfile:\n"); - fprintf (f, "\tdev/%s/crt1.o%%s", mcu->name); + fprintf (f, "\tcrt%s.o%%s", mcu->name); fprintf (f, "\n\n"); fprintf (f, "*avrlibc_devicelib:\n"); - fprintf (f, "\t%%{!nodevicelib:dev/%s/libdev.a%%s}", mcu->name); + fprintf (f, "\t%%{!nodevicelib:-l%s}", mcu->name); fprintf (f, "\n\n"); } #endif // WITH_AVRLIBC @@ -264,6 +269,8 @@ print_mcu (const avr_mcu_t *mcu) } fprintf (f, "# End of file\n"); + + fclose (f); } |