Mercurial > hg > CbC > CbC_gcc
comparison gcc/lto/lto.h @ 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 /* LTO declarations. | 1 /* LTO declarations. |
2 Copyright 2009 Free Software Foundation, Inc. | 2 Copyright 2009, 2010 Free Software Foundation, Inc. |
3 Contributed by CodeSourcery, Inc. | 3 Contributed by CodeSourcery, 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 |
26 /* A file. */ | 26 /* A file. */ |
27 typedef struct lto_file_struct | 27 typedef struct lto_file_struct |
28 { | 28 { |
29 /* The name of the file. */ | 29 /* The name of the file. */ |
30 const char *filename; | 30 const char *filename; |
31 /* The offset for the object inside an ar archive file (or zero). */ | |
31 off_t offset; | 32 off_t offset; |
32 } lto_file; | 33 } lto_file; |
33 | 34 |
34 /* In lto-lang.c */ | 35 /* In lto-lang.c */ |
35 extern const char *resolution_file_name; | 36 extern const char *resolution_file_name; |
36 | 37 |
37 /* In lto.c */ | 38 /* In lto.c */ |
38 extern void lto_main (int); | 39 extern void lto_main (int); |
39 extern void lto_read_all_file_options (void); | 40 extern void lto_read_all_file_options (void); |
40 | 41 |
41 /* In lto-elf.c */ | 42 /* In lto-elf.c or lto-coff.c */ |
42 extern lto_file *lto_elf_file_open (const char *filename, bool writable); | 43 extern lto_file *lto_obj_file_open (const char *filename, bool writable); |
43 extern void lto_elf_file_close (lto_file *file); | 44 extern void lto_obj_file_close (lto_file *file); |
44 extern htab_t lto_elf_build_section_table (lto_file *file); | 45 extern htab_t lto_obj_build_section_table (lto_file *file); |
45 extern void lto_elf_begin_section (const char *name); | 46 extern void lto_obj_begin_section (const char *name); |
46 extern void lto_elf_append_data (const void *data, size_t len, void *block); | 47 extern void lto_obj_append_data (const void *data, size_t len, void *block); |
47 extern void lto_elf_end_section (void); | 48 extern void lto_obj_end_section (void); |
48 extern lto_file *lto_set_current_out_file (lto_file *file); | 49 extern lto_file *lto_set_current_out_file (lto_file *file); |
49 extern lto_file *lto_get_current_out_file (void); | 50 extern lto_file *lto_get_current_out_file (void); |
50 | 51 |
51 /* Hash table entry to hold the start offset and length of an LTO | 52 /* Hash table entry to hold the start offset and length of an LTO |
52 section in a .o file. */ | 53 section in a .o file. */ |