Message ID | yddiovgbi3f.fsf@lokon.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Il 25/11/2013 16:45, Rainer Orth ha scritto: > Uros prompted me to look into why we were still getting warnings > compiling the soft-fp code in libgcc despite this in config/t-softfp: > > $(soft-fp-objects) : INTERNAL_CFLAGS += -Wno-missing-prototypes -Wno-type-limit > s > > It turned out that soft-fp-objects still included the $srcdir prefix. > It seems my libgcc migration missed some chunk of code to strip that, > although I still see the warnings on the 4.6 branch (i.e. before the > migration). > > Anyway, the following patch fixes this. Bootstrapped without > regressions on i386-pc-solaris2.11 and x86_64-unknown-linux-gnu and > verified the warnings are indeed gone. > > Ok for mainline? Ok. Paolo
diff --git a/libgcc/config/t-softfp b/libgcc/config/t-softfp --- a/libgcc/config/t-softfp +++ b/libgcc/config/t-softfp @@ -88,8 +88,10 @@ endif # for the functions in the soft-fp files have not been brought across # from glibc. -soft-fp-objects = $(addsuffix $(objext), $(softfp_file_list)) \ - $(addsuffix _s$(objext), $(softfp_file_list)) +soft-fp-objects-base = $(basename $(notdir $(softfp_file_list))) + +soft-fp-objects = $(addsuffix $(objext), $(soft-fp-objects-base)) \ + $(addsuffix _s$(objext), $(soft-fp-objects-base)) $(soft-fp-objects) : INTERNAL_CFLAGS += -Wno-missing-prototypes -Wno-type-limits