+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
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
/* 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
#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}}"
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);
} \
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}"
#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__