Mercurial > hg > CbC > CbC_gcc
comparison gcc/run-rtl-passes.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
130:e108057fa461 | 132:d34655255c78 |
---|---|
1 /* run-rtl-passes.c - Run RTL passes directly from frontend | 1 /* run-rtl-passes.c - Run RTL passes directly from frontend |
2 Copyright (C) 2016-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2016-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
28 #include "context.h" | 28 #include "context.h" |
29 #include "pass_manager.h" | 29 #include "pass_manager.h" |
30 #include "bitmap.h" | 30 #include "bitmap.h" |
31 #include "df.h" | 31 #include "df.h" |
32 #include "regs.h" | 32 #include "regs.h" |
33 #include "output.h" | |
34 #include "debug.h" /* for debug_hooks. */ | |
33 #include "insn-attr-common.h" /* for INSN_SCHEDULING. */ | 35 #include "insn-attr-common.h" /* for INSN_SCHEDULING. */ |
34 #include "insn-attr.h" /* for init_sched_attrs. */ | 36 #include "insn-attr.h" /* for init_sched_attrs. */ |
35 #include "run-rtl-passes.h" | 37 #include "run-rtl-passes.h" |
36 | 38 |
37 /* Run the backend passes, starting at the given pass. | 39 /* Run the backend passes, starting at the given pass. |
40 void | 42 void |
41 run_rtl_passes (char *initial_pass_name) | 43 run_rtl_passes (char *initial_pass_name) |
42 { | 44 { |
43 cfun->pass_startwith = initial_pass_name; | 45 cfun->pass_startwith = initial_pass_name; |
44 max_regno = max_reg_num (); | 46 max_regno = max_reg_num (); |
47 | |
48 /* cgraphunit.c normally handles this. */ | |
49 switch_to_section (text_section); | |
50 (*debug_hooks->assembly_start) (); | |
45 | 51 |
46 /* Pass "expand" normally sets this up. */ | 52 /* Pass "expand" normally sets this up. */ |
47 #ifdef INSN_SCHEDULING | 53 #ifdef INSN_SCHEDULING |
48 init_sched_attrs (); | 54 init_sched_attrs (); |
49 #endif | 55 #endif |