+ -Wcast-align

This commit is contained in:
rillig 2006-12-07 00:32:36 +00:00
parent 2c3621c2f8
commit 7a051744ac

View file

@ -1,4 +1,4 @@
# $NetBSD: transform-gcc,v 1.7 2006/12/01 21:10:18 rillig Exp $
# $NetBSD: transform-gcc,v 1.8 2006/12/07 00:32:36 rillig Exp $
#
# This file handles the transformations needed for gcc that can be done
# looking at only one argument at a time.
@ -15,6 +15,7 @@ case $arg in
# GCC extensions.
-fPIC |\
-ggdb |\
-M[DFPT] |\
-O[23s] |\
-pipe |\
@ -26,6 +27,7 @@ case $arg in
-W |\
-W[cLlS],* |\
-Wall |\
-Wcast-align |\
-Wcast-qual |\
-Wextra |\
-Werror |\
@ -46,6 +48,11 @@ case $arg in
-Wswitch |\
-Wwrite-strings ) transform_pass ;;
# Options specific to g++.
-fmessage-length=* |\
-fno-exceptions |\
-fno-rtti ) transform_pass ;;
# Other compiler's options that have corresponding GCC options.
-KPIC |\
-kPIC ) transform_to "-fPIC" ;;