aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2015-04-27 11:43:20 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2015-04-27 11:43:20 +0000
commit2e3a3cc86935312a736312d05d8fb97d8ff32e3e (patch)
treefc2138f445d7442a3601c2e912d56458006467b9
parent9c3cb3607913d35e96243a26b1ad4aaee1ad8a68 (diff)
downloadgcc-2e3a3cc86935312a736312d05d8fb97d8ff32e3e.zip
gcc-2e3a3cc86935312a736312d05d8fb97d8ff32e3e.tar.gz
gcc-2e3a3cc86935312a736312d05d8fb97d8ff32e3e.tar.bz2
re PR target/65296 ([avr] fix various issues with specs file generation)
PR target/65296 PR target/65895 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file. Add hint how to use own spec file. From-SVN: r222459
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/avr/gen-avr-mmcu-specs.c11
2 files changed, 16 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea2fb2a..be8560c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2015-04-27 Georg-Johann Lay <avr@gjlay.de>
+
+ PR target/65296
+ PR target/65895
+ * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
+ Add hint how to use own spec file.
+
2015-04-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/65875
diff --git a/gcc/config/avr/gen-avr-mmcu-specs.c b/gcc/config/avr/gen-avr-mmcu-specs.c
index eda8d86..d21125b 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[] =
@@ -264,6 +269,8 @@ print_mcu (const avr_mcu_t *mcu)
}
fprintf (f, "# End of file\n");
+
+ fclose (f);
}