]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
crti.asm: Use .h8300hn and .h8300sn for normal mode.
authorDhananjay Deshpande <dhananjayd@kpitcummins.com>
Fri, 30 May 2003 19:26:14 +0000 (19:26 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 30 May 2003 19:26:14 +0000 (19:26 +0000)
* config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
mode.
* config/h8300/crtn.asm: Likewise.
* config/h8300/lib1funcs.asm: Likewise.
* config/h8300/h8300.c (asm_file_start): Likewise.
* config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
h8300snelf emulations for normal mode.
* config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
emulations for normal mode.

From-SVN: r67250

gcc/ChangeLog
gcc/config/h8300/crti.asm
gcc/config/h8300/crtn.asm
gcc/config/h8300/elf.h
gcc/config/h8300/h8300.c
gcc/config/h8300/h8300.h
gcc/config/h8300/lib1funcs.asm

index 320cfb661559cc380fc2dbe88ce498f5ad8b851b..36afa305490501f278ef1dbcb151f68e050c6b15 100644 (file)
@@ -1,3 +1,15 @@
+2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
+
+       * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
+       mode.
+       * config/h8300/crtn.asm: Likewise.
+       * config/h8300/lib1funcs.asm: Likewise.
+       * config/h8300/h8300.c (asm_file_start): Likewise.
+       * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
+       h8300snelf emulations for normal mode.
+       * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
+       emulations for normal mode.
+
 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
 
        * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
index 9f28efddaa90e48437696d9e987d3f1c3942ff5a..8070a84c600f048fe3ff13d9579c8a5aaabece71 100644 (file)
@@ -38,11 +38,19 @@ Boston, MA 02111-1307, USA.  */
    such object files.  */
 
 #ifdef __H8300H__
+#ifdef __NORMAL_MODE__
+       .h8300hn
+#else
        .h8300h
 #endif
+#endif
 
 #ifdef __H8300S__
+#ifdef __NORMAL_MODE__
+       .h8300sn
+#else
        .h8300s
+#endif
 #endif
 
        .section .init
index 5f6f9846f74b437f0c0781bc608fc4b69f53bac3..5b7a1c05a16c21ba1d686f400fca06bf8ccfb2a9 100644 (file)
@@ -30,11 +30,19 @@ Boston, MA 02111-1307, USA.  */
 /* See an explanation about .init and .fini in crti.asm.  */
 
 #ifdef __H8300H__
+#ifdef __NORMAL_MODE__
+       .h8300hn
+#else
        .h8300h
 #endif
+#endif
 
 #ifdef __H8300S__
+#ifdef __NORMAL_MODE__
+       .h8300sn
+#else
        .h8300s
+#endif
 #endif
        .section .init
        rts
index bfa4e8143943666432b52ae67c5e289ea375a71b..c306993602a265ccbbd029867b4cd46c514a0748 100644 (file)
@@ -43,4 +43,4 @@
 #define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
 
 #undef LINK_SPEC
-#define LINK_SPEC "%{mh:-m h8300helf} %{ms:-m h8300self}"
+#define LINK_SPEC "%{mh:%{mn:-m h8300hnelf}} %{mh:%{!mn:-m h8300helf}} %{ms:%{mn:-m h8300snelf}} %{ms:%{!mn:-m h8300self}}"
index 5dfb0e5e119549bac6831830ad2320deb5c48401..1639fbfc6b9b97d09ffd777bfc772728770920dc 100644 (file)
@@ -699,9 +699,15 @@ asm_file_start (file)
   else if (optimize)
     fprintf (file, "; -O%d\n", optimize);
   if (TARGET_H8300H)
-    fprintf (file, "\n\t.h8300h\n");
+    if (TARGET_NORMAL_MODE)
+      fprintf (file, "\n\t.h8300hn\n");
+    else
+      fprintf (file, "\n\t.h8300h\n");
   else if (TARGET_H8300S)
-    fprintf (file, "\n\t.h8300s\n");
+    if (TARGET_NORMAL_MODE)
+      fprintf (file, "\n\t.h8300sn\n");
+    else
+      fprintf (file, "\n\t.h8300s\n");
   else
     fprintf (file, "\n\n");
   output_file_directive (file, main_input_filename);
index f1f118fb93d35e5fa6128ed404fc10a8b54a121b..f4eafdecbba1366150eccf9fd3f6923f13f263a9 100644 (file)
@@ -70,7 +70,7 @@ extern const char * const *h8_reg_names;
     }                                                  \
   while (0)
 
-#define LINK_SPEC "%{mh:-m h8300h} %{ms:-m h8300s}"
+#define LINK_SPEC "%{mh:%{mn:-m h8300hn}} %{mh:%{!mn:-m h8300h}} %{ms:%{mn:-m h8300sn}} %{ms:%{!mn:-m h8300s}}"
 
 #define LIB_SPEC "%{mrelax:-relax} %{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
 
index 2f62572f225a41be3bb93dc369a413d3eb503c8e..dc22e54d60e6829585b613f789f27d1542a1f218 100644 (file)
@@ -96,12 +96,20 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #ifdef __H8300H__
+#ifdef __NORMAL_MODE__
+       .h8300hn
+#else
        .h8300h
 #endif
+#endif
 
 #ifdef __H8300S__
+#ifdef __NORMAL_MODE__
+       .h8300sn
+#else
        .h8300s
 #endif
+#endif
 
 #ifdef L_cmpsi2
 #ifdef __H8300__