OLD | NEW |
1 /* C/ObjC/C++ command line option handling. | 1 /* C/ObjC/C++ command line option handling. |
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Neil Booth. | 4 Contributed by Neil Booth. |
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 |
9 the terms of the GNU General Public License as published by the Free | 9 the terms of the GNU General Public License as published by the Free |
10 Software Foundation; either version 3, or (at your option) any later | 10 Software Foundation; either version 3, or (at your option) any later |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 if (flag_record_gcc_switches_in_elf && i == 0) | 1160 if (flag_record_gcc_switches_in_elf && i == 0) |
1161 write_opts_to_asm (); | 1161 write_opts_to_asm (); |
1162 pch_init (); | 1162 pch_init (); |
1163 set_lipo_c_parsing_context (parse_in, i, verbose); | 1163 set_lipo_c_parsing_context (parse_in, i, verbose); |
1164 push_file_scope (); | 1164 push_file_scope (); |
1165 c_parse_file (); | 1165 c_parse_file (); |
1166 /* In lipo mode, processing too many auxiliary files will cause us | 1166 /* In lipo mode, processing too many auxiliary files will cause us |
1167 to hit memory limits, and cause thrashing -- prevent this by not | 1167 to hit memory limits, and cause thrashing -- prevent this by not |
1168 processing any further auxiliary modules if we reach a certain | 1168 processing any further auxiliary modules if we reach a certain |
1169 memory limit. */ | 1169 memory limit. */ |
1170 if (lipo_max_mem_reached (i)) | 1170 if (!include_all_aux && lipo_max_mem_reached (i)) |
1171 num_in_fnames = i + 1; | 1171 num_in_fnames = i + 1; |
1172 pop_file_scope (); | 1172 pop_file_scope (); |
1173 /* And end the main input file, if the debug writer wants it */ | 1173 /* And end the main input file, if the debug writer wants it */ |
1174 if (debug_hooks->start_end_main_source_file) | 1174 if (debug_hooks->start_end_main_source_file) |
1175 (*debug_hooks->end_source_file) (0); | 1175 (*debug_hooks->end_source_file) (0); |
1176 if (++i >= num_in_fnames) | 1176 if (++i >= num_in_fnames) |
1177 break; | 1177 break; |
1178 cpp_undef_all (parse_in); | 1178 cpp_undef_all (parse_in); |
1179 cpp_clear_file_cache (parse_in); | 1179 cpp_clear_file_cache (parse_in); |
1180 deferred_count = 0; | 1180 deferred_count = 0; |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 case 'D': /* Dump definitions. */ | 1616 case 'D': /* Dump definitions. */ |
1617 case 'U': /* Dump used macros. */ | 1617 case 'U': /* Dump used macros. */ |
1618 flag_dump_macros = c; | 1618 flag_dump_macros = c; |
1619 break; | 1619 break; |
1620 | 1620 |
1621 case 'I': | 1621 case 'I': |
1622 flag_dump_includes = 1; | 1622 flag_dump_includes = 1; |
1623 break; | 1623 break; |
1624 } | 1624 } |
1625 } | 1625 } |
OLD | NEW |