CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2019/11/07 13:42:28

Modified files:
        sys/arch/alpha/conf: Makefile.alpha 
        sys/arch/amd64/conf: Makefile.amd64 
        sys/arch/arm64/conf: Makefile.arm64 
        sys/arch/armv7/conf: Makefile.armv7 
        sys/arch/hppa/conf: Makefile.hppa 
        sys/arch/i386/conf: Makefile.i386 
        sys/arch/landisk/conf: Makefile.landisk 
        sys/arch/loongson/conf: Makefile.loongson 
        sys/arch/luna88k/conf: Makefile.luna88k 
        sys/arch/macppc/conf: Makefile.macppc 
        sys/arch/octeon/conf: Makefile.octeon 
        sys/arch/sgi/conf: Makefile.sgi 
        sys/arch/sparc64/conf: Makefile.sparc64 

Log message:
The compiler -pg option implies -fno-ret-protector, as we want to disable
retguard and similar when profiling.  However, that missed all the .S files,
as ${PROF} wasn't added when ${NORMAL_S} was converted from direct invocation
of ${AS} to instead use ${CC}.  Similarly, mcount.o still had retguards
as it cannot be built with -pg.  So: pass ${PROF} when compiling .S files,
and compile "no profiling" files with -fno-ret-protector on archs with
retguard.

feedback and ok mpi@ mortimer@

Reply via email to