This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] defaults options for s390*.


Hi,
one of the ld testcases fails because -m31 is used without -mesa. The s390
gas will not accept any instruction in this case because current_mode_mask
won't get its default value. This patch fixes it. Again, this applicable to
CVS head and the 2.14 branch as well. Ok to commit ?

blue skies,
  Martin.

2003-05-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* config/tc-s390.c (s390_target_format): Always call init_default_arch.

diff -urN src/gas/config/tc-s390.c src-s390/gas/config/tc-s390.c
--- src/gas/config/tc-s390.c	Fri May  9 16:11:57 2003
+++ src-s390/gas/config/tc-s390.c	Fri May  9 16:12:30 2003
@@ -351,8 +351,7 @@
 {
   /* We don't get a chance to initialize anything before we're called,
      so handle that now.  */
-  if (! s390_arch_size)
-    init_default_arch ();
+  init_default_arch ();
 
   return s390_arch_size == 64 ? "elf64-s390" : "elf32-s390";
 }


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