summaryrefslogtreecommitdiff
path: root/gcc/tree.def
diff options
context:
space:
mode:
authortoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-19 18:33:30 +0000
committertoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-19 18:33:30 +0000
commitabc061c5f8d4bce2cdbd9a3a948e009b6a068fed (patch)
tree2ed7d4fa1d6ed1f855ef6d2b7b3558f67e086566 /gcc/tree.def
parent44b157cfd740f9b0e0378f5e0c0295e4ff1f21a6 (diff)
downloadgcc-abc061c5f8d4bce2cdbd9a3a948e009b6a068fed.tar.gz
2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
* tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument. * doc/tree.texi: Ditto. * f/com.c (ffecom_expr_intrinsic_): Cope with it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.def')
-rw-r--r--gcc/tree.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree.def b/gcc/tree.def
index 4a78694ae8e..56bc8ef15e7 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -617,7 +617,9 @@ DEFTREECODE (FFS_EXPR, "ffs_expr", '1', 1)
Shift means logical shift if done on an
unsigned type, arithmetic shift if done on a signed type.
The second operand is the number of bits to
- shift by; it need not be the same type as the first operand and result. */
+ shift by; it need not be the same type as the first operand and result.
+ Note that the result is undefined if the second operand is larger
+ than the first operand's type size. */
DEFTREECODE (LSHIFT_EXPR, "lshift_expr", '2', 2)
DEFTREECODE (RSHIFT_EXPR, "rshift_expr", '2', 2)
DEFTREECODE (LROTATE_EXPR, "lrotate_expr", '2', 2)