aboutsummaryrefslogtreecommitdiff
path: root/gcc/ChangeLog
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-12-01 09:31:02 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-12-01 09:31:02 +0000
commit481445220b33cecb6978de0e3917980919f9d1f0 (patch)
tree3ebb050975be4f6dc3a15b36bc3ffa2aaf960f09 /gcc/ChangeLog
parentc178abcc58a87b2312bc526ceb37dd97939d7083 (diff)
downloadgcc-481445220b33cecb6978de0e3917980919f9d1f0.zip
gcc-481445220b33cecb6978de0e3917980919f9d1f0.tar.gz
gcc-481445220b33cecb6978de0e3917980919f9d1f0.tar.bz2
Improve error reporting from genattrtab.c
The errors reported by check_attr_value weren't very helpful because they always used the location of the define(_enum)_attr, even if the error was in a define_insn. Also, the errors reported by check_attr_test didn't say which attribute was faulty. Although not technically a bug fix, it was really useful in writing the patch for PR68432. Tested on a variety of targets. gcc/ * genattrtab.c (check_attr_test): Take an attr_desc instead of an is_const flag. Put the file_location argument first. Update recursive calls. Improve error messages. (check_attr_value): Take a file location and use it instead of attr->loc. Improve error messages. Update calls to check_attr_test. (check_defs): Update call to check_attr_value. (make_canonical): Likewise. (gen_attr): Likewise. (main): Likewise. (gen_insn_reserv): Update call to check_attr_test. From-SVN: r231103
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r--gcc/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a9f251..4dd84c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,17 @@
+2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
+
+ * genattrtab.c (check_attr_test): Take an attr_desc instead of
+ an is_const flag. Put the file_location argument first.
+ Update recursive calls. Improve error messages.
+ (check_attr_value): Take a file location and use it instead
+ of attr->loc. Improve error messages. Update calls to
+ check_attr_test.
+ (check_defs): Update call to check_attr_value.
+ (make_canonical): Likewise.
+ (gen_attr): Likewise.
+ (main): Likewise.
+ (gen_insn_reserv): Update call to check_attr_test.
+
2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.