diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 15:24:28 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 15:24:28 +0100 |
commit | ce2d0ce29312a50296919565818edbb98543ae18 (patch) | |
tree | ef5dc21faa268e8f472fa3ee601c4ba2ddd7f316 /gcc/ada/gcc-interface/utils2.c | |
parent | 4e1a215870a4194c9ca884ef838103c094aa38c8 (diff) | |
download | gcc-ce2d0ce29312a50296919565818edbb98543ae18.zip gcc-ce2d0ce29312a50296919565818edbb98543ae18.tar.gz gcc-ce2d0ce29312a50296919565818edbb98543ae18.tar.bz2 |
Remove superfluous call to Base_Type
gcc/ada/ChangeLog:
* gcc-interface/gigi.h: Remove ^L characters throughout.
* gcc-interface/decl.c: Likewise.
* gcc-interface/utils.c: Likewise.
* gcc-interface/utils2.c: Likewise.
* gcc-interface/trans.c (gnat_to_gnu) <N_Allocator>: Do not explicitly
go to the base type for the Has_Constrained_Partial_View flag.
Diffstat (limited to 'gcc/ada/gcc-interface/utils2.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils2.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index c8a2d7c..316033b 100644 --- a/gcc/ada/gcc-interface/utils2.c +++ b/gcc/ada/gcc-interface/utils2.c @@ -73,7 +73,7 @@ get_base_type (tree type) return type; } - + /* EXP is a GCC tree representing an address. See if we can find how strictly the object at this address is aligned and, if so, return the alignment of the object in bits. Otherwise return 0. */ @@ -203,7 +203,7 @@ known_alignment (tree exp) return this_alignment; } - + /* We have a comparison or assignment operation on two types, T1 and T2, which are either both array types or both record types. T1 is assumed to be for the left hand side operand, and T2 for the right hand side. Return the @@ -271,7 +271,7 @@ find_common_type (tree t1, tree t2) could cause a bad self-referential reference. */ return NULL_TREE; } - + /* Return an expression tree representing an equality comparison of A1 and A2, two objects of type ARRAY_TYPE. The result should be of type RESULT_TYPE. @@ -533,7 +533,7 @@ compare_fat_pointers (location_t loc, tree result_type, tree p1, tree p2) build_binary_op (TRUTH_ORIF_EXPR, result_type, p1_array_is_null, same_bounds)); } - + /* Compute the result of applying OP_CODE to LHS and RHS, where both are of type TYPE. We know that TYPE is a modular type with a nonbinary modulus. */ @@ -629,7 +629,7 @@ nonbinary_modular_operation (enum tree_code op_code, tree type, tree lhs, return convert (type, result); } - + /* This page contains routines that implement the Ada semantics with regard to atomic objects. They are fully piggybacked on the middle-end support for atomic loads and stores. @@ -828,7 +828,7 @@ build_load_modify_store (tree dest, tree src, Node_Id gnat_node) /* Something went wrong earlier if we have not found the atomic load. */ gcc_unreachable (); } - + /* Make a binary operation of kind OP_CODE. RESULT_TYPE is the type desired for the result. Usually the operation is to be performed in that type. For INIT_EXPR and MODIFY_EXPR, RESULT_TYPE must be @@ -1323,7 +1323,7 @@ build_binary_op (enum tree_code op_code, tree result_type, return result; } - + /* Similar, but for unary operations. */ tree @@ -1683,7 +1683,7 @@ build_unary_op (enum tree_code op_code, tree result_type, tree operand) return result; } - + /* Similar, but for COND_EXPR. */ tree @@ -1758,7 +1758,7 @@ build_compound_expr (tree result_type, tree stmt_operand, tree expr_operand) return result; } - + /* Conveniently construct a function call expression. FNDECL names the function to be called, N is the number of arguments, and the "..." parameters are the argument expressions. Unlike build_call_expr @@ -1776,7 +1776,7 @@ build_call_n_expr (tree fndecl, int n, ...) va_end (ap); return fn; } - + /* Build a goto to LABEL for a raise, with an optional call to Local_Raise. MSG gives the exception's identity for the call to Local_Raise, if any. */ @@ -1924,7 +1924,7 @@ build_call_raise_range (int msg, Node_Id gnat_node, char kind, convert (integer_type_node, first), convert (integer_type_node, last)); } - + /* qsort comparer for the bit positions of two constructor elements for record components. */ @@ -1987,7 +1987,7 @@ gnat_build_constructor (tree type, vec<constructor_elt, va_gc> *v) TREE_READONLY (result) = TYPE_READONLY (type) || read_only || allconstant; return result; } - + /* Return a COMPONENT_REF to access FIELD in RECORD, or NULL_TREE if the field is not found in the record. Don't fold the result if NO_FOLD is true. */ @@ -2113,7 +2113,7 @@ build_component_ref (tree record, tree field, bool no_fold) build_call_raise (CE_Discriminant_Check_Failed, Empty, N_Raise_Constraint_Error)); } - + /* Helper for build_call_alloc_dealloc, with arguments to be interpreted identically. Process the case where a GNAT_PROC to call is provided. */ @@ -2326,7 +2326,7 @@ build_call_alloc_dealloc (tree gnu_obj, tree gnu_size, tree gnu_type, return maybe_wrap_malloc (gnu_size, gnu_type, gnat_node); } } - + /* Build a GCC tree that corresponds to allocating an object of TYPE whose initial value is INIT, if INIT is nonzero. Convert the expression to RESULT_TYPE, which must be some pointer type, and return the result. @@ -2457,7 +2457,7 @@ build_allocator (tree type, tree init, tree result_type, Entity_Id gnat_proc, return storage; } - + /* Indicate that we need to take the address of T and that it therefore should not be allocated in a register. Return true if successful. */ @@ -2505,7 +2505,7 @@ gnat_mark_addressable (tree t) return true; } } - + /* Return true if EXP is a stable expression for the purpose of the functions below and, therefore, can be returned unmodified by them. We accept things that are actual constants or that have already been handled. */ |