Mercurial > hg > CbC > CbC_gcc
comparison gcc/print-rtl.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 /* Print RTL for GCC. | 1 /* Print RTL for GCC. |
2 Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999, 2000, 2002, 2003, | 2 Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999, 2000, 2002, 2003, |
3 2004, 2005, 2007, 2008, 2009 | 3 2004, 2005, 2007, 2008, 2009, 2010 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
8 GCC is free software; you can redistribute it and/or modify it under | 8 GCC is free software; you can redistribute it and/or modify it under |
34 | 34 |
35 /* These headers all define things which are not available in | 35 /* These headers all define things which are not available in |
36 generator programs. */ | 36 generator programs. */ |
37 #ifndef GENERATOR_FILE | 37 #ifndef GENERATOR_FILE |
38 #include "tree.h" | 38 #include "tree.h" |
39 #include "real.h" | |
40 #include "flags.h" | 39 #include "flags.h" |
41 #include "hard-reg-set.h" | 40 #include "hard-reg-set.h" |
42 #include "basic-block.h" | 41 #include "basic-block.h" |
43 #include "diagnostic.h" | 42 #include "diagnostic.h" |
43 #include "tree-pretty-print.h" | |
44 #include "cselib.h" | 44 #include "cselib.h" |
45 #include "tree-pass.h" | 45 #include "tree-pass.h" |
46 #endif | 46 #endif |
47 | 47 |
48 static FILE *outfile; | 48 static FILE *outfile; |
234 #ifndef GENERATOR_FILE | 234 #ifndef GENERATOR_FILE |
235 else if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF) | 235 else if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF) |
236 { | 236 { |
237 int flags = SYMBOL_REF_FLAGS (in_rtx); | 237 int flags = SYMBOL_REF_FLAGS (in_rtx); |
238 if (flags) | 238 if (flags) |
239 fprintf (outfile, " [flags 0x%x]", flags); | 239 fprintf (outfile, " [flags %#x]", flags); |
240 } | 240 } |
241 else if (i == 2 && GET_CODE (in_rtx) == SYMBOL_REF) | 241 else if (i == 2 && GET_CODE (in_rtx) == SYMBOL_REF) |
242 { | 242 { |
243 tree decl = SYMBOL_REF_DECL (in_rtx); | 243 tree decl = SYMBOL_REF_DECL (in_rtx); |
244 if (decl) | 244 if (decl) |
314 else if (i == 0 && GET_CODE (in_rtx) == VALUE) | 314 else if (i == 0 && GET_CODE (in_rtx) == VALUE) |
315 { | 315 { |
316 #ifndef GENERATOR_FILE | 316 #ifndef GENERATOR_FILE |
317 cselib_val *val = CSELIB_VAL_PTR (in_rtx); | 317 cselib_val *val = CSELIB_VAL_PTR (in_rtx); |
318 | 318 |
319 fprintf (outfile, " %i", val->value); | 319 fprintf (outfile, " %u:%u", val->uid, val->hash); |
320 dump_addr (outfile, " @", in_rtx); | 320 dump_addr (outfile, " @", in_rtx); |
321 dump_addr (outfile, "/", (void*)val); | 321 dump_addr (outfile, "/", (void*)val); |
322 #endif | 322 #endif |
323 } | 323 } |
324 else if (i == 0 && GET_CODE (in_rtx) == DEBUG_EXPR) | 324 else if (i == 0 && GET_CODE (in_rtx) == DEBUG_EXPR) |
510 else | 510 else |
511 fputs (" 0", outfile); | 511 fputs (" 0", outfile); |
512 sawclose = 0; | 512 sawclose = 0; |
513 break; | 513 break; |
514 | 514 |
515 case 'b': | |
516 #ifndef GENERATOR_FILE | |
517 if (XBITMAP (in_rtx, i) == NULL) | |
518 fputs (" {null}", outfile); | |
519 else | |
520 bitmap_print (outfile, XBITMAP (in_rtx, i), " {", "}"); | |
521 #endif | |
522 sawclose = 0; | |
523 break; | |
524 | |
525 case 't': | 515 case 't': |
526 #ifndef GENERATOR_FILE | 516 #ifndef GENERATOR_FILE |
527 dump_addr (outfile, " ", XTREE (in_rtx, i)); | 517 dump_addr (outfile, " ", XTREE (in_rtx, i)); |
528 #endif | 518 #endif |
529 break; | 519 break; |
546 | 536 |
547 switch (GET_CODE (in_rtx)) | 537 switch (GET_CODE (in_rtx)) |
548 { | 538 { |
549 #ifndef GENERATOR_FILE | 539 #ifndef GENERATOR_FILE |
550 case MEM: | 540 case MEM: |
551 fprintf (outfile, " [" HOST_WIDE_INT_PRINT_DEC, | 541 if (__builtin_expect (final_insns_dump_p, false)) |
552 (HOST_WIDE_INT) MEM_ALIAS_SET (in_rtx)); | 542 fprintf (outfile, " ["); |
543 else | |
544 fprintf (outfile, " [" HOST_WIDE_INT_PRINT_DEC, | |
545 (HOST_WIDE_INT) MEM_ALIAS_SET (in_rtx)); | |
553 | 546 |
554 if (MEM_EXPR (in_rtx)) | 547 if (MEM_EXPR (in_rtx)) |
555 print_mem_expr (outfile, MEM_EXPR (in_rtx)); | 548 print_mem_expr (outfile, MEM_EXPR (in_rtx)); |
556 | 549 |
557 if (MEM_OFFSET (in_rtx)) | 550 if (MEM_OFFSET (in_rtx)) |