Binutils with MCST patches
Go to file
Doug Kwan ce0d197204 Index: gold/arm.cc
===================================================================
RCS file: /cvs/src/src/gold/arm.cc,v
retrieving revision 1.116
diff -u -u -p -r1.116 arm.cc
--- gold/arm.cc	3 Aug 2010 14:07:12 -0000	1.116
+++ gold/arm.cc	6 Aug 2010 07:59:30 -0000
@@ -10290,11 +10290,11 @@ Target_arm<big_endian>::merge_object_att
 	    out_attr[i].set_int_value(in_attr[i].int_value());
 	  break;
 	case elfcpp::Tag_ABI_PCS_wchar_t:
-	  // FIXME: Make it possible to turn off this warning.
 	  if (out_attr[i].int_value()
 	      && in_attr[i].int_value()
 	      && out_attr[i].int_value() != in_attr[i].int_value()
-	      && parameters->options().warn_mismatch())
+	      && parameters->options().warn_mismatch()
+	      && parameters->options().wchar_size_warning())
 	    {
 	      gold_warning(_("%s uses %u-byte wchar_t yet the output is to "
 			     "use %u-byte wchar_t; use of wchar_t values "
@@ -10315,10 +10315,10 @@ Target_arm<big_endian>::merge_object_att
 		  // Use whatever requirements the new object has.
 		  out_attr[i].set_int_value(in_attr[i].int_value());
 		}
-	      // FIXME: Make it possible to turn off this warning.
 	      else if (in_attr[i].int_value() != elfcpp::AEABI_enum_forced_wide
 		       && out_attr[i].int_value() != in_attr[i].int_value()
-		       && parameters->options().warn_mismatch())
+		       && parameters->options().warn_mismatch()
+		       && parameters->options().enum_size_warning())
 		{
 		  unsigned int in_value = in_attr[i].int_value();
 		  unsigned int out_value = out_attr[i].int_value();
Index: gold/options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.147
diff -u -u -p -r1.147 options.h
--- gold/options.h	1 Jun 2010 23:37:57 -0000	1.147
+++ gold/options.h	6 Aug 2010 07:59:30 -0000
@@ -722,6 +722,10 @@ class General_options
   DEFINE_special(EL, options::ONE_DASH, '\0',
 		 N_("Link little-endian objects."), NULL);

+  DEFINE_bool(enum_size_warning, options::TWO_DASHES, '\0', true, NULL,
+	      N_("(ARM only) Do not warn about objects with incompatible "
+		 "enum sizes"));
+
   DEFINE_bool(fatal_warnings, options::TWO_DASHES, '\0', false,
 	      N_("Treat warnings as errors"),
 	      N_("Do not treat warnings as errors"));
@@ -1038,6 +1042,10 @@ class General_options
 		    N_("Report unresolved symbols as errors"),
 		    NULL, true);

+  DEFINE_bool(wchar_size_warning, options::TWO_DASHES, '\0', true, NULL,
+	      N_("(ARM only) Do not warn about objects with incompatible "
+		 "wchar_t sizes"));
+
   DEFINE_bool(whole_archive, options::TWO_DASHES, '\0', false,
               N_("Include all archive contents"),
               N_("Include only needed archive contents"));
2010-08-12 18:27:46 +00:00
bfd Mention Makefile.in in ChangeLog. 2010-08-12 17:53:17 +00:00
binutils PR binutils/11742 2010-08-12 13:11:11 +00:00
config sync config/ChangeLog with gcc 2010-07-02 12:15:53 +00:00
cpu * m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it. 2010-07-03 04:09:56 +00:00
elfcpp elfcpp:/ 2010-08-04 09:53:38 +00:00
etc * standards.texi: Import current version from gnustandards 2010-06-08 12:15:36 +00:00
gas * as.c (show_usage): Don't list --compress-debug-sections if zlib not 2010-08-09 18:08:18 +00:00
gdb Really commit server.c bits of 2010-08-09's change... 2010-08-12 15:16:12 +00:00
gold Index: gold/arm.cc 2010-08-12 18:27:46 +00:00
gprof * corefile.c (core_sym_class): Fix handling of subprogram names 2010-07-16 14:52:15 +00:00
include gdb/ 2010-07-31 04:17:44 +00:00
intl merge from gcc 2010-04-05 18:02:22 +00:00
ld * ldexp.c (new_rel): Remove "str". Update all call sites. 2010-08-12 13:36:50 +00:00
libdecnumber merge from gcc 2010-04-05 18:02:22 +00:00
libiberty merge from gcc 2010-07-21 16:08:01 +00:00
opcodes Don't generate multi-byte NOPs for i686. 2010-08-06 18:22:50 +00:00
readline
sim [include/opcode] 2010-07-29 18:41:28 +00:00
texinfo
.cvsignore
COPYING
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
COPYING3
COPYING3.LIB
ChangeLog 2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu> 2010-07-18 08:12:40 +00:00
MAINTAINERS
Makefile.def * Makefile.def (configure-gcc): Depend on all-libelf. 2010-06-10 17:04:13 +00:00
Makefile.in 2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu> 2010-07-18 08:12:40 +00:00
Makefile.tpl 2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu> 2010-07-18 08:12:40 +00:00
README
README-maintainer-mode
compile
config-ml.in
config.guess /: 2010-06-01 17:53:40 +00:00
config.rpath
config.sub /: 2010-06-01 17:53:40 +00:00
configure Add support for v850E2 and v850E2V3 2010-07-23 14:52:54 +00:00
configure.ac Add support for v850E2 and v850E2V3 2010-07-23 14:52:54 +00:00
depcomp
djunpack.bat
install-sh
libtool.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltgcc.m4
ltmain.sh Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltoptions.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltsugar.m4
ltversion.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
lt~obsolete.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
setup.com
src-release
symlink-tree
ylwrap

README

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.