Bob Duff 39ba3bb913 ada: Get rid of Sy/Sm mixing (Expression)
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.
2025-11-03 15:15:17 +01:00
2025-10-31 00:22:18 +00:00
2025-10-26 00:17:33 +00:00
2025-10-29 00:19:49 +00:00
2025-10-25 00:18:16 +00:00
2025-10-31 00:22:18 +00:00
2025-11-03 00:18:56 +00:00
2025-10-31 00:22:18 +00:00

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
No description provided
Readme 4.2 GiB
Languages
C++ 30.7%
C 30.2%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.4%