This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] "Fix" PR39497, dfp.c is not C
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Mar 2009 16:36:55 +0100 (CET)
- Subject: [PATCH] "Fix" PR39497, dfp.c is not C
This "fixes" the loads of alias warnings we now see with compiling
dfp.c by building it with -fno-strict-aliasing instead of just
ignoring errors with -Wno-error.
Bootstrap / regtest in progress. Any objections?
Thanks,
Richard.
2009-03-24 Richard Guenther <rguenther@suse.de>
PR middle-end/39497
* Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
of -Wno-error.
Index: gcc/Makefile.in
===================================================================
*** gcc/Makefile.in (revision 145027)
--- gcc/Makefile.in (working copy)
*************** GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-
*** 177,184 ****
build/gengtype-lex.o-warn = -Wno-error
# SYSCALLS.c misses prototypes
SYSCALLS.c.X-warn = -Wno-strict-prototypes -Wno-error
! # dfp.c contains alias violations
! dfp.o-warn = -Wno-error
# mips-tfile.c contains -Wcast-qual warnings.
mips-tfile.o-warn = -Wno-error
--- 177,184 ----
build/gengtype-lex.o-warn = -Wno-error
# SYSCALLS.c misses prototypes
SYSCALLS.c.X-warn = -Wno-strict-prototypes -Wno-error
! # dfp.c contains many alias violations
! dfp.o-warn = -fno-strict-aliasing
# mips-tfile.c contains -Wcast-qual warnings.
mips-tfile.o-warn = -Wno-error