# $NetBSD: transform-gcc,v 1.5 2006/11/30 10:01:29 rillig Exp $ # # This file handles the transformations needed for gcc that can be done # looking at only one argument at a time. # transform_setname "transform-gcc" case $arg in -[EcgOos] |\ -[DILlU]?* |\ -O[01]) # Standard options. transform_pass ;; -fPIC |\ -KPIC |\ -kPIC) # Needed for the Solaris imake. transform_to "-fPIC" ;; -mt) # Needed on Solaris with SunPro. transform_to "-threads" ;; -M[DFPT] |\ -O[23s] |\ -pthread |\ -shared |\ -static |\ -std=c99 |\ -std=gnu99 |\ -W |\ -W[cLlS],* |\ -Wall |\ -Wcast-qual |\ -Wextra |\ -Werror |\ -Wformat=[012] |\ -Wmissing-prototypes |\ -Wno-error |\ -Wno-long-long |\ -Wno-traditional |\ -Wno-uninitialized |\ -Wno-unused |\ -Wno-write-strings |\ -Wpointer-arith |\ -Wreturn-type |\ -Wshadow |\ -Wsign-compare |\ -Wstrict-prototypes |\ -Wswitch |\ -Wwrite-strings) transform_pass ;; -*) transform_pass_with_warning ;; esac