From: Harish Sadineni <harish.sadin...@windriver.com>

Avoid encoding full build paths into file headers, use only the
basename of the source file. This improves build reproducibility,
particularly in environments where build paths vary and source
files are saved for debugging.

For example, in addkf3-sw.c the file header previously contained
the full source path:
/* file created from ../../../libgcc/soft-fp/addtf3.c */

With this change, only the filename is included:
/* file created from addtf3.c */

libgcc/ChangeLog:

    * config/rs6000/t-float128: Don't encode full build paths
      into headers.

Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org>
Signed-off-by: Harish Sadineni <harish.sadin...@windriver.com>
---
 libgcc/config/rs6000/t-float128 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/rs6000/t-float128 b/libgcc/config/rs6000/t-float128
index b09b5664af0..513e63748f1 100644
--- a/libgcc/config/rs6000/t-float128
+++ b/libgcc/config/rs6000/t-float128
@@ -103,7 +103,7 @@ $(ibm128_dec_objs)  : INTERNAL_CFLAGS += 
$(IBM128_CFLAGS_DECIMAL)
 $(fp128_softfp_src) : $(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@)) 
$(fp128_dep)
        @src="$(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@))"; \
        echo "Create $@"; \
-       (echo "/* file created from $$src */"; \
+       (echo "/* file created from `basename $$src` */"; \
         echo; \
         sed -f $(fp128_sed) < $$src) > $@
 
-- 
2.49.0

Reply via email to