From 45045496865f2eba8258b15e170643edf82cc186 Mon Sep 17 00:00:00 2001 From: charlet Date: Thu, 16 Apr 2009 10:13:09 +0000 Subject: 2009-04-16 Robert Dewar * Makefile.rtl: Add entries for s-conca? * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior of concatenation expansion * exp_ch4.adb (Expand_Concatenation): Generate calls for certain string cases instead of expanding assignments inline. * opt.ads (Optimize_Size): New flag * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads, s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb, s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads, s-conca9.adb, s-conca9.ads: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146161 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/s-conca3.ads | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 gcc/ada/s-conca3.ads (limited to 'gcc/ada/s-conca3.ads') diff --git a/gcc/ada/s-conca3.ads b/gcc/ada/s-conca3.ads new file mode 100644 index 00000000000..66005a2a5c0 --- /dev/null +++ b/gcc/ada/s-conca3.ads @@ -0,0 +1,47 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- +-- -- +-- S Y S T E M . C O N C A T _ 3 -- +-- -- +-- S p e c -- +-- -- +-- Copyright (C) 2008-2009, Free Software Foundation, Inc. -- +-- -- +-- GNAT is free software; you can redistribute it and/or modify it under -- +-- terms of the GNU General Public License as published by the Free Soft- -- +-- ware Foundation; either version 3, or (at your option) any later ver- -- +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- +-- or FITNESS FOR A PARTICULAR PURPOSE. -- +-- -- +-- As a special exception under Section 7 of GPL version 3, you are granted -- +-- additional permissions described in the GCC Runtime Library Exception, -- +-- version 3.1, as published by the Free Software Foundation. -- +-- -- +-- You should have received a copy of the GNU General Public License and -- +-- a copy of the GCC Runtime Library Exception along with this program; -- +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- +-- . -- +-- -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- +------------------------------------------------------------------------------ + +-- This package contains a procedure for runtime concatenation of three string +-- operands. It is used when we want to save space in the generated code. + +pragma Warnings (Off); +pragma Compiler_Unit; +pragma Warnings (On); + +package System.Concat_3 is + + procedure Str_Concat_3 (R : out String; S1, S2, S3 : String); + -- Performs the operation R := S1 & S2 & S3. The bounds of R are known to + -- be correct, so no bounds checks are required, and it is known that none + -- of the input operands overlaps R. No assumptions can be made about + -- the lower bounds of any of the operands. + +end System.Concat_3; -- cgit v1.2.1