• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision9384306377d9a69e3e3c8744a010e6bdcf333dba (tree)
Time2006-11-17 23:21:51
AuthorKazu Hirata <kazu@code...>
CommiterKazu Hirata

Log Message

bfd/
* elf32-m68k.c: Update uses of EF_M68K_*.

binutils/
* readelf.c: Update uses of EF_M68K_*.

gas/
* config/tc-m68k.c: Update uses of EF_M68K_*.

include/elf
* m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV,
EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP,
EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to
EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A,
EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP,
EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK,
EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B,
EF_M68K_CF_FLOAT, respectively.

Change Summary

Incremental Difference

--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,25 @@
1+2006-11-17 Kazu Hirata <kazu@codesourcery.com>
2+
3+ bfd/
4+ * elf32-m68k.c: Update uses of EF_M68K_*.
5+
6+ binutils/
7+ * readelf.c: Update uses of EF_M68K_*.
8+
9+ gas/
10+ * config/tc-m68k.c: Update uses of EF_M68K_*.
11+
12+ include/elf
13+ * m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV,
14+ EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP,
15+ EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC,
16+ EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to
17+ EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A,
18+ EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP,
19+ EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK,
20+ EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B,
21+ EF_M68K_CF_FLOAT, respectively.
22+
123 2006-11-16 Nathan Sidwell <nathan@codesourcery.com>
224
325 gas/testuite/
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -445,36 +445,36 @@ elf32_m68k_object_p (bfd *abfd)
445445 features |= m68000;
446446 else if (eflags & EF_M68K_CPU32)
447447 features |= cpu32;
448- else if (eflags & EF_M68K_ISA_MASK)
448+ else if (eflags & EF_M68K_CF_ISA_MASK)
449449 {
450- switch (eflags & EF_M68K_ISA_MASK)
450+ switch (eflags & EF_M68K_CF_ISA_MASK)
451451 {
452- case EF_M68K_ISA_A_NODIV:
452+ case EF_M68K_CF_ISA_A_NODIV:
453453 features |= mcfisa_a;
454454 break;
455- case EF_M68K_ISA_A:
455+ case EF_M68K_CF_ISA_A:
456456 features |= mcfisa_a|mcfhwdiv;
457457 break;
458- case EF_M68K_ISA_A_PLUS:
458+ case EF_M68K_CF_ISA_A_PLUS:
459459 features |= mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp;
460460 break;
461- case EF_M68K_ISA_B_NOUSP:
461+ case EF_M68K_CF_ISA_B_NOUSP:
462462 features |= mcfisa_a|mcfisa_b|mcfhwdiv;
463463 break;
464- case EF_M68K_ISA_B:
464+ case EF_M68K_CF_ISA_B:
465465 features |= mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp;
466466 break;
467467 }
468- switch (eflags & EF_M68K_MAC_MASK)
468+ switch (eflags & EF_M68K_CF_MAC_MASK)
469469 {
470- case EF_M68K_MAC:
470+ case EF_M68K_CF_MAC:
471471 features |= mcfmac;
472472 break;
473- case EF_M68K_EMAC:
473+ case EF_M68K_CF_EMAC:
474474 features |= mcfemac;
475475 break;
476476 }
477- if (eflags & EF_M68K_FLOAT)
477+ if (eflags & EF_M68K_CF_FLOAT)
478478 features |= cfloat;
479479 }
480480
@@ -530,8 +530,8 @@ elf32_m68k_merge_private_bfd_data (ibfd, obfd)
530530 else
531531 {
532532 out_flags = elf_elfheader (obfd)->e_flags;
533- in_isa = (in_flags & EF_M68K_ISA_MASK);
534- out_isa = (out_flags & EF_M68K_ISA_MASK);
533+ in_isa = (in_flags & EF_M68K_CF_ISA_MASK);
534+ out_isa = (out_flags & EF_M68K_CF_ISA_MASK);
535535 if (in_isa > out_isa)
536536 out_flags ^= in_isa ^ out_isa;
537537 out_flags |= in_flags ^ in_isa;
@@ -569,44 +569,44 @@ elf32_m68k_print_private_bfd_data (abfd, ptr)
569569 if (eflags & EF_M68K_CFV4E)
570570 fprintf (file, " [cfv4e]");
571571
572- if (eflags & EF_M68K_ISA_MASK)
572+ if (eflags & EF_M68K_CF_ISA_MASK)
573573 {
574574 char const *isa = _("unknown");
575575 char const *mac = _("unknown");
576576 char const *additional = "";
577577
578- switch (eflags & EF_M68K_ISA_MASK)
578+ switch (eflags & EF_M68K_CF_ISA_MASK)
579579 {
580- case EF_M68K_ISA_A_NODIV:
580+ case EF_M68K_CF_ISA_A_NODIV:
581581 isa = "A";
582582 additional = " [nodiv]";
583583 break;
584- case EF_M68K_ISA_A:
584+ case EF_M68K_CF_ISA_A:
585585 isa = "A";
586586 break;
587- case EF_M68K_ISA_A_PLUS:
587+ case EF_M68K_CF_ISA_A_PLUS:
588588 isa = "A+";
589589 break;
590- case EF_M68K_ISA_B_NOUSP:
590+ case EF_M68K_CF_ISA_B_NOUSP:
591591 isa = "B";
592592 additional = " [nousp]";
593593 break;
594- case EF_M68K_ISA_B:
594+ case EF_M68K_CF_ISA_B:
595595 isa = "B";
596596 break;
597597 }
598598 fprintf (file, " [isa %s]%s", isa, additional);
599- if (eflags & EF_M68K_FLOAT)
599+ if (eflags & EF_M68K_CF_FLOAT)
600600 fprintf (file, " [float]");
601- switch (eflags & EF_M68K_MAC_MASK)
601+ switch (eflags & EF_M68K_CF_MAC_MASK)
602602 {
603603 case 0:
604604 mac = NULL;
605605 break;
606- case EF_M68K_MAC:
606+ case EF_M68K_CF_MAC:
607607 mac = "mac";
608608 break;
609- case EF_M68K_EMAC:
609+ case EF_M68K_CF_EMAC:
610610 mac = "emac";
611611 break;
612612 }
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1950,29 +1950,29 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)
19501950 strcat (buf, ", cpu32");
19511951 if (e_flags & EF_M68K_M68000)
19521952 strcat (buf, ", m68000");
1953- if (e_flags & EF_M68K_ISA_MASK)
1953+ if (e_flags & EF_M68K_CF_ISA_MASK)
19541954 {
19551955 char const *isa = _("unknown");
19561956 char const *mac = _("unknown mac");
19571957 char const *additional = NULL;
19581958
1959- switch (e_flags & EF_M68K_ISA_MASK)
1959+ switch (e_flags & EF_M68K_CF_ISA_MASK)
19601960 {
1961- case EF_M68K_ISA_A_NODIV:
1961+ case EF_M68K_CF_ISA_A_NODIV:
19621962 isa = "A";
19631963 additional = ", nodiv";
19641964 break;
1965- case EF_M68K_ISA_A:
1965+ case EF_M68K_CF_ISA_A:
19661966 isa = "A";
19671967 break;
1968- case EF_M68K_ISA_A_PLUS:
1968+ case EF_M68K_CF_ISA_A_PLUS:
19691969 isa = "A+";
19701970 break;
1971- case EF_M68K_ISA_B_NOUSP:
1971+ case EF_M68K_CF_ISA_B_NOUSP:
19721972 isa = "B";
19731973 additional = ", nousp";
19741974 break;
1975- case EF_M68K_ISA_B:
1975+ case EF_M68K_CF_ISA_B:
19761976 isa = "B";
19771977 break;
19781978 }
@@ -1980,17 +1980,17 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)
19801980 strcat (buf, isa);
19811981 if (additional)
19821982 strcat (buf, additional);
1983- if (e_flags & EF_M68K_FLOAT)
1983+ if (e_flags & EF_M68K_CF_FLOAT)
19841984 strcat (buf, ", float");
1985- switch (e_flags & EF_M68K_MAC_MASK)
1985+ switch (e_flags & EF_M68K_CF_MAC_MASK)
19861986 {
19871987 case 0:
19881988 mac = NULL;
19891989 break;
1990- case EF_M68K_MAC:
1990+ case EF_M68K_CF_MAC:
19911991 mac = "mac";
19921992 break;
1993- case EF_M68K_EMAC:
1993+ case EF_M68K_CF_EMAC:
19941994 mac = "emac";
19951995 break;
19961996 }
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -7561,17 +7561,17 @@ m68k_elf_final_processing (void)
75617561 {
75627562 static const unsigned isa_features[][2] =
75637563 {
7564- {EF_M68K_ISA_A_NODIV, mcfisa_a},
7565- {EF_M68K_ISA_A, mcfisa_a|mcfhwdiv},
7566- {EF_M68K_ISA_A_PLUS,mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp},
7567- {EF_M68K_ISA_B_NOUSP,mcfisa_a|mcfisa_b|mcfhwdiv},
7568- {EF_M68K_ISA_B, mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp},
7564+ {EF_M68K_CF_ISA_A_NODIV, mcfisa_a},
7565+ {EF_M68K_CF_ISA_A, mcfisa_a|mcfhwdiv},
7566+ {EF_M68K_CF_ISA_A_PLUS,mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp},
7567+ {EF_M68K_CF_ISA_B_NOUSP,mcfisa_a|mcfisa_b|mcfhwdiv},
7568+ {EF_M68K_CF_ISA_B, mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp},
75697569 {0,0},
75707570 };
75717571 static const unsigned mac_features[][2] =
75727572 {
7573- {EF_M68K_MAC, mcfmac},
7574- {EF_M68K_EMAC, mcfemac},
7573+ {EF_M68K_CF_MAC, mcfmac},
7574+ {EF_M68K_CF_EMAC, mcfemac},
75757575 {0,0},
75767576 };
75777577 unsigned ix;
@@ -7595,7 +7595,7 @@ m68k_elf_final_processing (void)
75957595 else
75967596 {
75977597 if (current_architecture & cfloat)
7598- flags |= EF_M68K_FLOAT | EF_M68K_CFV4E;
7598+ flags |= EF_M68K_CF_FLOAT | EF_M68K_CFV4E;
75997599
76007600 pattern = current_architecture & (mcfmac|mcfemac);
76017601 if (pattern)
--- a/include/elf/m68k.h
+++ b/include/elf/m68k.h
@@ -58,18 +58,18 @@ END_RELOC_NUMBERS (R_68K_max)
5858
5959 /* We use the bottom 8 bits to encode information about the
6060 coldfire variant. */
61-#define EF_M68K_ISA_MASK 0x0F /* Which ISA */
62-#define EF_M68K_ISA_A_NODIV 0x01 /* ISA A except for div */
63-#define EF_M68K_ISA_A 0x02
64-#define EF_M68K_ISA_A_PLUS 0x03
65-#define EF_M68K_ISA_B_NOUSP 0x04 /* ISA_B except for USP */
66-#define EF_M68K_ISA_B 0x05
67-#define EF_M68K_ISA_C 0x06
68-#define EF_M68K_MAC_MASK 0x30
69-#define EF_M68K_MAC 0x10 /* MAC */
70-#define EF_M68K_EMAC 0x20 /* EMAC */
71-#define EF_M68K_EMAC_B 0x30 /* EMAC_B */
72-#define EF_M68K_FLOAT 0x40 /* Has float insns */
61+#define EF_M68K_CF_ISA_MASK 0x0F /* Which ISA */
62+#define EF_M68K_CF_ISA_A_NODIV 0x01 /* ISA A except for div */
63+#define EF_M68K_CF_ISA_A 0x02
64+#define EF_M68K_CF_ISA_A_PLUS 0x03
65+#define EF_M68K_CF_ISA_B_NOUSP 0x04 /* ISA_B except for USP */
66+#define EF_M68K_CF_ISA_B 0x05
67+#define EF_M68K_CF_ISA_C 0x06
68+#define EF_M68K_CF_MAC_MASK 0x30
69+#define EF_M68K_CF_MAC 0x10 /* MAC */
70+#define EF_M68K_CF_EMAC 0x20 /* EMAC */
71+#define EF_M68K_CF_EMAC_B 0x30 /* EMAC_B */
72+#define EF_M68K_CF_FLOAT 0x40 /* Has float insns */
7373 #define EF_M68K_CF_MASK 0xFF
7474
7575 #endif