Mercurial > hg > CbC > CbC_gcc
comparison gcc/dwarf2asm.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 /* Dwarf2 assembler output helper routines. | 1 /* Dwarf2 assembler output helper routines. |
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 | 2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
78 } | 78 } |
79 | 79 |
80 if (BYTES_BIG_ENDIAN) | 80 if (BYTES_BIG_ENDIAN) |
81 { | 81 { |
82 for (i = size - 1; i > 0; --i) | 82 for (i = size - 1; i > 0; --i) |
83 fprintf (asm_out_file, "0x%x,", bytes[i]); | 83 fprintf (asm_out_file, "%#x,", bytes[i]); |
84 fprintf (asm_out_file, "0x%x", bytes[0]); | 84 fprintf (asm_out_file, "%#x", bytes[0]); |
85 } | 85 } |
86 else | 86 else |
87 { | 87 { |
88 for (i = 0; i < size - 1; ++i) | 88 for (i = 0; i < size - 1; ++i) |
89 fprintf (asm_out_file, "0x%x,", bytes[i]); | 89 fprintf (asm_out_file, "%#x,", bytes[i]); |
90 fprintf (asm_out_file, "0x%x", bytes[i]); | 90 fprintf (asm_out_file, "%#x", bytes[i]); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 /* Output an immediate constant in a given SIZE in bytes. */ | 94 /* Output an immediate constant in a given SIZE in bytes. */ |
95 | 95 |
547 value >>= 7; | 547 value >>= 7; |
548 if (value != 0) | 548 if (value != 0) |
549 /* More bytes to follow. */ | 549 /* More bytes to follow. */ |
550 byte |= 0x80; | 550 byte |= 0x80; |
551 | 551 |
552 fprintf (asm_out_file, "0x%x", byte); | 552 fprintf (asm_out_file, "%#x", byte); |
553 if (value == 0) | 553 if (value == 0) |
554 break; | 554 break; |
555 fputc (',', asm_out_file); | 555 fputc (',', asm_out_file); |
556 } | 556 } |
557 } | 557 } |
589 /* More bytes to follow. */ | 589 /* More bytes to follow. */ |
590 byte |= 0x80; | 590 byte |= 0x80; |
591 | 591 |
592 if (byte_op) | 592 if (byte_op) |
593 { | 593 { |
594 fprintf (asm_out_file, "0x%x", byte); | 594 fprintf (asm_out_file, "%#x", byte); |
595 if (work != 0) | 595 if (work != 0) |
596 fputc (',', asm_out_file); | 596 fputc (',', asm_out_file); |
597 } | 597 } |
598 else | 598 else |
599 assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1); | 599 assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1); |
631 more = !((value == 0 && (byte & 0x40) == 0) | 631 more = !((value == 0 && (byte & 0x40) == 0) |
632 || (value == -1 && (byte & 0x40) != 0)); | 632 || (value == -1 && (byte & 0x40) != 0)); |
633 if (more) | 633 if (more) |
634 byte |= 0x80; | 634 byte |= 0x80; |
635 | 635 |
636 fprintf (asm_out_file, "0x%x", byte); | 636 fprintf (asm_out_file, "%#x", byte); |
637 if (!more) | 637 if (!more) |
638 break; | 638 break; |
639 fputc (',', asm_out_file); | 639 fputc (',', asm_out_file); |
640 } | 640 } |
641 } | 641 } |
676 if (more) | 676 if (more) |
677 byte |= 0x80; | 677 byte |= 0x80; |
678 | 678 |
679 if (byte_op) | 679 if (byte_op) |
680 { | 680 { |
681 fprintf (asm_out_file, "0x%x", byte); | 681 fprintf (asm_out_file, "%#x", byte); |
682 if (more) | 682 if (more) |
683 fputc (',', asm_out_file); | 683 fputc (',', asm_out_file); |
684 } | 684 } |
685 else | 685 else |
686 assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1); | 686 assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1); |
875 | 875 |
876 decl = build_decl (UNKNOWN_LOCATION, VAR_DECL, id, ptr_type_node); | 876 decl = build_decl (UNKNOWN_LOCATION, VAR_DECL, id, ptr_type_node); |
877 DECL_ARTIFICIAL (decl) = 1; | 877 DECL_ARTIFICIAL (decl) = 1; |
878 DECL_IGNORED_P (decl) = 1; | 878 DECL_IGNORED_P (decl) = 1; |
879 DECL_INITIAL (decl) = decl; | 879 DECL_INITIAL (decl) = decl; |
880 TREE_READONLY (decl) = 1; | |
880 | 881 |
881 if (TREE_PUBLIC (id)) | 882 if (TREE_PUBLIC (id)) |
882 { | 883 { |
883 TREE_PUBLIC (decl) = 1; | 884 TREE_PUBLIC (decl) = 1; |
884 make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); | 885 make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); |