亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? c-convert.c

?? 這是完整的gcc源代碼
?? C
字號(hào):
/* Language-level data type conversion for GNU C.   Copyright (C) 1987, 1988 Free Software Foundation, Inc.This file is part of GNU CC.GNU CC is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 1, or (at your option)any later version.GNU CC is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU CC; see the file COPYING.  If not, write tothe Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  *//* This file contains the functions for converting C expressions   to different data types.  The only entry point is `convert'.   Every language front end must have a `convert' function   but what kind of conversions it does will depend on the language.  */#include "config.h"#include "tree.h"/* Change of width--truncation and extension of integers or reals--   is represented with NOP_EXPR.  Proper functioning of many things   assumes that no other conversions can be NOP_EXPRs.   Conversion between integer and pointer is represented with CONVERT_EXPR.   Converting integer to real uses FLOAT_EXPR   and real to integer uses FIX_TRUNC_EXPR.   Here is a list of all the functions that assume that widening and   narrowing is always done with a NOP_EXPR:     In c-convert.c, convert_to_integer.     In c-typeck.c, build_binary_op_nodefault (boolean ops),        and truthvalue_conversion.     In expr.c: expand_expr, for operands of a MULT_EXPR.     In fold-const.c: fold.     In tree.c: get_narrower and get_unwidened.  *//* Subroutines of `convert'.  */static treeconvert_to_pointer (type, expr)     tree type, expr;{  register tree intype = TREE_TYPE (expr);  register enum tree_code form = TREE_CODE (intype);    if (integer_zerop (expr))    {      if (type == TREE_TYPE (null_pointer_node))	return null_pointer_node;      expr = build_int_2 (0, 0);      TREE_TYPE (expr) = type;      return expr;    }  if (form == POINTER_TYPE)    return build (NOP_EXPR, type, expr);  if (form == INTEGER_TYPE || form == ENUMERAL_TYPE)    {      if (type_precision (intype) == POINTER_SIZE)	return build (CONVERT_EXPR, type, expr);      return convert_to_pointer (type,				 convert (type_for_size (POINTER_SIZE, 0),					  expr));    }  error ("cannot convert to a pointer type");  return null_pointer_node;}static treeconvert_to_real (type, expr)     tree type, expr;{  register enum tree_code form = TREE_CODE (TREE_TYPE (expr));  extern int flag_float_store;  if (form == REAL_TYPE)    return build (flag_float_store ? CONVERT_EXPR : NOP_EXPR,		  type, expr);  if (form == INTEGER_TYPE || form == ENUMERAL_TYPE)    return build (FLOAT_EXPR, type, expr);  if (form == POINTER_TYPE)    error ("pointer value used where a float was expected");  else    error ("aggregate value used where a float was expected");  {    register tree tem = make_node (REAL_CST);    TREE_TYPE (tem) = type;    TREE_REAL_CST (tem) = REAL_VALUE_ATOF ("0.0");    return tem;  }}/* The result of this is always supposed to be a newly created tree node   not in use in any existing structure.  */static treeconvert_to_integer (type, expr)     tree type, expr;{  register tree intype = TREE_TYPE (expr);  register enum tree_code form = TREE_CODE (intype);  extern tree build_binary_op_nodefault ();  extern tree build_unary_op ();  if (form == POINTER_TYPE)    {      if (integer_zerop (expr))	expr = integer_zero_node;      else	expr = fold (build (CONVERT_EXPR,			    type_for_size (POINTER_SIZE, 0), expr));      intype = TREE_TYPE (expr);      form = TREE_CODE (intype);      if (intype == type)	return expr;    }  if (form == INTEGER_TYPE || form == ENUMERAL_TYPE)    {      register int outprec = TYPE_PRECISION (type);      register int inprec = TYPE_PRECISION (intype);      register enum tree_code ex_form = TREE_CODE (expr);      if (outprec >= inprec)	return build (NOP_EXPR, type, expr);/* Here detect when we can distribute the truncation down past some arithmetic.   For example, if adding two longs and converting to an int,   we can equally well convert both to ints and then add.   For the operations handled here, such truncation distribution   is always safe.   It is desirable in these cases:   1) when truncating down to full-word from a larger size   2) when truncating takes no work.   3) when at least one operand of the arithmetic has been extended   (as by C's default conversions).  In this case we need two conversions   if we do the arithmetic as already requested, so we might as well   truncate both and then combine.  Perhaps that way we need only one.   Note that in general we cannot do the arithmetic in a type   shorter than the desired result of conversion, even if the operands   are both extended from a shorter type, because they might overflow   if combined in that type.  The exceptions to this--the times when   two narrow values can be combined in their narrow type even to   make a wider result--are handled by "shorten" in build_binary_op.  */      switch (ex_form)	{	case RSHIFT_EXPR:	  /* We can pass truncation down through right shifting	     when the shift count is a negative constant.  */	  if (TREE_CODE (TREE_OPERAND (expr, 1)) != INTEGER_CST	      || TREE_INT_CST_LOW (TREE_OPERAND (expr, 1)) > 0)	    break;	  goto trunc1;	case LSHIFT_EXPR:	  /* We can pass truncation down through left shifting	     when the shift count is a positive constant.  */	  if (TREE_CODE (TREE_OPERAND (expr, 1)) != INTEGER_CST	      || TREE_INT_CST_LOW (TREE_OPERAND (expr, 1)) < 0)	    break;	  /* In this case, shifting is like multiplication.  */	  goto trunc1;	case MAX_EXPR:	case MIN_EXPR:	case MULT_EXPR:	  {	    tree arg0 = get_unwidened (TREE_OPERAND (expr, 0), type);	    tree arg1 = get_unwidened (TREE_OPERAND (expr, 1), type);	    /* Don't distribute unless the output precision is at least as big	       as the actual inputs.  Otherwise, the comparison of the	       truncated values will be wrong.  */	    if (outprec >= TYPE_PRECISION (TREE_TYPE (arg0))		&& outprec >= TYPE_PRECISION (TREE_TYPE (arg1))		/* If signedness of arg0 and arg1 don't match,		   we can't necessarily find a type to compare them in.  */		&& (TREE_UNSIGNED (TREE_TYPE (arg0))		    == TREE_UNSIGNED (TREE_TYPE (arg1))))	      goto trunc1;	    break;	  }	case PLUS_EXPR:	case MINUS_EXPR:	case BIT_AND_EXPR:	case BIT_IOR_EXPR:	case BIT_XOR_EXPR:	case BIT_ANDTC_EXPR:	trunc1:	  {	    tree arg0 = get_unwidened (TREE_OPERAND (expr, 0), type);	    tree arg1 = get_unwidened (TREE_OPERAND (expr, 1), type);	    if (outprec >= BITS_PER_WORD		|| TRULY_NOOP_TRUNCATION (outprec, inprec)		|| inprec > TYPE_PRECISION (TREE_TYPE (arg0))		|| inprec > TYPE_PRECISION (TREE_TYPE (arg1)))	      {		/* Do the arithmetic in type TYPEX,		   then convert result to TYPE.  */		register tree typex = type;		/* Can't do arithmetic in enumeral types		   so use an integer type that will hold the values.  */		if (TREE_CODE (typex) == ENUMERAL_TYPE)		  typex = type_for_size (TYPE_PRECISION (typex),					 TREE_UNSIGNED (typex));		/* But now perhaps TYPEX is as wide as INPREC.		   In that case, do nothing special here.		   (Otherwise would recurse infinitely in convert.  */		if (TYPE_PRECISION (typex) != inprec)		  {		    /* Don't do unsigned arithmetic where signed was wanted,		       or vice versa.		       Exception: if the original operands were unsigned		       then can safely do the work as unsigned.		       And we may need to do it as unsigned		       if we truncate to the original size.  */		    typex = ((TREE_UNSIGNED (TREE_TYPE (expr))			      || TREE_UNSIGNED (TREE_TYPE (arg0)))			     ? unsigned_type (typex) : signed_type (typex));		    return convert (type,				    build_binary_op_nodefault (ex_form,							       convert (typex, arg0),							       convert (typex, arg1),							       ex_form));		  }	      }	  }	  break;	case EQ_EXPR:	case NE_EXPR:	case GT_EXPR:	case GE_EXPR:	case LT_EXPR:	case LE_EXPR:	case TRUTH_AND_EXPR:	case TRUTH_ANDIF_EXPR:	case TRUTH_OR_EXPR:	case TRUTH_ORIF_EXPR:	case TRUTH_NOT_EXPR:	  /* If we want result of comparison converted to a byte,	     we can just regard it as a byte, since it is 0 or 1.  */	  TREE_TYPE (expr) = type;	  return expr;	case NEGATE_EXPR:	case BIT_NOT_EXPR:	case ABS_EXPR:	  {	    register tree typex = type;	    /* Can't do arithmetic in enumeral types	       so use an integer type that will hold the values.  */	    if (TREE_CODE (typex) == ENUMERAL_TYPE)	      typex = type_for_size (TYPE_PRECISION (typex),				     TREE_UNSIGNED (typex));	    /* But now perhaps TYPEX is as wide as INPREC.	       In that case, do nothing special here.	       (Otherwise would recurse infinitely in convert.  */	    if (TYPE_PRECISION (typex) != inprec)	      {		/* Don't do unsigned arithmetic where signed was wanted,		   or vice versa.  */		typex = (TREE_UNSIGNED (TREE_TYPE (expr))			 ? unsigned_type (typex) : signed_type (typex));		return convert (type,				build_unary_op (ex_form,						convert (typex, TREE_OPERAND (expr, 0)),						1));	      }	  }	case NOP_EXPR:	  /* If truncating after truncating, might as well do all at once.	     If truncating after extending, we may get rid of wasted work.  */	  return convert (type, get_unwidened (TREE_OPERAND (expr, 0), type));	case COND_EXPR:	  /* Can treat the two alternative values like the operands	     of an arithmetic expression.  */	  {	    tree arg1 = get_unwidened (TREE_OPERAND (expr, 1), type);	    tree arg2 = get_unwidened (TREE_OPERAND (expr, 2), type);	    if (outprec >= BITS_PER_WORD		|| TRULY_NOOP_TRUNCATION (outprec, inprec)		|| inprec > TYPE_PRECISION (TREE_TYPE (arg1))		|| inprec > TYPE_PRECISION (TREE_TYPE (arg2)))	      {		/* Do the arithmetic in type TYPEX,		   then convert result to TYPE.  */		register tree typex = type;		/* Can't do arithmetic in enumeral types		   so use an integer type that will hold the values.  */		if (TREE_CODE (typex) == ENUMERAL_TYPE)		  typex = type_for_size (TYPE_PRECISION (typex),					 TREE_UNSIGNED (typex));		/* But now perhaps TYPEX is as wide as INPREC.		   In that case, do nothing special here.		   (Otherwise would recurse infinitely in convert.  */		if (TYPE_PRECISION (typex) != inprec)		  {		    /* Don't do unsigned arithmetic where signed was wanted,		       or vice versa.  */		    typex = (TREE_UNSIGNED (TREE_TYPE (expr))			     ? unsigned_type (typex) : signed_type (typex));		    return convert (type,				    build (COND_EXPR, typex,					   TREE_OPERAND (expr, 0),					   convert (typex, arg1),					   convert (typex, arg2)));		  }	      }	  }	}      return build (NOP_EXPR, type, expr);    }  if (form == REAL_TYPE)    return build (FIX_TRUNC_EXPR, type, expr);  error ("aggregate value used where an integer was expected");  {    register tree tem = build_int_2 (0, 0);    TREE_TYPE (tem) = type;    return tem;  }}/* Create an expression whose value is that of EXPR,   converted to type TYPE.  The TREE_TYPE of the value   is always TYPE.  This function implements all reasonable   conversions; callers should filter out those that are   not permitted by the language being compiled.  */treeconvert (type, expr)     tree type, expr;{  register tree e = expr;  register enum tree_code code = TREE_CODE (type);  if (type == TREE_TYPE (expr) || TREE_CODE (expr) == ERROR_MARK)    return expr;  if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK)    return error_mark_node;  if (TREE_CODE (TREE_TYPE (expr)) == VOID_TYPE)    {      error ("void value not ignored as it ought to be");      return error_mark_node;    }  if (code == VOID_TYPE)    return build (CONVERT_EXPR, type, e);#if 0  /* This is incorrect.  A truncation can't be stripped this way.     Extensions will be stripped by the use of get_unwidened.  */  if (TREE_CODE (expr) == NOP_EXPR)    return convert (type, TREE_OPERAND (expr, 0));#endif  if (code == INTEGER_TYPE || code == ENUMERAL_TYPE)    return fold (convert_to_integer (type, e));  if (code == POINTER_TYPE)    return fold (convert_to_pointer (type, e));  if (code == REAL_TYPE)    return fold (convert_to_real (type, e));  error ("conversion to non-scalar type requested");  return error_mark_node;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99re亚洲国产精品| 麻豆国产精品官网| www.在线成人| 中文成人综合网| 91视频在线观看免费| 亚洲精品免费在线| 欧美日韩国产综合一区二区| 蜜臀精品久久久久久蜜臀| 欧美videofree性高清杂交| 国产一区二区三区免费看 | 欧美视频一区二区三区四区| 亚洲一区二区三区不卡国产欧美| 欧美色涩在线第一页| 美日韩黄色大片| 久久久久久久国产精品影院| 成人午夜在线视频| 亚洲国产精品一区二区久久恐怖片| 欧美日韩国产一区| 国产一区二区精品久久91| 一区在线观看免费| 678五月天丁香亚洲综合网| 久久精品国产网站| 亚洲天堂网中文字| 宅男噜噜噜66一区二区66| 国产乱码精品1区2区3区| 亚洲欧美经典视频| 欧美一区二区福利视频| 高清国产午夜精品久久久久久| 亚洲久本草在线中文字幕| 91精品国产入口| jlzzjlzz欧美大全| 日本欧美在线观看| 亚洲婷婷国产精品电影人久久| 欧美久久高跟鞋激| 成人教育av在线| 视频在线在亚洲| 1区2区3区精品视频| 日韩欧美国产小视频| 99精品国产99久久久久久白柏| 五月婷婷综合激情| 中文字幕在线视频一区| 欧美一区二区精美| 一本色道久久综合狠狠躁的推荐| 久久精品国产精品亚洲综合| 尤物在线观看一区| 久久精品一二三| 日韩三级视频中文字幕| 91在线国产福利| 国内成人精品2018免费看| 亚洲国产精品精华液网站| 亚洲国产高清在线观看视频| 欧美一级免费观看| 欧美天堂一区二区三区| a4yy欧美一区二区三区| 国产一区二区不卡在线| 日韩黄色免费电影| 一区二区三区日韩精品视频| 中文无字幕一区二区三区| 26uuu成人网一区二区三区| 欧美久久久久免费| 欧美天天综合网| 91成人在线观看喷潮| 成人福利视频网站| 国产电影一区在线| 国精产品一区一区三区mba视频| 偷窥国产亚洲免费视频 | 亚洲国产三级在线| 中文字幕综合网| 国产精品久久久久国产精品日日| 久久久另类综合| 欧美精品一区二区三区在线| 欧美丰满高潮xxxx喷水动漫| 欧美在线观看你懂的| 在线免费观看视频一区| 在线精品视频小说1| 欧美自拍丝袜亚洲| 欧美性猛交xxxxxxxx| 91国偷自产一区二区三区成为亚洲经典| 国产999精品久久久久久绿帽| 国产在线精品国自产拍免费| 极品少妇一区二区| 国内精品在线播放| 国产福利不卡视频| 成人爱爱电影网址| av电影一区二区| 91麻豆精品秘密| 欧洲av一区二区嗯嗯嗯啊| 欧美日韩高清一区二区三区| 欧美群妇大交群中文字幕| 欧美一区在线视频| 日韩免费福利电影在线观看| 精品成人私密视频| 欧美国产亚洲另类动漫| 国产精品系列在线| 亚洲视频网在线直播| 亚洲午夜久久久久久久久久久| 亚洲高清中文字幕| 麻豆精品久久精品色综合| 国产一区视频在线看| 成人av在线电影| 色久优优欧美色久优优| 欧美高清视频www夜色资源网| 日韩午夜激情视频| 欧美激情中文不卡| 亚洲一区中文在线| 久久99国产精品久久99| 国产aⅴ综合色| 色女孩综合影院| 日韩精品一区二区三区中文精品| 久久久久久久综合| 亚洲女爱视频在线| 免费观看日韩av| 99精品视频在线免费观看| 欧美天堂一区二区三区| 2023国产精品视频| 亚洲精品国产a久久久久久| 日本成人中文字幕在线视频| 国产成人精品aa毛片| 欧美性做爰猛烈叫床潮| 26uuu国产一区二区三区| 亚洲欧美另类图片小说| 久久99精品久久久久久国产越南 | 亚洲精品视频在线观看网站| 日韩精品一二三区| 成人禁用看黄a在线| 51精品国自产在线| 亚洲欧美在线另类| 久久成人羞羞网站| 91精品福利视频| 欧美国产激情二区三区 | 精品精品国产高清一毛片一天堂| 国产欧美日韩麻豆91| 天堂va蜜桃一区二区三区| 国产成人精品在线看| 日韩一区二区三区精品视频| 亚洲人成亚洲人成在线观看图片| 麻豆精品一二三| 欧美日精品一区视频| 国产精品三级av| 国产专区综合网| 日韩欧美中文一区二区| 亚洲国产视频直播| 97se亚洲国产综合自在线观| 久久久久综合网| 麻豆精品一二三| 制服丝袜亚洲色图| 依依成人精品视频| 成人深夜在线观看| 欧美sm极限捆绑bd| 日日嗨av一区二区三区四区| 在线一区二区三区四区| 国产精品乱人伦| 国产成人综合自拍| 精品久久国产97色综合| 日本欧美一区二区三区乱码| 欧美日韩精品综合在线| 亚洲精品水蜜桃| 色综合久久久久综合体| 中文字幕在线观看不卡| 成人app软件下载大全免费| 国产亚洲精品7777| 国产精品一卡二卡| 久久这里只精品最新地址| 狠狠v欧美v日韩v亚洲ⅴ| 精品毛片乱码1区2区3区| 男人的天堂亚洲一区| 日韩免费视频线观看| 伦理电影国产精品| 欧美精品一区二区不卡| 国产一区二区日韩精品| 精品精品国产高清a毛片牛牛 | 国产乱子伦视频一区二区三区| 欧美一区二区精美| 精品一二线国产| 久久久久久久综合色一本| 国产高清不卡一区| 成人免费在线视频观看| 91在线观看美女| 亚洲最新在线观看| 欧美日韩色综合| 男女男精品视频| 2021中文字幕一区亚洲| 国产精品乡下勾搭老头1| 国产精品色在线观看| 99re视频精品| 亚洲国产精品久久久久秋霞影院| 555www色欧美视频| 国产综合久久久久久鬼色| 亚洲国产精品ⅴa在线观看| 99久久免费精品高清特色大片| 亚洲综合小说图片| 欧美一级欧美三级| 国产精品一二三| 亚洲精品综合在线| 51午夜精品国产| 国产福利精品一区| 亚洲一区二区三区小说| 日韩一区二区在线播放| 国产精品1024| 亚洲电影激情视频网站|