[gcc(refs/vendors/ARM/heads/arm-12-m-pacbti)] arm: Optimize arm-mlib.h header inclusion [pr108505].

Andrea Corallo akrl@gcc.gnu.org
Fri Mar 10 16:22:24 GMT 2023


https://gcc.gnu.org/g:96213951b754044a39e7fea975299184112734d1

commit 96213951b754044a39e7fea975299184112734d1
Author: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
Date:   Wed Feb 8 18:39:06 2023 +0000

    arm: Optimize arm-mlib.h header inclusion [pr108505].
    
    I have committed a fix [1] into gcc trunk for a build
    issue mentioned in pr108505 and latter received few upstream
    comments proposing more robust fix for this issue.
    
    In this patch I'm addressing those comments and sending this
    as a followup patch.
    
    gcc/ChangeLog:
    
    2023-01-27  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
    
            PR target/108505
            * config.gcc (tm_mlib_file): Define new variable.

Diff:
---
 gcc/config.gcc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index c167613cd0c..a5b854d68b5 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4462,6 +4462,7 @@ case "${target}" in
 					case ${arm_multilib} in
 					aprofile|rmprofile)
 						tmake_profile_file="arm/t-multilib"
+						tm_mlib_file="arm/arm-mlib.h"
 						;;
 					@*)
 						ml=`echo "X$arm_multilib" | sed '1s,^X@,,'`
@@ -4500,7 +4501,7 @@ case "${target}" in
 				# through to the multilib selector
 				with_float="soft"
 				tmake_file="${tmake_file} ${tmake_profile_file}"
-				tm_file="$tm_file arm/arm-mlib.h"
+				tm_file="$tm_file $tm_mlib_file"
 				TM_MULTILIB_CONFIG="$with_multilib_list"
 			fi
 		fi


More information about the Gcc-cvs mailing list