]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
[gcc.git] / gcc / ChangeLog
CommitLineData
8f9b4009
NB
12003-07-29 Neil Booth <neil@daikokuya.co.uk>
2
3 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
4 * cppfiles.c: Completely rewritten.
5 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
6 struct cpp_path is now struct cpp_dir.
7 (remove_duplicates): Don't simplify path names.
8 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
9 cpp_stack_file.
10 * cpphash.h: Include hashtab.h.
11 (_cpp_file): Declare.
12 (struct cpp_buffer): struct include_file is now struct _cpp_file,
13 and struct cpp_path is now struct cpp_dir. Rename members.
14 (struct cpp_reader): Similarly. New members once_only_files,
15 file_hash, file_hash_entries, quote_ignores_source_dir,
16 no_search_path, saw_pragma_once. Remove all_include_files and
17 max_include_len. Make some members bool.
18 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
19 (_cpp_stack_file): Renamed from _cpp_read_file.
20 (_cpp_stack_include): Renamed from _cpp_execute_include.
21 (_cpp_init_files): Renamed from _cpp_init_includes.
22 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
23 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
24 (cpp_read_next_file): Rename and move to cppfiles.c.
25 (cpp_read_main_file): Update.
26 * cpplib.c (run_directive): Update for renamed members.
27 (do_include_common, _cpp_pop_buffer): Update.
28 (do_import): Undeprecate #import.
29 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
30 * cpplib.h: Remove file_name_map_list.
31 (cpp_options): Remove map_list.
32 (cpp_dir): Rename from cpp_path. New datatype for name_map.
33 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
34
a6400add
PE
352003-07-29 Phil Edwards <pme@gcc.gnu.org>
36
37 * Makefile.in: Make stamp-objdir safe for parallel builds.
38
b2790407
PE
392003-07-29 Phil Edwards <pme@gcc.gnu.org>
40
41 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
42 (info): Depend on stmp-docobjdir.
43
8e3940b2
RO
442003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45
46 * configure: Regenerate.
47
987bf56f
JH
48Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
49
50 PR C++/11131
51 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
52 in !unit-at-a-time mode.
53
5f0eabcc
GK
542003-07-28 Geoffrey Keating <geoffk@apple.com>
55
56 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
57 main function.
58
7b6d72fc
MM
592003-07-28 Mark Mitchell <mark@codesourcery.com>
60
61 PR c++/11667
62 * c-common.c (shorten_compare): Take into account differences
63 between C and C++ representation for enumeration types.
64 * tree.h (set_min_and_max_values_for_integral_type): Declare.
65 * stor-layout.c (set_min_and_max_values_for_integral_type): New
66 function, broken out from ...
67 (fixup_signed_type): ... here and ...
68 (fixup_unsigned_type): ... here.
69
14077d68
ZW
702003-07-28 Zack Weinberg <zack@codesourcery.com>
71
72 * c-decl.c: Update commentary, adjust blank lines throughout.
73 (struct c_scope): Fix indentation. Reorder members so
74 outer-context pointers come first, booleans last.
75 (duplicate_decls, define_label): Use a 'locus' variable for
76 diagnostic locations in a few more places.
77 (warn_if_shadowing): Un-split a conditional that fits on one line.
78 (c_init_decl_processing): No need to clear current_scope and
79 current_function_scope.
80 (start_decl): Merge if/else if statements with same action.
81 (push_parm_decl): Rename old_immediate_size_expand to use
82 save_foo convention; save/restore around entire function.
83 (grokdeclarator): Remove unnecessary braces.
84
85617eba
HPN
852003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
86 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
87
88 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
89 when warn_declaration_after_statement. Call pedwarn_c90, not
90 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
91 * c-common.c (warn_declaration_after_statement): Define.
92 * c-common.h (warn_declaration_after_statement): Declare.
93 * c.opt (Wdeclaration-after-statement): New.
94 * c-errors.c (pedwarn_c90): New function.
95 * c-opts.c (c_common_handle_option) <case
96 OPT_Wdeclaration_after_statement>: New.
97 * c-tree.h (pedwarn_c90): Declare.
98 * doc/invoke.texi (Option Summary): Document
99 -Wdeclaration-after-statement.
100 (Warning Options): Ditto.
101
f527d196
JH
102Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
103
104 * i386.md (memory attribute) Avoid accessing uninitialized memory
105 for ishift1 type instructions.
106
5dfa45d0
JJ
1072003-07-28 Jakub Jelinek <jakub@redhat.com>
108
109 * configure.in (--enable-checking): Add fold category.
110 (ENABLE_FOLD_CHECKING): Define if requested.
111 * configure: Rebuilt.
112 * config.in: Rebuilt.
113 * doc/install.texi: Document it.
114 * fold-const.c: Include md5.h.
115 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
116 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
117 print_fold_checksum): New functions.
118
119 * fold-const.c (fold): Never modify argument passed to fold, instead
120 change a copy and return it.
121 * convert.c (convert_to_integer): Likewise.
122
447673de
NN
1232003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
124
14077d68 125 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
126 cleanup of junk after #else and #endif directives. Collapse repeated
127 clauses into for statment.
128
129 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
130
66db6b62
ZW
1312003-07-27 Zack Weinberg <zack@codesourcery.com>
132
a8ccdffe
ZW
133 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
134 (keep_next_if_subblocks): Rename next_is_function_body.
135 (pushlevel): Adjust commentary. Always set ->keep on the
136 outermost level of a function. Don't set ->keep_if_subblocks.
137 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
138 (store_parm_decls): Adjust to match.
139 (finish_function): Adjust to match.
140 Call poplevel with all three arguments zero.
141
66db6b62
ZW
142 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
143 New functions split out of store_parm_decls.
144 Avoid unnecessary work. Use local variables consistently.
145 (store_parm_decls): Likewise.
146
147 (finish_function): No need to set functionbody flag on call to
148 poplevel.
149 (struct language_function): Remove scope field.
150 (c_push_function_context, c_pop_function_context): No need to
151 save and restore current_scope.
152
90ea7324
NS
1532003-07-27 Nathan Sidwell <nathan@codesourcery.com>
154
155 * doc/extend.texi (Deprecated Features): Implicit typename is
156 gone. Default args on types is going.
157
11a004ef
R
1582003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
159
160 * Makefile.in (ifcvt.o): Depend on target.h
161 * ifcvt.c (target.h): Include.
162 (if_convert): Don't call mark_loop_exit_edges if we can't
163 modify jumps.
164
6cbf57c9
GP
1652003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
166
167 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
168
a6c14a64
RH
1692003-07-26 Richard Henderson <rth@redhat.com>
170
171 PR inline-asm/11676
172 * cse.c (count_reg_usage): Handle asm_operands properly.
173
cc42f5f5
RS
1742003-07-26 Roger Sayle <roger@eyesopen.com>
175
176 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
177 (DEF_EXT_FALLBACK_BUILTIN): Delete.
178 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
179 the regular DEF_EXT_LIB_BUILTIN macro.
180 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
181 the regular DEF_LIB_BUILTIN macro.
182 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
183 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
184 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
185 DEF_EXT_LIB_BUILTIN macro.
186
187 * c-decl.c (duplicate_decls): Remove code to handle builtin
188 functions prototyped without an argument list.
189
92e7a6ef
DS
1902003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
191
192 * config/i386/winnt.c: Revert 2003-07-08 change.
193 (i386_pe_section_type_flags): Remove error_with_decl here too.
194
ba9cfcb5
GDR
1952003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
196
197 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
198 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
199 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
200 (v850_handle_data_area_attribute): Likewise.
201
0e5da0be
GK
2022003-07-26 Geoffrey Keating <geoffk@apple.com>
203
66db6b62 204 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
205 ASM_DECLARE_CONSTANT_NAME if defined.
206 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
207 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
208 objects get at least one byte to prevent assembler problems.
209 (ASM_DECLARE_CONSTANT_NAME): New.
210
d2908a50
GK
211 * Makefile.in (libbackend.o): Remove options_.h.
212 (mostlyclean): Likewise.
213
0e5da0be
GK
214 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
215 insert a label at the end of an function under Mach-O.
863d3dfb
GK
216
217 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
218
36252949
AH
2192003-07-25 Aldy Hernandez <aldyh@redhat.com>
220
221 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
222 equality.
223 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
224
225 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
226
0fe37f68
GDR
2272003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
228
229 * doc/passes.texi (Passes): Mention pretty-printing and
230 diagnostic files.
231
50fc59e7
NS
2322003-07-25 Nathan Sidwell <nathan@codesourcery.com>
233
234 * doc/extend.texi (Function Attributes): GNU C++ does now allow
235 unused parameter decls.
236 (Attribute Syntax): GNU C++ does not allow label attributes to be
237 after the ':'.
238
cd475805
GDR
2392003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
240
241 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
242 (objc_declare_class): Likewise.
243 (error_with_ivar): Likewise.
244 (start_class): Likewise.
245 (warn_with_method): Likewise.
246
b6fe0bb8
GDR
2472003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
248
249 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 250 from GCC.
b6fe0bb8
GDR
251 * calls.c (try_to_integrate): Don't use xxx_with_decl.
252 (expand_call): Likewise.
253 * dwarfout.c (output_reg_number): Likewise.
254 * expr.c (expand_expr): Likewise.
255 * function.c (assign_temp): Likewise.
256 (uninitialized_vars_warning): Likewise.
257 (setjmp_args_warning): Likewise.
258 (expand_function_end): Likewise.
259 * stmt.c (fixup_gotos): Likewise.
260 (warn_about_unused_variables): Likewise.
261 (expand_end_bindings): Likewise.
262 * stor-layout.c (layout_decl): Likewise.
263 (place_field): Likewise.
264 * toplev.c (check_global_declarations): Likewise.
265 (rest_of_handle_inlining): Likewise.
266 (default_tree_printer): New function.
267 (general_init): Initialize diagnostic machinery before routing
268 signals to the ICE machinery. Set default tree printer.
269 * toplev.h (pedwarn_with_decl): Remove declaration.
270 (warning_with_decl): Likewise.
271 (error_with_decl): Likewise.
66db6b62 272 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
273 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
274 * varasm.c (named_section): Likewise.
275 (make_decl_rtl): Likewise.
276 (assemble_variable): Likewise.
277 (merge_weak): Likewise.
278 (declare_weak): Likewise.
279
280 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
281 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
282 (format_with_decl): Remove.
283 (diagnostic_for_decl): Likewise.
284 (pedwarn_with_decl): Likewise.
285 (warning_with_decl): Likewise.
286 (error_with_decl): Likewise.
287 (diagnostic_initialize): Adjust.
288 (diagnostic_count_diagnostic): Likewise.
289 (announce_function): Likewise.
290 (lhd_print_error_function): Likewise.
291 (diagnostic_report_current_module): Likewise.
292 (default_diagnostic_starter): Likewise.
293 (diagnostic_report_diagnostic): Likewise.
294 (default_diagnostic_finalizer): Likewise.
295 (verbatim): Likewise.
296 (error): Likewise.
297 (warning): Likewise.
298 * opts.c (common_handle_option): Likewise.
299 * pretty-print.c: New file.
300 * c-pretty-print.h (pp_base): Override.
301 * c-pretty-print.c: Adjust use of macros throughout.
302 (pp_buffer): New macro.
303 (pp_newline): Likewise.
304 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
305 * Makefile.in (DIAGNOSTIC_H): New variable.
306 (c-errors.o): Use it.
307 (c-objc-common.o): Likewise.
308 (c-common.o): Likewise.
309 (c-opts.o): Likewise.
310 (c-format.o): Likewise.
311 (diagnostic.o): Likewise.
312 (opts.o): Likewise.
313 (toplev.o): Likewise.
314 (rtl-error.o): Likewise.
315 (dwarf2out.o): Likewise.
316 (jump.o): Likewise.
317 (pretty-print.o): New rule.
318
868b8cda
RS
3192003-07-24 Roger Sayle <roger@eyesopen.com>
320
321 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
322 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
323 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
324 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
325 (DEF_FRONT_END_LIB_BUILTIN): Delete.
326 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
327 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
328
329 * builtins.c (build_string_literal): New function to construct
330 a char* pointer to a string literal.
331 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
332 "rtx target" to be consistent with other expand_builtin_* functions.
333 Change 3rd argument from "int unlocked" to "bool unlocked".
334 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
335 c-common.c to avoid front-end dependencies. Optimize printf("")
336 as a no-op when the result isn't required. Handle embedded NULs
337 in format string.
338 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
339 from c-common.c to avoid front-end dependencies. Likewise, optimize
340 fprintf(fp,"") as a no-op when the result isn't required, evaluating
341 fp for side-effects. Handle embedded NULs in format string.
342 (expand_builtin_sprintf): Fix typo.
343 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
344 optimizing. Adjust calls of expand_builtin_fputs to match the API
345 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
346 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
347 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
348
349 * c-common.c (is_valid_printf_arglist): Delete.
350 (c_expand_builtin): Delete.
351 (c_expand_builtin_printf): Moved to builtins.c. Delete.
352 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
353 (c_expand_expr): No longer treat CALL_EXPRs specially.
354 (CALLED_AS_BUILT_IN): Delete.
355
2a868ea4
ZD
3562003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
357
358 PR optimization/11631
359 * gcse.c (store_motion): Connect infinite loops to exit.
360
de7df9eb
JM
3612003-07-24 Jason Merrill <jason@redhat.com>
362
363 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
364 (boolean_true_node, boolean_false_node): Likewise.
365 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
366 * tree.c (build_common_tree_nodes): Init boolean_type_node.
367 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
368 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
369 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
370 (truthvalue_true_node): Renamed from boolean_true_node.
371 (truthvalue_false_node): Renamed from boolean_false_node.
372 * c-decl.c: Just set truthvalue_* to integer_*.
373 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
374
6907ddd3
RS
3752003-07-24 Roger Sayle <roger@eyesopen.com>
376
377 * c-decl.c (match_builtin_function_types): New subroutine of
378 duplicate_decls to test whether a redeclaration of a builtin
379 function is suitably close, i.e. the return type and all of
380 the argument types have the same modes as the builtin expects.
381 (duplicate_decls): Fuzzy type matching for builtin functions
382 moved to match_builtin_function_types.
383
84d45ad1
ZD
3842003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
385
386 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
387 flag correctly.
388
f8521984
ZW
3892003-07-24 Zack Weinberg <zack@codesourcery.com>
390
391 * c-decl.c: Search-and-replace change 'binding level' to
392 'scope' in commentary.
393 (struct binding_level): Now struct c_scope.
394 (current_binding_level): Now current_scope.
395 (free_binding_level): Now scope_freelist.
396 (current_function_level): Now current_function_scope.
397 (global_binding_level): Now global_scope.
398 (make_binding_level): Now make_scope.
399 (pop_binding_level): Now pop_scope.
400
0f31374d
RO
4012003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
402
403 * configure.in (libgcc_visibility): Add missing whitespace.
404
270606ac
RH
4052003-07-24 Richard Henderson <rth@redhat.com>
406
407 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
408 __gcc_personality_v0.
f8521984 409
5f08e44f
RO
4102003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
411
412 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
413
a4878735
NS
4142003-07-24 Nathan Sidwell <nathan@codesourcery.com>
415
416 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
417 documentation missed from my 2003-07-09 patch.
418
5aaaf0e8
NN
4192003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
420
421 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
422 it's not provided.
423 * configure: Rebuild.
424
8f5b6d29
SB
4252003-07-24 Steven Bosscher <steven@gcc.gnu.org>
426
427 PR c/10602
428 * c-typeck.c (type_lists_compatible_p): Do not compare
429 arguments if one of them is an error_mark_node
430
acd0b319
AM
4312003-07-24 Alan Modra <amodra@bigpond.net.au>
432
433 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
434 if current_function_calls_eh_return.
435
28b619b2
MM
4362003-07-23 Mark Mitchell <mark@codesourcery.com>
437
438 * doc/c-tree.texi (OFFSET_TYPE): Update description.
439
07154156
BW
4402003-07-23 Bob Wilson <bob.wilson@acm.org>
441
442 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
443 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
444 __umodsi3, __modsi3): Increase frame size to 32.
445
5f5bfdd0
GK
4462003-07-23 Geoffrey Keating <geoffk@apple.com>
447
448 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
449 prototype.
450
11b8e71c
MM
4512003-07-23 Mark Mitchell <mark@codesourcery.com>
452
28b619b2
MM
453 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
454
11b8e71c
MM
455 PR optimization/10679
456 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
457
9d6b7c09
JDA
4582003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
459
460 PR target/11607 and PR target/11516
461 * pa.md (extzv, extv, insv): Revert latter half of last patch.
462
a5ac359a
MM
4632003-07-22 Mark Mitchell <mark@codesourcery.com>
464
465 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
466 * varasam.c (output_constant): Likewise.
467
938d968e
KH
4682003-07-22 Kazu Hirata <kazu@cs.umass.edu>
469
470 * alias.c: Fix comment formatting.
471 * c-common.c: Likewise.
472 * c-decl.c: Likewise.
473 * c-opts.c: Likewise.
474 * combine.c: Likewise.
475 * cpplib.c: Likewise.
476 * diagnostic.c: Likewise.
477 * dojump.c: Likewise.
478 * final.c: Likewise.
479 * fold-const.c: Likewise.
480 * gcc.c: Likewise.
481 * gcse.c: Likewise.
482 * ggc-page.c: Likewise.
483 * jump.c: Likewise.
484 * loop.c: Likewise.
485 * mips-tfile.c: Likewise.
486 * recog.c: Likewise.
487 * regclass.c: Likewise.
488 * regmove.c: Likewise.
489 * tree.c: Likewise.
490 * tree.h: Likewise.
491
b3147029
PB
4922003-07-22 Per Bothner <pbothner@apple.com>
493
494 * line-map.c (add_line_map): Handle invalid LEAVE request.
495 Fixes PR preprocessor/11361.
496
53f72d60
PB
4972003-07-22 Per Bothner <pbothner@apple.com>
498
499 * diagnostic.c.(diagnostic_report_current_module): Update to match
500 2003-06-05 changes to push_srcloc and pop_srcloc.
501
5cf0212f
WB
5022003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
503
504 * doc/trouble.texi: Better document two-stage name lookup.
505
c7453384
EC
5062003-07-22 Eric Christopher <echristo@redhat.com>
507
508 * config/s390.c (s390_valid_pointer_mode): New.
509 (TARGET_VALID_POINTER_MODE): Use.
510 (s390_emit_prologue): Add tpf profiling hooks.
511 (s390_emit_epilogue): Ditto.
512 * config/s390.h (MASK_TPF): New.
513 (TARGET_TPF): Use.
514 (POINTERS_EXTEND_UNSIGNED): Define.
515 * config/s390.md (ptr_extend): New pattern.
516
a2f7be91
ZW
5172003-07-22 Zack Weinberg <zack@codesourcery.com>
518
519 * hashtable.c (approx_sqrt): Make static.
520 * hashtable.h: Don't prototype approx_sqrt.
521 * line-map.c (init_line_maps): Rename linemap_init.
522 (free_line_maps): Rename linemap_free.
523 (add_line_map): Rename linemap_add.
524 (lookup_line): Rename linemap_lookup.
525 (print_containing_files): Rename linemap_print_containing_files.
526 * linemap.h: Update to match.
527
528 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
529 linemap routines to use new names.
530
c6e4cc53
NS
5312003-07-16 Nathan Sidwell <nathan@codesourcery.com>
532
533 * c-common.c (handle_packed_attribute): Don't pack a struct via a
534 typedef. Propagate packedness from a main variant.
535
55de4f08
NN
5362003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
537
538 * Makefile.in (install-common): Add dependency on installdirs.
539
fb5d2a87
AO
5402003-07-21 Alexandre Oliva <aoliva@redhat.com>
541
542 * c-common.c (c_common_type_for_mode): Return integer types for
543 pointer modes.
544
905bd7b5
GK
5452003-07-22 Geoffrey Keating <geoffk@apple.com>
546
d05cc98e
GK
547 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
548 (finish_decl): Call maybe_apply_pragma_weak here.
549 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
550 TREE_PUBLIC and TREE_STATIC are decided.
551 (start_function): Move call to maybe_apply_pragma_weak. Check that
552 DECL_ASSEMBLER_NAME isn't set too early.
553
905bd7b5
GK
554 * cpplex.c (_cpp_process_line_notes): Mention option name in
555 trigraphs warning.
556
87d9741e
KH
5572003-07-22 Kazu Hirata <kazu@cs.umass.edu>
558
559 * combine.c (if_then_else_cond): Simplify the comparison of
560 rtx against -1, 0, and 1.
561 * loop.c (check_dbra_loop): Likewise.
562 * optabs.c (emit_conditional_move): Likewise.
563 (emit_conditional_add): Likewise.
564 * config/i386/i386.md (*movsi_or): Likewise.
565 (*movdi_or_rex6): Likewise.
566
b67d7f4a
JH
567Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
568
569 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
570
8d973a83
NB
5712003-07-21 Neil Booth <neil@daikokuya.co.uk>
572
573 * cppfiles.c (open_file_pch): Don't put unused entries in the
574 splay tree. Remove dead code.
575
49a64b24
GK
5762003-07-21 Geoffrey Keating <geoffk@apple.com>
577
48873ed2
GK
578 * c-common.h (num_in_fnames): Declare.
579 (c_static_assembler_name): Move from here...
580 * c-tree.h (c_static_assembler_name): ... to here.
581 * c-opts.c: Don't include langhooks-def.h.
582 (c_static_assembler_name): Move to c-decl.c.
583 (num_in_fnames): Make externally visible.
584 * c-decl.c: Include langhooks-def.h.
585 (c_static_assembler_name): Move from c-opts.c.
586 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
587 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
588
49a64b24
GK
589 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
590 when it's not needed.
591
8c29550d
JJ
5922003-07-21 Jakub Jelinek <jakub@redhat.com>
593
594 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
595 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
596 (rs6000_emit_prologue): Save FPRs inline if set.
597
92cbea22
L
5982003-07-21 H.J. Lu <hongjiu.lu@intel.com>
599
600 * config/ia64/ia64.md (prefetch): Support predicate.
601
ee735eef
JZ
6022003-07-21 Josef Zlomek <zlomekj@suse.cz>
603
604 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
605 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
606 table.
607
bbda30a4
EB
6082003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
609
a2f7be91 610 PR optimization/11536
bbda30a4
EB
611 * unroll.c (loop_iterations): Do not replace a register holding
612 the final value by its equivalent before the loop if it is not
613 invariant.
614
64c18e57
DF
6152003-07-21 Dave Fluri <dave.fluri@onlink.net>
616
617 * doc/extend.texi: Fixes to spelling, grammar, and diction.
618
b222f49a
BE
6192003-07-21 Ben Elliston <bje@wasabisystems.com>
620
621 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
622 (V850 Options): Spelling fixes.
623
9eff22bc
LG
6242003-07-20 Lisa M. Goldstein <opus@gnu.org>
625
a2f7be91 626 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 627
6a6c0154
RS
6282003-07-20 Roger Sayle <roger@eyesopen.com>
629
630 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
631 * system.h (SMALL_STACK): Poison obsolete target macro.
632 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
633
d38b3a8d
PE
6342003-07-20 Phil Edwards <pme@gcc.gnu.org>
635
636 * configure.in: Cache the results of testing for cmp's capabilities.
637 * configure: Regenerate.
638
35dc2bd8
MM
6392003-07-20 Mark Mitchell <mark@codesourcery.com>
640
641 PR debug/11279
642 * dwarf2out.c (gen_enumeration_type_die): Remember that
643 enumerators can be unsigned.
644
14e33ee8
ZW
6452003-07-19 Zack Weinberg <zack@codesourcery.com>
646
647 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
648 (push_label_level, pop_label_level): Kill.
649 (struct binding_level): Rename level_chain to outer.
650 Add outer_function field. Change parm_flag, function_body,
651 keep, keep_if_subblocks to 1-bit bitfields of type bool.
652 (current_function_level): New variable.
653 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
654 (keep_next_level, declare_parm_level, warn_if_shadowing):
655 Update to match.
656 (struct language_function): Kill named_labels, shadowed_labels fields.
657 (c_init_decl_processing, start_function, c_push__function_context)
658 (c_pop_function_context): No need to muck with named_labels nor
659 shadowed_labels.
660
661 (make_binding_level): No need to clear the structure here.
662 (pop_binding_level): Always operate on current_binding_level.
663 Update current_function_level if necessary.
664 (pushlevel): Don't clear named_labels. Update current_function_level
665 if necessary. Use "true" and "false" where appropriate.
666 (poplevel): Diagnose labels defined but not used, or vice
667 versa, and clear out label-meanings leaving scope, while
668 walking down the decls list, for all binding levels.
669 Handle LABEL_DECLs appearing in the shadowed list.
670 pop_binding_level takes no arguments.
671 (pushdecl_function_level): Use current_function_level.
672
673 (make_label, bind_label): New static functions.
674 (declare_label): New exported function.
675 (lookup_label, define_label): Rewritten for new data structure.
676 (shadow_label): Kill.
677
678 * c-tree.h: Prototype declare_label; don't prototype
679 push_label_level, pop_label_level, nor shadow_label.
680 * c-parse.in: Remove all calls to push_label_level and
681 pop_label_level. Use declare_label for __label__ decls.
682
683 * doc/extend.texi: Clarify that __label__ can be used to
684 declare labels with local scope in any nested block, not
685 just statement expressions. Cross-reference nested functions
686 section from local labels section.
687
8a6b9b7f
ZD
6882003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
689
690 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
691
026fe6c8
PE
6922003-07-19 Phil Edwards <pme@gcc.gnu.org>
693
694 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
695
c68b0a84
KG
6962003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
697
698 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
699 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
700
fd7643fb
UW
7012003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
702
14e33ee8 703 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
704 relative to the GOT instead of relative to the literal pool base.
705 (s390_output_symbolic_const): Handle new GOT-relative accesses.
706 * config/s390/s390.md ("call"): Access local functions and PLT stubs
707 relative to the GOT instead of relative to the literal pool base.
708 ("call_value"): Likewise.
709 ("call_value_tls"): Likewise.
710
14e33ee8 711 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
712 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
713 (s390_chunkify_finish): Likewise.
714 (s390_chunkify_cancel): Likewise.
715 (s390_reorg): Adapt caller.
716 (find_base_register_in_addr,
717 find_base_register_ref, replace_base_register_ref): Delete.
718 (find_ltrel_base, replace_ltrel_base): New functions.
719 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
720 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
721 base vs. index register usage.
722 (struct constant_pool): Remove 'anchor'.
723 (s390_add_anchor): Delete.
724 (s390_dump_pool): Remove anchor handling.
725 * config/s390/s390.md ("reload_anchor"): Remove.
726
727 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
728 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
729 (s390_emit_prologue): Use it.
14e33ee8
ZW
730 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
731 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
732 hard-code register 14.
733 * config/s390/s390-protos.h (s390_load_got): Declare.
734
14e33ee8 735 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
736 Support TImode constants.
737 * config/s390/s390.md ("consttable_ti"): New.
738 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
739
740 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
741 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
742 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
743 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
744 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
745 New symbolic constants.
746 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
747 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
748 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
749 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
750 symbolic UNSPEC values.
14e33ee8 751 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
752 bras_sym_operand, s390_cannot_force_const_mem,
753 s390_delegitimize_address, s390_decompose_address,
754 legitimize_pic_address, s390_output_symbolic_const,
755 s390_function_profiler): Use symbolic UNSPEC values.
756
703ad42b
KG
7572003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
758
759 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
760 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
761 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
762 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
763 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
764 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
765 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
766 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
767 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
768 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
769 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
770 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
771 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
772 postreload.c prefix.c print-tree.c protoize.c ra-build.c
773 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
774 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
775 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
776 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
777 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
778 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
779 casts.
780
308ca868
GDR
7812003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
782
783 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
784 * toplev.h (warning): Remove attribute.
785
435ab236
GDR
7862003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
787
788 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
789 (pop_label_level): Likewise.
790 (duplicate_decls): Likewise.
791 (implicitly_declare): Likewise.
792 (shadow_label): Likewise.
793 (start_decl): Likewise.
794 (finish_decl): Likewise.
795 (grokdeclarator): Likewise.
796 (get_parm_info): Likewise.
797 (detect_field_duplicates): Likewise.
798 (finish_struct): Likewise.
799 (start_function): Likewise.
800 (store_parm_decls): Likewise.
801 (finish_function): Likewise.
802 (c_expand_body_1): Likewise.
803 (check_for_loop_decls): Likewise.
804 (merge_translation_unit_decls): Likewise.
805
2cc98056
NB
8062003-07-19 Neil Booth <neil@daikokuya.co.uk>
807
808 * common.opt: Document --param.
809 * opts.c (columns, undocumented_msg): New.
810 (print_help): Get number of columns from environment. Print
811 --param help. Tweak newline handling.
812 (print_param_help): New.
813 (print_filtered_help): Better handling of duplicates. Complain
814 about undocumented switches.
815 (print_switch): New.
816 (wrap_help): Improve wrapping, use COLUMNS.
817 * opts.sh: Ignore comments in records.
818 * params.def: Fix typos and remove trailing periods.
819 * toplev.c (display_help): Don't dump --param help.
820 * doc/sourcebuild.texi: Update.
821
d893ccde
RH
8222003-07-18 Richard Henderson <rth@redhat.com>
823
0e38b30b 824 PR target/11556
d893ccde
RH
825 * optabs.c (prepare_operand): Fail gracefully instead of abort
826 if the predicate doesn't satisfy.
827 (gen_cond_trap): Allow prepare_operand to fail.
828
eb8221ea
GDR
8292003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
830
831 * c-common.c: Don't undefine GCC_DIAG_STYLE.
832 (fname_decl): Don't use xxx_with_decl.
833 (c_add_case_label): Likewise.
834 (handle_section_attribute): Likewise.
835 (handle_alias_attribute): Likewise.
836 (handle_no_instrument_function_attribute): Likewise.
837 (handle_no_limit_stack_attribute): Likewise.
838 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
839 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
840
65f43cdf
ZD
8412003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
842
843 * Makefile.in (ifcvt.o): Add cfgloop.h.
844 * basic-block.h (EDGE_LOOP_EXIT): New flag.
845 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
846 * ifcvt.c: Include cfgloop.h.
847 (mark_loop_exit_edges): New static function.
848 (if_convert): Call it.
849 (find_if_header): Ignore branches out of loops.
850
e5686da7
KH
8512003-07-18 Kazu Hirata <kazu@cs.umass.edu>
852
14e33ee8 853 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
854 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
855
8d05ebaa
DE
8562003-07-18 David Edelsohn <edelsohn@gnu.org>
857
858 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
859 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
860 (MUST_PASS_IN_STACK): Define.
861 (BLOCK_REG_PADDING): Define.
862
79019985
RH
8632003-07-18 Richard Henderson <rth@redhat.com>
864
865 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
866 to skip the addr_vec.
867
0595d388
AO
868Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
869
870 * combine.c (combinable_i3pat): Don't forbid occurrences of
871 i2dest or i1dest in inner_dest if inner_dest is a mem.
872
2ee1067b
JH
873Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
874
875 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
876
16f6812f
JJ
8772003-07-17 Jakub Jelinek <jakub@redhat.com>
878
879 PR target/11087
880 * loop.c (basic_induction_var): Check if convert_modes emitted any
881 instructions. Remove them and return 0 if so.
882
f129791c
EB
8832003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
884
885 PR optimization/11083
886 * toplev.c (rest_of_handle_addresof): Rename into
887 rest_of_handle_addressof. Delete unreachable blocks
888 if dead edges were purged after the addressof pass.
889
b2e608ca
NB
8902003-07-18 Neil Booth <neil@daikokuya.co.uk>
891
892 * Makefile.in, configure, configure.in: Remove handling of
893 lang-options.h and options_.h.
894 * toplev.c (struct lang_opt, documented_lang_options): Remove.
895 (display_help): Don't use documented_lang_options.
896
9cd51ef6
ZW
8972003-07-17 Zack Weinberg <zack@codesourcery.com>
898
899 * c-decl.c (pushdecl_function_level): Make static, return nothing.
900 (kept_level_p): Fold into poplevel.
901 (undeclared_variable): Moved here from c-typeck.c. Export.
902 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
903 (undeclared_variable): Prototype here. Don't prototype
904 kept_level_p nor pushdecl_function_level.
905 * c-parse.in: Change first argument to poplevel from
906 "kept_level_p()" to "KEEP_MAYBE".
907 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
908
cf6bcbd0
RS
9092003-07-17 Roger Sayle <roger@eyesopen.com>
910
911 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
912 commutative operands instead of modifying the RTL in-place.
913
2b187c63
MM
9142003-07-17 Mark Mitchell <mark@codesourcery.com>
915
916 PR optimization/11557
917 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
918 unless we know which function is being called.
919
c715abdd
RS
9202003-07-17 Roger Sayle <roger@eyesopen.com>
921
922 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
923 whether to reorder the operands of a commutative binary operator.
924
3e4093b6
RS
9252003-07-17 Roger Sayle <roger@eyesopen.com>
926
927 * fold-const.c (const_binop): Avoid performing the FP operation at
928 compile-time, if either operand is NaN and we honor signaling NaNs,
929 or if we're dividing by zero and either flag_trapping_math is set
930 or the desired mode doesn't support infinities.
931 (fold_initializer): New function to fold an expression ignoring any
932 potential run-time exceptions or traps.
933 * tree.h (fold_initializer): Prototype here.
934 * c-typeck.c (build_binary_op): Move to the end of the file so
935 that intializer_stack is in scope. If constructing an initializer,
936 i.e. when initializer_stack is not NULL, use fold_initializer to
937 fold expressions.
938 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
939 performing FP operations at compile-time, if they would raise an
940 exception at run-time.
941
89e9faee
GK
9422003-07-17 Geoffrey Keating <geoffk@apple.com>
943
26e0dcb3
GK
944 PR 11498
945 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
946 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
947 (GTFILES): Add langhooks.c.
948 (gt-langhooks.h): New.
949 * c-common.h (c_static_assembler_name): Prototype.
950 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
951 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
952 * c-opts.c: Include langhooks-def.h.
953 (c_static_assembler_name): New.
954 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
955 (var_labelno): New.
956 (lhd_set_decl_assembler_name): Give static objects with context
957 unique names.
958 * varasm.c (var_labelno): Delete.
959 (make_decl_rtl): Don't change the assembler name once it's set.
960
89e9faee
GK
961 * c-opts.c (this_input_filename): New.
962 (finish_options): Take new parameter, name of file being compiled.
963 Update callers. Set this_input_filename.
964 (push_command_line_include): Use this_input_filename not
965 main_input_filename.
966
6ec3f553
NB
9672003-07-17 Neil Booth <neil@daikokuya.co.uk>
968
969 * Makefile.in: Depend .pot generation on options.c.
970 * po/exgettext: Add an extra_files variable containing additional
971 files to scan.
972
78ff95dc
ZW
9732003-07-17 Zack Weinberg <zack@codesourcery.com>
974
36c6d174
ZW
975 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
976 c_write_global_declarations.
977
eb1dfbb2
ZW
978 * c-decl.c: Fix typos in several comments. Remove all
979 #if 0 blocks; reindent as needed. Remove unused argument
980 to declare_parm_level; all callers changed.
981 * c-parse.in: Update calls to declare_parm_level. Avoid
982 issuing a double warning in some circumstances.
983 * c-typeck.c: Update calls to declare_parm_level.
984 * c-tree.h: Update prototype of declare_parm_level.
985
986 * c-pragma.c (apply_pragma_weak): Don't complain about a
987 redundant #pragma weak.
988
989 * objc/objc-act.c (forward_declare_categories,
990 build_selector_reference_decl, build_class_reference_decl,
991 build_objc_string_decl, synth_forward_declarations,
992 build_protocol_reference): Set TREE_PUBLIC on synthetic
993 forward decl to 0, consistent with eventual definition.
994 Correct comments to match.
995
78ff95dc
ZW
996 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
997 in regexp that don't form a range expression.
998 * fixinc/fixincl.def: Regenerate.
999
b23ba0b8
RH
10002003-07-17 Richard Henderson <rth@redhat.com>
1001
78ff95dc
ZW
1002 PR target/10907
1003 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1004 even with !TARGET_CONST_GP.
1005 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 1006
d944c82d
SB
10072003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1008
1009 * c-common.c (c_estimate_num_insns_1): Don't handle
1010 METHOD_CALL_EXPR.
1011 * expr.c (safe_from_p): Likewise.
1012 * gengtype.c (adjust_field_tree_exp): Likewise.
1013 * stmt.c (warn_if_unused_value): Likewise
1014 * tree.c (first_rtl_op): Likewise.
1015 * tree.def: Don't define METHOD_CALL_EXPR.
1016 * java/lang.c (java_estimate_num_insns_1): Don't handle
1017 METHOD_CALL_EXPR.
1018
54284728
EB
10192003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1020
1021 PR other/11466
1022 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1023 and its restrictions for the SPARC64 port.
1024 Move the entry of "-mimpure-text" before that of "-mv8".
1025
bc890961 10262003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 1027 Phil Edwards <phil@jaj.com>
bc890961
EB
1028
1029 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1030 procedure to bootstrap and install.
1031 Document the preference for the legacy Sun tools in /usr/bin
1032 over the POSIX tools in /usr/xpg4/bin for the build process.
1033
f2ac9964
NB
10342003-07-17 Neil Booth <neil@daikokuya.co.uk>
1035
1036 * c.opt: Document Uncodumented; use it. Document ObjC options.
1037 * opts.c (print_filtered_help): Skip undocumented switches.
1038 * opts.h (CL_UNDOCUMENTED): New.
1039 * opts.sh: Handle Undocumented.
1040 * toplev.c (documented_lang_options): Prevent its becoming empty.
1041objc:
1042 * lang-options.h: Remove.
1043
03988cac
UW
10442003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1045
1046 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1047 instead of struct loop_info * as argument. Accept BIVs with
1048 increment +/- 1 provided there is a friendly exit test against
1049 a loop-invariant value.
1050 (strength_reduce): Adapt call to check_ext_dependent_givs.
1051
fada1961
R
10522003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1053 Con Bradley <con.bradley@superh.com>
1054
1055 * sh-protos.h (sh_get_pr_initial_val): Declare.
1056 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1057 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1058 and live_regs_mask arguments. Changed all callers.
1059 (save_schedule_s): New structure.
1060 (save_schedule): New typedef.
1061 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1062 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1063 In interrupts handlers, also save registers that are usually
1064 partially saved, and make sure there is at least one general purpose
1065 register saved if a target register needs saving.
1066 Add casts in comparisons to avoid warnings.
1067 (sh_media_register_for_return): return -1 for interrupt handlers.
1068 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1069 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1070 registers used are available.
1071 Set RTX_FRAME_RELATED_P where appropriate.
1072 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1073 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1074 (initial_elimination_offset): Likewise.
1075 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1076 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1077 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1078 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1079 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1080 and for target registers.
1081 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1082 (regno_reg_class): Make its elements type enum reg_class.
1083 (CONSTRAINT_LEN): Don't use isdigit.
1084 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1085 (FUNCTION_ARG): Add parentheses to avoid warnings.
1086 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1087 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1088 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1089 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1090 * sh.md (xordi3+1): Remove unused variable regno.
1091 (return_media): Check that tr0 is available before using it.
1092
bae92bf3
NB
10932003-07-16 Neil Booth <neil@daikokuya.co.uk>
1094
1095 * c.opt: Document more options.
1096
cc8c96fd
RS
10972003-07-16 Roger Sayle <roger@eyesopen.com>
1098
1099 * combine.c (subst): Also handle (subreg (const_double ...)) case
1100 if created by a substitution, by using the original inner mode.
1101
d41ba56f
RS
11022003-07-16 Roger Sayle <roger@eyesopen.com>
1103
1104 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1105 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1106 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1107
264d65c1 11082003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 1109
264d65c1 1110 * doc/install.texi (--without-headers): New.
1622229c
AP
1111
1112 Partial Fix PR/10129
1113 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1114 (machopic_output_function_base_name): New; print the true pic label.
1115 (machopic_classify_ident): Pic Base is always a defined data.
1116 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1117 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1118
db2f435b
AP
1119 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1120 if they are not floating point registers.
1121
d07605f5
AP
1122 PR c/10962
1123 * ggc.h: Add header guards.
1124 * c-decl.c (finish_struct): Sort fields if
1125 number greater than 15 and there are no
1126 anonymous structs/unions.
1127 * c-common.h: Include ggc.h.
1128 (sorted_fields_type): New struct.
1129 (field_decl_cmp): New prototype.
1130 (resort_sorted_fields): New prototype.
1131 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1132 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1133 as s, removing other fields.
1134 * c-typeck.c (lookup_field): Use s in lang_type.
1135 These were mostly moved from cp/class.c:
1136 * c-common.c (field_decl_cmp): New static function.
1137 (field_decl_cmp): New function.
1138 (resort_sorted_fields): New function.
1139
3d7964d5
GK
11402003-07-16 Geoffrey Keating <geoffk@apple.com>
1141
1142 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1143 to do most of the work.
1144
4e58524e
HPN
11452003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1146
1147 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1148 * config/mmix/mmix.c: Convert functions to ISO C90.
1149 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1150 formatting.
1151 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1152
1e0343dd
R
11532003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1154
1155 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1156
fc4767bb
JJ
11572003-07-16 Jakub Jelinek <jakub@redhat.com>
1158
1159 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1160 (uw_update_context_1): Use it.
1161 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1162 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1163 in parent frame if _Unwind_* called directly instead of through
1164 .plt.
1165 (rs6000_emit_eh_toc_restore): Remove.
1166 (rs6000_emit_prologue): Update stack pointer before doing any saving
1167 if current_function_calls_eh_return. Generate unwind info for $r2.
1168 (rs6000_emit_epilogue): Restore stack pointer after doing all
1169 restoring if current_function_calls_eh_return. Restore $r2.
1170 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1171 * config/rs6000/rs6000.md (eh_return): Remove call to
1172 rs6000_emit_eh_toc_restore.
1173 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1174 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1175
6972c506
JJ
11762003-07-15 Jakub Jelinek <jakub@redhat.com>
1177
1178 * expr.c (emit_block_move): Don't move anything if size is const 0.
1179 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1180 against 0.
1181
ac59ed37
DM
11822003-07-15 David S. Miller <davem@redhat.com>
1183
1184 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1185 emit nop if the last real insn is CALL_INSN.
1186
b828d124
DS
11872003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1188
1189 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1190 as "nul".
1191 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1192
d5648e12
DS
11932003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1194
1195 * config/i386/winnt.c (associated_type): Artificial methods are not
1196 affected by the import/export status of their class unless they are
1197 COMDAT.
1198 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1199
1200 * config/i386/winnt.c: Fix GCC copyright comment.
1201
b0e3f7ec
GDR
12022003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1203
1204 PR c++/11531
1205 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1206 not recursing on hard error.
1207 (diagnostic_for_decl): Likewise.
1208 * diagnostic.def: Rearrange.
1209
71628aa0
R
12102003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1211
1212 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1213 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1214
12152003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1216 Richard Henderson <rth@redhat.com>
1217
1218 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1219 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1220 (_Unwind_SetGR): Likewise.
1221 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1222 (Unwind_SpTmp): New typedef.
1223 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1224 (uw_update_context): Use _Unwind_GetPtr.
1225 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1226 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1227 Use _Unwind_SetSpColumn.
1228 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1229 Use _Unwind_GetPtr.
1230
5a170a05
NB
12312003-07-15 Neil Booth <neil@daikokuya.co.uk>
1232
1233 * c.opt: Document more options.
1234 * toplev.c (documented_lang_options): Remove all local help strings.
1235
b0afa2fc
MM
12362003-07-15 Mark Mitchell <mark@codesourcery.com>
1237
1238 PR debug/11473
1239 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1240 base classes.
1241
5df90541
KH
12422003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1243
1244 PR target/10795
1245 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1246 swap comparison operands if doing so would generate an
1247 unrecognizable insn.
1248
5a257872
EB
12492003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1250
1251 PR optimization/11320
1252 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1253 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1254 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1255 current_sched_info->compute_jump_reg_dependencies. Record which
1256 registers are used and which registers are set by the jump.
1257 Clear deps->reg_conditional_sets after a barrier.
1258 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1259 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1260 (init_deps): Initialize reg_conditional_sets.
1261 (free_deps): Clear reg_conditional_sets.
1262 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1263 Mark registers live on entry of the fallthrough block and conditionally
1264 set as set by the jump. Mark registers live on entry of non-fallthrough
1265 blocks as used by the jump.
1266 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1267 Mark new parameters as unused.
1268
3cec3f83
RS
12692003-07-15 Richard Sandiford <rsandifo@redhat.com>
1270
1271 * doc/invoke.texi: Resync MIPS -march documentation.
1272
98450f0d
RS
12732003-07-15 Richard Sandiford <rsandifo@redhat.com>
1274
1275 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1276 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1277 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1278 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1279 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1280 (mips_issue_rate): Handle PROCESSOR_R9000.
1281 (mips_use_dfa_pipeline_interface): Likewise.
1282 * config/mips/9000.md: New file.
1283 * config/mips/mips.md: Include it.
1284 (define_attr cpu): Add r9000.
1285 (mulsi3_mult3): Use "mul" for rm9000 code.
1286
5fe25f47
SC
12872003-07-15 Stan Cox <scox@redhat.com>
1288
1289 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1290 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1291 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1292 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1293 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1294 (mips_issue_rate): Handle PROCESSOR_R7000.
1295 (mips_use_dfa_pipeline_interface): Likewise.
1296 * config/mips/7000.md: New file.
1297 * config/mips/mips.md: Include it.
1298 (define_attr cpu): Add r7000.
1299 (mulsi3_mult3): Use "mul" for rm7000 code.
1300
5a2515e6
RS
13012003-07-15 Richard Sandiford <rsandifo@redhat.com>
1302
1303 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1304 the conditional move patterns.
1305 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1306 Check for condmove type.
1307 (ir_vr54_arith): Add move type.
1308 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1309 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1310
72de27ea
NB
13112003-07-15 Neil Booth <neil@daikokuya.co.uk>
1312
1313 * c-opts.c (print_help): Remove.
1314 (c_common_handle_option): Don't handle --help.
1315 * c.opt: Document some options.
1316 (--help): Remove.
1317 * opts.c (print_filtered_help): New.
1318 (print_help): Use it.
1319
e6ebd07b
GK
13202003-07-14 Geoffrey Keating <geoffk@apple.com>
1321
2d799c09
GK
1322 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1323 * tree.c: (build_common_tree_nodes_2): Likewise.
1324 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1325 (V4DF_type_node): New.
1326
e6ebd07b
GK
1327 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1328 we'll need it.
1329 (finish_options): Reset init_cursor.
1330
b90f141a
KH
13312003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1332
1333 * expr.c (expand_assignment): Remove an unused argument
1334 SUGGEST_REG.
1335 * expr.h: Update the prototype.
1336 * function.c: Update the callers.
1337 * stmt.c: Likewise.
1338
1e7ee6ad
MM
13392003-07-14 Mark Mitchell <mark@codesourcery.com>
1340
1341 PR debug/11098
1342 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1343 as DECL_ABSTRACT.
1344
bf66f7b0
NN
13452003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1346
1347 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1348 with __cplusplus, not "we must use the C++ compiler's type"
1349 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1350 * fixinc/fixincl.x: Regenerate.
1351
18009d03
GK
13522003-07-14 Geoffrey Keating <geoffk@apple.com>
1353
ea00486e
GK
1354 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1355 and unseen_objects from the global data before calling
1356 __deregister_frame_info_bases.
1357 (examine_objects): Insert objects into the seen_objects list,
1358 not unseen_objects.
1359 (_Unwind_Find_FDE): Always unlock the global object lists, even if
1360 we couldn't allocate a data structure to put in it.
1361
18009d03
GK
1362 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1363 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1364 (SET_TYPE_PROTOCOL_LIST): New.
1365 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1366 (get_object_reference): Likewise.
1367
9ae130f8
JH
1368Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
1369
1370 * cfglayout.c (locator_file): Break out from ....
1371 (insn_file): ... here.
1372 (locator_line): Break out from ....
1373 (insn_line): ... here.
1374 * rtl.h (locator_file, locator_line): Declare.
1375 (final_start_function): Set proper line/file info.
1376
e07d4821
GDR
13772003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1378
1379 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1380 handled by pp_c_cast_expression.
1381
121d69e6
RS
13822003-07-14 Richard Sandiford <rsandifo@redhat.com>
1383
1384 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1385 allocate 32768 bytes of stack. Use addition rather than subtraction
1386 when a single insn is enough.
1387 * config/mips/mips.md: Remove insns and splitters for subtracting
1388 constants.
1389 (subsi3): Only accept register operands.
1390 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
1391 (subdi3_internal_3, subsi3_internal_2): Likewise.
1392 (casesi): Use expand_binop to subtract the lower bound.
1393
3485245e
RS
13942003-07-14 Richard Sandiford <rsandifo@redhat.com>
1395
1396 * config/mips/mips.c (mips_in_small_data_p): Don't handle
1397 TARGET_MIPS16 specially.
1398
6627b7f9
RS
13992003-07-14 Richard Sandiford <rsandifo@redhat.com>
1400
6d0b50a4
RS
1401 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1402 mips_output_aligned_bss.
1403 * config/mips/linux.h: Likewise.
1404 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1405 * config/mips/mips.c (mips_output_aligned_bss): New function.
1406
8d50bd19
RS
1407 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1408 * config/mips/elf64.h: Likewise.
1409
c1115ccd
RS
1410 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1411 mips_declare_object_name.
1412 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1413 * config/mips/elf64.h: As for elf.h.
1414 * config/mips/iris6.h: Likewise.
1415 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1416 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1417 do...while (0) block.
1418 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1419 (mips_finish_declare_object): Declare.
1420 * config/mips/mips.c (mips_declare_object_name): New function.
1421 (mips_finish_declare_object): New function.
1422
060ff934
RS
1423 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1424 * config/mips/linux.h: Likewise.
1425
d82783b6
RS
1426 * config/mips/mips.c (inside_function): Delete.
1427 (file_in_function_warning, ignore_line_number): Delete.
1428 (mips_output_filename): Don't warn about changing filenames within
1429 a function.
1430 (mips_output_lineno): Update accordingly.
1431 (mips_output_function_prologue): Don't reset the deleted variables.
1432 * config/mips/mips.h (inside_function): Delete.
1433 (file_in_function_warning, ignore_line_number): Delete.
1434
373f8df7
RS
1435 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1436 * config/mips/elf64.h: Likewise.
1437 * config/mips/openbsd.h: Likewise.
1438 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1439 * config/mips/linux.h: Likewise.
1440 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1441 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1442
6627b7f9
RS
1443 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1444 to the list of include files when using gas.
1445 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1446 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1447 * config/mips/elf64.h: Likewise.
1448 * config/mips/iris5.h: Likewise.
1449 * config/mips/linux.h: Likewise.
1450 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1451 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1452 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1453 * config/mips/sdb.h: ...this new file.
1454
c18b00c0
NN
14552003-07-14 Douglas Rupp <rupp@gnat.com>
1456
1457 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1458 argument to getcwd; use fixed buffer instead.
1459
14602003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1461
1462 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1463 * fixinc/fixinc.wrap: Delete.
1464
adc4adcd
GP
14652003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1466
1467 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1468 don't have 2.
1469
14702003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1471
1472 * ggc-page.c (struct globals): Add new fields to keep track of the
1473 total allocated memory and overhead.
1474 (ggc_print_statistics): Print them.
1475 (ggc_alloc): Keep track of the total allocated memory and the
1476 overhead.
1477
1478 * tree.c (dump_tree_statistics): Increase spacing.
1479 (enum tree_node_kind): Move to ...
1480 * tree.h (enum tree_node_kind): ... here.
1481 (tree_node_counts, tree_node_sizes): Declare.
1482
14832003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
1484
1485 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1486
bbd288a4
FS
14872003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1488
1489 PR optimization/11440
1490 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1491 SIGN_EXTRACT SETs.
1492
6e985040
AM
14932003-07-14 Alan Modra <amodra@bigpond.net.au>
1494
1495 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1496 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1497 (emit_group_load, emit_group_store): Adjust declarations.
1498 Remove most occurrences of #ifdef TREE_CODE.
1499 * expr.c (emit_group_load): Add "type" param, and use
1500 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
1501 aligned accesses if !SLOW_UNALIGNED_ACCESS.
1502 (emit_group_store): Likewise.
1503 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1504 emit_group_load and emit_group_store calls.
1505 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
1506 BLOCK_REG_PADDING to determine whether we need endian_correction.
1507 (load_register_parameters): Localize vars. Handle shifting of
1508 small values to the correct end of regs. Adjust emit_group_load
1509 call.
1510 (expand_call, emit_library_call_value_1): Adjust emit_group_load
1511 and emit_group_store calls.
1512 * function.c (assign_parms): Set mem alignment for stack slots.
1513 Adjust emit_group_store call. Store values at the "wrong" end
1514 of regs to the stack. Use BLOCK_REG_PADDING.
1515 (locate_and_pad_parm): Save where_pad.
1516 (expand_function_end): Adjust emit_group_load call.
1517 * stmt.c (expand_value_return): Adjust emit_group_load call.
1518 * Makefile.in (calls.o): Depend on $(OPTABS_H).
1519 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1520 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1521 (MUST_PASS_IN_STACK): Define.
1522 (BLOCK_REG_PADDING): Define.
1523 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1524 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1525 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1526 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1527 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1528
4fab535e
AL
15292003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
1530
1531 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1532
8d2e5f72
RK
15332003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1534
1535 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1536 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1537
7eaab492
NN
15382003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1539
1540 PR other/11123
1541 * toplev.c: Don't cut off option names.
1542
9d4a30f2
AJ
15432003-07-13 Andreas Jaeger <aj@suse.de>
1544
1545 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1546 to integer of different size.
1547
34ed3bb0
KH
15482003-07-13 Kazu Hirata <kazu@cs.umass.edu>
1549
1550 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1551 to (eq (and X 1) 0).
1552
1a7d0840
AJ
15532003-07-13 Andreas Jaeger <aj@suse.de>
1554
1555 * config.gcc: Add pmmintrin.h for x86_64-*-*.
1556
43839642
ZW
15572003-07-13 Zack Weinberg <zack@codesourcery.com>
1558
1559 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1560 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1561 list. Move these all together down by cpplib.
1562
1563 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1564 definition of CPPCHAR_SIGNED_T.
1565
1566 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1567 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1568 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1569
1570 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1571 * cppinit.c (cpp_create_reader): Likewise.
1572
1573 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1574 * cpptrad.c: Likewise. All callers changed.
1575 * cpplib.c: All callers changed.
1576 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1577 * hashtable.h: Define GTY(x) to nothing here too.
1578
0acf4f88
RK
15792003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1580
1581 * stor-layout.c (compute_record_mode): Remove very obsolete test
1582 that forces BLKmode for records with fields crossing word boundary.
1583
46db61e7
ZW
15842003-07-13 Zack Weinberg <zack@codesourcery.com>
1585
1586 * Makefile.in: Remove orphan reference to acconfig.h.
1587
db0e878d
AJ
15882003-07-13 Andreas Jaeger <aj@suse.de>
1589
1590 * cgraphunit.c: Convert prototypes to ISO C90.
1591
4146d8d0
NN
15922003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1593
1594 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1595 (for OpenBSD).
1596 * fixinc/fixincl.x: Rebuild.
1597
6f3ca281
ZW
15982003-07-12 Zack Weinberg <zack@codesourcery.com>
1599
1600 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1601 i?86-*-*. Use correct name of cache variable.
1602 * configure: Regenerate.
1603
9a9f7594
KH
16042003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1605
1606 * config/alpha/alpha.c: Fix comment typos.
1607 * config/alpha/alpha.md: Likewise.
1608 * config/arm/arm.c: Likewise.
1609 * config/arm/arm.md: Likewise.
1610 * config/arm/lib1funcs.asm: Likewise.
1611 * config/avr/avr.md: Likewise.
1612 * config/arm/README-interworking: Fix typos.
1613
4ed43216
KH
16142003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1615
1616 * c-format.c: Fix comment formatting.
1617 * c-typeck.c: Likewise.
1618 * coverage.c: Likewise.
1619 * cppcharset.c: Likewise.
1620 * cpplib.c: Likewise.
1621 * dbxout.c: Likewise.
1622 * gcov-io.h: Likewise.
1623 * toplev.c: Likewise.
1624
c3a5b1e9
NN
16252003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1626
6f3ca281 1627 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
1628 fix.
1629
8ada417f
ZW
16302003-07-12 Zack Weinberg <zack@codesourcery.com>
1631
1632 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1633 uses three-argument AC_DEFINE so no acconfig.h entries are
1634 needed.
1635 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1636 which contains the GAS version number as a scaled integer.
1637 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
1638 ability to check for ELF assembler.
1639 (gcc_GAS_CHECK_FEATURE): New macro.
1640 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
1641 assembler feature checks using gcc_GAS_CHECK_FEATURE.
1642 Use three-argument AC_DEFINE everywhere.
1643 * acconfig.h: Deleted.
1644 * config.in, configure: Regenerate.
1645
d5d16b5f
NN
16462003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1647
3b57c563
NN
1648 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1649 (on OpenBSD).
d33fb69b 1650 * fixinc/fixincl.x: Regenerate.
3b57c563 1651
d5d16b5f
NN
1652 * fixinc/inclhack.def (gnu_types): Improve comment.
1653
439f7bc3
AJ
16542003-07-12 Andreas Jaeger <aj@suse.de>
1655
1656 * fp-test.c (main): Use ISO C90 prototype.
1657
1658 * version.c: Remove unneded include of ansidecl.h.
1659
1660 * cgraph.h: Convert prototypes to ISO C90.
1661 * cgraph.c: Likewise.
1662 * fix-header.c: Likewise.
1663 * ra.h: Likewise.
1664 * protoize.c: Likewise.
1665
1a5c5701
JH
1666Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
1667
1668 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1669 warning.
1670
b58b1157
JH
1671Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
1672 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1673
1674 * cgraph.c (cgraph_max_uid): New global variable.
1675 (cgraph_node): Set uid field.
1676 (create_edge): Keep inline flags consistent.
1677 (dump_cgraph): Dump more info.
1678 * cgraph.h (struct cgraph_local_info): Remove inline_many and
1679 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1680 (struct cgraph_global_info): Add insns, calls, cloned_times,
1681 will_be_output.
1682 (struct cgraph_node): Add uid.
1683 (struct cgraph_edge): Add inline_call.
1684 (cgraph_max_uid, cgraph_inline_p): Declare.
1685 * cgraph.c: Include params.h and fibheap.h
1686 (cgraph_mark_functions_to_inline_once): Kill.
1687 (INSNS_PER_CALL): New constant.
1688 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1689 static variables.
1690 (cgraph_finalize_function): Do not analyze inlining.
1691 (cgraph_finalize_compilation_unit): Set inlining attributes.
1692 (cgraph_mark_functions_to_output): More consistency checks.
1693 (cgraph_optimize_function): Set current_function_decl to NULL.
1694 (cgraph_expand_function): Use new inline flags.
1695 (cgraph_postorder): Expand from cgraph_expand_functions.
1696 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1697 (cgraph_inlined_into, cgraph_inlined_callees,
1698 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1699 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 1700 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
1701 cgraph_decide_inlining, cgraph_inline_p): New functions.
1702 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1703 PARAM_INLINE_UNIT_GROWTH): New parameters.
1704 * tree-inline.c (struct inline_data): New field current_decl.
1705 (expand_call_inline): Avoid forward declarations; use
1706 inlinable_function_p.
1707 (optimize_inline_calls): Set id.current_decl.
1708
27b8e366
AP
17092003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1710
1711 * configure.in: Remove wrongly added definition of
1712 local_prefix.
1713 * configure: Regenerate.
1714
80fa0b4c
DN
17152003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1716
1717 * rtl.def (NOTE): Do not use padding.
1718
1ea6f4c8
DH
17192003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
1720
1721 * doc/install.tex: Update required binutils for i?86-*-linux*
1722
ed2d8944
RH
17232003-07-11 Richard Henderson <rth@redhat.com>
1724
1725 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1726
a44cea75
MM
17272003-07-11 Mark Mitchell <mark@codesourcery.com>
1728
1729 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1730 TRANSLATION_UNIT_DECL as top_level.
1731
358b8f01
JJ
17322003-07-11 Jakub Jelinek <jakub@redhat.com>
1733
1734 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1735 then fall back to cmpstrM.
1736 * builtins.c (expand_builtin_memcmp): Likewise.
1737 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1738 (s390_expand_cmpmem): ... this.
1739 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1740 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1741 from cmpstr* patterns. Rename call to s390_expand_cmpstr
1742 to s390_expand_cmpmem.
1743 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1744 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
1745 to cmpmem*.
1746 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1747 cmpstr* patterns.
1748 * doc/md.texi (cmpstrM): Describe as String compare insn, not
1749 Block compare insn.
1750 (cmpmemM): Add.
1751
8634e925
LR
17522003-07-11 Loren James Rittle <ljrittle@acm.org>
1753
1754 * config/i386/freebsd.h (SET_ASM_OP): Remove.
1755 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1756 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1757 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1758
48144cd4
RH
17592003-07-11 Richard Henderson <rth@redhat.com>
1760
1761 * function.c (assign_parms): Don't recombine complex args if
1762 fnargs is unchanged from orig_fnargs.
1763 (split_complex_args): Return args without complex before copying.
1764 Re-layout the modified parameters.
1765
fee226d2
R
17662003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
1767
1768 * regclass.c (choose_hard_reg_mode): Add third argument.
1769 Changed all callers.
1770 * rtl.h (choose_hard_reg_mode): Update declaration.
1771 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1772 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1773
d1bd0ded
GK
17742003-07-11 Geoffrey Keating <geoffk@apple.com>
1775
1776 * c-decl.c (finish_decl): Handle 'used' here...
1777 * cgraphunit.c (cgraph_finalize_function): ... and here ...
1778 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 1779
d1bd0ded
GK
1780 * configure.in (onstep): Support --enable-intermodule.
1781 * Makefile.in (OBJS-common): New.
1782 (OBJS-md): New.
1783 (OBJS-archive): New.
1784 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1785 (OBJS-onestep): New.
1786 (libbackend.a): Support @onestep@.
1787 (libbackend.o): New.
1788 * configure: Regenerate.
439f7bc3 1789
d1bd0ded
GK
1790 * c-common.h (c_reset_state): New prototype.
1791 (c_parse_file): New prototype.
1792 (finish_file): Move prototype from c-tree.h.
1793 * c-decl.c: Include <hashtab.h>.
1794 (builtin_decls): New.
1795 (current_file_decl): New.
1796 (duplicate_decls): Add extra parameter. Change all callers. Don't
1797 output duplicate common symbols.
1798 (link_hash_hash): New.
1799 (link_hash_eq): New.
1800 (poplevel): Handle popping of the top level.
1801 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1802 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1803 (pushdecl_top_level): Likewise.
1804 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1805 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1806 (finish_decl): Handle TRANSLATION_UNIT_DECL.
1807 (merge_translation_unit_decls): New.
1808 (c_write_global_declarations): New.
1809 (c_reset_state): New.
1810 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1811 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1812 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1813 TRANSLATION_UNIT_DECL.
1814 (c_objc_common_finish_file): Call merge_translation_unit_decls.
1815 * c-opts.c (in_fnames): Rename from in_fname.
1816 (c_common_decode_option): Handle multiple input filenames.
1817 (c_common_post_options): Likewise.
1818 (c_common_parse_file): Likewise; also, call c_parse_file rather than
1819 yyparse.
1820 * c-parse.in: Move cleanup code to c_parse_file.
1821 (free_parser_stacks): Move contents to c_parse_file.
1822 (c_parse_file): New.
1823 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1824 for integer types.
1825 (C_DECL_FILE_SCOPE): New.
1826 (finish_file): Move prototype to c-common.h.
1827 (merge_translation_unit_decls): New prototype.
1828 (comptypes): Add extra parameter to prototype.
1829 (c_write_global_declarations): New prototype.
1830 * c-typeck.c (tagged_types_tu_compatible_p): New.
1831 (function_types_compatible_p): Add extra parameter, change all callers.
1832 (type_lists_compatible_p): Likewise.
1833 (comptypes): Likewise.
1834 (struct tagged_tu_seen): New.
1835 (tagged_tu_seen_base): New.
1836 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1837 (c_mark_addressable): Remove #if 0 code.
1838 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1839 comment explaining why it shouldn't have to.
1840 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1841 options.
1842 * cppinit.c (cpp_read_next_file): New.
1843 (cpp_read_main_file): Use it.
1844 * cpplib.c (undefine_macros): New.
1845 (cpp_undef_all): New.
1846 * cpplib.h (cpp_read_next_file): Prototype.
1847 (cpp_undef_all): Prototype.
1848 * langhooks-def.h (write_global_declarations): Remove prototype.
1849 * toplev.h (write_global_declarations): Add prototype.
1850 * tree.c (decl_type_context): Use switch statement, handle
1851 TRANSLATION_UNIT_DECL.
1852 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1853 (TRANSLATION_UNIT_DECL): New kind of tree.
1854 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1855 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1856 * doc/invoke.texi: Make attempt to document new functionality.
1857
1858 2003-05-19 Per Bothner <bothner@apple.com>
1859
1860 * gcc.c (combine_inputs): New.
1861 (process_command): Set combine_inputs.
1862 (do_spec_1): Handle combine_inputs.
1863 (main): Likewise.
1864
ac8354b1
JW
18652003-07-10 James E Wilson <wilson@tuliptree.org>
1866
1867 PR optimization/9745
1868 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1869 loop_insn_emit_before.
1870 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 1871
dea55da5
ZW
18722003-07-10 Zack Weinberg <zack@codesourcery.com>
1873
1874 * cppcharset.c: Fix comment.
1875 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1876 (EILSEQ): #define to EINVAL if not already defined.
1877 (convert_using_iconv): #if out when !HAVE_ICONV.
1878 (init_iconv_desc): Handle !HAVE_ICONV here...
1879 (cpp_init_iconv): ...not here.
1880
f3fdaec4
NB
18812003-07-11 Neil Booth <neil@daikokuya.co.uk>
1882
1883 * common.opt: More --help messages.
1884 * opts.c (print_help): Use puts().
1885 * toplev.c (f_options): Remove help text.
1886 (display_help): Don't dump f_options.
1887
7ebbf1ea
NN
18882003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
1889
1890 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
1891 Move i?86-*-interix* to the don't-fix list.
1892 * fixinc/fixinc.interix: Delete with extreme prejudice.
1893
959a73a4
DH
18942003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
1895
1896 PR bootstrap/10758
1897 * doc/install.texi: Document requirements for ia64-*-hpux* target.
1898
9959901c
RS
18992003-07-10 Roger Sayle <roger@eyesopen.com>
1900
1901 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1902
6b88314c
ZW
19032003-07-10 Zack Weinberg <zack@codesourcery.com>
1904
1905 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1906 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1907 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1908 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1909 convert_no_conversion, convert_using_iconv): New functions.
1910 (APPLY_CONVERSION): New macro.
1911 (struct conversion, conversion_tab): New data structure.
1912 (init_iconv_desc): Check conversion_tab for a custom conversion
1913 primitive before trying to use iconv.
1914 (convert_cset): Deleted.
1915 (cpp_init_iconv): Use UTF- terminology, not UCS-.
1916 (_cpp_destroy_iconv): Update to match.
1917 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1918 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1919 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1920 (_cpp_interpret_string_notranslate): New function, moved here
1921 from cpplib.c.
1922
1923 * cpphash.h (convert_f, struct cset_converter): New types.
1924 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1925 are now struct cset_converter, not bare iconv_t.
1926 Update prototypes.
1927 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1928 all callers changed.
1929
38f4680f 19302003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 1931
38f4680f
KC
1932 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
1933 to opts.sh command line.
1934 * opts.sh: Write to temporary files with a move-if-change at the end.
1935
2a868fac 19362003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 1937 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
1938
1939 * combine.c (gen_binary): Handle the CLOBBER rtx and
1940 don't build a binary operation with it.
1941
3b14e3af
ZD
19422003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1943
1944 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1945 store_killed_after, store_killed_before): Keep track of the correct
1946 dependency function to use.
1947
a9189cc0
SB
19482003-07-10 Steven Bosscher <steven@gcc.gnu.org>
1949 * toplev.c (do_compile): Don't try to open dump files before
1950 lang_dependent_init initializes dump_base_name.
1951
e97a46ce
KG
19522003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1953
1954 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1955 Use ARRAY_SIZE.
1956 * config/frv/frv.c (frv_expand_builtin): Likewise.
1957 * config/sh/sh.c (sh_media_init_builtins): Likewise.
1958
4a386498
MM
19592003-07-09 Mark Mitchell <mark@codesourcery.com>
1960
1961 PR c++/10032
1962 * doc/invoke.texi (C++ Dialect Options): Change documentation of
1963 -fpermissive.
1964
1e60c057
R
19652003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
1966
1967 * tm.texi (RETURN_ADDR_OFFSET): Document.
1968
330d2e2a
NS
19692003-07-10 Nathan Sidwell <nathan@codesourcery.com>
1970
1971 * gcov-io.h: Update documentation.
1972 (GCOV_UNSIGNED2STRING): New.
1973 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1974 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1975 GCOV_TAG_SUMMARY_LENGTH): Adjust.
1976 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1977 GCOV_TAG_COUNTER_NUM): New.
1978 (GCOV_BLOCK_SIZE): Number of words.
1979 (gcov_var): Adjust buffer type.
1980 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1981 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1982 count, not byte count.
1983 (gcov_open): Adjust overread init.
1984 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1985 gcov_write_string, gcov_write_tag, gcov_write_length,
1986 gcov_write_tag_length): Adjust.
1987 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1988 (gcov_sync, gcov_seek): Adjust.
1989 * gcov-dump.c (print_usage): Show gcc version only.
1990 (dump_file): Use GCOV_UNSIGNED2STRING.
1991 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1992 * gcov.c (print_version): Show gcc version only.
1993 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1994 GCOV_TAG_*_NUM macros.
1995 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1996 GCOV_TAG_COUNTER_LENGTH.
1997 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1998 Use GCOV_TAG_COUNTER_NUM.
1999 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2000 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2001
3dbb446e
AS
20022003-07-10 Andreas Schwab <schwab@suse.de>
2003
2004 * gcov-dump.c (dump_file): Fix missing address operator.
2005
11791dbc
KH
20062003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2007
2008 PR c/11449
2009 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2010 of HOST_WIDE_INT.
2011 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2012 bit being tested is not a sign bit.
2013
ae12c666
KH
20142003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2015
2016 * config/h8300/h8300.md (a peephole2): New.
2017
2beef00e
AO
20182003-07-10 Alexandre Oliva <aoliva@redhat.com>
2019
2020 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2021 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2022 from ld-linux.so.2 to ld.so.1.
2023 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2024 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2025 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2026 nor -Wl,-rpath-link.
2027 (LIB_SPEC): Add -rpath-link if !static.
2028 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2029 * config/mn10300/mn10300.c (mn10300_protect_label): New
2030 variable.
2031 * config/mn10300/linux.h (PRINT_OPERAND,
2032 PRINT_OPERAND_ADDRESS): Set it during their execution.
2033 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2034 mn10300_protect_label is set.
2035 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2036 -Wl,-rpath-link.
2037 (LIB_SPEC, STARTFILE_SPEC): Define.
2038 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2039 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2040 FLOAT_BIT_ORDER_MISMATCH.
2041 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2042 * config.gcc (am33_2.0-*-linux*): Added.
2043 * config/mn10300/linux.h: New.
2044 * config/mn10300/t-linux: New.
2045
75040a04
AJ
20462003-07-10 Andreas Jaeger <aj@suse.de>
2047
2048 * fold-const.c: Properly wrap prototypes.
2049
d1776069
AO
20502003-07-09 Alexandre Oliva <aoliva@redhat.com>
2051
2052 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2053 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2054 Moved from...
2055 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2056 * config/mn10300/mn10300.h: GTY-declare it.
2057 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2058 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2059 prototype. Use incoming RTL argument.
2060 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2061 * config/mn10300/mn10300.md (int_label): Move C statements...
2062 (GOTaddr2picreg): ... here.
2063 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2064 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2065 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2066 ... here. New function.
2067 (TARGET_ENCODE_SECTION_INFO): Define to it.
2068 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2069 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2070 pattern name.
2071 (mn10300_loadPC): Define as insn splittable after reload.
2072 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2073 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2074 be defined in .rodata even in PIC, now that the assembler
2075 supports that.
2076 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2077 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2078 symbol take an underscore prefix.
2079 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2080 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2081 legitimize_pic_address): Declare.
2082 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2083 the PIC register as fixed.
2084 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2085 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2086 PIC.
2087 (LEGITIMATE_PIC_OPERAND_P): Define.
2088 (PIC_OFFSET_TABLE_REGNUM): Define.
2089 (GOT_SYMBOL_NAME): Define.
2090 (SYMBOLIC_CONST_P): Define.
2091 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2092 symbols.
2093 (MN10300_GLOBAL_P): Test it.
2094 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2095 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2096 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2097 (expand_prologue): Set PIC register.
2098 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2099 (legitimize_address): Call legitimize_pic_address.
2100 (legitimize_pic_address): New fn.
2101 (legitimate_pic_operand_p): New fn.
2102 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2103 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2104 UNSPEC_PLT): New constants.
2105 (pop_pic_reg): New insn.
2106 (movsi): Adjust non-PIC addresses.
2107 (builtin_setjmp_receiver): Restore the PIC register.
2108 (casesi): New insn.
2109 (call): Adjust non-PIC addresses.
2110 (int_label, GOTaddr2picreg): New expands.
2111 (am33_loadPC): New insn.
2112 (mn10300_loadPC): New expand.
2113 (call_next_insn): New insn.
2114 (add_GOT_to_pic_reg): New expand.
2115 (symGOT2reg, symGOT2reg_i): New expands.
2116 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2117 (sym2PIC, sym2PLT): New expands.
2118
18e9d2f9
AO
21192003-07-09 Alexandre Oliva <aoliva@redhat.com>
2120
2121 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2122 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2123 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2124 to flag_unsafe_math_optimizations.
2125 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2126 * config/mn10300/mn10300.c (expand_prologue): Mark
2127 FP-register-saving insns as frame-related.
2128 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2129 * config/mn10300/mn10300.c
2130 (mn10300_get_live_callee_saved_regs): Don't search past
2131 LAST_EXTENDED_REGNUM.
2132 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2133 * config/mn10300/mn10300.md: Remove excessive line breaks from
2134 `@' output patterns that were accounted as additional
2135 alternatives.
2136 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2137 Re-introduce changes accidentally removed in Richard Sandiford's
2138 2000-12-05's patch.
2139 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2140 Re-instate am33-2 lost in merge from net GCC.
2141 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2142 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2143 floating-point registers.
2144 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2145 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2146 pessimizations that had gone in on 2000-05-08.
2147 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2148 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2149 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2150 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2151 operand 0.
2152 * (movhi): Likewise.
2153 * (movsi): Likewise.
2154 * (movsf): Likewise.
2155 * (movdi): Likewise.
2156 * (movdf): Likewise.
2157 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2158 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2159 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2160 (expand_prologue, expand_epilogue): Save and restore FP regs.
2161 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2162 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2163 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2164 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2165 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2166 Do not clobber cc0.
2167 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2168 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2169 Discourage the two-argument, longer opcodes.
2170 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2171 ones.
2172 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2173 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2174 * config/mn10300/mn10300.md (cmpsf): New pattern.
2175 (branch): Test mdep.fpCC and output fbCC.
2176 * config/mn10300/mn10300.c (print_operand): Output conditions.
2177 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2178 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2179 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2180 mulsf3, divsf3): Use the `F' constraint for FP values.
2181 * config/mn10300/mn10300.c (const_1f_operand): New function.
2182 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2183 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2184 (rsqrtsf2): New insn.
2185 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2186 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2187 previous check-in.
2188 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2189 * config/mn10300/mn10300.md (abssf2, negdf2): On
2190 TARGET_AM33_2, expand to...
2191 (abssf2_am33_2, negdf2_am33_2): New insns.
2192 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2193 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2194 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2195 movdi, movdf): Added FP regs.
2196 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2197 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2198 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2199 New macros.
2200 (REGNO_AM33_2_FP_P): Renamed to...
2201 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2202 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2203 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2204 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2205 regs from GENERAL_REGS.
2206 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2207 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2208 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2209 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2210 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2211 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2212 as FP_REGS.
2213 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2214 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2215 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2216 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2217 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2218 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2219 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2220 AM33/2.0 floating-point registers.
2221 (CONDITIONAL_REGISTER_USAGE): Adjust.
2222 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2223 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2224 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2225 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2226 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2227 (MULTILIB_DIRNAMES): Likewise.
2228 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2229 `__AM33_2__' when `-mam33-2' is given.
2230 (TARGET_AM33_2): Define.
2231 (TARGET_SWITCHES): Adjust.
2232 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2233 when appropriate.
2234
2ff16718
MK
22352003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2236
2237 * doc/install.texi: Add missing @.
2238
a7bda3d5
BW
22392003-07-09 Bob Wilson <bob.wilson@acm.org>
2240
2241 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2242
bb498ea3
AH
22432003-07-09 Aldy Hernandez <aldyh@redhat.com>
2244
2245 PR/11144
2246 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2247
a401fd60
NN
22482003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2249
21f3dbfc 2250 PR bootstrap/11043
6b88314c 2251 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
2252 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2253
15e4ea18
NN
2254 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2255 * fixinc/fixincl.x: Rebuild.
2256
a401fd60
NN
2257 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2258 * fixinc/fixincl.x: Rebuild.
2259
c2f82a84
HPN
22602003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2261
2262 * doc/install.texi (Configuration): Document the valgrind option
2263 to --enable-checking.
2264
1f66e2a0
JH
2265Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2266
2267 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2268
d0974745
RO
22692003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2270
2271 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2272
160e2e4f
NS
22732003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2274
2275 * gcov-io.h: Update documentation.
2276 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2277 GCOV_NOTE_MAGIC.
2278 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2279 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2280 (struct gcov_var): Change buffer's type. Add endian flag.
2281 (gcov_open): Remove mode in libgcov.
2282 (gcov_magic): Prototype.
2283 * gcov-io.c (from_file): New.
2284 (gcov_open): Clear endian flag.
2285 (gcov_magic): New.
2286 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2287 pointers.
2288 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2289 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2290 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2291 * gcov-iov.c (main): Correct cast.
2292 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2293 conversion.
2294 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2295 (coverage_init): Use GCOV_NOTE_SUFFIX.
2296 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2297 Rename to gcov_version, and return flag.
2298 (gcov_exit): Use gcov_version.
2299 (__gcov_init): Use gcov_version.
2300 * Makefile.in (coverageexts): Update.
2301 * gcov.c (print_version): Remove endianness conversion.
2302 (create_file_names): Use GCOV_NOTE_SUFFIX.
2303 (read_graph_file): Use gcov_magic.
2304 (read_count_file): Likewise.
2305 * gcov-dump.c (dump_file): Remove endianness conversion, use
2306 gcov_magic.
2307
83599948
NS
23082003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2309
2310 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2311 coverage is on.
2312 * configure: Regenerated.
2313 * Makefile.in (ALL_CFLAGS): Correct its comment.
2314
d17811fd
MM
23152003-07-08 Mark Mitchell <mark@codesourcery.com>
2316
2317 * fold-const.c (make_range): Do not access operand 1 for a
2318 zero-operand operator.
2319
28786366
NB
23202003-07-09 Neil Booth <neil@daikokuya.co.uk>
2321
2322 * toplev.c (warn_dummy, W_options): Die.
2323 (display_help): Don't print W_options.
2324 * common.opt: Add W_options help from toplev.c.
2325
fbdb0453
AJ
23262003-07-09 Andreas Jaeger <aj@suse.de>
2327
2328 * opts.c (wrap_help): Only pass int arguments as arguments to
2329 printf's '*' modifier. Change argument of function.
2330
c80e4c17
MK
23312003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2332
2333 * doc/invoke.texi: Fix misspelling of "@item".
2334
2c5a64c6
KH
23352003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2336
2337 * config/i386/i386.md: Remove an old comment about
2338 NOTICE_UPDATE_CC.
2339
a194aa56
JH
2340Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2341
2342 * cgraph.c (cgraph_node_name): New function.
2343 (dump_cgraph): Use it.
2344 * cgraph.h (cgraph_dump_file): Declare.
2345 (cgraph_node_name): Declare.
2346 * cgraphunit.c: Include timevar.h
2347 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2348 (cgraph_optimize_function): Use TV_INTEGRATION.
2349 (cgraph_mark_local_functions): reorganize dumps.
2350 (cgraph_mark_functions_to_inline_once): Likewise.
2351 (cgraph_optimize): Likewise; use timevar.
2352 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2353 * toplev.c (dump_file_index): Add DFI_cgraph.
2354 (dump_file_info): Likewise.
2355 (cgraph_dump_file): New global variable.
2356 (do_compile): Open and close cgraph dump.
2357 * invoke.texi (-d): Document new flag; renumber.
2358
8af61113
RS
23592003-07-08 Roger Sayle <roger@eyesopen.com>
2360
2361 PR c/11370
2362 * calls.c (emit_call_1): Don't bother popping the arguments off of
2363 the stack after a noreturn function call; The adjustment is dead.
2364 (expand_call): Likewise.
2365
436bcda1
GK
23662003-07-08 Geoffrey Keating <geoffk@apple.com>
2367
2368 * expr.c (MOVE_MAX_PIECES): Move from here...
2369 * defaults.h (MOVE_MAX_PIECES): ... to here.
2370
6f3fcc0b
MK
23712003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2372
2373 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2374
ec049fdb
KG
23752003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2376
2377 * genattr.c (internal_dfa_insn_code): Don't prototype.
2378 * genattrtab.c (attr_desc): Add `static_p' field.
2379 (expand_units): Make blockage range and ready cost functions
2380 static.
2381 (write_attr_get): Don't add extern prototypes in C file. Mark
2382 static functions as appropriate.
2383 (find_attr, make_internal_attr): Initialize static_p.
2384 * genattrtab.h (ATTR_STATIC): New macro.
2385 * genautomata.c (output_internal_reset_func): Mark output function
2386 as inline.
2387 (make_internal_dfa_insn_code_attr): Mark output function as static.
2388
11597bc9
KG
23892003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2390
2391 * genattrtab.h: Add new macros for attr `special' flags.
2392 * genattrtab.c (attr_desc): Reorder/resize fields better.
2393 Use attr `special' macros in all calls to make_internal_attr.
2394 * genautomata.c: Likewise.
2395
084c1779
JH
2396Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
2397
2398 * c-common.c (c_estimate_num_insns_1): New static function.
2399 (c_estimate_num_insns): New global function.
2400 * c-common.h (DECL_NUM_STMTS): Rename to...
2401 (DECL_ESTIMATED_INSNS): ... this.
2402 (c_estimate_num_insns): Declare.
2403 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2404 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2405 * c-semantics.c (add_stmt): Do not account statements.
2406 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2407 New.
2408 * langhooks.h (lang_hooks_for_tree_inlining): Add
2409 estimate_num_insns
2410 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2411 to 100.
2412 (max-inline-insns): set to 300.
2413 (min-inline-insns): set to 10.
2414 * tree-inline.c (struct inline_data): Rename inlined_stmts to
2415 inlined-insns.
2416 (INSNS_PER_STMT): Kill.
2417 (inlinable_function_p): Compute and store body size.
2418 (expand_call_inline): Likewise.
2419 (optimize_inline_calls): Likewise.
2420
1b1838b6
JW
24212003-07-08 James E Wilson <wilson@tuliptree.org>
2422
2423 PR target/10021
2424 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2425 loop over new variable t2 instead of t.
2426
81a6341d
DS
24272003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2428
2429 PR bootstrap/11455
2430 * config/i386/winnt.c: Replace use of error(), warning() with
2431 error_with_decl(), warning_with_decl(), throughout.
2432
21789816
NB
24332003-07-08 Neil Booth <neil@daikokuya.co.uk>
2434
2435 * opts.c (wrap_help): Use unsigned int, not size_t.
2436
f6423302
SC
24372003-07-08 Stephane Carrez <stcarrez@nerim.fr>
2438
2439 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2440 as .file/.loc directives are incompatible with linker relaxation.
2441
ab747408
ZW
24422003-07-08 Zack Weinberg <zack@codesourcery.com>
2443
2444 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2445 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2446 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2447 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2448 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2449 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2450 Escape { and } characters which are not part of range expressions.
2451 * fixinc/fixincl.x: Regenerate.
a27531fb 2452 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 2453
51657442
SB
24542003-07-08 Steven Bosscher <steven@gcc.gnu.org>
2455
2456 PR c/1687
2457 * tree-inline.c (find_alloca_call): Use
2458 walk_tree_without_duplicates, instead of walk_tree.
2459 (find_builtin_longjmp_call): Likewise.
2460 * c-objc-common.c (c_cannot_inline_fn): Likewise.
2461 * c-semantics.c (find_reachable_label): Likewise.
2462
7e6dc358
JJ
24632003-07-08 Jakub Jelinek <jakub@redhat.com>
2464
2465 PR c/11420
2466 * config/i386/i386.c (ix86_check_movabs): New function.
2467 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2468 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2469 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2470
318b7749
CD
24712003-07-08 Chris Demetriou <cgd@broadcom.com>
2472
2473 * Makefile.in (install-po): Cope with empty CATALOGS.
2474
b8898790
RS
24752003-07-08 Richard Sandiford <rsandifo@redhat.com>
2476
2477 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2478 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2479 (SECTION_FUNCTION_TEMPLATE): Delete.
2480 * config/mips/elf.h: As for elf64.h.
2481 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2482 * config/mips/linux.h: As for elf.h
2483 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2484 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2485 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
2486 of in_sdata from current_section_name and current_section_flags.
2487 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2488 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2489 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2490 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2491 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2492 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2493 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2494 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2495 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2496 (override_options): Remove setting of MASK_GPOPT.
2497 (mips_output_external): Use mips_in_small_data_p to check whether a
2498 symbol needs an .extern directive. Don't emit such directives for
2499 TARGET_EXPLICIT_RELOCS.
2500 (mips_declare_object): Update accordingly.
2501 (mips_select_rtx_section): Call named_section rather than
2502 SMALL_DATA_SECTION.
2503 (mips_select_section): Use default_elf_section_section for everything
2504 except .text string constants.
2505 (mips_in_small_data_p): New function.
2506 (mips_encode_section_info): Remove small data handling.
2507 (mips_unique_section): Delete.
2508 (iris6_section_type_flags): New function.
2509 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2510
f5d1c3de
JDA
25112003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2512
2513 PR Target/11453
2514 * pa.md: Disparage all mtsar constraints.
2515 (extzv, extv, insv): Don't fail on length of {32|64}.
2516
ce1bb65b
ZW
25172003-07-08 Zack Weinberg <zack@codesourcery.com>
2518
2519 * system.h: Poison MAP_CHARACTER.
2520 * config/i370/i370-protos.h (mvs_map_char): Delete.
2521 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2522 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2523 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2524
c163ddca
DS
25252003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2526
2527 * toplev.c (randomize): Correct call to time().
2528
8df63efa
JJ
25292003-07-08 Jakub Jelinek <jakub@redhat.com>
2530
2531 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2532 REG_EQUIV notes as well.
2533
4b5cc2b3
KH
25342003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2535
2536 * doc/md.texi: Fix the description of addmodecc.
2537
56694dd9
ZW
25382003-07-07 Zack Weinberg <zack@codesourcery.com>
2539
2540 * Makefile.in (top_builddir): Set to "..", not ".".
2541 (INTLLIBS, INTLDEPS): Delete.
2542 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2543 (LIBDEPS): Add $(LIBICONV_DEP).
2544 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2545 (INCLUDES): Replace -I../intl with @INCINTL@.
2546 ($(top_builddir)/intl/libintl.a): Delete rule.
2547 (stage2-start, stage3-start, stage4-start, stageprofile-start,
2548 stagefeedback-start): Use $$ for variable to be evaluated by
2549 shell, not make.
2550 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2551 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2552 * aclocal.m4: sinclude ../config/progtest.m4. Add
2553 contents of lcmessage.m4 from gettext distro.
2554 * configure.in: Check for wchar.h and setlocale. Set
2555 LIBICONV_DEP to the empty string and substitute it.
2556 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
2557 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
2558 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
2559 in $LIBINTL, to avoid linking it twice.
2560 * configure, config.in: Regenerate.
2561
a294c4cf
NN
25622003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
2563
2564 * fixinc/mkfixinc.sh: Remove winnt support.
2565 * fixinc/fixinc.winnt: Delete with extreme prejudice.
2566
979312a4
NB
25672003-07-08 Neil Booth <neil@daikokuya.co.uk>
2568
2569 * Makefile.in: Update.
2570 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2571 * c.opt: Update documentation.
2572 * common.opt: Add some help text.
2573 * opts.c: Include intl.h.
2574 (wrap_help, print_help): New.
2575 (find_opt, handle_option, common_handle_option): opt_text now
2576 contains the '-'. Use print_help to output help.
2577 * opts.h (struct cl_option): New member "help".
2578 * opts.sh: Update to handle help text output and to prepend
2579 options with '-'.
2580 * toplev.c (display_help): Remove some help text.
2581
2c4a9cff
DE
25822003-07-07 David Edelsohn <edelsohn@gnu.org>
2583 Fariborz Jahanian <fjahanian@apple.com>
2584
2585 * configure.in: Test for PowerPC mfcr field support in assembler.
2586 * config.in, configure: Regenderated.
2587
2588 * config/rs6000/power4.md: Add mfcrf reservation.
2589 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2590 * config/rs6000/rs6000.c (mfcr_operation): Define.
2591 (print_operand): Add 'Q' case for mfcrf.
2592 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2593 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2594 (movcc_internal1): Emit optional field operand for mfcr and set
2595 "type" attribute appropriately.
2596 (mfcr SCC): Likewise.
2597 (movesi_from_cr_one): New.
2598
923c4cf2
RS
25992003-07-07 Roger Sayle <roger@eyesopen.com>
2600
2601 * config/i386/i386.md: Correct check-in of incorrect version.
2602
75b6f3fd
KG
26032003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2604
2605 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2606 adjacent stdio calls.
2607 * c-decl.c (c_print_identifier): Likewise.
2608 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2609 * print-rtl.c (print_rtx): Likewise.
2610 * print-tree.c (print_node_brief, print_node): Likewise.
2611 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 2612
75b6f3fd
KG
2613 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2614 * config.in, configure: Regenerated.
2615
afeeac3f
RS
26162003-07-07 Roger Sayle <roger@eyesopen.com>
2617
2618 PR target/10979
2619 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2620 Changed to define_expand patterns that copy operand[1] to prevent
2621 it from being clobbered before emitting an atan2?f3_1 insn.
2622 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2623 patterns that actually specify the behaviour of x87's FPATAN.
2624
eeff9307
JJ
26252003-07-07 Jakub Jelinek <jakub@redhat.com>
2626
2627 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2628 clearing of SYMBOL_FLAG_LOCAL bit.
2629 If vcall_offset fits into signed 16-bit immediate, use
2630 one instruction for both addition and load.
2631
0fcd5dda
NB
26322003-07-07 Neil Booth <neil@daikokuya.co.uk>
2633
2634 * opts.c (common_handle_option): Correct handling of the
2635 -falign- switches that do and don't take an argument.
2636
b275810a
KH
26372003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2638
2639 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2640 today.
2641 (pushhi1_h8300hs): Likewise.
2642
5671bf27
AJ
26432003-07-07 Andreas Jaeger <aj@suse.de>
2644
2645 * genextract.c: Convert remaining prototypes to ISO C90.
2646
2647 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2648 * fold-const.c (fold_single_bit_test): Likewise.
2649 * diagnostic.c (default_diagnostic_finalizer): Likewise.
2650 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2651
2652 * gengtype.c (write_array): Generate ISO C90 prototypes.
2653
2654 * genflags.c (gen_proto): Generate ISO C90 prototypes.
2655
2c430630
RS
26562003-07-07 Roger Sayle <roger@eyesopen.com>
2657
2658 PR optimization/11059
2659 * expr.c (can_store_by_pieces): Return true if length is zero.
2660 (store_by_pieces): If length is zero and endp is two, abort,
2661 othwerise, if length is zero and endp is not two, return "to".
2662 (clear_by_pieces): Do nothing if length is zero.
2663 (clear_storage): Do nothing if length is zero.
2664 (store_constructor): Simplify code when size is zero, or the
2665 target has already been cleared. This avoids emitting a
2666 blockage instruction when initializing empty structures.
2667
cf633f5b
AJ
26682003-07-07 Andreas Jaeger <aj@suse.de>
2669
2670 * mips-tfile.c: Convert prototypes to ISO C90.
2671 * mips-tdump.c: Convert prototypes to ISO C90.
2672
0cea056b
NS
26732003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2674
2675 * rtl.h (emit_line_note): Take a location_t.
2676 (emit_line_note_force): Remove.
2677 (set_file_and_line_for_statement): Take a location_t.
2678 * tree.g (emit_line_note): Take a location_t.
2679 * emit-rtl.c (emit_line_note): Take a location_t.
2680 (emit_line_note_force): Remove.
2681 * function.c (init_function_start): Adjust emit_line_note call.
2682 (expand_function_end): Use force_next_line_note, not
2683 emit_line_note_force.
2684 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2685 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2686 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2687 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2688 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2689 genrtl_continue_stmt, genrtl_switch_stmt,
2690 genrtl_asm_stmt): Likewise.
2691 * expr.c (expand_expr): Likewise.
2692 * integrate.c (expand_inline_function): Likewise.
2693 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2694 (expand_decl_init): Adjust emit_line_note call.
2695
8eb910fc
DJ
26962003-07-07 Dale Johannesen <dalej@apple.com>
2697
56694dd9 2698 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 2699
b96a374d
AJ
27002003-07-07 Andreas Jaeger <aj@suse.de>
2701
2702 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2703 * config/i386/i386.c: Likewise.
2704
273fc01e
KH
27052003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2706
2707 * config/h8300/h8300.md: Use gen_int_mode instead of
2708 GEN_INT (trunc_int_for_mode (...)).
2709
fb7d7712
KH
27102003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2711
2712 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2713 2 bytes and then subtract 2 from the stack pointer.
2714 (pushhi1_h8300hs): Likewise.
2715
e61a2eb7
NS
27162003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2717
2718 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2719 -frandom-seed.
2720 * configure: Regenerated.
2721 * Makefile.in: Remove extraneous comment.
2722 * toplev.c (randomize): Protect against potential multiple calls.
2723 * doc/invoke.texi (-frandom-seed): Document use for in coverage
2724 files.
2725
82d610ec 27262003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 2727 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
2728
2729 PR optimization/11198
2730 * alias.c (objects_must_conflict_p): Return 1 if the types have
2731 the same alias set, not if the alias sets only conflict.
2732
5beadb33
AP
27332003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
2734
2735 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2736 (convert_cset): Change inbuf to type ICONV_CONST char.
2737 * Makefile.in (LIBS): Add LIBICONV.
2738
9bb34f3c
AJ
2739 * doc/invoke.texi (-falign-functions): Document that
2740 when n is zero then a machine-dependent default is used.
2741 (-falign-labels): Document that when n is zero then a
2742 machine-dependent default is used and that -falign-labels =1
2743 is equivalent to -fno-align-labels.
2744 (-falign-loops): Likewise.
2745 (-falign-jumps): Likewise.
2746
1dbb6ce8
AH
27472003-07-06 Art Haas <ahaas@airmail.net>
2748
2749 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2750 initializer syntax.
2751
8338d44d
JW
27522003-07-06 James E Wilson <wilson@tuliptree.org>
2753
2754 PR optimization/9812
2755 * rtl.h (mem_for_const_double): Delete prototype.
2756 * varasm.c (mem_for_const_double): Delete function.
2757 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2758 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2759 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2760 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2761 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2762 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
2763 comment about confused support for XFmode constants.
2764
9efd34a5
JH
2765Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
2766
2767 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2768
2a43945f
KH
27692003-07-06 Kazu Hirata <kazu@cs.umass.edu>
2770
2771 * config/h8300/h8300.c: Fix comment typos.
2772 * config/h8300/h8300.md: Likewise.
2773 * config/i386/athlon.md: Likewise.
2774 * config/i386/i386.c: Likewise.
2775 * config/i386/pentium.md: Likewise.
2776 * config/ia64/ia64.c: Likewise.
2777 * config/ia64/itanium1.md: Likewise.
2778 * config/ia64/itanium2.md: Likewise.
2779 * config/m32r/m32r.md: Likewise.
2780 * config/m68hc11/m68hc11.c: Likewise.
2781 * config/mcore/mcore.c: Likewise.
2782 * config/mips/sr71k.md: Likewise.
2783 * config/mips/t-iris5-as: Likewise.
2784 * config/mmix/mmix.h: Likewise.
2785 * config/ns32k/ns32k.h: Likewise.
2786 * config/ns32k/NOTES: Fix a typo.
2787
ceee09f7
AJ
27882003-07-06 Andreas Jaeger <aj@suse.de>
2789
7e51717c
AJ
2790 * stmt.c: Convert remaining prototypes to ISO C90.
2791 * cfglayout.c: Likewise.
2792 * dbxout.c: Likewise.
2793 * gcc.c: Likewise.
2794 * genemit.c: Likewise.
2795
ceee09f7
AJ
2796 * basic-block.h: Convert prototypes to ISO C90.
2797 * c-parse.in: Likewise.
2798 * c-pragma.h: Likewise.
2799 * c-typeck.c: Likewise.
2800 * cfghooks.h: Likewise.
2801 * cfgloopanal.c: Likewise.
2802 * dbxout.h: Likewise.
2803 * debug.h: Likewise.
2804 * dwarf2asm.h: Likewise.
2805 * gcov.c: Likewise.
2806 * gengtype-lex.l: Likewise.
2807 * sched-int.h: Likewise.
2808 * timevar.c: Likewise.
2809
cb66e385
NB
28102003-07-06 Neil Booth <neil@daikokuya.co.uk>
2811
2812 * c-common.h (c_comon_handle_filename,
2813 c_common_missing_arguement): New.
2814 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2815 LANG_HOOKS_MISSING_ARGUMENT): New.
2816 * c-opts.c (missing_arg): Rename c_common_missing_argument,
2817 update to be an appropriate langhook.
2818 (c_common_handle_option): Don't handle filenames.
2819 (c_common_handle_filename): New.
2820 * hooks.c (hook_void_constcharptr,
2821 hook_bool_constcharptr_size_t_false): New.
2822 * hooks.h (hook_void_constcharptr,
2823 hook_bool_constcharptr_size_t_false): New.
2824 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2825 LANG_HOOKS_MISSING_ARGUMENT): New.
2826 (LANG_HOOKS_INITIALIZER): Update.
2827 * langhooks.h (struct lang_hooks): Add handle_filename and
2828 missing_argument.
2829 * opts.c (handle_option): Don't handle filenames here, but ...
2830 (handle_options): ... here.
2831 (common_handle_option): Don't handle missing arguments here.
2832 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2833 LANG_HOOKS_MISSING_ARGUMENT): New.
2834
ade4289c
NB
28352003-07-06 Neil Booth <neil@daikokuya.co.uk>
2836
2837 * Makfile.in: Remove traces of mbchar.
2838 * c-parse.in (MULTIBYTE_CHARS): Remove.
2839 * config.in (MULTIBYTE_CHARS): Remove.
2840 * configure: Remove --enable-mbchar.
2841 * configure.in: Remove --enable-mbchar.
2842 * mbchar.c, mbchar.h: Remove.
2843 * system.h: Poison MULTIBYTE_CHARS.
2844 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2845 * config/linux.h (MULTIBYTE_CHARS): Remove.
2846 * config/svr4.h (MULTIBYTE_CHARS): Remove.
2847 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2848
2e1eedd6
AJ
28492003-07-06 Andreas Jaeger <aj@suse.de>
2850
11dc5cc6
AJ
2851 * varray.c (varray_check_failed): Fix typo.
2852
2853 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
2854 * varasm.c: Likewise.
2855 * varray.c: Likewise.
2856 * varray.h: Likewise.
2857 * vmsdbgout.c: Likewise.
2858 * xcoffout.c: Likewise.
2859 * xcoffout.h: Likewise.
2860
dd486eb2
NS
28612003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2862
2863 * gcov-io.h: Add a local time stamp.
2864 (struct gcov_info): Add stamp field.
2865 (gcov_truncate): New.
2866 * coverage.c (read_counts_file): Skip the stamp.
2867 (coverage_begin_output): Write the stamp.
2868 (build_gcov_info): Declare and init the stamp.
2869 (coverage_finish): Only unlink data file, if stamp is zero.
2870 * gcov-dump.c (dump_file): Dump the stamp.
2871 * gcov.c (bbg_stamp): New.
2872 (release_structures): Clear bbg_stamp.
2873 (read_graph_file): Read stamp.
2874 (read_count_file): Check stamp.
2875 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2876
c07e5477
NS
28772003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2878
2879 * tree.h (default_flag_random_seed): Remove.
2880 * toplev.h (local_tick): Declare.
2881 * tree.c (flag_random_seed, default_flag_random_seed): Move to
2882 toplev.c.
2883 (append_random_chars): Don't call default_flag_random_seed.
2884 * toplev.c (flag_random_seed): Define here. Set local_tick.
2885 (local_tick): Define.
2886 (randomize): New, moved from tree.c.
2887 (print_switch_values): Adjust.
2888 (toplev_main): Call randomize.
2889
2aab7ceb
NS
28902003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2891
2892 * tree.h (crc32_string): Declare.
2893 * tree.c (append_random_chars): Remove.
2894 (crc32_string): New.
2895 (get_file_function_name_long): Use crc32_string here.
2896
1d088dee
AJ
28972003-07-06 Andreas Jaeger <aj@suse.de>
2898
2899 * gcc.c: Convert prototypes to ISO C90.
2900 * gcc.h: Likewise.
2901 * gcov-dump.c: Likewise.
2902 * gcov-iov.c: Likewise.
2903 * gcse.c: Likewise.
2904 * genattrtab.h: Likewise.
2905 * ggc.h: Likewise.
2906 * global.c: Likewise.
2907 * graph.c: Likewise.
2908 * graph.h: Likewise.
2909 * hosthooks.h: Likewise.
2910 * hooks.h: Likewise.
2911 * hooks.c: Likewise.
2912 * hashtable.h: Likewise.
2913 * hashtable.c: Likewise.
2914 * haifa-sched.c: Likewise.
2915 * integrate.h: Likewise.
2916 * integrate.c: Likewise.
2917 * input.h: Likewise.
2918 * ifcvt.c: Likewise.
f8ec47c7 2919 * jump.c: Likewise.
0c20a65f
AJ
2920 * langhooks-def.h: Likewise. Add extern to prototypes.
2921 * langhooks.c: Likewise.
2922 * langhooks.h: Likewise.
2923 * lcm.c: Likewise.
2924 * local-alloc.c: Likewise.
2925 * loop-init.c: Likewise.
2926 * loop-unroll.c: Likewise.
2927 * loop-unswitch.c: Likewise.
2928 * loop.c: Likewise.
2929 * loop.h: Likewise. Add extern to prototypes.
2930 * machmode.h: Likewise.
2931 * main.c: Likewise.
2932 * mbchar.c: Likewise.
2933 * mbchar.h: Likewise.
2934 * mkdeps.c: Likewise.
2935 * mkdeps.h: Likewise.
2936 * optabs.c: Likewise.
2937 * optabs.h: Likewise.
2938 * output.h: Likewise.
2939 * gccspec.c: Likwise.
2940 * postreload.c: Likewise.
2941 * prefix.c: Likewise.
2942 * prefix.h: Likewise.
2943 * print-rtl.c: Likewise.
2944 * print-tree.c: Likewise.
2945 * profile.c: Likewise.
2946 * read-rtl.c: Likewise.
2947 * real.c: Likewise.
2948 * real.h: Likewise.
2949 * recog.c: Likewise.
2950 * recog.h: Likewise.
2951 * reg-stack.c: Likewise.
2952 * regclass.c: Likewise.
2953 * regmove.c: Likewise.
2954 * regrename.c: Likewise.
2955 * regs.h: Likewise.
2956 * reload.c: Likewise.
2957 * reload.h: Likewise.
2958 * reload1.c: Likewise.
2959 * reorg.c: Likewise.
2960 * resource.c: Likewise.
2961 * resource.h: Likewise.
2962 * rtl-error.c: Likewise.
2963 * rtl.c: Likewise.
2964 * rtl.h: Likewise.
2965 * rtlanal.c: Likewise.
46c5ad27
AJ
2966 * sbitmap.c: Likewise.
2967 * sbitmap.h: Likewise.
2968 * scan-decls.c: Likewise.
2969 * scan.c: Likewise.
2970 * sched-deps.c: Likewise.
2971 * sched-ebb.c: Likewise.
2972 * sched-int.h: Likewise.
2973 * sched-rgn.c: Likewise.
2974 * sched-vis.c: Likewise.
2975 * sibcall.c: Likewise.
2976 * simplify-rtx.c: Likewise.
2977 * sreal.c: Likewise.
2978 * sreal.h: Likewise.
2979 * ssa-ccp.c: Likewise.
2980 * ssa-dce.c: Likewise.
2981 * ssa.c: Likewise.
2982 * ssa.h: Likewise.
2983 * stack.h: Likewise.
2984 * stmt.c: Likewise.
2985 * stor-layout.c: Likewise.
2986 * stringpool.c: Likewise.
2987 * target.h: Likewise.
2988 * timevar.c: Likewise.
2989 * timevar.h: Likewise.
2990 * tlink.c: Likewise.
2991 * tracer.c: Likewise.
2992 * tree-inline.c: Likewise.
2993 * tree-inline.h: Likewise.
2994 * tree.c: Likewise.
2995 * tree.h: Likewise.
1d088dee 2996
4f649bc1
KH
29972003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2998
2999 * combine.c (nonzero_bits1): Fix a warning.
3000
30012003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
3002
3003 * config/h8300/h8300.c (compute_mov_length): Correct the
3004 length of loading CONST0_RTX (SFmode).
3005
f5924ac1
NS
30062003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3007
3008 * toplev.c (output_clean_symbol_name): Remove.
3009 * toplev.h (output_clean_symbol_name): Remove.
3010 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3011 lbasename & clean_symbol_name.
3012
39e3f58c
KH
30132003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3014
3015 * ggc.h: Follow spelling conventions.
3016 * config/i386/i386.c: Likewise.
3017 * config/i386/winnt.c: Likewise.
3018 * config/rs6000/rs6000.c: Likewise.
3019
4d6922ee
KH
30202003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3021
3022 * bt-load.c: Fix comment typos.
3023 * c-incpath.c: Likewise.
3024 * cfg.c: Likewise.
3025 * cfgcleanup.c: Likewise.
3026 * cfgloop.h: Likewise.
3027 * cfgloopmanip.c: Likewise.
3028 * cfgrtl.c: Likewise.
3029 * diagnostic.h: Likewise.
3030 * dwarfout.c: Likewise.
3031 * emit-rtl.c: Likewise.
3032 * et-forest.c: Likewise.
3033 * et-forest.h: Likewise.
3034 * expr.c: Likewise.
3035 * gcse.c: Likewise.
3036 * genattr.c: Likewise.
3037 * jump.c: Likewise.
3038 * langhooks.h: Likewise.
3039 * local-alloc.c: Likewise.
3040 * loop-unroll.c: Likewise.
3041 * loop-unswitch.c: Likewise.
3042 * ra-build.c: Likewise.
3043 * regclass.c: Likewise.
3044 * regmove.c: Likewise.
3045 * rtl.def: Likewise.
3046 * rtlanal.c: Likewise.
3047 * sched-ebb.c: Likewise.
3048 * sched-rgn.c: Likewise.
3049 * simplify-rtx.c: Likewise.
3050 * ssa.c: Likewise.
3051 * tracer.c: Likewise.
3052 * tree.c: Likewise.
3053
f1c4bc4f
ZW
30542003-07-05 Zack Weinberg <zack@codesourcery.com>
3055
3056 * cppcharset.c: Use the correct return type for the fallback iconv
3057 macro.
3058
65c6f1b4
ZD
3059Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3060
3061 Blame to Jan Hubicka <jh@suse.cz>
3062 * cfglayout.c (record_effective_endpoints): Split insns before
3063 first basic block correctly.
3064
a8f3bf52
RK
30652003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3066
f1c4bc4f 3067 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
3068 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3069 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3070
0641776c
AJ
30712003-07-05 Andreas Jaeger <aj@suse.de>
3072
3073 * genattrtab.c (write_attr_get): Revert part of last patch to
3074 always write out a prototype.
3075
3076 * genemit.c (gen_split): Readd lost unused attributes in last
3077 patch.
3078
977129f6
ZD
30792003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3080
3081 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3082 different from header.
3083
5ee084df
AS
30842003-07-05 Andreas Schwab <schwab@suse.de>
3085
3086 * config/m68k/m68k.c: Remove code protected by CRDS.
3087 * config/m68k/m68k.md: Likewise.
3088
33de9573
NB
30892003-07-05 Neil Booth <neil@daikokuya.co.uk>
3090
3091 PR driver/11417
3092 * c-opts.c (permit_fortran_options): New.
3093 (c_common_init_options): Accept fortran front end options if
3094 it looks like we might be preprocessing Fortran.
3095 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3096
6906ba40
KG
30972003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3098
3099 * genattr.c (internal_dfa_insn_code): Output prototype.
3100 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3101 * genautomata.c: Likewise.
3102 * genconditions.c: Likewise.
3103 * genemit.c: Likewise.
3104 * genextract.c: Likewise.
3105 * gengenrtl.c: Likewise.
3106 * gengtype.c: Likewise.
3107 * genopinit.c: Likewise.
3108 * genoutput.c: Likewise.
3109 * genpeep.c: Likewise.
3110 * genrecog.c: Likewise.
3111
e6cc3a24
ZW
31122003-07-04 Zack Weinberg <zack@codesourcery.com>
3113
3114 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3115 (struct cpp_options): Add narrow_charset, wide_charset,
3116 bytes_big_endian fields. Remove EBCDIC field.
3117 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3118
3119 * cpphash.h: Include <iconv.h> if we have it, otherwise
3120 provide a dummy definition of iconv_t.
3121 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3122 (_cpp_valid_ucn): Update prototype.
3123 (_cpp_destroy_iconv): New prototype.
3124
3125 * doc/cpp.texi: Document character set handling.
3126 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3127 * doc/extend.texi: Delete entire section on multiline strings.
3128 Rewrite section on __FUNCTION__ etc now that these are
3129 variables in C.
3130
3131 * cppucnid.tab, cppucnid.pl: New files.
3132 * cppucnid.h: New generated file.
3133 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3134 (iconv_open, iconv, iconv_close): Provide dummy definitions
3135 if !HAVE_ICONV.
3136 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3137 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3138 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3139 cpp_interpret_string, narrow_str_to_charconst,
3140 wide_str_to_charconst): New.
3141 (ucn_valid_in_identifier): Use a binary search through the
3142 ucnranges table defined in cppucnid.h, not a long chain of if
3143 statements.
3144 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3145 character names are only valid in C++ and C99" to a warning.
3146 Issue the "meaning of \[uU] is different in traditional C"
3147 warning here. Take care not to let iconv see an invalid UCS
3148 value if we get a malformed UCN. Issue an error if we don't
3149 have iconv.
3150 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3151 cpp_interpret_string to do the heavy lifting.
3152
3153 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3154 narrow_charset, wide_charset fields of options structure.
3155 (cpp_destroy): Call _cpp_destroy_iconv.
3156 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3157 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3158 (cpp_interpret_charconst): Moved to cppcharset.c.
3159 * cpplib.c (dequote_string): Delete.
3160 (interpret_string_notranslate): New.
3161 (do_line, do_linemarker): Use interpret_string_notranslate.
3162
3163 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3164
3165 * c-common.c (fname_string, combine_strings): Delete.
3166 * c-common.h (fname_string, combine_strings): Delete prototypes.
3167 * c-lex.c (ignore_escape_flag): Delete.
3168 (cb_ident): Use cpp_interpret_string, not lex_string.
3169 (get_nonpadding_token): New function.
3170 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3171 Adjust calls to lex_string. Don't write *value twice.
3172 (lex_string): Now handles string constant concatenation.
3173 Most of the work handed off to cpp_interpret_string.
3174 Call fix_string_type here.
3175 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3176 FUNC_NAME, throughout.
3177 (OBJC_STRING): New token type.
3178 (primary:STRING): No need to call fix_string_type here.
3179 (primary:objc_string): Make that OBJC_STRING.
3180 (objc_string nonterminal): Delete.
3181 (yylexname): Delete code to handle fake string constants.
3182 (yylexstring): Delete entirely.
3183 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3184 to handle CPP_ATSIGN.
3185
3186 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3187 * c-opts.c (missing_arg, c_common_handle_option): Handle
3188 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3189 (c_common_init): Set cpp_opts->bytes_big_endian, not
3190 cpp_opts->EBCDIC. Call cpp_init_iconv.
3191 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3192 (TARGET_EBCDIC): Delete default definition.
3193
3194 * objc/objc-act.c (build_objc_string_object): No need to
3195 handle string constant concatenation.
3196
61aeb06f
KH
31972003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3198
3199 * doc/install.texi: Fix typos.
3200 * doc/invoke.texi: Likewise.
3201 * doc/tm.texi: Likewise.
3202
c1207243
KH
32032003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3204
3205 * config/pa/fptr.c: Fix comment typos.
3206 * config/pa/pa-64.h: Likewise.
3207 * config/pa/pa.c: Likewise.
3208 * config/pa/pa.h: Likewise.
3209 * config/rs6000/603.md: Likewise.
3210 * config/rs6000/7xx.md: Likewise.
3211 * config/rs6000/darwin.h: Likewise.
3212 * config/rs6000/freebsd.h: Likewise.
3213 * config/rs6000/rs6000.c: Likewise.
3214 * config/rs6000/rs6000.md: Likewise.
3215 * config/rs6000/spe.h: Likewise.
3216
58add37a
UW
32172003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3218
3219 * config/s390/2064.md: Change GNU CC to GCC.
3220 * config/s390/2084.md: Likewise.
3221 * config/s390/fixdfdi.h: Likewise.
3222 * config/s390/linux.h: Likewise.
3223 * config/s390/s390-modes.def: Likewise.
3224 * config/s390/s390-protos.h: Likewise.
3225 * config/s390/s390.c: Likewise.
3226 * config/s390/s390.h: Likewise.
3227 * config/s390/s390.md: Likewise.
3228 * config/s390/s390x.h: Likewise.
3229
60cd4dae
JL
32302003-07-04 Jeff Law <law@redhat.com>
3231
a38825d2 3232 PR c/11428
60cd4dae
JL
3233 * expr.c (do_store_flag): Pass in the correct result type
3234 when calling fold_single_bit_test.
3235 * fold-const.c (fold_single_bit_test): Use result_type for the
3236 result when folding a sign bit test.
3237
5e14ae7e
NB
32382003-07-04 Neil Booth <neil@daikokuya.co.uk>
3239
3240 * opts.c (common_handle_options): Negate sense of -falign- switches.
3241
8c90b13a
L
32422003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3243
c3b3975a 3244 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 3245
72d4a2ad
ZD
32462003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3247
3248 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3249 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3250 Handle strange loops.
3251
8e9a4a45
TM
32522003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3253
3254 * install.texi: Even the g77 manpage is derived from
3255 the full g77 manual.
3256
6eb95e99
ZW
32572003-07-04 Zack Weinberg <zack@codesourcery.com>
3258
3259 * ABOUT-NLS: Delete.
3260 * intl: Delete entire directory.
3261 * aclocal.m4: Include ../config/gettext.m4. Delete
3262 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3263 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3264 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3265 Remove intl/Makefile from all_outputs.
3266 * configure, config.in: Regenerate.
3267 * Makefile.in: Expunge all references to intl subdirectory.
3268 Add -I../intl to INCLUDES.
3269 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3270
bcd5d841
RS
32712003-07-04 Roger Sayle <roger@eyesopen.com>
3272
3273 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3274 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3275
6b6cb52e
DS
32762003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3277
3278 PR c++/5287, PR c++/7910, PR c++/11021
3279 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3280 dllimport attribute if function is defined at declaration, but
3281 report error instead. Likewise for dllimport'd variable
3282 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3283 declared within functions, Report error if dllimport or dllexport
3284 symbol is not global.
3285 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3286 if defined after declaration or if inlined. Don't allow definition
3287 of static data members of C++ classes. Don't dllimport virtual
3288 methods.
3289 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3290 (i386_pe_mark_dllimport): Remove unnecessary checks.
3291 (i386_pe_encode_section_info): Warn if the dllimport attribute
3292 and symbol prefix have been instantiated and then overridden.
3293
3294 * doc/extend.texi: Document dllimport and dllexport attributes.
3295
3296 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3297
cc2f5d34
US
32982003-07-03 Uwe Stieber <uwe@kaos-group.de>
3299
3300 * config/kaos.h (CPP_PREDEFINES): Delete.
3301 (TARGET_OS_CPP_BUILTINS): New.
3302
5f1989e6
KG
33032003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3304
3305 * c-aux-info.c: Include toplev.h after c-tree.h.
3306 * c-common.c: Likewise.
3307 (GCC_DIAG_STYLE): Undef.
3308 * c-semantics.c (GCC_DIAG_STYLE): Define.
3309 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3310 * diagnostic.h (inform): Move prototype to toplev.h.
3311 * jump.c: Include diagnostic.h before toplev.h.
3312 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3313 (warning, error, fatal_error, pedwarn, sorry, inform,
3314 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3315
8d28e87d
ZD
33162003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3317
3318 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3319 at all if edge is not specified.
3320 (can_copy_bbs_p, copy_bbs): New.
3321 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3322 * cfgloop.c (get_loop_body): Comment more precisely.
3323 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3324 (scale_bbs_frequencies): Fix comment typo.
3325 (can_duplicate_loop_p): Use can_copy_bbs_p.
3326 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3327
694abeb6
DP
33282003-07-03 Devang Patel <dpatel@apple.com>
3329
3330 * c-opts.c (c_common_parse_file): Remove extra
3331 debug_hooks->start_source_file call.
6eb95e99 3332
0a9530a9
RS
33332003-07-03 Roger Sayle <roger@eyesopen.com>
3334
3335 * real.c (real_trunc, real_floor, real_ceil): New functions
3336 to implement trunc, floor and ceil respectively.
3337 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3338 * builtins.c (integer_valued_real_p): New function to test if
3339 a floating point expression has an integer valued result.
3340 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3341 foo(x) where foo is an integer rounding function. Similarly,
3342 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3343 (double)(int)x when both foo and bar are integer rounding
3344 functions and we don't need to honor errno.
3345 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3346 New functions to fold trunc, floor and ceil.
3347 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3348 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3349 to fold BUILT_IN_CEIL*.
3350 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3351 the remaining integer rounding functions.
3352
c3427c7d
EB
33532003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3354
3355 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3356 SPARC_INT_ARG_MAX to determine where to split unnamed
3357 complex FP arguments.
3358
bc35512f
JH
3359Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
3360
3361 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3362 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3363 (merge_blocks_move_predecessor_nojumps,
3364 merge_blocks_move_successor_nojumps): Use merge_blocks.
3365 (try_optimize_cfg): Use merge_blocks_move.
3366 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3367 (merge_blocks_nomove): Rename to rtl_merge_blocks.
3368 (cfg_layout_create_basic_block): New.
3369 (rtl_can_merge_blocks): New.
3370 (cfg_layout_split_block): Do not alloc aux by hand.
3371 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3372 merge_blocks.
3373 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3374 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3375 * cfgloopmanip.c (loop_split_edge_with): Likewise.
3376 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3377
3378 * basic-block.h (basic_block_def): Add field 'rbi'.
3379 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3380 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3381 * cfg.c (entry_exit_blocks): Add new field.
3382 * cfglayout.c: Include alloc-pool.h;
3383 (cfg_layout_pool): New.
3384 (record_effective_endpoints, fixup_reorder_chain,
3385 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3386 of rbi.
3387 (cfg_layout_initialize_rbi): New function.
3388 (cfg_layout_initialize): Use it.
3389 (cfg_layout_finalize): Clear rbi fields.
3390 * cfglayout.h (RBI): Kill.
3391 (cfg_layout_initialize_rbi): Declare.
3392 * cfgloopmanip.c (copy_bbs): Use rbi.
3393 (record_exit_edges): Likewise.
3394 (duplicate_loop_to_header_edge): Likewise.
3395 * cfgrtl.c (cfg_layout_create_basic_block): Use
3396 cfg_layout_initialize_rbi.
3397 (cfg_layout_split_block): Use rbi.
3398 (cfg_layout_delete_block): Likewise.
3399 * loop-init.c (loop_optimizer_finalize): Likewise.
3400 * loop-unswitch.c (unswitch_loop): Likewise.
3401 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3402
3403 * cfgrtl.c: Update comments.
3404 (try_redirect_by_replacing_jump): New argument.
3405 (redirect_branch_edge): Break out from ...
3406 (rtl_redirect_edge_and_branch): ... this one.
3407 (update_cfg_after_block_merging): Break out from ...
3408 (rtl_merge_blocks): ... this one.
3409 (cfg_layout_split_edge): New.
3410 (cfg_layout_merge_blocks): New.
3411 (cfg_layout_can_merge_blocks_p): New.
3412 (cfg_layout_redirect_edge_and_branch): Reorganize.
3413 (cfg_layout_rtl_cfg_hooks): Fill in.
3414 (cfg_layout_delete_block): Kill barriers.
3415 * cfganal.c (can_fallthru): Deal with exit blocks
3416 * cfglayout.c (cfg_layout_function_header): New function
3417 (record_effective_endpoints): Record function header.
3418 (fixup_reorder_chain): Fixup dead jumptables; place header
3419
3420 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3421 * bb-reorder.c (cfg_layout_initialize): Update call.
3422 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3423 edges in cfglayout mode.
3424 * cfglayout.c (cleanup_unconditional_jumps): Kill.
3425 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3426 * cfglayout.h (cfg_layout_initialize): Update prototype.
3427 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3428 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3429 * flow.c (propagate_block): Do not crash when basic block ends
3430 by first insn in the chain.
3431 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
3432 do loop discovery.
3433 * tracer.c (tracer): Update call of cfg_layout_initialize.
3434
dd220c49
KG
34352003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3436
3437 * Makefile.in: Use dependency variables in lieu of explicit
3438 files throughout.
3439
fa5b060f
SB
34402003-07-03 Steven Bosscher <steven@gcc.gnu.org>
3441
3442 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3443 * tree.h: ...to here.
3444
fae778eb
KH
34452003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3446
3447 * config/s390/2064.md: Fix comment typos.
3448 * config/s390/2084.md: Likewise.
3449 * config/s390/s390.c: Likewise.
3450 * config/s390/s390.md: Likewise.
3451 * config/sh/sh.c: Likewise.
3452 * config/sh/sh.h: Likewise.
3453 * config/sh/sh.md: Likewise.
3454 * config/sparc/sparc.c: Likewise.
3455 * config/sparc/sparc.h: Likewise.
3456 * config/sparc/sparc.md: Likewise.
3457 * config/stormy16/stormy16.c: Likewise.
3458 * config/stormy16/stormy16.h: Likewise.
3459 * config/stormy16/stormy-abi: Fix a typo.
3460
58eabcb1
KC
34612003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
3462
3463 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3464
af261903
KG
34652003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3466
3467 * config/mips/mips.h (save_argv): Delete.
3468
a11c61d2
RS
34692003-07-03 Roger Sayle <roger@eyesopen.com>
3470
3471 PR target/10700
3472 * fold-const.c (extract_muldiv_1): There's nothing that can be done
3473 if the expression is a SAVE_EXPR.
3474
dab66575
KH
34752003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3476
3477 * config/m32r/m32r.c: Fix comment typos.
3478 * config/m68hc11/m68hc11.c: Likewise.
3479 * config/m68hc11/m68hc11.h: Likewise.
3480 * config/m68k/m68k.c: Likewise.
3481 * config/mcore/mcore.c: Likewise.
3482 * config/mcore/mcore.h: Likewise.
3483 * config/mcore/mcore.md: Likewise.
3484 * config/mips/mips.c: Likewise.
3485 * config/mips/mips.h: Likewise.
3486 * config/mips/mips.md: Likewise.
3487 * config/mips/netbsd.h: Likewise.
3488 * config/mn10300/mn10300.c: Likewise.
3489
8837d828
AS
34902003-07-03 Andreas Schwab <schwab@suse.de>
3491
3492 * dbxout.c (pending_bincls): Move decl down inside
3493 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3494
dd107e66
NS
34952003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3496
3497 * rtl.h (NOTE_DATA): Refer to whole union.
3498 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3499
8821d091
EB
35002003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3501
3502 PR optimization/11381
3503 * simplify-rtx.c (simplify_relational_operation): Check that
3504 two equal operands have no side-effects before simplifying
3505 the comparison.
3506
7960bf22
JL
35072003-07-02 Jeff Law <law@redhat.com>
3508
3509 * expr.c (do_store_flag): Remove special case folding for
3510 single bit tests. Instead call back into the commonized folder
3511 routine.
3512 * fold-const.c (fold_single_bit_test): New function, mostly
3513 extracted from do_store_flag, with an additional case extracted
3514 from fold.
3515 (fold): Call fold_single_bit_test appropriately.
3516 * tree.h (fold_single_bit_test): Prototype.
3517
3dce1408
ZW
35182003-07-02 Zack Weinberg <zack@codesourcery.com>
3519
3520 * system.h: Include filenames.h.
3521 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3522 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3523 define based on HAVE_DOS_BASED_FILE_SYSTEM.
3524 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3525 * config/i386/xm-mingw32.h: Don't define
3526 HAVE_DOS_BASED_FILE_SYSTEM,
3527 DIR_SEPARATOR, or DIR_SEPARATOR_2.
3528 * doc/hostconfig.texi: Update to match.
3529
3530 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3531 config/i386/cygwin.h:
3532 Use IS_ABSOLUTE_PATH throughout.
3533 * gcc.c (DIR_UP): Delete, unused.
3534 * protoize.c (IS_SAME_PATH): Define in terms of
3535 FILENAME_CMP.
3536 (is_abspath): Delete.
3537
c51e6d85
KH
35382003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3539
3540 * config/i386/emmintrin.h: Fix comment typos.
3541 * config/i386/i386.c: Likewise.
3542 * config/i386/i386.h: Likewise.
3543 * config/i386/sco5.h: Likewise.
3544 * config/ia64/ia64.c: Likewise.
3545 * config/ia64/itanium2.md: Likewise.
3546
5ec3a5a7
L
35472003-07-02 H.J. Lu <hongjiu.lu@intel.com>
3548
3549 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3550 DBX_USE_BINCL.
3551 (emit_bincl_stab): Same.
3552 (emit_pending_bincls): Same.
3553
fad37371
KH
35542003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3555
3556 * config/h8300/h8300.c (compute_mov_length): Fix the length of
3557 loading CONST0_RTX (SFmode).
3558 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3559 'G' to CONST0_RTX (SFmode).
3560 * config/h8300/h8300.md (movsf_h8300): Change the first
3561 constraint to 'G'.
3562 (movsf_h8300h): Likewise.
3563
b86f6cd9
NB
35642003-07-02 Neil Booth <neil@daikokuya.co.uk>
3565
3566 * c-common.h (c_common_init_options): New prototype.
3567 * c-opts.c (deferred_size): Remove.
3568 (defer_opt): Array is now pre-allocated.
3569 (c_common_init_options): Pre-allocate deferred_opts. Make
3570 lang_flags unsigned.
3571 (push_command_line_options): Free deferred_opts.
3572 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3573 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3574 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3575 * langhooks.h (struct lang_hooks): New prototype for init_options.
3576 * main.c (main): Cast argv.
3577 * opts.c (handle_option, handle_options): Update prototypes.
3578 (decode_options): save_argc, save_argv are not global. Constify.
3579 * opts.h (decode_options): New prototype.
3580 * toplev.c (general_init): New protoype.
3581 (save_argv): Make static.
3582 (save_argc): Remove.
3583 (print_switch_values, general_init): Constify.
3584 (toplev_main): Save argv.
3585 * toplev.h (toplev_main): Update prototype.
3586 (save_argc, save_argv): Remove.
3587
f23b9d52
DE
35882003-07-02 David Edelsohn <edelsohn@gnu.org>
3589
3590 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3591 (emit_bincl_stab): Same.
3592 (emit_pending_bincls): Same.
3593
300e89a2
NS
35942003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3595
3596 PR c++/11072
3597 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3598
eaac6968
AS
35992003-07-02 Andreas Schwab <schwab@suse.de>
3600
3601 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3602
1a8c4ca6
EB
36032003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3604
3605 PR optimization/11210
3606 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3607 about the behaviour with regard to bitfields.
3608 * fold-const (decode_field_reference): Record outermost type in
3609 case the expression is a NOP. Strip all NOPs. Set the signedness
3610 to that of the outermost type (if any) when the bitsize is equal
3611 to the size of the type.
3612
23cdfcf7
RS
36132003-07-02 Richard Sandiford <rsandifo@redhat.com>
3614
3615 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3616 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3617 (adddi3_internal_3, addsi3_internal_2): Likewise.
3618
6f2993e5
RS
36192003-07-02 Richard Sandiford <rsandifo@redhat.com>
3620
3621 * config/mips/mips.c (machine_function): Add new fields:
3622 ignore_hazard_length_p and all_noreorder_p.
3623 (mips_flag_delayed_branch): New variable.
3624 (override_options): Treat '/' as an operand punctuation character.
3625 Set up mips_flag_delayed_branch.
3626 (print_operand): Handle '/'.
3627 (mips_output_function_prologue): Put the whole function in
3628 .set noreorder and .set nomacro if all_noreorder_p is true.
3629 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3630 (mips16_optimize_gp): Remove "first insn" parameter.
3631 (mips16_lay_out_constants): New function, split out from mips_reorg.
3632 (mips_avoid_hazard, mips_avoid_hazards): New functions.
3633 (mips_reorg): For mips16 code, call mips16_lay_out_constant
3634 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
3635 do delayed-branch scheduling followed by hazard detection.
3636 (mips_adjust_insn_length): Only account for hazards if
3637 !ignore_hazard_length_p.
3638 (mips_output_load_label): Add a nop to the o32 sequence if
3639 the target suffers from load delays.
3640 (mips_output_conditional_branch): Add %/ to the end of branches.
3641 (mips_output_division): Fill the branch delay slot with %#.
3642 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3643 instructions. End all other %* branches with %/.
3644 (ffssi2, ffsdi2): Fix lengths.
3645 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3646 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3647 (fix_truncsfsi2_macro): Likewise.
3648 (mov_lwl): Set hazard to "none".
3649 (ashldi3_internal): Fill the branch delay slot with %#.
3650 (ashrdi3_internal, lshrdi3_internal): Likewise.
3651 (exception_receiver): Explicitly set $28.
3652 (hazard_nop): New pattern.
3653
0184bd46
JH
3654Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
3655
3656 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3657 before calling tree_inlinable_function_p.
3658
1a78e5a7
RO
36592003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3660
3661 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3662 <internal/stdio_core.h> too.
3663 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3664 <internal/wchar_core.h> too.
3665 Substitute va_list uses in inline definition.
3666 * fixinc/fixincl.x: Regenerate.
3667
4c82f12b
RO
36682003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3669
3670 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3671 Undef before redefinition.
3672 (LABEL_AFTER_LOC): Likewise.
3673 (DEFAULT_SIGNED_CHAR): Likewise.
3674 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3675 Fix IRIX spelling.
3dce1408 3676
4c82f12b
RO
3677 * config/mips/iris3.h: Remove, unused.
3678 * config/mips/iris4.h: Likewise.
3679
3680 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3681
3682 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3683 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3684 target_cpu_default.
3685
3686 * config/mips/iris5.h: Move explicit includes ...
3687 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 3688
4c82f12b
RO
3689 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3690 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3691 tm_defines.
3692
3693 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3694 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3695 target_cpu_default.
3696
3697 * config/mips/iris6.h: Fix IRIX spelling.
3698 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 3699
4c82f12b
RO
3700 * config/mips/iris6.h: Move explicit includes ...
3701 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3702
8bd87c4e
JH
3703Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
3704
3705 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3706 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3707 Use next_needed field instead of aux to maintain the queue.
3708 * cgraph.h (cgraph_node): Add next_needed.
3709 (cgraph_varpool_node): Add next_needed; remove aux.
3710 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3711
f6981e16
JH
3712Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3713
3714 * cgraphunit.c (cgraph_finalize_function): Set finalized.
3715 (cgraph_finalize_function): Do not examine inlinablility.
3716 (cgraph_finalize_compilation_unit): Do it here.
3717 * cgraph.h (cgraph_local_info): Add finalized field.
3718
d1c60855
RO
37192003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3720
3721 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3722 (gt_pch_restore): Likewise.
3723
093354e0
KH
37242003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3725
3726 * config/alpha/alpha.c: Fix comment typos.
3727 * config/alpha/elf.h: Likewise.
3728 * config/arm/arm.c: Likewise.
3729 * config/arm/arm.h: Likewise.
3730 * config/arm/arm.md: Likewise.
3731 * config/arm/t-arm-coff: Likewise.
3732 * config/arm/t-strongarm-pe: Likewise.
3733 * config/arm/xscale-elf.h: Likewise.
3734 * config/avr/avr.h: Likewise.
3735
ce47ca44
JL
37362003-07-01 Jeff Law <law@redhat.com>
3737
3738 * stmt.c (any_pending_cleanups): Remove another redundant test.
3739
43b68ce5
DE
37402003-07-01 David Edelsohn <edelsohn@gnu.org>
3741 J"orn Rennecke <joern.rennecke@superh.com>
3742
3743 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3744 for MEM case.
3745
33e9d2aa
DP
37462003-07-01 Devang Patel <dpatel@apple.com>
3747
3748 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3749 (binclstatus): New.
3dce1408 3750 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
3751 prev.
3752 (pending_bincls): New.
3753 (dbxout_init): Initialize new dbx_file members.
3754 (dbxout_start_source_file): Same.
3755 (emit_bincl_stab): New function.
3756 (emit_pending_bincls): Same.
3757 (emit_pending_bincls_if_required): Same.
3dce1408 3758 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
3759 processed.
3760 (dbxout_begin_block): Emit pending BINCL stabs.
3761 (dbxout_end_block): Same.
3762 (dbxout_function_decl): Same.
3763 (dbxout_continue): Same.
3764 (dbxout_type): Same.
3765 (dbxout_class_name_qualifiers): Same.
3766 (dbxout_symbol): Same.
3767 (dbxout_symbol_location): Same.
3768 (dbxout_parms): Same.
3dce1408 3769
0108ae51
KG
37702003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3771
3772 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3773 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3774
54ced33d
AJ
37752003-07-01 Andreas Jaeger <aj@suse.de>
3776
3777 * fold-const.c: Convert prototypes to ISO C90.
3778 * function.c: Likewise.
3779 * function.h: Likewise.
3780
c0cbdbd9
KH
37812003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3782
3783 * doc/contrib.texi: Fix typos.
3784 * doc/invoke.texi: Likewise.
3785 * doc/passes.texi: Likewise.
3786 * doc/sourcebuild.texi: Likewise.
3787 * doc/tm.texi: Likewise.
3788
e0bb17a8
KH
37892003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3790
3791 * basic-block.h: Fix comment typos.
3792 * bb-reorder.c: Likewise.
3793 * c-format.c: Likewise.
3794 * cfgcleanup.c: Likewise.
3795 * cfghooks.h: Likewise.
3796 * cfgloop.c: Likewise.
3797 * cfgloopmanip.c: Likewise.
3798 * cfgrtl.c: Likewise.
3799 * cgraph.h: Likewise.
3800 * cgraphunit.c: Likewise.
3801 * combine.c: Likewise.
3802 * convert.c: Likewise.
3803 * dbxout.c: Likewise.
3804 * df.c: Likewise.
3805 * df.h: Likewise.
3806 * diagnostic.c: Likewise.
3807 * dwarf2out.c: Likewise.
3808 * et-forest.h: Likewise.
3809 * flow.c: Likewise.
3810 * fold-const.c: Likewise.
3811 * function.h: Likewise.
3812 * gcov-io.h: Likewise.
3813 * gcov.c: Likewise.
3814 * gcse.c: Likewise.
3815 * genautomata.c: Likewise.
3816 * ggc-common.c: Likewise.
3817 * ggc-page.c: Likewise.
3818 * loop-unroll.c: Likewise.
3819 * loop-unswitch.c: Likewise.
3820 * loop.c: Likewise.
3821 * mips-tfile.c: Likewise.
3822 * optabs.c: Likewise.
3823 * ra-build.c: Likewise.
3824 * ra-colorize.c: Likewise.
3825 * ra-rewrite.c: Likewise.
3826 * ra.h: Likewise.
3827 * regmove.c: Likewise.
3828 * reload.c: Likewise.
3829 * rtlanal.c: Likewise.
3830 * sched-ebb.c: Likewise.
3831 * sched-int.h: Likewise.
3832 * sched-vis.c: Likewise.
3833 * sreal.c: Likewise.
3834 * ssa-ccp.c: Likewise.
3835 * ssa.c: Likewise.
3836 * toplev.c: Likewise.
3837 * tree-inline.c: Likewise.
3838 * value-prof.c: Likewise.
3839 * value-prof.h: Likewise.
3840
5f2fc772
NS
38412003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3842
3843 * rtl.h (emit_line_note_after): Remove.
3844 (emit_note_copy_after, emit_note_copy): New.
3845 * emit-rtl.c (reorder_insns_with_line_notes): Replace
3846 emit_line_note_after with emit_note_copy_after.
3847 (emit_insn_after_with_line_notes): Likewise.
3848 (emit_line_note_after): Kill.
3849 (emit_note_copy_after): New.
3850 (emit_note_copy): New.
3851 * function.c (emit_return_into_block): Use emit_note_copy_after.
3852 (thread_prologue_and_epilogue_insns): Likewise.
3853 * integrate.c (expand_inline_function): Use emit_note_copy.
3854 (copy_insn_list): Likewise.
3855 * unroll.c (copy_loop_body): Likewise.
3856 * cfglayout.c (duplicate_insn_chain): Likewise.
3857
5b030314
NS
38582003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3859
3860 * c-tree.h (define_label): Replace filename and lineno arguments
3861 with a location_t.
3862 * c-decl.c (poplevel): Adjust define_label call.
3863 (pop_label_level): Likewise.
3864 (define_label): Replace filename and lineno arguments with a
3865 location_t.
3866 (store_parm_decls): Use DECL_SOURCE_LOCATION.
3867 * c-parse.in (label): Adjust define_label call.
3868
04df6730
NB
38692003-07-01 Neil Booth <neil@daikokuya.co.uk>
3870
3871 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3872 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3873 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3874 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3875 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3876
6cf9ac28
AJ
38772003-07-01 Andreas Jaeger <aj@suse.de>
3878
3879 * final.c: Convert prototypes to ISO C90.
3880 * flow.c: Likewise.
3881 * flags.h: Likewise.
3882 * gcov-io.c: Likewise.
3883 * gcov-io.h: Likewise.
3884
2a868fac 3885See ChangeLog.9 for earlier changes.
This page took 0.604357 seconds and 5 git commands to generate.