This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]