Re: [PATCH] SH: Fix m2a-single-only compilation error

2012-04-03 Thread Kaz Kojima
I've just committed the patch in
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01970.html
on trunk.

Regards,
kaz


Re: [PATCH] SH: Fix m2a-single-only compilation error

2012-03-30 Thread Kaz Kojima
Naveen H. S navee...@kpitcummins.com wrote:
 Please find attached the patch crt1.patch which fixes compilation
 issue with sh2a-single-only target. 
 Currently, compilation generates the following error:-
 merge of architecture 'sh3e' with architecture 'sh2a' produced unknown 
 architecture
 The patch fixes the issue.
[snip]
   * libgcc/config/sh/crt1.S (VBR_SETUP): Don't define for SH2E targets

This does not look right.  Please try the patch below instead.

Regards,
kaz
--
* config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
to m2a-single instead of m2e.

--- ORIG/trunk/gcc/config/sh/t-sh   2011-11-03 09:27:45.0 +0900
+++ trunk/gcc/config/sh/t-sh2012-03-30 15:18:19.0 +0900
@@ -1,5 +1,5 @@
 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2006, 2008, 2009, 2011 Free Software Foundation, Inc.
+# 2003, 2004, 2006, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
 #
 # This file is part of GCC.
 #
@@ -37,7 +37,7 @@ MULTILIB_MATCHES = $(shell \
   for abi in 
m1,m2,m3,m4-nofpu,m4-100-nofpu,m4-200-nofpu,m4-400,m4-500,m4-340,m4-300-nofpu,m4al,m4a-nofpu
 \
  m1,m2,m2a-nofpu \
  
m2e,m3e,m4-single-only,m4-100-single-only,m4-200-single-only,m4-300-single-only,m4a-single-only
 \
- m2e,m2a-single-only \
+ m2a-single,m2a-single-only \
  m4-single,m4-100-single,m4-200-single,m4-300-single,m4a-single \
  m4,m4-100,m4-200,m4-300,m4a \
  m5-32media,m5-compact,m5-32media \