mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
39ba3bb91312eaa37fbcfb94e5cb7689df7e690f
We should not mix "syntactic" and "semantic" for the same field in different node kinds. The Expression field was both syntactic (in N_Exception_Declaration) and semantic (in all other node kinds). This patch makes it always syntactic. Expression is the last such field, so we remove all code and comments that allowed for such mixing. The Expression field in N_Exception_Declaration was never properly documented; fix that. No change in overall compiler behavior. An alternative would be to change the name of this Expression field to be something else (Exception_Declaration_Expression?), and keep it as "semantic". That would cause an earthquake in gigi, because gigi wants to treat exception declarations more-or-less like normal object declarations, with the Expression field being the initialization expression. So we don't do that. gcc/ada/ChangeLog: * gen_il-gen-gen_nodes.adb (N_Exception_Declaration): Change Expression from Sm to Sy, to match other Expression fields. * gen_il-gen.adb (Setter_Needs_Parent): Expression no longer needs to be a special case. (Check_For_Syntactic_Field_Mismatch): Do not exempt Expression from the Sy/Sm mixing rule. This was the last such case, so remove all the exemption code. * gen_il-gen.ads: Update comments to match new code. * sinfo.ads (N_Exception_Declaration): Document the meaning of the Expression field, because it doesn't follow from the RM syntax of exception_declaration. * exp_ch11.adb: Minor comment fixes.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.
Description
Languages
C++
30.7%
C
30.2%
Ada
14.4%
D
6.1%
Go
5.7%
Other
12.4%