1 2003-07-27 Zack Weinberg <zack@codesourcery.com>
3 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
4 (keep_next_if_subblocks): Rename next_is_function_body.
5 (pushlevel): Adjust commentary. Always set ->keep on the
6 outermost level of a function. Don't set ->keep_if_subblocks.
7 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
8 (store_parm_decls): Adjust to match.
9 (finish_function): Adjust to match.
10 Call poplevel with all three arguments zero.
12 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
13 New functions split out of store_parm_decls.
14 Avoid unnecessary work. Use local variables consistently.
15 (store_parm_decls): Likewise.
17 (finish_function): No need to set functionbody flag on call to
19 (struct language_function): Remove scope field.
20 (c_push_function_context, c_pop_function_context): No need to
21 save and restore current_scope.
23 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
25 * doc/extend.texi (Deprecated Features): Implicit typename is
26 gone. Default args on types is going.
28 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
30 * Makefile.in (ifcvt.o): Depend on target.h
31 * ifcvt.c (target.h): Include.
32 (if_convert): Don't call mark_loop_exit_edges if we can't
35 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
37 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
39 2003-07-26 Richard Henderson <rth@redhat.com>
42 * cse.c (count_reg_usage): Handle asm_operands properly.
44 2003-07-26 Roger Sayle <roger@eyesopen.com>
46 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
47 (DEF_EXT_FALLBACK_BUILTIN): Delete.
48 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
49 the regular DEF_EXT_LIB_BUILTIN macro.
50 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
51 the regular DEF_LIB_BUILTIN macro.
52 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
53 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
54 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
55 DEF_EXT_LIB_BUILTIN macro.
57 * c-decl.c (duplicate_decls): Remove code to handle builtin
58 functions prototyped without an argument list.
60 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
62 * config/i386/winnt.c: Revert 2003-07-08 change.
63 (i386_pe_section_type_flags): Remove error_with_decl here too.
65 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
67 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
68 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
69 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
70 (v850_handle_data_area_attribute): Likewise.
72 2003-07-26 Geoffrey Keating <geoffk@apple.com>
74 * varasm.c (output_constant_def_contents): Use
75 ASM_DECLARE_CONSTANT_NAME if defined.
76 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
77 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
78 objects get at least one byte to prevent assembler problems.
79 (ASM_DECLARE_CONSTANT_NAME): New.
81 * Makefile.in (libbackend.o): Remove options_.h.
82 (mostlyclean): Likewise.
84 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
85 insert a label at the end of an function under Mach-O.
87 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
89 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
91 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
93 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
95 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
97 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
99 * doc/passes.texi (Passes): Mention pretty-printing and
102 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
104 * doc/extend.texi (Function Attributes): GNU C++ does now allow
105 unused parameter decls.
106 (Attribute Syntax): GNU C++ does not allow label attributes to be
109 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
111 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
112 (objc_declare_class): Likewise.
113 (error_with_ivar): Likewise.
114 (start_class): Likewise.
115 (warn_with_method): Likewise.
117 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
119 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
121 * calls.c (try_to_integrate): Don't use xxx_with_decl.
122 (expand_call): Likewise.
123 * dwarfout.c (output_reg_number): Likewise.
124 * expr.c (expand_expr): Likewise.
125 * function.c (assign_temp): Likewise.
126 (uninitialized_vars_warning): Likewise.
127 (setjmp_args_warning): Likewise.
128 (expand_function_end): Likewise.
129 * stmt.c (fixup_gotos): Likewise.
130 (warn_about_unused_variables): Likewise.
131 (expand_end_bindings): Likewise.
132 * stor-layout.c (layout_decl): Likewise.
133 (place_field): Likewise.
134 * toplev.c (check_global_declarations): Likewise.
135 (rest_of_handle_inlining): Likewise.
136 (default_tree_printer): New function.
137 (general_init): Initialize diagnostic machinery before routing
138 signals to the ICE machinery. Set default tree printer.
139 * toplev.h (pedwarn_with_decl): Remove declaration.
140 (warning_with_decl): Likewise.
141 (error_with_decl): Likewise.
142 (pedwarn): Remove attribute for the time being.
143 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
144 * varasm.c (named_section): Likewise.
145 (make_decl_rtl): Likewise.
146 (assemble_variable): Likewise.
147 (merge_weak): Likewise.
148 (declare_weak): Likewise.
150 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
151 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
152 (format_with_decl): Remove.
153 (diagnostic_for_decl): Likewise.
154 (pedwarn_with_decl): Likewise.
155 (warning_with_decl): Likewise.
156 (error_with_decl): Likewise.
157 (diagnostic_initialize): Adjust.
158 (diagnostic_count_diagnostic): Likewise.
159 (announce_function): Likewise.
160 (lhd_print_error_function): Likewise.
161 (diagnostic_report_current_module): Likewise.
162 (default_diagnostic_starter): Likewise.
163 (diagnostic_report_diagnostic): Likewise.
164 (default_diagnostic_finalizer): Likewise.
165 (verbatim): Likewise.
168 * opts.c (common_handle_option): Likewise.
169 * pretty-print.c: New file.
170 * c-pretty-print.h (pp_base): Override.
171 * c-pretty-print.c: Adjust use of macros throughout.
172 (pp_buffer): New macro.
173 (pp_newline): Likewise.
174 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
175 * Makefile.in (DIAGNOSTIC_H): New variable.
176 (c-errors.o): Use it.
177 (c-objc-common.o): Likewise.
178 (c-common.o): Likewise.
179 (c-opts.o): Likewise.
180 (c-format.o): Likewise.
181 (diagnostic.o): Likewise.
183 (toplev.o): Likewise.
184 (rtl-error.o): Likewise.
185 (dwarf2out.o): Likewise.
187 (pretty-print.o): New rule.
189 2003-07-24 Roger Sayle <roger@eyesopen.com>
191 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
192 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
193 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
194 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
195 (DEF_FRONT_END_LIB_BUILTIN): Delete.
196 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
197 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
199 * builtins.c (build_string_literal): New function to construct
200 a char* pointer to a string literal.
201 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
202 "rtx target" to be consistent with other expand_builtin_* functions.
203 Change 3rd argument from "int unlocked" to "bool unlocked".
204 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
205 c-common.c to avoid front-end dependencies. Optimize printf("")
206 as a no-op when the result isn't required. Handle embedded NULs
208 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
209 from c-common.c to avoid front-end dependencies. Likewise, optimize
210 fprintf(fp,"") as a no-op when the result isn't required, evaluating
211 fp for side-effects. Handle embedded NULs in format string.
212 (expand_builtin_sprintf): Fix typo.
213 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
214 optimizing. Adjust calls of expand_builtin_fputs to match the API
215 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
216 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
217 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
219 * c-common.c (is_valid_printf_arglist): Delete.
220 (c_expand_builtin): Delete.
221 (c_expand_builtin_printf): Moved to builtins.c. Delete.
222 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
223 (c_expand_expr): No longer treat CALL_EXPRs specially.
224 (CALLED_AS_BUILT_IN): Delete.
226 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
228 PR optimization/11631
229 * gcse.c (store_motion): Connect infinite loops to exit.
231 2003-07-24 Jason Merrill <jason@redhat.com>
233 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
234 (boolean_true_node, boolean_false_node): Likewise.
235 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
236 * tree.c (build_common_tree_nodes): Init boolean_type_node.
237 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
238 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
239 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
240 (truthvalue_true_node): Renamed from boolean_true_node.
241 (truthvalue_false_node): Renamed from boolean_false_node.
242 * c-decl.c: Just set truthvalue_* to integer_*.
243 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
245 2003-07-24 Roger Sayle <roger@eyesopen.com>
247 * c-decl.c (match_builtin_function_types): New subroutine of
248 duplicate_decls to test whether a redeclaration of a builtin
249 function is suitably close, i.e. the return type and all of
250 the argument types have the same modes as the builtin expects.
251 (duplicate_decls): Fuzzy type matching for builtin functions
252 moved to match_builtin_function_types.
254 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
256 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
259 2003-07-24 Zack Weinberg <zack@codesourcery.com>
261 * c-decl.c: Search-and-replace change 'binding level' to
262 'scope' in commentary.
263 (struct binding_level): Now struct c_scope.
264 (current_binding_level): Now current_scope.
265 (free_binding_level): Now scope_freelist.
266 (current_function_level): Now current_function_scope.
267 (global_binding_level): Now global_scope.
268 (make_binding_level): Now make_scope.
269 (pop_binding_level): Now pop_scope.
271 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
273 * configure.in (libgcc_visibility): Add missing whitespace.
275 2003-07-24 Richard Henderson <rth@redhat.com>
277 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
278 __gcc_personality_v0.
280 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
282 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
284 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
286 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
287 documentation missed from my 2003-07-09 patch.
289 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
291 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
293 * configure: Rebuild.
295 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
298 * c-typeck.c (type_lists_compatible_p): Do not compare
299 arguments if one of them is an error_mark_node
301 2003-07-24 Alan Modra <amodra@bigpond.net.au>
303 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
304 if current_function_calls_eh_return.
306 2003-07-23 Mark Mitchell <mark@codesourcery.com>
308 * doc/c-tree.texi (OFFSET_TYPE): Update description.
310 2003-07-23 Bob Wilson <bob.wilson@acm.org>
312 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
313 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
314 __umodsi3, __modsi3): Increase frame size to 32.
316 2003-07-23 Geoffrey Keating <geoffk@apple.com>
318 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
321 2003-07-23 Mark Mitchell <mark@codesourcery.com>
323 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
325 PR optimization/10679
326 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
328 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
330 PR target/11607 and PR target/11516
331 * pa.md (extzv, extv, insv): Revert latter half of last patch.
333 2003-07-22 Mark Mitchell <mark@codesourcery.com>
335 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
336 * varasam.c (output_constant): Likewise.
338 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
340 * alias.c: Fix comment formatting.
341 * c-common.c: Likewise.
342 * c-decl.c: Likewise.
343 * c-opts.c: Likewise.
344 * combine.c: Likewise.
345 * cpplib.c: Likewise.
346 * diagnostic.c: Likewise.
347 * dojump.c: Likewise.
349 * fold-const.c: Likewise.
352 * ggc-page.c: Likewise.
355 * mips-tfile.c: Likewise.
357 * regclass.c: Likewise.
358 * regmove.c: Likewise.
362 2003-07-22 Per Bothner <pbothner@apple.com>
364 * line-map.c (add_line_map): Handle invalid LEAVE request.
365 Fixes PR preprocessor/11361.
367 2003-07-22 Per Bothner <pbothner@apple.com>
369 * diagnostic.c.(diagnostic_report_current_module): Update to match
370 2003-06-05 changes to push_srcloc and pop_srcloc.
372 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
374 * doc/trouble.texi: Better document two-stage name lookup.
376 2003-07-22 Eric Christopher <echristo@redhat.com>
378 * config/s390.c (s390_valid_pointer_mode): New.
379 (TARGET_VALID_POINTER_MODE): Use.
380 (s390_emit_prologue): Add tpf profiling hooks.
381 (s390_emit_epilogue): Ditto.
382 * config/s390.h (MASK_TPF): New.
384 (POINTERS_EXTEND_UNSIGNED): Define.
385 * config/s390.md (ptr_extend): New pattern.
387 2003-07-22 Zack Weinberg <zack@codesourcery.com>
389 * hashtable.c (approx_sqrt): Make static.
390 * hashtable.h: Don't prototype approx_sqrt.
391 * line-map.c (init_line_maps): Rename linemap_init.
392 (free_line_maps): Rename linemap_free.
393 (add_line_map): Rename linemap_add.
394 (lookup_line): Rename linemap_lookup.
395 (print_containing_files): Rename linemap_print_containing_files.
396 * linemap.h: Update to match.
398 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
399 linemap routines to use new names.
401 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
403 * c-common.c (handle_packed_attribute): Don't pack a struct via a
404 typedef. Propagate packedness from a main variant.
406 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
408 * Makefile.in (install-common): Add dependency on installdirs.
410 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
412 * c-common.c (c_common_type_for_mode): Return integer types for
415 2003-07-22 Geoffrey Keating <geoffk@apple.com>
417 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
418 (finish_decl): Call maybe_apply_pragma_weak here.
419 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
420 TREE_PUBLIC and TREE_STATIC are decided.
421 (start_function): Move call to maybe_apply_pragma_weak. Check that
422 DECL_ASSEMBLER_NAME isn't set too early.
424 * cpplex.c (_cpp_process_line_notes): Mention option name in
427 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
429 * combine.c (if_then_else_cond): Simplify the comparison of
430 rtx against -1, 0, and 1.
431 * loop.c (check_dbra_loop): Likewise.
432 * optabs.c (emit_conditional_move): Likewise.
433 (emit_conditional_add): Likewise.
434 * config/i386/i386.md (*movsi_or): Likewise.
435 (*movdi_or_rex6): Likewise.
437 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
439 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
441 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
443 * cppfiles.c (open_file_pch): Don't put unused entries in the
444 splay tree. Remove dead code.
446 2003-07-21 Geoffrey Keating <geoffk@apple.com>
448 * c-common.h (num_in_fnames): Declare.
449 (c_static_assembler_name): Move from here...
450 * c-tree.h (c_static_assembler_name): ... to here.
451 * c-opts.c: Don't include langhooks-def.h.
452 (c_static_assembler_name): Move to c-decl.c.
453 (num_in_fnames): Make externally visible.
454 * c-decl.c: Include langhooks-def.h.
455 (c_static_assembler_name): Move from c-opts.c.
456 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
457 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
459 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
460 when it's not needed.
462 2003-07-21 Jakub Jelinek <jakub@redhat.com>
464 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
465 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
466 (rs6000_emit_prologue): Save FPRs inline if set.
468 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
470 * config/ia64/ia64.md (prefetch): Support predicate.
472 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
474 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
475 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
478 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
480 PR optimization/11536
481 * unroll.c (loop_iterations): Do not replace a register holding
482 the final value by its equivalent before the loop if it is not
485 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
487 * doc/extend.texi: Fixes to spelling, grammar, and diction.
489 2003-07-21 Ben Elliston <bje@wasabisystems.com>
491 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
492 (V850 Options): Spelling fixes.
494 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
496 * doc/invoke.texi: Fixes to style, grammar and diction.
498 2003-07-20 Roger Sayle <roger@eyesopen.com>
500 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
501 * system.h (SMALL_STACK): Poison obsolete target macro.
502 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
504 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
506 * configure.in: Cache the results of testing for cmp's capabilities.
507 * configure: Regenerate.
509 2003-07-20 Mark Mitchell <mark@codesourcery.com>
512 * dwarf2out.c (gen_enumeration_type_die): Remember that
513 enumerators can be unsigned.
515 2003-07-19 Zack Weinberg <zack@codesourcery.com>
517 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
518 (push_label_level, pop_label_level): Kill.
519 (struct binding_level): Rename level_chain to outer.
520 Add outer_function field. Change parm_flag, function_body,
521 keep, keep_if_subblocks to 1-bit bitfields of type bool.
522 (current_function_level): New variable.
523 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
524 (keep_next_level, declare_parm_level, warn_if_shadowing):
526 (struct language_function): Kill named_labels, shadowed_labels fields.
527 (c_init_decl_processing, start_function, c_push__function_context)
528 (c_pop_function_context): No need to muck with named_labels nor
531 (make_binding_level): No need to clear the structure here.
532 (pop_binding_level): Always operate on current_binding_level.
533 Update current_function_level if necessary.
534 (pushlevel): Don't clear named_labels. Update current_function_level
535 if necessary. Use "true" and "false" where appropriate.
536 (poplevel): Diagnose labels defined but not used, or vice
537 versa, and clear out label-meanings leaving scope, while
538 walking down the decls list, for all binding levels.
539 Handle LABEL_DECLs appearing in the shadowed list.
540 pop_binding_level takes no arguments.
541 (pushdecl_function_level): Use current_function_level.
543 (make_label, bind_label): New static functions.
544 (declare_label): New exported function.
545 (lookup_label, define_label): Rewritten for new data structure.
546 (shadow_label): Kill.
548 * c-tree.h: Prototype declare_label; don't prototype
549 push_label_level, pop_label_level, nor shadow_label.
550 * c-parse.in: Remove all calls to push_label_level and
551 pop_label_level. Use declare_label for __label__ decls.
553 * doc/extend.texi: Clarify that __label__ can be used to
554 declare labels with local scope in any nested block, not
555 just statement expressions. Cross-reference nested functions
556 section from local labels section.
558 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
560 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
562 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
564 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
566 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
568 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
569 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
571 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
573 * config/s390/s390.c (legitimize_pic_address): Access local symbols
574 relative to the GOT instead of relative to the literal pool base.
575 (s390_output_symbolic_const): Handle new GOT-relative accesses.
576 * config/s390/s390.md ("call"): Access local functions and PLT stubs
577 relative to the GOT instead of relative to the literal pool base.
578 ("call_value"): Likewise.
579 ("call_value_tls"): Likewise.
581 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
582 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
583 (s390_chunkify_finish): Likewise.
584 (s390_chunkify_cancel): Likewise.
585 (s390_reorg): Adapt caller.
586 (find_base_register_in_addr,
587 find_base_register_ref, replace_base_register_ref): Delete.
588 (find_ltrel_base, replace_ltrel_base): New functions.
589 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
590 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
591 base vs. index register usage.
592 (struct constant_pool): Remove 'anchor'.
593 (s390_add_anchor): Delete.
594 (s390_dump_pool): Remove anchor handling.
595 * config/s390/s390.md ("reload_anchor"): Remove.
597 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
598 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
599 (s390_emit_prologue): Use it.
600 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
601 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
602 hard-code register 14.
603 * config/s390/s390-protos.h (s390_load_got): Declare.
605 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
606 Support TImode constants.
607 * config/s390/s390.md ("consttable_ti"): New.
608 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
610 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
611 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
612 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
613 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
614 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
615 New symbolic constants.
616 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
617 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
618 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
619 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
620 symbolic UNSPEC values.
621 * config/s390/s390.c (larl_operand, s390_short_displacement,
622 bras_sym_operand, s390_cannot_force_const_mem,
623 s390_delegitimize_address, s390_decompose_address,
624 legitimize_pic_address, s390_output_symbolic_const,
625 s390_function_profiler): Use symbolic UNSPEC values.
627 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
629 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
630 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
631 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
632 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
633 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
634 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
635 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
636 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
637 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
638 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
639 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
640 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
641 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
642 postreload.c prefix.c print-tree.c protoize.c ra-build.c
643 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
644 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
645 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
646 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
647 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
648 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
651 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
653 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
654 * toplev.h (warning): Remove attribute.
656 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
658 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
659 (pop_label_level): Likewise.
660 (duplicate_decls): Likewise.
661 (implicitly_declare): Likewise.
662 (shadow_label): Likewise.
663 (start_decl): Likewise.
664 (finish_decl): Likewise.
665 (grokdeclarator): Likewise.
666 (get_parm_info): Likewise.
667 (detect_field_duplicates): Likewise.
668 (finish_struct): Likewise.
669 (start_function): Likewise.
670 (store_parm_decls): Likewise.
671 (finish_function): Likewise.
672 (c_expand_body_1): Likewise.
673 (check_for_loop_decls): Likewise.
674 (merge_translation_unit_decls): Likewise.
676 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
678 * common.opt: Document --param.
679 * opts.c (columns, undocumented_msg): New.
680 (print_help): Get number of columns from environment. Print
681 --param help. Tweak newline handling.
682 (print_param_help): New.
683 (print_filtered_help): Better handling of duplicates. Complain
684 about undocumented switches.
686 (wrap_help): Improve wrapping, use COLUMNS.
687 * opts.sh: Ignore comments in records.
688 * params.def: Fix typos and remove trailing periods.
689 * toplev.c (display_help): Don't dump --param help.
690 * doc/sourcebuild.texi: Update.
692 2003-07-18 Richard Henderson <rth@redhat.com>
695 * optabs.c (prepare_operand): Fail gracefully instead of abort
696 if the predicate doesn't satisfy.
697 (gen_cond_trap): Allow prepare_operand to fail.
699 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
701 * c-common.c: Don't undefine GCC_DIAG_STYLE.
702 (fname_decl): Don't use xxx_with_decl.
703 (c_add_case_label): Likewise.
704 (handle_section_attribute): Likewise.
705 (handle_alias_attribute): Likewise.
706 (handle_no_instrument_function_attribute): Likewise.
707 (handle_no_limit_stack_attribute): Likewise.
708 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
709 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
711 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
713 * Makefile.in (ifcvt.o): Add cfgloop.h.
714 * basic-block.h (EDGE_LOOP_EXIT): New flag.
715 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
716 * ifcvt.c: Include cfgloop.h.
717 (mark_loop_exit_edges): New static function.
718 (if_convert): Call it.
719 (find_if_header): Ignore branches out of loops.
721 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
723 * combine.c (simplify_comparison): Don't share rtx when converting
724 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
726 2003-07-18 David Edelsohn <edelsohn@gnu.org>
728 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
729 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
730 (MUST_PASS_IN_STACK): Define.
731 (BLOCK_REG_PADDING): Define.
733 2003-07-18 Richard Henderson <rth@redhat.com>
735 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
736 to skip the addr_vec.
738 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
740 * combine.c (combinable_i3pat): Don't forbid occurrences of
741 i2dest or i1dest in inner_dest if inner_dest is a mem.
743 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
745 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
747 2003-07-17 Jakub Jelinek <jakub@redhat.com>
750 * loop.c (basic_induction_var): Check if convert_modes emitted any
751 instructions. Remove them and return 0 if so.
753 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
755 PR optimization/11083
756 * toplev.c (rest_of_handle_addresof): Rename into
757 rest_of_handle_addressof. Delete unreachable blocks
758 if dead edges were purged after the addressof pass.
760 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
762 * Makefile.in, configure, configure.in: Remove handling of
763 lang-options.h and options_.h.
764 * toplev.c (struct lang_opt, documented_lang_options): Remove.
765 (display_help): Don't use documented_lang_options.
767 2003-07-17 Zack Weinberg <zack@codesourcery.com>
769 * c-decl.c (pushdecl_function_level): Make static, return nothing.
770 (kept_level_p): Fold into poplevel.
771 (undeclared_variable): Moved here from c-typeck.c. Export.
772 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
773 (undeclared_variable): Prototype here. Don't prototype
774 kept_level_p nor pushdecl_function_level.
775 * c-parse.in: Change first argument to poplevel from
776 "kept_level_p()" to "KEEP_MAYBE".
777 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
779 2003-07-17 Roger Sayle <roger@eyesopen.com>
781 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
782 commutative operands instead of modifying the RTL in-place.
784 2003-07-17 Mark Mitchell <mark@codesourcery.com>
786 PR optimization/11557
787 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
788 unless we know which function is being called.
790 2003-07-17 Roger Sayle <roger@eyesopen.com>
792 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
793 whether to reorder the operands of a commutative binary operator.
795 2003-07-17 Roger Sayle <roger@eyesopen.com>
797 * fold-const.c (const_binop): Avoid performing the FP operation at
798 compile-time, if either operand is NaN and we honor signaling NaNs,
799 or if we're dividing by zero and either flag_trapping_math is set
800 or the desired mode doesn't support infinities.
801 (fold_initializer): New function to fold an expression ignoring any
802 potential run-time exceptions or traps.
803 * tree.h (fold_initializer): Prototype here.
804 * c-typeck.c (build_binary_op): Move to the end of the file so
805 that intializer_stack is in scope. If constructing an initializer,
806 i.e. when initializer_stack is not NULL, use fold_initializer to
808 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
809 performing FP operations at compile-time, if they would raise an
810 exception at run-time.
812 2003-07-17 Geoffrey Keating <geoffk@apple.com>
815 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
816 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
817 (GTFILES): Add langhooks.c.
818 (gt-langhooks.h): New.
819 * c-common.h (c_static_assembler_name): Prototype.
820 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
821 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
822 * c-opts.c: Include langhooks-def.h.
823 (c_static_assembler_name): New.
824 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
826 (lhd_set_decl_assembler_name): Give static objects with context
828 * varasm.c (var_labelno): Delete.
829 (make_decl_rtl): Don't change the assembler name once it's set.
831 * c-opts.c (this_input_filename): New.
832 (finish_options): Take new parameter, name of file being compiled.
833 Update callers. Set this_input_filename.
834 (push_command_line_include): Use this_input_filename not
837 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
839 * Makefile.in: Depend .pot generation on options.c.
840 * po/exgettext: Add an extra_files variable containing additional
843 2003-07-17 Zack Weinberg <zack@codesourcery.com>
845 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
846 c_write_global_declarations.
848 * c-decl.c: Fix typos in several comments. Remove all
849 #if 0 blocks; reindent as needed. Remove unused argument
850 to declare_parm_level; all callers changed.
851 * c-parse.in: Update calls to declare_parm_level. Avoid
852 issuing a double warning in some circumstances.
853 * c-typeck.c: Update calls to declare_parm_level.
854 * c-tree.h: Update prototype of declare_parm_level.
856 * c-pragma.c (apply_pragma_weak): Don't complain about a
857 redundant #pragma weak.
859 * objc/objc-act.c (forward_declare_categories,
860 build_selector_reference_decl, build_class_reference_decl,
861 build_objc_string_decl, synth_forward_declarations,
862 build_protocol_reference): Set TREE_PUBLIC on synthetic
863 forward decl to 0, consistent with eventual definition.
864 Correct comments to match.
866 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
867 in regexp that don't form a range expression.
868 * fixinc/fixincl.def: Regenerate.
870 2003-07-17 Richard Henderson <rth@redhat.com>
873 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
874 even with !TARGET_CONST_GP.
875 (ia64_function_ok_for_sibcall): Reject non-local functions.
877 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
879 * c-common.c (c_estimate_num_insns_1): Don't handle
881 * expr.c (safe_from_p): Likewise.
882 * gengtype.c (adjust_field_tree_exp): Likewise.
883 * stmt.c (warn_if_unused_value): Likewise
884 * tree.c (first_rtl_op): Likewise.
885 * tree.def: Don't define METHOD_CALL_EXPR.
886 * java/lang.c (java_estimate_num_insns_1): Don't handle
889 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
892 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
893 and its restrictions for the SPARC64 port.
894 Move the entry of "-mimpure-text" before that of "-mv8".
896 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
897 Phil Edwards <phil@jaj.com>
899 * doc/install.texi (*-*-solaris2*): Document the step-by-step
900 procedure to bootstrap and install.
901 Document the preference for the legacy Sun tools in /usr/bin
902 over the POSIX tools in /usr/xpg4/bin for the build process.
904 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
906 * c.opt: Document Uncodumented; use it. Document ObjC options.
907 * opts.c (print_filtered_help): Skip undocumented switches.
908 * opts.h (CL_UNDOCUMENTED): New.
909 * opts.sh: Handle Undocumented.
910 * toplev.c (documented_lang_options): Prevent its becoming empty.
912 * lang-options.h: Remove.
914 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
916 * loop.c (check_ext_dependent_givs): Pass const struct loop *
917 instead of struct loop_info * as argument. Accept BIVs with
918 increment +/- 1 provided there is a friendly exit test against
919 a loop-invariant value.
920 (strength_reduce): Adapt call to check_ext_dependent_givs.
922 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
923 Con Bradley <con.bradley@superh.com>
925 * sh-protos.h (sh_get_pr_initial_val): Declare.
926 * sh.c (regno_reg_class): Make its elements type enum reg_class.
927 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
928 and live_regs_mask arguments. Changed all callers.
929 (save_schedule_s): New structure.
930 (save_schedule): New typedef.
931 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
932 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
933 In interrupts handlers, also save registers that are usually
934 partially saved, and make sure there is at least one general purpose
935 register saved if a target register needs saving.
936 Add casts in comparisons to avoid warnings.
937 (sh_media_register_for_return): return -1 for interrupt handlers.
938 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
939 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
940 registers used are available.
941 Set RTX_FRAME_RELATED_P where appropriate.
942 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
943 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
944 (initial_elimination_offset): Likewise.
945 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
946 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
947 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
948 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
949 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
950 and for target registers.
951 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
952 (regno_reg_class): Make its elements type enum reg_class.
953 (CONSTRAINT_LEN): Don't use isdigit.
954 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
955 (FUNCTION_ARG): Add parentheses to avoid warnings.
956 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
957 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
958 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
959 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
960 * sh.md (xordi3+1): Remove unused variable regno.
961 (return_media): Check that tr0 is available before using it.
963 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
965 * c.opt: Document more options.
967 2003-07-16 Roger Sayle <roger@eyesopen.com>
969 * combine.c (subst): Also handle (subreg (const_double ...)) case
970 if created by a substitution, by using the original inner mode.
972 2003-07-16 Roger Sayle <roger@eyesopen.com>
974 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
975 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
976 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
978 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
980 * doc/install.texi (--without-headers): New.
983 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
984 (machopic_output_function_base_name): New; print the true pic label.
985 (machopic_classify_ident): Pic Base is always a defined data.
986 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
987 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
989 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
990 if they are not floating point registers.
993 * ggc.h: Add header guards.
994 * c-decl.c (finish_struct): Sort fields if
995 number greater than 15 and there are no
996 anonymous structs/unions.
997 * c-common.h: Include ggc.h.
998 (sorted_fields_type): New struct.
999 (field_decl_cmp): New prototype.
1000 (resort_sorted_fields): New prototype.
1001 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1002 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1003 as s, removing other fields.
1004 * c-typeck.c (lookup_field): Use s in lang_type.
1005 These were mostly moved from cp/class.c:
1006 * c-common.c (field_decl_cmp): New static function.
1007 (field_decl_cmp): New function.
1008 (resort_sorted_fields): New function.
1010 2003-07-16 Geoffrey Keating <geoffk@apple.com>
1012 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1013 to do most of the work.
1015 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1017 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1018 * config/mmix/mmix.c: Convert functions to ISO C90.
1019 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1021 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1023 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1025 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1027 2003-07-16 Jakub Jelinek <jakub@redhat.com>
1029 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1030 (uw_update_context_1): Use it.
1031 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1032 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1033 in parent frame if _Unwind_* called directly instead of through
1035 (rs6000_emit_eh_toc_restore): Remove.
1036 (rs6000_emit_prologue): Update stack pointer before doing any saving
1037 if current_function_calls_eh_return. Generate unwind info for $r2.
1038 (rs6000_emit_epilogue): Restore stack pointer after doing all
1039 restoring if current_function_calls_eh_return. Restore $r2.
1040 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1041 * config/rs6000/rs6000.md (eh_return): Remove call to
1042 rs6000_emit_eh_toc_restore.
1043 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1044 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1046 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1048 * expr.c (emit_block_move): Don't move anything if size is const 0.
1049 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1052 2003-07-15 David S. Miller <davem@redhat.com>
1054 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1055 emit nop if the last real insn is CALL_INSN.
1057 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1059 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1061 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1063 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1065 * config/i386/winnt.c (associated_type): Artificial methods are not
1066 affected by the import/export status of their class unless they are
1068 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1070 * config/i386/winnt.c: Fix GCC copyright comment.
1072 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1075 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1076 not recursing on hard error.
1077 (diagnostic_for_decl): Likewise.
1078 * diagnostic.def: Rearrange.
1080 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1082 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1083 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1085 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1086 Richard Henderson <rth@redhat.com>
1088 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1089 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1090 (_Unwind_SetGR): Likewise.
1091 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1092 (Unwind_SpTmp): New typedef.
1093 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1094 (uw_update_context): Use _Unwind_GetPtr.
1095 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1096 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1097 Use _Unwind_SetSpColumn.
1098 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1101 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
1103 * c.opt: Document more options.
1104 * toplev.c (documented_lang_options): Remove all local help strings.
1106 2003-07-15 Mark Mitchell <mark@codesourcery.com>
1109 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1112 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1115 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1116 swap comparison operands if doing so would generate an
1117 unrecognizable insn.
1119 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1121 PR optimization/11320
1122 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1123 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1124 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1125 current_sched_info->compute_jump_reg_dependencies. Record which
1126 registers are used and which registers are set by the jump.
1127 Clear deps->reg_conditional_sets after a barrier.
1128 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1129 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1130 (init_deps): Initialize reg_conditional_sets.
1131 (free_deps): Clear reg_conditional_sets.
1132 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1133 Mark registers live on entry of the fallthrough block and conditionally
1134 set as set by the jump. Mark registers live on entry of non-fallthrough
1135 blocks as used by the jump.
1136 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1137 Mark new parameters as unused.
1139 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1141 * doc/invoke.texi: Resync MIPS -march documentation.
1143 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1145 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1146 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1147 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1148 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1149 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1150 (mips_issue_rate): Handle PROCESSOR_R9000.
1151 (mips_use_dfa_pipeline_interface): Likewise.
1152 * config/mips/9000.md: New file.
1153 * config/mips/mips.md: Include it.
1154 (define_attr cpu): Add r9000.
1155 (mulsi3_mult3): Use "mul" for rm9000 code.
1157 2003-07-15 Stan Cox <scox@redhat.com>
1159 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1160 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1161 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1162 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1163 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1164 (mips_issue_rate): Handle PROCESSOR_R7000.
1165 (mips_use_dfa_pipeline_interface): Likewise.
1166 * config/mips/7000.md: New file.
1167 * config/mips/mips.md: Include it.
1168 (define_attr cpu): Add r7000.
1169 (mulsi3_mult3): Use "mul" for rm7000 code.
1171 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1173 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1174 the conditional move patterns.
1175 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1176 Check for condmove type.
1177 (ir_vr54_arith): Add move type.
1178 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1179 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1181 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
1183 * c-opts.c (print_help): Remove.
1184 (c_common_handle_option): Don't handle --help.
1185 * c.opt: Document some options.
1187 * opts.c (print_filtered_help): New.
1188 (print_help): Use it.
1190 2003-07-14 Geoffrey Keating <geoffk@apple.com>
1192 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1193 * tree.c: (build_common_tree_nodes_2): Likewise.
1194 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1195 (V4DF_type_node): New.
1197 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1199 (finish_options): Reset init_cursor.
1201 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1203 * expr.c (expand_assignment): Remove an unused argument
1205 * expr.h: Update the prototype.
1206 * function.c: Update the callers.
1209 2003-07-14 Mark Mitchell <mark@codesourcery.com>
1212 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1215 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1217 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1218 with __cplusplus, not "we must use the C++ compiler's type"
1219 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1220 * fixinc/fixincl.x: Regenerate.
1222 2003-07-14 Geoffrey Keating <geoffk@apple.com>
1224 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1225 and unseen_objects from the global data before calling
1226 __deregister_frame_info_bases.
1227 (examine_objects): Insert objects into the seen_objects list,
1229 (_Unwind_Find_FDE): Always unlock the global object lists, even if
1230 we couldn't allocate a data structure to put in it.
1232 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1233 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1234 (SET_TYPE_PROTOCOL_LIST): New.
1235 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1236 (get_object_reference): Likewise.
1238 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
1240 * cfglayout.c (locator_file): Break out from ....
1241 (insn_file): ... here.
1242 (locator_line): Break out from ....
1243 (insn_line): ... here.
1244 * rtl.h (locator_file, locator_line): Declare.
1245 (final_start_function): Set proper line/file info.
1247 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1249 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1250 handled by pp_c_cast_expression.
1252 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1254 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1255 allocate 32768 bytes of stack. Use addition rather than subtraction
1256 when a single insn is enough.
1257 * config/mips/mips.md: Remove insns and splitters for subtracting
1259 (subsi3): Only accept register operands.
1260 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
1261 (subdi3_internal_3, subsi3_internal_2): Likewise.
1262 (casesi): Use expand_binop to subtract the lower bound.
1264 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1266 * config/mips/mips.c (mips_in_small_data_p): Don't handle
1267 TARGET_MIPS16 specially.
1269 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1271 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1272 mips_output_aligned_bss.
1273 * config/mips/linux.h: Likewise.
1274 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1275 * config/mips/mips.c (mips_output_aligned_bss): New function.
1277 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1278 * config/mips/elf64.h: Likewise.
1280 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1281 mips_declare_object_name.
1282 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1283 * config/mips/elf64.h: As for elf.h.
1284 * config/mips/iris6.h: Likewise.
1285 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1286 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1287 do...while (0) block.
1288 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1289 (mips_finish_declare_object): Declare.
1290 * config/mips/mips.c (mips_declare_object_name): New function.
1291 (mips_finish_declare_object): New function.
1293 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1294 * config/mips/linux.h: Likewise.
1296 * config/mips/mips.c (inside_function): Delete.
1297 (file_in_function_warning, ignore_line_number): Delete.
1298 (mips_output_filename): Don't warn about changing filenames within
1300 (mips_output_lineno): Update accordingly.
1301 (mips_output_function_prologue): Don't reset the deleted variables.
1302 * config/mips/mips.h (inside_function): Delete.
1303 (file_in_function_warning, ignore_line_number): Delete.
1305 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1306 * config/mips/elf64.h: Likewise.
1307 * config/mips/openbsd.h: Likewise.
1308 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1309 * config/mips/linux.h: Likewise.
1310 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1311 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1313 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1314 to the list of include files when using gas.
1315 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1316 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1317 * config/mips/elf64.h: Likewise.
1318 * config/mips/iris5.h: Likewise.
1319 * config/mips/linux.h: Likewise.
1320 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1321 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1322 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1323 * config/mips/sdb.h: ...this new file.
1325 2003-07-14 Douglas Rupp <rupp@gnat.com>
1327 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1328 argument to getcwd; use fixed buffer instead.
1330 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1332 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1333 * fixinc/fixinc.wrap: Delete.
1335 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1337 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1340 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1342 * ggc-page.c (struct globals): Add new fields to keep track of the
1343 total allocated memory and overhead.
1344 (ggc_print_statistics): Print them.
1345 (ggc_alloc): Keep track of the total allocated memory and the
1348 * tree.c (dump_tree_statistics): Increase spacing.
1349 (enum tree_node_kind): Move to ...
1350 * tree.h (enum tree_node_kind): ... here.
1351 (tree_node_counts, tree_node_sizes): Declare.
1353 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
1355 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1357 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1359 PR optimization/11440
1360 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1363 2003-07-14 Alan Modra <amodra@bigpond.net.au>
1365 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1366 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1367 (emit_group_load, emit_group_store): Adjust declarations.
1368 Remove most occurrences of #ifdef TREE_CODE.
1369 * expr.c (emit_group_load): Add "type" param, and use
1370 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
1371 aligned accesses if !SLOW_UNALIGNED_ACCESS.
1372 (emit_group_store): Likewise.
1373 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1374 emit_group_load and emit_group_store calls.
1375 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
1376 BLOCK_REG_PADDING to determine whether we need endian_correction.
1377 (load_register_parameters): Localize vars. Handle shifting of
1378 small values to the correct end of regs. Adjust emit_group_load
1380 (expand_call, emit_library_call_value_1): Adjust emit_group_load
1381 and emit_group_store calls.
1382 * function.c (assign_parms): Set mem alignment for stack slots.
1383 Adjust emit_group_store call. Store values at the "wrong" end
1384 of regs to the stack. Use BLOCK_REG_PADDING.
1385 (locate_and_pad_parm): Save where_pad.
1386 (expand_function_end): Adjust emit_group_load call.
1387 * stmt.c (expand_value_return): Adjust emit_group_load call.
1388 * Makefile.in (calls.o): Depend on $(OPTABS_H).
1389 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1390 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1391 (MUST_PASS_IN_STACK): Define.
1392 (BLOCK_REG_PADDING): Define.
1393 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1394 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1395 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1396 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1397 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1399 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
1401 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1403 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1405 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1406 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1408 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1411 * toplev.c: Don't cut off option names.
1413 2003-07-13 Andreas Jaeger <aj@suse.de>
1415 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1416 to integer of different size.
1418 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
1420 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1421 to (eq (and X 1) 0).
1423 2003-07-13 Andreas Jaeger <aj@suse.de>
1425 * config.gcc: Add pmmintrin.h for x86_64-*-*.
1427 2003-07-13 Zack Weinberg <zack@codesourcery.com>
1429 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1430 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1431 list. Move these all together down by cpplib.
1433 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1434 definition of CPPCHAR_SIGNED_T.
1436 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1437 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1438 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1440 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1441 * cppinit.c (cpp_create_reader): Likewise.
1443 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1444 * cpptrad.c: Likewise. All callers changed.
1445 * cpplib.c: All callers changed.
1446 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1447 * hashtable.h: Define GTY(x) to nothing here too.
1449 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1451 * stor-layout.c (compute_record_mode): Remove very obsolete test
1452 that forces BLKmode for records with fields crossing word boundary.
1454 2003-07-13 Zack Weinberg <zack@codesourcery.com>
1456 * Makefile.in: Remove orphan reference to acconfig.h.
1458 2003-07-13 Andreas Jaeger <aj@suse.de>
1460 * cgraphunit.c: Convert prototypes to ISO C90.
1462 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1464 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1466 * fixinc/fixincl.x: Rebuild.
1468 2003-07-12 Zack Weinberg <zack@codesourcery.com>
1470 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1471 i?86-*-*. Use correct name of cache variable.
1472 * configure: Regenerate.
1474 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1476 * config/alpha/alpha.c: Fix comment typos.
1477 * config/alpha/alpha.md: Likewise.
1478 * config/arm/arm.c: Likewise.
1479 * config/arm/arm.md: Likewise.
1480 * config/arm/lib1funcs.asm: Likewise.
1481 * config/avr/avr.md: Likewise.
1482 * config/arm/README-interworking: Fix typos.
1484 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1486 * c-format.c: Fix comment formatting.
1487 * c-typeck.c: Likewise.
1488 * coverage.c: Likewise.
1489 * cppcharset.c: Likewise.
1490 * cpplib.c: Likewise.
1491 * dbxout.c: Likewise.
1492 * gcov-io.h: Likewise.
1493 * toplev.c: Likewise.
1495 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1497 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
1500 2003-07-12 Zack Weinberg <zack@codesourcery.com>
1502 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1503 uses three-argument AC_DEFINE so no acconfig.h entries are
1505 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1506 which contains the GAS version number as a scaled integer.
1507 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
1508 ability to check for ELF assembler.
1509 (gcc_GAS_CHECK_FEATURE): New macro.
1510 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
1511 assembler feature checks using gcc_GAS_CHECK_FEATURE.
1512 Use three-argument AC_DEFINE everywhere.
1513 * acconfig.h: Deleted.
1514 * config.in, configure: Regenerate.
1516 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1518 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1520 * fixinc/fixincl.x: Regenerate.
1522 * fixinc/inclhack.def (gnu_types): Improve comment.
1524 2003-07-12 Andreas Jaeger <aj@suse.de>
1526 * fp-test.c (main): Use ISO C90 prototype.
1528 * version.c: Remove unneded include of ansidecl.h.
1530 * cgraph.h: Convert prototypes to ISO C90.
1531 * cgraph.c: Likewise.
1532 * fix-header.c: Likewise.
1534 * protoize.c: Likewise.
1536 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
1538 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1541 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
1542 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1544 * cgraph.c (cgraph_max_uid): New global variable.
1545 (cgraph_node): Set uid field.
1546 (create_edge): Keep inline flags consistent.
1547 (dump_cgraph): Dump more info.
1548 * cgraph.h (struct cgraph_local_info): Remove inline_many and
1549 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1550 (struct cgraph_global_info): Add insns, calls, cloned_times,
1552 (struct cgraph_node): Add uid.
1553 (struct cgraph_edge): Add inline_call.
1554 (cgraph_max_uid, cgraph_inline_p): Declare.
1555 * cgraph.c: Include params.h and fibheap.h
1556 (cgraph_mark_functions_to_inline_once): Kill.
1557 (INSNS_PER_CALL): New constant.
1558 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1560 (cgraph_finalize_function): Do not analyze inlining.
1561 (cgraph_finalize_compilation_unit): Set inlining attributes.
1562 (cgraph_mark_functions_to_output): More consistency checks.
1563 (cgraph_optimize_function): Set current_function_decl to NULL.
1564 (cgraph_expand_function): Use new inline flags.
1565 (cgraph_postorder): Expand from cgraph_expand_functions.
1566 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1567 (cgraph_inlined_into, cgraph_inlined_callees,
1568 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1569 cgraph_mark_inline, cgraph_check_inline_limits,
1570 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
1571 cgraph_decide_inlining, cgraph_inline_p): New functions.
1572 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1573 PARAM_INLINE_UNIT_GROWTH): New parameters.
1574 * tree-inline.c (struct inline_data): New field current_decl.
1575 (expand_call_inline): Avoid forward declarations; use
1576 inlinable_function_p.
1577 (optimize_inline_calls): Set id.current_decl.
1579 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1581 * configure.in: Remove wrongly added definition of
1583 * configure: Regenerate.
1585 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1587 * rtl.def (NOTE): Do not use padding.
1589 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
1591 * doc/install.tex: Update required binutils for i?86-*-linux*
1593 2003-07-11 Richard Henderson <rth@redhat.com>
1595 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1597 2003-07-11 Mark Mitchell <mark@codesourcery.com>
1599 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1600 TRANSLATION_UNIT_DECL as top_level.
1602 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1604 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1605 then fall back to cmpstrM.
1606 * builtins.c (expand_builtin_memcmp): Likewise.
1607 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1608 (s390_expand_cmpmem): ... this.
1609 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1610 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1611 from cmpstr* patterns. Rename call to s390_expand_cmpstr
1612 to s390_expand_cmpmem.
1613 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1614 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
1616 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1618 * doc/md.texi (cmpstrM): Describe as String compare insn, not
1622 2003-07-11 Loren James Rittle <ljrittle@acm.org>
1624 * config/i386/freebsd.h (SET_ASM_OP): Remove.
1625 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1626 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1627 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1629 2003-07-11 Richard Henderson <rth@redhat.com>
1631 * function.c (assign_parms): Don't recombine complex args if
1632 fnargs is unchanged from orig_fnargs.
1633 (split_complex_args): Return args without complex before copying.
1634 Re-layout the modified parameters.
1636 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
1638 * regclass.c (choose_hard_reg_mode): Add third argument.
1639 Changed all callers.
1640 * rtl.h (choose_hard_reg_mode): Update declaration.
1641 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1642 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1644 2003-07-11 Geoffrey Keating <geoffk@apple.com>
1646 * c-decl.c (finish_decl): Handle 'used' here...
1647 * cgraphunit.c (cgraph_finalize_function): ... and here ...
1648 * c-common.c: (handle_used_attribute): ... not here.
1650 * configure.in (onstep): Support --enable-intermodule.
1651 * Makefile.in (OBJS-common): New.
1653 (OBJS-archive): New.
1654 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1655 (OBJS-onestep): New.
1656 (libbackend.a): Support @onestep@.
1657 (libbackend.o): New.
1658 * configure: Regenerate.
1660 * c-common.h (c_reset_state): New prototype.
1661 (c_parse_file): New prototype.
1662 (finish_file): Move prototype from c-tree.h.
1663 * c-decl.c: Include <hashtab.h>.
1664 (builtin_decls): New.
1665 (current_file_decl): New.
1666 (duplicate_decls): Add extra parameter. Change all callers. Don't
1667 output duplicate common symbols.
1668 (link_hash_hash): New.
1669 (link_hash_eq): New.
1670 (poplevel): Handle popping of the top level.
1671 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1672 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1673 (pushdecl_top_level): Likewise.
1674 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1675 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1676 (finish_decl): Handle TRANSLATION_UNIT_DECL.
1677 (merge_translation_unit_decls): New.
1678 (c_write_global_declarations): New.
1679 (c_reset_state): New.
1680 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1681 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1682 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1683 TRANSLATION_UNIT_DECL.
1684 (c_objc_common_finish_file): Call merge_translation_unit_decls.
1685 * c-opts.c (in_fnames): Rename from in_fname.
1686 (c_common_decode_option): Handle multiple input filenames.
1687 (c_common_post_options): Likewise.
1688 (c_common_parse_file): Likewise; also, call c_parse_file rather than
1690 * c-parse.in: Move cleanup code to c_parse_file.
1691 (free_parser_stacks): Move contents to c_parse_file.
1692 (c_parse_file): New.
1693 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1695 (C_DECL_FILE_SCOPE): New.
1696 (finish_file): Move prototype to c-common.h.
1697 (merge_translation_unit_decls): New prototype.
1698 (comptypes): Add extra parameter to prototype.
1699 (c_write_global_declarations): New prototype.
1700 * c-typeck.c (tagged_types_tu_compatible_p): New.
1701 (function_types_compatible_p): Add extra parameter, change all callers.
1702 (type_lists_compatible_p): Likewise.
1703 (comptypes): Likewise.
1704 (struct tagged_tu_seen): New.
1705 (tagged_tu_seen_base): New.
1706 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1707 (c_mark_addressable): Remove #if 0 code.
1708 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1709 comment explaining why it shouldn't have to.
1710 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1712 * cppinit.c (cpp_read_next_file): New.
1713 (cpp_read_main_file): Use it.
1714 * cpplib.c (undefine_macros): New.
1715 (cpp_undef_all): New.
1716 * cpplib.h (cpp_read_next_file): Prototype.
1717 (cpp_undef_all): Prototype.
1718 * langhooks-def.h (write_global_declarations): Remove prototype.
1719 * toplev.h (write_global_declarations): Add prototype.
1720 * tree.c (decl_type_context): Use switch statement, handle
1721 TRANSLATION_UNIT_DECL.
1722 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1723 (TRANSLATION_UNIT_DECL): New kind of tree.
1724 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1725 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1726 * doc/invoke.texi: Make attempt to document new functionality.
1728 2003-05-19 Per Bothner <bothner@apple.com>
1730 * gcc.c (combine_inputs): New.
1731 (process_command): Set combine_inputs.
1732 (do_spec_1): Handle combine_inputs.
1735 2003-07-10 James E Wilson <wilson@tuliptree.org>
1737 PR optimization/9745
1738 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1739 loop_insn_emit_before.
1740 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1742 2003-07-10 Zack Weinberg <zack@codesourcery.com>
1744 * cppcharset.c: Fix comment.
1745 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1746 (EILSEQ): #define to EINVAL if not already defined.
1747 (convert_using_iconv): #if out when !HAVE_ICONV.
1748 (init_iconv_desc): Handle !HAVE_ICONV here...
1749 (cpp_init_iconv): ...not here.
1751 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
1753 * common.opt: More --help messages.
1754 * opts.c (print_help): Use puts().
1755 * toplev.c (f_options): Remove help text.
1756 (display_help): Don't dump f_options.
1758 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
1760 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
1761 Move i?86-*-interix* to the don't-fix list.
1762 * fixinc/fixinc.interix: Delete with extreme prejudice.
1764 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
1767 * doc/install.texi: Document requirements for ia64-*-hpux* target.
1769 2003-07-10 Roger Sayle <roger@eyesopen.com>
1771 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1773 2003-07-10 Zack Weinberg <zack@codesourcery.com>
1775 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1776 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1777 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1778 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1779 convert_no_conversion, convert_using_iconv): New functions.
1780 (APPLY_CONVERSION): New macro.
1781 (struct conversion, conversion_tab): New data structure.
1782 (init_iconv_desc): Check conversion_tab for a custom conversion
1783 primitive before trying to use iconv.
1784 (convert_cset): Deleted.
1785 (cpp_init_iconv): Use UTF- terminology, not UCS-.
1786 (_cpp_destroy_iconv): Update to match.
1787 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1788 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1789 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1790 (_cpp_interpret_string_notranslate): New function, moved here
1793 * cpphash.h (convert_f, struct cset_converter): New types.
1794 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1795 are now struct cset_converter, not bare iconv_t.
1797 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1798 all callers changed.
1800 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
1802 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
1803 to opts.sh command line.
1804 * opts.sh: Write to temporary files with a move-if-change at the end.
1806 2003-07-10 Denis Chertykov <denisc@overta.ru>
1807 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1809 * combine.c (gen_binary): Handle the CLOBBER rtx and
1810 don't build a binary operation with it.
1812 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1814 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1815 store_killed_after, store_killed_before): Keep track of the correct
1816 dependency function to use.
1818 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
1819 * toplev.c (do_compile): Don't try to open dump files before
1820 lang_dependent_init initializes dump_base_name.
1822 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1824 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1826 * config/frv/frv.c (frv_expand_builtin): Likewise.
1827 * config/sh/sh.c (sh_media_init_builtins): Likewise.
1829 2003-07-09 Mark Mitchell <mark@codesourcery.com>
1832 * doc/invoke.texi (C++ Dialect Options): Change documentation of
1835 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
1837 * tm.texi (RETURN_ADDR_OFFSET): Document.
1839 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
1841 * gcov-io.h: Update documentation.
1842 (GCOV_UNSIGNED2STRING): New.
1843 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1844 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1845 GCOV_TAG_SUMMARY_LENGTH): Adjust.
1846 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1847 GCOV_TAG_COUNTER_NUM): New.
1848 (GCOV_BLOCK_SIZE): Number of words.
1849 (gcov_var): Adjust buffer type.
1850 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1851 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1852 count, not byte count.
1853 (gcov_open): Adjust overread init.
1854 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1855 gcov_write_string, gcov_write_tag, gcov_write_length,
1856 gcov_write_tag_length): Adjust.
1857 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1858 (gcov_sync, gcov_seek): Adjust.
1859 * gcov-dump.c (print_usage): Show gcc version only.
1860 (dump_file): Use GCOV_UNSIGNED2STRING.
1861 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1862 * gcov.c (print_version): Show gcc version only.
1863 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1864 GCOV_TAG_*_NUM macros.
1865 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1866 GCOV_TAG_COUNTER_LENGTH.
1867 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1868 Use GCOV_TAG_COUNTER_NUM.
1869 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
1870 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
1872 2003-07-10 Andreas Schwab <schwab@suse.de>
1874 * gcov-dump.c (dump_file): Fix missing address operator.
1876 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
1879 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
1881 (fold_single_bit_test): If sign_bit_p() fails, assume that the
1882 bit being tested is not a sign bit.
1884 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
1886 * config/h8300/h8300.md (a peephole2): New.
1888 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
1890 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
1891 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
1892 from ld-linux.so.2 to ld.so.1.
1893 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
1894 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
1895 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
1896 nor -Wl,-rpath-link.
1897 (LIB_SPEC): Add -rpath-link if !static.
1898 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
1899 * config/mn10300/mn10300.c (mn10300_protect_label): New
1901 * config/mn10300/linux.h (PRINT_OPERAND,
1902 PRINT_OPERAND_ADDRESS): Set it during their execution.
1903 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
1904 mn10300_protect_label is set.
1905 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
1907 (LIB_SPEC, STARTFILE_SPEC): Define.
1908 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
1909 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
1910 FLOAT_BIT_ORDER_MISMATCH.
1911 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1912 * config.gcc (am33_2.0-*-linux*): Added.
1913 * config/mn10300/linux.h: New.
1914 * config/mn10300/t-linux: New.
1916 2003-07-10 Andreas Jaeger <aj@suse.de>
1918 * fold-const.c: Properly wrap prototypes.
1920 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1922 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
1923 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
1925 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
1926 * config/mn10300/mn10300.h: GTY-declare it.
1927 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
1928 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
1929 prototype. Use incoming RTL argument.
1930 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1931 * config/mn10300/mn10300.md (int_label): Move C statements...
1932 (GOTaddr2picreg): ... here.
1933 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1934 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
1935 * config/mn10300/mn10300.c (mn10300_encode_section_info):
1936 ... here. New function.
1937 (TARGET_ENCODE_SECTION_INFO): Define to it.
1938 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
1939 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
1941 (mn10300_loadPC): Define as insn splittable after reload.
1942 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
1943 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
1944 be defined in .rodata even in PIC, now that the assembler
1946 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1947 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
1948 symbol take an underscore prefix.
1949 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1950 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
1951 legitimize_pic_address): Declare.
1952 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
1953 the PIC register as fixed.
1954 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
1955 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
1957 (LEGITIMATE_PIC_OPERAND_P): Define.
1958 (PIC_OFFSET_TABLE_REGNUM): Define.
1959 (GOT_SYMBOL_NAME): Define.
1960 (SYMBOLIC_CONST_P): Define.
1961 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
1963 (MN10300_GLOBAL_P): Test it.
1964 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
1965 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
1966 * config/mn10300/mn10300.c (print_operand): Handle unspec.
1967 (expand_prologue): Set PIC register.
1968 (call_address_operand): Don't match SYMBOL_REFs in PIC.
1969 (legitimize_address): Call legitimize_pic_address.
1970 (legitimize_pic_address): New fn.
1971 (legitimate_pic_operand_p): New fn.
1972 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
1973 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
1974 UNSPEC_PLT): New constants.
1975 (pop_pic_reg): New insn.
1976 (movsi): Adjust non-PIC addresses.
1977 (builtin_setjmp_receiver): Restore the PIC register.
1979 (call): Adjust non-PIC addresses.
1980 (int_label, GOTaddr2picreg): New expands.
1981 (am33_loadPC): New insn.
1982 (mn10300_loadPC): New expand.
1983 (call_next_insn): New insn.
1984 (add_GOT_to_pic_reg): New expand.
1985 (symGOT2reg, symGOT2reg_i): New expands.
1986 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
1987 (sym2PIC, sym2PLT): New expands.
1989 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1991 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
1992 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
1993 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
1994 to flag_unsafe_math_optimizations.
1995 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1996 * config/mn10300/mn10300.c (expand_prologue): Mark
1997 FP-register-saving insns as frame-related.
1998 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
1999 * config/mn10300/mn10300.c
2000 (mn10300_get_live_callee_saved_regs): Don't search past
2001 LAST_EXTENDED_REGNUM.
2002 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2003 * config/mn10300/mn10300.md: Remove excessive line breaks from
2004 `@' output patterns that were accounted as additional
2006 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2007 Re-introduce changes accidentally removed in Richard Sandiford's
2009 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2010 Re-instate am33-2 lost in merge from net GCC.
2011 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2012 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2013 floating-point registers.
2014 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2015 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2016 pessimizations that had gone in on 2000-05-08.
2017 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2018 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2019 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2020 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2022 * (movhi): Likewise.
2023 * (movsi): Likewise.
2024 * (movsf): Likewise.
2025 * (movdi): Likewise.
2026 * (movdf): Likewise.
2027 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2028 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2029 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2030 (expand_prologue, expand_epilogue): Save and restore FP regs.
2031 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2032 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2033 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2034 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2035 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2037 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2038 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2039 Discourage the two-argument, longer opcodes.
2040 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2042 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2043 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2044 * config/mn10300/mn10300.md (cmpsf): New pattern.
2045 (branch): Test mdep.fpCC and output fbCC.
2046 * config/mn10300/mn10300.c (print_operand): Output conditions.
2047 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2048 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2049 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2050 mulsf3, divsf3): Use the `F' constraint for FP values.
2051 * config/mn10300/mn10300.c (const_1f_operand): New function.
2052 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2053 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2054 (rsqrtsf2): New insn.
2055 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2056 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2058 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2059 * config/mn10300/mn10300.md (abssf2, negdf2): On
2060 TARGET_AM33_2, expand to...
2061 (abssf2_am33_2, negdf2_am33_2): New insns.
2062 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2063 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2064 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2065 movdi, movdf): Added FP regs.
2066 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2067 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2068 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2070 (REGNO_AM33_2_FP_P): Renamed to...
2071 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2072 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2073 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2074 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2075 regs from GENERAL_REGS.
2076 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2077 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2078 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2079 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2080 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2081 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2083 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2084 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2085 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2086 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2087 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2088 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2089 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2090 AM33/2.0 floating-point registers.
2091 (CONDITIONAL_REGISTER_USAGE): Adjust.
2092 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2093 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2094 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2095 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2096 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2097 (MULTILIB_DIRNAMES): Likewise.
2098 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2099 `__AM33_2__' when `-mam33-2' is given.
2100 (TARGET_AM33_2): Define.
2101 (TARGET_SWITCHES): Adjust.
2102 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2105 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2107 * doc/install.texi: Add missing @.
2109 2003-07-09 Bob Wilson <bob.wilson@acm.org>
2111 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2113 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
2116 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2118 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2121 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
2122 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2124 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2125 * fixinc/fixincl.x: Rebuild.
2127 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2128 * fixinc/fixincl.x: Rebuild.
2130 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2132 * doc/install.texi (Configuration): Document the valgrind option
2133 to --enable-checking.
2135 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2137 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2139 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2141 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2143 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2145 * gcov-io.h: Update documentation.
2146 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2148 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2149 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2150 (struct gcov_var): Change buffer's type. Add endian flag.
2151 (gcov_open): Remove mode in libgcov.
2152 (gcov_magic): Prototype.
2153 * gcov-io.c (from_file): New.
2154 (gcov_open): Clear endian flag.
2156 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2158 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2159 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2160 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2161 * gcov-iov.c (main): Correct cast.
2162 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2164 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2165 (coverage_init): Use GCOV_NOTE_SUFFIX.
2166 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2167 Rename to gcov_version, and return flag.
2168 (gcov_exit): Use gcov_version.
2169 (__gcov_init): Use gcov_version.
2170 * Makefile.in (coverageexts): Update.
2171 * gcov.c (print_version): Remove endianness conversion.
2172 (create_file_names): Use GCOV_NOTE_SUFFIX.
2173 (read_graph_file): Use gcov_magic.
2174 (read_count_file): Likewise.
2175 * gcov-dump.c (dump_file): Remove endianness conversion, use
2178 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2180 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2182 * configure: Regenerated.
2183 * Makefile.in (ALL_CFLAGS): Correct its comment.
2185 2003-07-08 Mark Mitchell <mark@codesourcery.com>
2187 * fold-const.c (make_range): Do not access operand 1 for a
2188 zero-operand operator.
2190 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
2192 * toplev.c (warn_dummy, W_options): Die.
2193 (display_help): Don't print W_options.
2194 * common.opt: Add W_options help from toplev.c.
2196 2003-07-09 Andreas Jaeger <aj@suse.de>
2198 * opts.c (wrap_help): Only pass int arguments as arguments to
2199 printf's '*' modifier. Change argument of function.
2201 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2203 * doc/invoke.texi: Fix misspelling of "@item".
2205 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2207 * config/i386/i386.md: Remove an old comment about
2210 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2212 * cgraph.c (cgraph_node_name): New function.
2213 (dump_cgraph): Use it.
2214 * cgraph.h (cgraph_dump_file): Declare.
2215 (cgraph_node_name): Declare.
2216 * cgraphunit.c: Include timevar.h
2217 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2218 (cgraph_optimize_function): Use TV_INTEGRATION.
2219 (cgraph_mark_local_functions): reorganize dumps.
2220 (cgraph_mark_functions_to_inline_once): Likewise.
2221 (cgraph_optimize): Likewise; use timevar.
2222 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2223 * toplev.c (dump_file_index): Add DFI_cgraph.
2224 (dump_file_info): Likewise.
2225 (cgraph_dump_file): New global variable.
2226 (do_compile): Open and close cgraph dump.
2227 * invoke.texi (-d): Document new flag; renumber.
2229 2003-07-08 Roger Sayle <roger@eyesopen.com>
2232 * calls.c (emit_call_1): Don't bother popping the arguments off of
2233 the stack after a noreturn function call; The adjustment is dead.
2234 (expand_call): Likewise.
2236 2003-07-08 Geoffrey Keating <geoffk@apple.com>
2238 * expr.c (MOVE_MAX_PIECES): Move from here...
2239 * defaults.h (MOVE_MAX_PIECES): ... to here.
2241 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2243 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2245 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2247 * genattr.c (internal_dfa_insn_code): Don't prototype.
2248 * genattrtab.c (attr_desc): Add `static_p' field.
2249 (expand_units): Make blockage range and ready cost functions
2251 (write_attr_get): Don't add extern prototypes in C file. Mark
2252 static functions as appropriate.
2253 (find_attr, make_internal_attr): Initialize static_p.
2254 * genattrtab.h (ATTR_STATIC): New macro.
2255 * genautomata.c (output_internal_reset_func): Mark output function
2257 (make_internal_dfa_insn_code_attr): Mark output function as static.
2259 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261 * genattrtab.h: Add new macros for attr `special' flags.
2262 * genattrtab.c (attr_desc): Reorder/resize fields better.
2263 Use attr `special' macros in all calls to make_internal_attr.
2264 * genautomata.c: Likewise.
2266 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
2268 * c-common.c (c_estimate_num_insns_1): New static function.
2269 (c_estimate_num_insns): New global function.
2270 * c-common.h (DECL_NUM_STMTS): Rename to...
2271 (DECL_ESTIMATED_INSNS): ... this.
2272 (c_estimate_num_insns): Declare.
2273 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2274 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2275 * c-semantics.c (add_stmt): Do not account statements.
2276 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2278 * langhooks.h (lang_hooks_for_tree_inlining): Add
2280 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2282 (max-inline-insns): set to 300.
2283 (min-inline-insns): set to 10.
2284 * tree-inline.c (struct inline_data): Rename inlined_stmts to
2286 (INSNS_PER_STMT): Kill.
2287 (inlinable_function_p): Compute and store body size.
2288 (expand_call_inline): Likewise.
2289 (optimize_inline_calls): Likewise.
2291 2003-07-08 James E Wilson <wilson@tuliptree.org>
2294 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2295 loop over new variable t2 instead of t.
2297 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2300 * config/i386/winnt.c: Replace use of error(), warning() with
2301 error_with_decl(), warning_with_decl(), throughout.
2303 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
2305 * opts.c (wrap_help): Use unsigned int, not size_t.
2307 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
2309 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2310 as .file/.loc directives are incompatible with linker relaxation.
2312 2003-07-08 Zack Weinberg <zack@codesourcery.com>
2314 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2315 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2316 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2317 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2318 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2319 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2320 Escape { and } characters which are not part of range expressions.
2321 * fixinc/fixincl.x: Regenerate.
2322 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
2324 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
2327 * tree-inline.c (find_alloca_call): Use
2328 walk_tree_without_duplicates, instead of walk_tree.
2329 (find_builtin_longjmp_call): Likewise.
2330 * c-objc-common.c (c_cannot_inline_fn): Likewise.
2331 * c-semantics.c (find_reachable_label): Likewise.
2333 2003-07-08 Jakub Jelinek <jakub@redhat.com>
2336 * config/i386/i386.c (ix86_check_movabs): New function.
2337 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2338 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2339 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2341 2003-07-08 Chris Demetriou <cgd@broadcom.com>
2343 * Makefile.in (install-po): Cope with empty CATALOGS.
2345 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
2347 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2348 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2349 (SECTION_FUNCTION_TEMPLATE): Delete.
2350 * config/mips/elf.h: As for elf64.h.
2351 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2352 * config/mips/linux.h: As for elf.h
2353 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2354 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2355 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
2356 of in_sdata from current_section_name and current_section_flags.
2357 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2358 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2359 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2360 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2361 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2362 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2363 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2364 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2365 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2366 (override_options): Remove setting of MASK_GPOPT.
2367 (mips_output_external): Use mips_in_small_data_p to check whether a
2368 symbol needs an .extern directive. Don't emit such directives for
2369 TARGET_EXPLICIT_RELOCS.
2370 (mips_declare_object): Update accordingly.
2371 (mips_select_rtx_section): Call named_section rather than
2373 (mips_select_section): Use default_elf_section_section for everything
2374 except .text string constants.
2375 (mips_in_small_data_p): New function.
2376 (mips_encode_section_info): Remove small data handling.
2377 (mips_unique_section): Delete.
2378 (iris6_section_type_flags): New function.
2379 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2381 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2384 * pa.md: Disparage all mtsar constraints.
2385 (extzv, extv, insv): Don't fail on length of {32|64}.
2387 2003-07-08 Zack Weinberg <zack@codesourcery.com>
2389 * system.h: Poison MAP_CHARACTER.
2390 * config/i370/i370-protos.h (mvs_map_char): Delete.
2391 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2392 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2393 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2395 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2397 * toplev.c (randomize): Correct call to time().
2399 2003-07-08 Jakub Jelinek <jakub@redhat.com>
2401 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2402 REG_EQUIV notes as well.
2404 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2406 * doc/md.texi: Fix the description of addmodecc.
2408 2003-07-07 Zack Weinberg <zack@codesourcery.com>
2410 * Makefile.in (top_builddir): Set to "..", not ".".
2411 (INTLLIBS, INTLDEPS): Delete.
2412 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2413 (LIBDEPS): Add $(LIBICONV_DEP).
2414 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2415 (INCLUDES): Replace -I../intl with @INCINTL@.
2416 ($(top_builddir)/intl/libintl.a): Delete rule.
2417 (stage2-start, stage3-start, stage4-start, stageprofile-start,
2418 stagefeedback-start): Use $$ for variable to be evaluated by
2420 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2421 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2422 * aclocal.m4: sinclude ../config/progtest.m4. Add
2423 contents of lcmessage.m4 from gettext distro.
2424 * configure.in: Check for wchar.h and setlocale. Set
2425 LIBICONV_DEP to the empty string and substitute it.
2426 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
2427 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
2428 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
2429 in $LIBINTL, to avoid linking it twice.
2430 * configure, config.in: Regenerate.
2432 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
2434 * fixinc/mkfixinc.sh: Remove winnt support.
2435 * fixinc/fixinc.winnt: Delete with extreme prejudice.
2437 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
2439 * Makefile.in: Update.
2440 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2441 * c.opt: Update documentation.
2442 * common.opt: Add some help text.
2443 * opts.c: Include intl.h.
2444 (wrap_help, print_help): New.
2445 (find_opt, handle_option, common_handle_option): opt_text now
2446 contains the '-'. Use print_help to output help.
2447 * opts.h (struct cl_option): New member "help".
2448 * opts.sh: Update to handle help text output and to prepend
2450 * toplev.c (display_help): Remove some help text.
2452 2003-07-07 David Edelsohn <edelsohn@gnu.org>
2453 Fariborz Jahanian <fjahanian@apple.com>
2455 * configure.in: Test for PowerPC mfcr field support in assembler.
2456 * config.in, configure: Regenderated.
2458 * config/rs6000/power4.md: Add mfcrf reservation.
2459 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2460 * config/rs6000/rs6000.c (mfcr_operation): Define.
2461 (print_operand): Add 'Q' case for mfcrf.
2462 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2463 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2464 (movcc_internal1): Emit optional field operand for mfcr and set
2465 "type" attribute appropriately.
2466 (mfcr SCC): Likewise.
2467 (movesi_from_cr_one): New.
2469 2003-07-07 Roger Sayle <roger@eyesopen.com>
2471 * config/i386/i386.md: Correct check-in of incorrect version.
2473 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2475 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2476 adjacent stdio calls.
2477 * c-decl.c (c_print_identifier): Likewise.
2478 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2479 * print-rtl.c (print_rtx): Likewise.
2480 * print-tree.c (print_node_brief, print_node): Likewise.
2481 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
2483 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2484 * config.in, configure: Regenerated.
2486 2003-07-07 Roger Sayle <roger@eyesopen.com>
2489 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2490 Changed to define_expand patterns that copy operand[1] to prevent
2491 it from being clobbered before emitting an atan2?f3_1 insn.
2492 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2493 patterns that actually specify the behaviour of x87's FPATAN.
2495 2003-07-07 Jakub Jelinek <jakub@redhat.com>
2497 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2498 clearing of SYMBOL_FLAG_LOCAL bit.
2499 If vcall_offset fits into signed 16-bit immediate, use
2500 one instruction for both addition and load.
2502 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
2504 * opts.c (common_handle_option): Correct handling of the
2505 -falign- switches that do and don't take an argument.
2507 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2509 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2511 (pushhi1_h8300hs): Likewise.
2513 2003-07-07 Andreas Jaeger <aj@suse.de>
2515 * genextract.c: Convert remaining prototypes to ISO C90.
2517 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2518 * fold-const.c (fold_single_bit_test): Likewise.
2519 * diagnostic.c (default_diagnostic_finalizer): Likewise.
2520 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2522 * gengtype.c (write_array): Generate ISO C90 prototypes.
2524 * genflags.c (gen_proto): Generate ISO C90 prototypes.
2526 2003-07-07 Roger Sayle <roger@eyesopen.com>
2528 PR optimization/11059
2529 * expr.c (can_store_by_pieces): Return true if length is zero.
2530 (store_by_pieces): If length is zero and endp is two, abort,
2531 othwerise, if length is zero and endp is not two, return "to".
2532 (clear_by_pieces): Do nothing if length is zero.
2533 (clear_storage): Do nothing if length is zero.
2534 (store_constructor): Simplify code when size is zero, or the
2535 target has already been cleared. This avoids emitting a
2536 blockage instruction when initializing empty structures.
2538 2003-07-07 Andreas Jaeger <aj@suse.de>
2540 * mips-tfile.c: Convert prototypes to ISO C90.
2541 * mips-tdump.c: Convert prototypes to ISO C90.
2543 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2545 * rtl.h (emit_line_note): Take a location_t.
2546 (emit_line_note_force): Remove.
2547 (set_file_and_line_for_statement): Take a location_t.
2548 * tree.g (emit_line_note): Take a location_t.
2549 * emit-rtl.c (emit_line_note): Take a location_t.
2550 (emit_line_note_force): Remove.
2551 * function.c (init_function_start): Adjust emit_line_note call.
2552 (expand_function_end): Use force_next_line_note, not
2553 emit_line_note_force.
2554 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2555 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2556 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2557 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2558 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2559 genrtl_continue_stmt, genrtl_switch_stmt,
2560 genrtl_asm_stmt): Likewise.
2561 * expr.c (expand_expr): Likewise.
2562 * integrate.c (expand_inline_function): Likewise.
2563 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2564 (expand_decl_init): Adjust emit_line_note call.
2566 2003-07-07 Dale Johannesen <dalej@apple.com>
2568 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
2570 2003-07-07 Andreas Jaeger <aj@suse.de>
2572 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2573 * config/i386/i386.c: Likewise.
2575 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2577 * config/h8300/h8300.md: Use gen_int_mode instead of
2578 GEN_INT (trunc_int_for_mode (...)).
2580 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2582 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2583 2 bytes and then subtract 2 from the stack pointer.
2584 (pushhi1_h8300hs): Likewise.
2586 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2588 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2590 * configure: Regenerated.
2591 * Makefile.in: Remove extraneous comment.
2592 * toplev.c (randomize): Protect against potential multiple calls.
2593 * doc/invoke.texi (-frandom-seed): Document use for in coverage
2596 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2597 Eric Botcazou <ebotcazou@libertysurf.fr>
2599 PR optimization/11198
2600 * alias.c (objects_must_conflict_p): Return 1 if the types have
2601 the same alias set, not if the alias sets only conflict.
2603 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
2605 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2606 (convert_cset): Change inbuf to type ICONV_CONST char.
2607 * Makefile.in (LIBS): Add LIBICONV.
2609 * doc/invoke.texi (-falign-functions): Document that
2610 when n is zero then a machine-dependent default is used.
2611 (-falign-labels): Document that when n is zero then a
2612 machine-dependent default is used and that -falign-labels =1
2613 is equivalent to -fno-align-labels.
2614 (-falign-loops): Likewise.
2615 (-falign-jumps): Likewise.
2617 2003-07-06 Art Haas <ahaas@airmail.net>
2619 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2622 2003-07-06 James E Wilson <wilson@tuliptree.org>
2624 PR optimization/9812
2625 * rtl.h (mem_for_const_double): Delete prototype.
2626 * varasm.c (mem_for_const_double): Delete function.
2627 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2628 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2629 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2630 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2631 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2632 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
2633 comment about confused support for XFmode constants.
2635 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
2637 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2639 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
2641 * config/h8300/h8300.c: Fix comment typos.
2642 * config/h8300/h8300.md: Likewise.
2643 * config/i386/athlon.md: Likewise.
2644 * config/i386/i386.c: Likewise.
2645 * config/i386/pentium.md: Likewise.
2646 * config/ia64/ia64.c: Likewise.
2647 * config/ia64/itanium1.md: Likewise.
2648 * config/ia64/itanium2.md: Likewise.
2649 * config/m32r/m32r.md: Likewise.
2650 * config/m68hc11/m68hc11.c: Likewise.
2651 * config/mcore/mcore.c: Likewise.
2652 * config/mips/sr71k.md: Likewise.
2653 * config/mips/t-iris5-as: Likewise.
2654 * config/mmix/mmix.h: Likewise.
2655 * config/ns32k/ns32k.h: Likewise.
2656 * config/ns32k/NOTES: Fix a typo.
2658 2003-07-06 Andreas Jaeger <aj@suse.de>
2660 * stmt.c: Convert remaining prototypes to ISO C90.
2661 * cfglayout.c: Likewise.
2662 * dbxout.c: Likewise.
2664 * genemit.c: Likewise.
2666 * basic-block.h: Convert prototypes to ISO C90.
2667 * c-parse.in: Likewise.
2668 * c-pragma.h: Likewise.
2669 * c-typeck.c: Likewise.
2670 * cfghooks.h: Likewise.
2671 * cfgloopanal.c: Likewise.
2672 * dbxout.h: Likewise.
2673 * debug.h: Likewise.
2674 * dwarf2asm.h: Likewise.
2676 * gengtype-lex.l: Likewise.
2677 * sched-int.h: Likewise.
2678 * timevar.c: Likewise.
2680 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
2682 * c-common.h (c_comon_handle_filename,
2683 c_common_missing_arguement): New.
2684 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2685 LANG_HOOKS_MISSING_ARGUMENT): New.
2686 * c-opts.c (missing_arg): Rename c_common_missing_argument,
2687 update to be an appropriate langhook.
2688 (c_common_handle_option): Don't handle filenames.
2689 (c_common_handle_filename): New.
2690 * hooks.c (hook_void_constcharptr,
2691 hook_bool_constcharptr_size_t_false): New.
2692 * hooks.h (hook_void_constcharptr,
2693 hook_bool_constcharptr_size_t_false): New.
2694 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2695 LANG_HOOKS_MISSING_ARGUMENT): New.
2696 (LANG_HOOKS_INITIALIZER): Update.
2697 * langhooks.h (struct lang_hooks): Add handle_filename and
2699 * opts.c (handle_option): Don't handle filenames here, but ...
2700 (handle_options): ... here.
2701 (common_handle_option): Don't handle missing arguments here.
2702 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2703 LANG_HOOKS_MISSING_ARGUMENT): New.
2705 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
2707 * Makfile.in: Remove traces of mbchar.
2708 * c-parse.in (MULTIBYTE_CHARS): Remove.
2709 * config.in (MULTIBYTE_CHARS): Remove.
2710 * configure: Remove --enable-mbchar.
2711 * configure.in: Remove --enable-mbchar.
2712 * mbchar.c, mbchar.h: Remove.
2713 * system.h: Poison MULTIBYTE_CHARS.
2714 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2715 * config/linux.h (MULTIBYTE_CHARS): Remove.
2716 * config/svr4.h (MULTIBYTE_CHARS): Remove.
2717 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2719 2003-07-06 Andreas Jaeger <aj@suse.de>
2721 * varray.c (varray_check_failed): Fix typo.
2723 * unroll.c: Convert prototypes to ISO C90.
2724 * varasm.c: Likewise.
2725 * varray.c: Likewise.
2726 * varray.h: Likewise.
2727 * vmsdbgout.c: Likewise.
2728 * xcoffout.c: Likewise.
2729 * xcoffout.h: Likewise.
2731 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2733 * gcov-io.h: Add a local time stamp.
2734 (struct gcov_info): Add stamp field.
2735 (gcov_truncate): New.
2736 * coverage.c (read_counts_file): Skip the stamp.
2737 (coverage_begin_output): Write the stamp.
2738 (build_gcov_info): Declare and init the stamp.
2739 (coverage_finish): Only unlink data file, if stamp is zero.
2740 * gcov-dump.c (dump_file): Dump the stamp.
2741 * gcov.c (bbg_stamp): New.
2742 (release_structures): Clear bbg_stamp.
2743 (read_graph_file): Read stamp.
2744 (read_count_file): Check stamp.
2745 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2747 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2749 * tree.h (default_flag_random_seed): Remove.
2750 * toplev.h (local_tick): Declare.
2751 * tree.c (flag_random_seed, default_flag_random_seed): Move to
2753 (append_random_chars): Don't call default_flag_random_seed.
2754 * toplev.c (flag_random_seed): Define here. Set local_tick.
2755 (local_tick): Define.
2756 (randomize): New, moved from tree.c.
2757 (print_switch_values): Adjust.
2758 (toplev_main): Call randomize.
2760 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2762 * tree.h (crc32_string): Declare.
2763 * tree.c (append_random_chars): Remove.
2764 (crc32_string): New.
2765 (get_file_function_name_long): Use crc32_string here.
2767 2003-07-06 Andreas Jaeger <aj@suse.de>
2769 * gcc.c: Convert prototypes to ISO C90.
2771 * gcov-dump.c: Likewise.
2772 * gcov-iov.c: Likewise.
2774 * genattrtab.h: Likewise.
2776 * global.c: Likewise.
2777 * graph.c: Likewise.
2778 * graph.h: Likewise.
2779 * hosthooks.h: Likewise.
2780 * hooks.h: Likewise.
2781 * hooks.c: Likewise.
2782 * hashtable.h: Likewise.
2783 * hashtable.c: Likewise.
2784 * haifa-sched.c: Likewise.
2785 * integrate.h: Likewise.
2786 * integrate.c: Likewise.
2787 * input.h: Likewise.
2788 * ifcvt.c: Likewise.
2790 * langhooks-def.h: Likewise. Add extern to prototypes.
2791 * langhooks.c: Likewise.
2792 * langhooks.h: Likewise.
2794 * local-alloc.c: Likewise.
2795 * loop-init.c: Likewise.
2796 * loop-unroll.c: Likewise.
2797 * loop-unswitch.c: Likewise.
2799 * loop.h: Likewise. Add extern to prototypes.
2800 * machmode.h: Likewise.
2802 * mbchar.c: Likewise.
2803 * mbchar.h: Likewise.
2804 * mkdeps.c: Likewise.
2805 * mkdeps.h: Likewise.
2806 * optabs.c: Likewise.
2807 * optabs.h: Likewise.
2808 * output.h: Likewise.
2809 * gccspec.c: Likwise.
2810 * postreload.c: Likewise.
2811 * prefix.c: Likewise.
2812 * prefix.h: Likewise.
2813 * print-rtl.c: Likewise.
2814 * print-tree.c: Likewise.
2815 * profile.c: Likewise.
2816 * read-rtl.c: Likewise.
2819 * recog.c: Likewise.
2820 * recog.h: Likewise.
2821 * reg-stack.c: Likewise.
2822 * regclass.c: Likewise.
2823 * regmove.c: Likewise.
2824 * regrename.c: Likewise.
2826 * reload.c: Likewise.
2827 * reload.h: Likewise.
2828 * reload1.c: Likewise.
2829 * reorg.c: Likewise.
2830 * resource.c: Likewise.
2831 * resource.h: Likewise.
2832 * rtl-error.c: Likewise.
2835 * rtlanal.c: Likewise.
2836 * sbitmap.c: Likewise.
2837 * sbitmap.h: Likewise.
2838 * scan-decls.c: Likewise.
2840 * sched-deps.c: Likewise.
2841 * sched-ebb.c: Likewise.
2842 * sched-int.h: Likewise.
2843 * sched-rgn.c: Likewise.
2844 * sched-vis.c: Likewise.
2845 * sibcall.c: Likewise.
2846 * simplify-rtx.c: Likewise.
2847 * sreal.c: Likewise.
2848 * sreal.h: Likewise.
2849 * ssa-ccp.c: Likewise.
2850 * ssa-dce.c: Likewise.
2853 * stack.h: Likewise.
2855 * stor-layout.c: Likewise.
2856 * stringpool.c: Likewise.
2857 * target.h: Likewise.
2858 * timevar.c: Likewise.
2859 * timevar.h: Likewise.
2860 * tlink.c: Likewise.
2861 * tracer.c: Likewise.
2862 * tree-inline.c: Likewise.
2863 * tree-inline.h: Likewise.
2867 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2869 * combine.c (nonzero_bits1): Fix a warning.
2871 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2873 * config/h8300/h8300.c (compute_mov_length): Correct the
2874 length of loading CONST0_RTX (SFmode).
2876 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
2878 * toplev.c (output_clean_symbol_name): Remove.
2879 * toplev.h (output_clean_symbol_name): Remove.
2880 * config/alpha/alpha.c (unicosmk_output_module_name): Use
2881 lbasename & clean_symbol_name.
2883 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2885 * ggc.h: Follow spelling conventions.
2886 * config/i386/i386.c: Likewise.
2887 * config/i386/winnt.c: Likewise.
2888 * config/rs6000/rs6000.c: Likewise.
2890 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2892 * bt-load.c: Fix comment typos.
2893 * c-incpath.c: Likewise.
2895 * cfgcleanup.c: Likewise.
2896 * cfgloop.h: Likewise.
2897 * cfgloopmanip.c: Likewise.
2898 * cfgrtl.c: Likewise.
2899 * diagnostic.h: Likewise.
2900 * dwarfout.c: Likewise.
2901 * emit-rtl.c: Likewise.
2902 * et-forest.c: Likewise.
2903 * et-forest.h: Likewise.
2906 * genattr.c: Likewise.
2908 * langhooks.h: Likewise.
2909 * local-alloc.c: Likewise.
2910 * loop-unroll.c: Likewise.
2911 * loop-unswitch.c: Likewise.
2912 * ra-build.c: Likewise.
2913 * regclass.c: Likewise.
2914 * regmove.c: Likewise.
2915 * rtl.def: Likewise.
2916 * rtlanal.c: Likewise.
2917 * sched-ebb.c: Likewise.
2918 * sched-rgn.c: Likewise.
2919 * simplify-rtx.c: Likewise.
2921 * tracer.c: Likewise.
2924 2003-07-05 Zack Weinberg <zack@codesourcery.com>
2926 * cppcharset.c: Use the correct return type for the fallback iconv
2929 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2931 Blame to Jan Hubicka <jh@suse.cz>
2932 * cfglayout.c (record_effective_endpoints): Split insns before
2933 first basic block correctly.
2935 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2937 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
2938 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
2939 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
2941 2003-07-05 Andreas Jaeger <aj@suse.de>
2943 * genattrtab.c (write_attr_get): Revert part of last patch to
2944 always write out a prototype.
2946 * genemit.c (gen_split): Readd lost unused attributes in last
2949 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2951 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
2952 different from header.
2954 2003-07-05 Andreas Schwab <schwab@suse.de>
2956 * config/m68k/m68k.c: Remove code protected by CRDS.
2957 * config/m68k/m68k.md: Likewise.
2959 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
2962 * c-opts.c (permit_fortran_options): New.
2963 (c_common_init_options): Accept fortran front end options if
2964 it looks like we might be preprocessing Fortran.
2965 (c_common_handle_option): Don't reject switch if permit_fotran_options.
2967 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2969 * genattr.c (internal_dfa_insn_code): Output prototype.
2970 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
2971 * genautomata.c: Likewise.
2972 * genconditions.c: Likewise.
2973 * genemit.c: Likewise.
2974 * genextract.c: Likewise.
2975 * gengenrtl.c: Likewise.
2976 * gengtype.c: Likewise.
2977 * genopinit.c: Likewise.
2978 * genoutput.c: Likewise.
2979 * genpeep.c: Likewise.
2980 * genrecog.c: Likewise.
2982 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2984 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
2985 (struct cpp_options): Add narrow_charset, wide_charset,
2986 bytes_big_endian fields. Remove EBCDIC field.
2987 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
2989 * cpphash.h: Include <iconv.h> if we have it, otherwise
2990 provide a dummy definition of iconv_t.
2991 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
2992 (_cpp_valid_ucn): Update prototype.
2993 (_cpp_destroy_iconv): New prototype.
2995 * doc/cpp.texi: Document character set handling.
2996 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
2997 * doc/extend.texi: Delete entire section on multiline strings.
2998 Rewrite section on __FUNCTION__ etc now that these are
3001 * cppucnid.tab, cppucnid.pl: New files.
3002 * cppucnid.h: New generated file.
3003 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3004 (iconv_open, iconv, iconv_close): Provide dummy definitions
3006 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3007 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3008 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3009 cpp_interpret_string, narrow_str_to_charconst,
3010 wide_str_to_charconst): New.
3011 (ucn_valid_in_identifier): Use a binary search through the
3012 ucnranges table defined in cppucnid.h, not a long chain of if
3014 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3015 character names are only valid in C++ and C99" to a warning.
3016 Issue the "meaning of \[uU] is different in traditional C"
3017 warning here. Take care not to let iconv see an invalid UCS
3018 value if we get a malformed UCN. Issue an error if we don't
3020 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3021 cpp_interpret_string to do the heavy lifting.
3023 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3024 narrow_charset, wide_charset fields of options structure.
3025 (cpp_destroy): Call _cpp_destroy_iconv.
3026 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3027 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3028 (cpp_interpret_charconst): Moved to cppcharset.c.
3029 * cpplib.c (dequote_string): Delete.
3030 (interpret_string_notranslate): New.
3031 (do_line, do_linemarker): Use interpret_string_notranslate.
3033 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3035 * c-common.c (fname_string, combine_strings): Delete.
3036 * c-common.h (fname_string, combine_strings): Delete prototypes.
3037 * c-lex.c (ignore_escape_flag): Delete.
3038 (cb_ident): Use cpp_interpret_string, not lex_string.
3039 (get_nonpadding_token): New function.
3040 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3041 Adjust calls to lex_string. Don't write *value twice.
3042 (lex_string): Now handles string constant concatenation.
3043 Most of the work handed off to cpp_interpret_string.
3044 Call fix_string_type here.
3045 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3046 FUNC_NAME, throughout.
3047 (OBJC_STRING): New token type.
3048 (primary:STRING): No need to call fix_string_type here.
3049 (primary:objc_string): Make that OBJC_STRING.
3050 (objc_string nonterminal): Delete.
3051 (yylexname): Delete code to handle fake string constants.
3052 (yylexstring): Delete entirely.
3053 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3054 to handle CPP_ATSIGN.
3056 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3057 * c-opts.c (missing_arg, c_common_handle_option): Handle
3058 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3059 (c_common_init): Set cpp_opts->bytes_big_endian, not
3060 cpp_opts->EBCDIC. Call cpp_init_iconv.
3061 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3062 (TARGET_EBCDIC): Delete default definition.
3064 * objc/objc-act.c (build_objc_string_object): No need to
3065 handle string constant concatenation.
3067 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3069 * doc/install.texi: Fix typos.
3070 * doc/invoke.texi: Likewise.
3071 * doc/tm.texi: Likewise.
3073 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3075 * config/pa/fptr.c: Fix comment typos.
3076 * config/pa/pa-64.h: Likewise.
3077 * config/pa/pa.c: Likewise.
3078 * config/pa/pa.h: Likewise.
3079 * config/rs6000/603.md: Likewise.
3080 * config/rs6000/7xx.md: Likewise.
3081 * config/rs6000/darwin.h: Likewise.
3082 * config/rs6000/freebsd.h: Likewise.
3083 * config/rs6000/rs6000.c: Likewise.
3084 * config/rs6000/rs6000.md: Likewise.
3085 * config/rs6000/spe.h: Likewise.
3087 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3089 * config/s390/2064.md: Change GNU CC to GCC.
3090 * config/s390/2084.md: Likewise.
3091 * config/s390/fixdfdi.h: Likewise.
3092 * config/s390/linux.h: Likewise.
3093 * config/s390/s390-modes.def: Likewise.
3094 * config/s390/s390-protos.h: Likewise.
3095 * config/s390/s390.c: Likewise.
3096 * config/s390/s390.h: Likewise.
3097 * config/s390/s390.md: Likewise.
3098 * config/s390/s390x.h: Likewise.
3100 2003-07-04 Jeff Law <law@redhat.com>
3103 * expr.c (do_store_flag): Pass in the correct result type
3104 when calling fold_single_bit_test.
3105 * fold-const.c (fold_single_bit_test): Use result_type for the
3106 result when folding a sign bit test.
3108 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
3110 * opts.c (common_handle_options): Negate sense of -falign- switches.
3112 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3114 * Makefile.in: Replace PWD with PWD_COMMAND.
3116 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3118 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3119 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3120 Handle strange loops.
3122 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3124 * install.texi: Even the g77 manpage is derived from
3125 the full g77 manual.
3127 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3129 * ABOUT-NLS: Delete.
3130 * intl: Delete entire directory.
3131 * aclocal.m4: Include ../config/gettext.m4. Delete
3132 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3133 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3134 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3135 Remove intl/Makefile from all_outputs.
3136 * configure, config.in: Regenerate.
3137 * Makefile.in: Expunge all references to intl subdirectory.
3138 Add -I../intl to INCLUDES.
3139 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3141 2003-07-04 Roger Sayle <roger@eyesopen.com>
3143 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3144 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3146 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3148 PR c++/5287, PR c++/7910, PR c++/11021
3149 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3150 dllimport attribute if function is defined at declaration, but
3151 report error instead. Likewise for dllimport'd variable
3152 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3153 declared within functions, Report error if dllimport or dllexport
3154 symbol is not global.
3155 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3156 if defined after declaration or if inlined. Don't allow definition
3157 of static data members of C++ classes. Don't dllimport virtual
3159 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3160 (i386_pe_mark_dllimport): Remove unnecessary checks.
3161 (i386_pe_encode_section_info): Warn if the dllimport attribute
3162 and symbol prefix have been instantiated and then overridden.
3164 * doc/extend.texi: Document dllimport and dllexport attributes.
3166 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3168 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
3170 * config/kaos.h (CPP_PREDEFINES): Delete.
3171 (TARGET_OS_CPP_BUILTINS): New.
3173 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3175 * c-aux-info.c: Include toplev.h after c-tree.h.
3176 * c-common.c: Likewise.
3177 (GCC_DIAG_STYLE): Undef.
3178 * c-semantics.c (GCC_DIAG_STYLE): Define.
3179 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3180 * diagnostic.h (inform): Move prototype to toplev.h.
3181 * jump.c: Include diagnostic.h before toplev.h.
3182 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3183 (warning, error, fatal_error, pedwarn, sorry, inform,
3184 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3186 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3188 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3189 at all if edge is not specified.
3190 (can_copy_bbs_p, copy_bbs): New.
3191 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3192 * cfgloop.c (get_loop_body): Comment more precisely.
3193 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3194 (scale_bbs_frequencies): Fix comment typo.
3195 (can_duplicate_loop_p): Use can_copy_bbs_p.
3196 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3198 2003-07-03 Devang Patel <dpatel@apple.com>
3200 * c-opts.c (c_common_parse_file): Remove extra
3201 debug_hooks->start_source_file call.
3203 2003-07-03 Roger Sayle <roger@eyesopen.com>
3205 * real.c (real_trunc, real_floor, real_ceil): New functions
3206 to implement trunc, floor and ceil respectively.
3207 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3208 * builtins.c (integer_valued_real_p): New function to test if
3209 a floating point expression has an integer valued result.
3210 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3211 foo(x) where foo is an integer rounding function. Similarly,
3212 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3213 (double)(int)x when both foo and bar are integer rounding
3214 functions and we don't need to honor errno.
3215 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3216 New functions to fold trunc, floor and ceil.
3217 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3218 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3219 to fold BUILT_IN_CEIL*.
3220 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3221 the remaining integer rounding functions.
3223 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3225 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3226 SPARC_INT_ARG_MAX to determine where to split unnamed
3227 complex FP arguments.
3229 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
3231 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3232 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3233 (merge_blocks_move_predecessor_nojumps,
3234 merge_blocks_move_successor_nojumps): Use merge_blocks.
3235 (try_optimize_cfg): Use merge_blocks_move.
3236 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3237 (merge_blocks_nomove): Rename to rtl_merge_blocks.
3238 (cfg_layout_create_basic_block): New.
3239 (rtl_can_merge_blocks): New.
3240 (cfg_layout_split_block): Do not alloc aux by hand.
3241 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3243 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3244 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3245 * cfgloopmanip.c (loop_split_edge_with): Likewise.
3246 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3248 * basic-block.h (basic_block_def): Add field 'rbi'.
3249 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3250 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3251 * cfg.c (entry_exit_blocks): Add new field.
3252 * cfglayout.c: Include alloc-pool.h;
3253 (cfg_layout_pool): New.
3254 (record_effective_endpoints, fixup_reorder_chain,
3255 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3257 (cfg_layout_initialize_rbi): New function.
3258 (cfg_layout_initialize): Use it.
3259 (cfg_layout_finalize): Clear rbi fields.
3260 * cfglayout.h (RBI): Kill.
3261 (cfg_layout_initialize_rbi): Declare.
3262 * cfgloopmanip.c (copy_bbs): Use rbi.
3263 (record_exit_edges): Likewise.
3264 (duplicate_loop_to_header_edge): Likewise.
3265 * cfgrtl.c (cfg_layout_create_basic_block): Use
3266 cfg_layout_initialize_rbi.
3267 (cfg_layout_split_block): Use rbi.
3268 (cfg_layout_delete_block): Likewise.
3269 * loop-init.c (loop_optimizer_finalize): Likewise.
3270 * loop-unswitch.c (unswitch_loop): Likewise.
3271 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3273 * cfgrtl.c: Update comments.
3274 (try_redirect_by_replacing_jump): New argument.
3275 (redirect_branch_edge): Break out from ...
3276 (rtl_redirect_edge_and_branch): ... this one.
3277 (update_cfg_after_block_merging): Break out from ...
3278 (rtl_merge_blocks): ... this one.
3279 (cfg_layout_split_edge): New.
3280 (cfg_layout_merge_blocks): New.
3281 (cfg_layout_can_merge_blocks_p): New.
3282 (cfg_layout_redirect_edge_and_branch): Reorganize.
3283 (cfg_layout_rtl_cfg_hooks): Fill in.
3284 (cfg_layout_delete_block): Kill barriers.
3285 * cfganal.c (can_fallthru): Deal with exit blocks
3286 * cfglayout.c (cfg_layout_function_header): New function
3287 (record_effective_endpoints): Record function header.
3288 (fixup_reorder_chain): Fixup dead jumptables; place header
3290 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3291 * bb-reorder.c (cfg_layout_initialize): Update call.
3292 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3293 edges in cfglayout mode.
3294 * cfglayout.c (cleanup_unconditional_jumps): Kill.
3295 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3296 * cfglayout.h (cfg_layout_initialize): Update prototype.
3297 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3298 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3299 * flow.c (propagate_block): Do not crash when basic block ends
3300 by first insn in the chain.
3301 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
3303 * tracer.c (tracer): Update call of cfg_layout_initialize.
3305 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3307 * Makefile.in: Use dependency variables in lieu of explicit
3310 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
3312 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3313 * tree.h: ...to here.
3315 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3317 * config/s390/2064.md: Fix comment typos.
3318 * config/s390/2084.md: Likewise.
3319 * config/s390/s390.c: Likewise.
3320 * config/s390/s390.md: Likewise.
3321 * config/sh/sh.c: Likewise.
3322 * config/sh/sh.h: Likewise.
3323 * config/sh/sh.md: Likewise.
3324 * config/sparc/sparc.c: Likewise.
3325 * config/sparc/sparc.h: Likewise.
3326 * config/sparc/sparc.md: Likewise.
3327 * config/stormy16/stormy16.c: Likewise.
3328 * config/stormy16/stormy16.h: Likewise.
3329 * config/stormy16/stormy-abi: Fix a typo.
3331 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
3333 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3335 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3337 * config/mips/mips.h (save_argv): Delete.
3339 2003-07-03 Roger Sayle <roger@eyesopen.com>
3342 * fold-const.c (extract_muldiv_1): There's nothing that can be done
3343 if the expression is a SAVE_EXPR.
3345 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3347 * config/m32r/m32r.c: Fix comment typos.
3348 * config/m68hc11/m68hc11.c: Likewise.
3349 * config/m68hc11/m68hc11.h: Likewise.
3350 * config/m68k/m68k.c: Likewise.
3351 * config/mcore/mcore.c: Likewise.
3352 * config/mcore/mcore.h: Likewise.
3353 * config/mcore/mcore.md: Likewise.
3354 * config/mips/mips.c: Likewise.
3355 * config/mips/mips.h: Likewise.
3356 * config/mips/mips.md: Likewise.
3357 * config/mips/netbsd.h: Likewise.
3358 * config/mn10300/mn10300.c: Likewise.
3360 2003-07-03 Andreas Schwab <schwab@suse.de>
3362 * dbxout.c (pending_bincls): Move decl down inside
3363 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3365 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3367 * rtl.h (NOTE_DATA): Refer to whole union.
3368 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3370 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3372 PR optimization/11381
3373 * simplify-rtx.c (simplify_relational_operation): Check that
3374 two equal operands have no side-effects before simplifying
3377 2003-07-02 Jeff Law <law@redhat.com>
3379 * expr.c (do_store_flag): Remove special case folding for
3380 single bit tests. Instead call back into the commonized folder
3382 * fold-const.c (fold_single_bit_test): New function, mostly
3383 extracted from do_store_flag, with an additional case extracted
3385 (fold): Call fold_single_bit_test appropriately.
3386 * tree.h (fold_single_bit_test): Prototype.
3388 2003-07-02 Zack Weinberg <zack@codesourcery.com>
3390 * system.h: Include filenames.h.
3391 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3392 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3393 define based on HAVE_DOS_BASED_FILE_SYSTEM.
3394 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3395 * config/i386/xm-mingw32.h: Don't define
3396 HAVE_DOS_BASED_FILE_SYSTEM,
3397 DIR_SEPARATOR, or DIR_SEPARATOR_2.
3398 * doc/hostconfig.texi: Update to match.
3400 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3401 config/i386/cygwin.h:
3402 Use IS_ABSOLUTE_PATH throughout.
3403 * gcc.c (DIR_UP): Delete, unused.
3404 * protoize.c (IS_SAME_PATH): Define in terms of
3406 (is_abspath): Delete.
3408 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3410 * config/i386/emmintrin.h: Fix comment typos.
3411 * config/i386/i386.c: Likewise.
3412 * config/i386/i386.h: Likewise.
3413 * config/i386/sco5.h: Likewise.
3414 * config/ia64/ia64.c: Likewise.
3415 * config/ia64/itanium2.md: Likewise.
3417 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
3419 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3421 (emit_bincl_stab): Same.
3422 (emit_pending_bincls): Same.
3424 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3426 * config/h8300/h8300.c (compute_mov_length): Fix the length of
3427 loading CONST0_RTX (SFmode).
3428 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3429 'G' to CONST0_RTX (SFmode).
3430 * config/h8300/h8300.md (movsf_h8300): Change the first
3432 (movsf_h8300h): Likewise.
3434 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
3436 * c-common.h (c_common_init_options): New prototype.
3437 * c-opts.c (deferred_size): Remove.
3438 (defer_opt): Array is now pre-allocated.
3439 (c_common_init_options): Pre-allocate deferred_opts. Make
3440 lang_flags unsigned.
3441 (push_command_line_options): Free deferred_opts.
3442 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3443 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3444 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3445 * langhooks.h (struct lang_hooks): New prototype for init_options.
3446 * main.c (main): Cast argv.
3447 * opts.c (handle_option, handle_options): Update prototypes.
3448 (decode_options): save_argc, save_argv are not global. Constify.
3449 * opts.h (decode_options): New prototype.
3450 * toplev.c (general_init): New protoype.
3451 (save_argv): Make static.
3452 (save_argc): Remove.
3453 (print_switch_values, general_init): Constify.
3454 (toplev_main): Save argv.
3455 * toplev.h (toplev_main): Update prototype.
3456 (save_argc, save_argv): Remove.
3458 2003-07-02 David Edelsohn <edelsohn@gnu.org>
3460 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3461 (emit_bincl_stab): Same.
3462 (emit_pending_bincls): Same.
3464 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3467 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3469 2003-07-02 Andreas Schwab <schwab@suse.de>
3471 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3473 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3475 PR optimization/11210
3476 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3477 about the behaviour with regard to bitfields.
3478 * fold-const (decode_field_reference): Record outermost type in
3479 case the expression is a NOP. Strip all NOPs. Set the signedness
3480 to that of the outermost type (if any) when the bitsize is equal
3481 to the size of the type.
3483 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
3485 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3486 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3487 (adddi3_internal_3, addsi3_internal_2): Likewise.
3489 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
3491 * config/mips/mips.c (machine_function): Add new fields:
3492 ignore_hazard_length_p and all_noreorder_p.
3493 (mips_flag_delayed_branch): New variable.
3494 (override_options): Treat '/' as an operand punctuation character.
3495 Set up mips_flag_delayed_branch.
3496 (print_operand): Handle '/'.
3497 (mips_output_function_prologue): Put the whole function in
3498 .set noreorder and .set nomacro if all_noreorder_p is true.
3499 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3500 (mips16_optimize_gp): Remove "first insn" parameter.
3501 (mips16_lay_out_constants): New function, split out from mips_reorg.
3502 (mips_avoid_hazard, mips_avoid_hazards): New functions.
3503 (mips_reorg): For mips16 code, call mips16_lay_out_constant
3504 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
3505 do delayed-branch scheduling followed by hazard detection.
3506 (mips_adjust_insn_length): Only account for hazards if
3507 !ignore_hazard_length_p.
3508 (mips_output_load_label): Add a nop to the o32 sequence if
3509 the target suffers from load delays.
3510 (mips_output_conditional_branch): Add %/ to the end of branches.
3511 (mips_output_division): Fill the branch delay slot with %#.
3512 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3513 instructions. End all other %* branches with %/.
3514 (ffssi2, ffsdi2): Fix lengths.
3515 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3516 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3517 (fix_truncsfsi2_macro): Likewise.
3518 (mov_lwl): Set hazard to "none".
3519 (ashldi3_internal): Fill the branch delay slot with %#.
3520 (ashrdi3_internal, lshrdi3_internal): Likewise.
3521 (exception_receiver): Explicitly set $28.
3522 (hazard_nop): New pattern.
3524 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
3526 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3527 before calling tree_inlinable_function_p.
3529 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3531 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3532 <internal/stdio_core.h> too.
3533 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3534 <internal/wchar_core.h> too.
3535 Substitute va_list uses in inline definition.
3536 * fixinc/fixincl.x: Regenerate.
3538 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3540 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3541 Undef before redefinition.
3542 (LABEL_AFTER_LOC): Likewise.
3543 (DEFAULT_SIGNED_CHAR): Likewise.
3544 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3547 * config/mips/iris3.h: Remove, unused.
3548 * config/mips/iris4.h: Likewise.
3550 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3552 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3553 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3556 * config/mips/iris5.h: Move explicit includes ...
3557 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3559 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3560 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3563 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3564 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3567 * config/mips/iris6.h: Fix IRIX spelling.
3568 (MULTILIB_DEFAULTS): Undef before redefinition.
3570 * config/mips/iris6.h: Move explicit includes ...
3571 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3573 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
3575 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3576 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3577 Use next_needed field instead of aux to maintain the queue.
3578 * cgraph.h (cgraph_node): Add next_needed.
3579 (cgraph_varpool_node): Add next_needed; remove aux.
3580 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3582 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3584 * cgraphunit.c (cgraph_finalize_function): Set finalized.
3585 (cgraph_finalize_function): Do not examine inlinablility.
3586 (cgraph_finalize_compilation_unit): Do it here.
3587 * cgraph.h (cgraph_local_info): Add finalized field.
3589 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3591 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3592 (gt_pch_restore): Likewise.
3594 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3596 * config/alpha/alpha.c: Fix comment typos.
3597 * config/alpha/elf.h: Likewise.
3598 * config/arm/arm.c: Likewise.
3599 * config/arm/arm.h: Likewise.
3600 * config/arm/arm.md: Likewise.
3601 * config/arm/t-arm-coff: Likewise.
3602 * config/arm/t-strongarm-pe: Likewise.
3603 * config/arm/xscale-elf.h: Likewise.
3604 * config/avr/avr.h: Likewise.
3606 2003-07-01 Jeff Law <law@redhat.com>
3608 * stmt.c (any_pending_cleanups): Remove another redundant test.
3610 2003-07-01 David Edelsohn <edelsohn@gnu.org>
3611 J"orn Rennecke <joern.rennecke@superh.com>
3613 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3616 2003-07-01 Devang Patel <dpatel@apple.com>
3618 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3620 (struct dbx_file): New members - bincl_status, pending_bincl_name and
3622 (pending_bincls): New.
3623 (dbxout_init): Initialize new dbx_file members.
3624 (dbxout_start_source_file): Same.
3625 (emit_bincl_stab): New function.
3626 (emit_pending_bincls): Same.
3627 (emit_pending_bincls_if_required): Same.
3628 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
3630 (dbxout_begin_block): Emit pending BINCL stabs.
3631 (dbxout_end_block): Same.
3632 (dbxout_function_decl): Same.
3633 (dbxout_continue): Same.
3634 (dbxout_type): Same.
3635 (dbxout_class_name_qualifiers): Same.
3636 (dbxout_symbol): Same.
3637 (dbxout_symbol_location): Same.
3638 (dbxout_parms): Same.
3640 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3642 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3643 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3645 2003-07-01 Andreas Jaeger <aj@suse.de>
3647 * fold-const.c: Convert prototypes to ISO C90.
3648 * function.c: Likewise.
3649 * function.h: Likewise.
3651 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3653 * doc/contrib.texi: Fix typos.
3654 * doc/invoke.texi: Likewise.
3655 * doc/passes.texi: Likewise.
3656 * doc/sourcebuild.texi: Likewise.
3657 * doc/tm.texi: Likewise.
3659 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3661 * basic-block.h: Fix comment typos.
3662 * bb-reorder.c: Likewise.
3663 * c-format.c: Likewise.
3664 * cfgcleanup.c: Likewise.
3665 * cfghooks.h: Likewise.
3666 * cfgloop.c: Likewise.
3667 * cfgloopmanip.c: Likewise.
3668 * cfgrtl.c: Likewise.
3669 * cgraph.h: Likewise.
3670 * cgraphunit.c: Likewise.
3671 * combine.c: Likewise.
3672 * convert.c: Likewise.
3673 * dbxout.c: Likewise.
3676 * diagnostic.c: Likewise.
3677 * dwarf2out.c: Likewise.
3678 * et-forest.h: Likewise.
3680 * fold-const.c: Likewise.
3681 * function.h: Likewise.
3682 * gcov-io.h: Likewise.
3685 * genautomata.c: Likewise.
3686 * ggc-common.c: Likewise.
3687 * ggc-page.c: Likewise.
3688 * loop-unroll.c: Likewise.
3689 * loop-unswitch.c: Likewise.
3691 * mips-tfile.c: Likewise.
3692 * optabs.c: Likewise.
3693 * ra-build.c: Likewise.
3694 * ra-colorize.c: Likewise.
3695 * ra-rewrite.c: Likewise.
3697 * regmove.c: Likewise.
3698 * reload.c: Likewise.
3699 * rtlanal.c: Likewise.
3700 * sched-ebb.c: Likewise.
3701 * sched-int.h: Likewise.
3702 * sched-vis.c: Likewise.
3703 * sreal.c: Likewise.
3704 * ssa-ccp.c: Likewise.
3706 * toplev.c: Likewise.
3707 * tree-inline.c: Likewise.
3708 * value-prof.c: Likewise.
3709 * value-prof.h: Likewise.
3711 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3713 * rtl.h (emit_line_note_after): Remove.
3714 (emit_note_copy_after, emit_note_copy): New.
3715 * emit-rtl.c (reorder_insns_with_line_notes): Replace
3716 emit_line_note_after with emit_note_copy_after.
3717 (emit_insn_after_with_line_notes): Likewise.
3718 (emit_line_note_after): Kill.
3719 (emit_note_copy_after): New.
3720 (emit_note_copy): New.
3721 * function.c (emit_return_into_block): Use emit_note_copy_after.
3722 (thread_prologue_and_epilogue_insns): Likewise.
3723 * integrate.c (expand_inline_function): Use emit_note_copy.
3724 (copy_insn_list): Likewise.
3725 * unroll.c (copy_loop_body): Likewise.
3726 * cfglayout.c (duplicate_insn_chain): Likewise.
3728 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3730 * c-tree.h (define_label): Replace filename and lineno arguments
3732 * c-decl.c (poplevel): Adjust define_label call.
3733 (pop_label_level): Likewise.
3734 (define_label): Replace filename and lineno arguments with a
3736 (store_parm_decls): Use DECL_SOURCE_LOCATION.
3737 * c-parse.in (label): Adjust define_label call.
3739 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
3741 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3742 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3743 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3744 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3745 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3747 2003-07-01 Andreas Jaeger <aj@suse.de>
3749 * final.c: Convert prototypes to ISO C90.
3751 * flags.h: Likewise.
3752 * gcov-io.c: Likewise.
3753 * gcov-io.h: Likewise.
3755 See ChangeLog.9 for earlier changes.