1 2003-08-26 Per Bothner <pbothner@apple.com>
3 * cpplib.h (struct cpp_token): Change type of field line to fileline.
4 (cpp_error_with_line): Use fileline for appropriate parameter.
5 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
6 (struct cpp_reader): Likewise for fields line and directive_line.
7 (_cpp_begin_message): Use fileline for appropriate parameter.
8 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9 cpp_error): Use fileline for appropriate parameters and variables.
10 (print_location): New local lin, since it is not a fileline.
12 2003-08-26 Roger Sayle <roger@eyesopen.com>
15 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
16 (FLOAT_TYPE_P): Define in terms of these two new macros.
17 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
18 for complex floating point types.
20 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
22 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
23 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
24 s390_output_pool_entry.
26 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
28 * fixinc/inclhack.def (svr4_preproc_lint_on,
29 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
30 fixes, ported from fixinc.svr4.
32 2003-08-26 Mark Mitchell <mark@codesourcery.com>
34 * doc/install.texi (Prerequisites): Mention GNU make requirement.
36 * Makefile.in (AR_FOR_TARGET): Export it.
37 (AR_CREATE_FOR_TARGET): Likewise.
38 (AR_FLAGS_FOR_TARGET): Likewise.
39 (AR_EXTRACT_FOR_TARGET): Likewise.
41 (BUILD_PREFIX): Likewise.
42 (BUILD_PREFIX_1): Likewise.
44 (GCC_FOR_TARGET): Likewise.
46 (INSTALL_DATA): Likewise.
47 (LIB1ASMSRC): Likewise.
48 (LIBGCC2_CFLAGS): Likewise.
49 (MACHMODE_H): Likewise.
50 (NM_FOR_TARGET): Likewise.
51 (RANLIB_FOR_TARGET): Likewise.
52 (libsubdir): Likewise.
54 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
56 (libgcc.a): Don't pass them here.
57 (stmp-multilib): Or here.
58 (install-libgcc): Or here.
59 (install-multilib): Or here.
60 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
61 (stage1_build): Or here.
63 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
65 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
66 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
68 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
70 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
71 "*fmaddsf", "*fmsubsf"): New insns.
73 2003-08-26 Roger Sayle <roger@eyesopen.com>
75 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
76 (C1*C2)/X when unsafe math optimizations are allowed.
77 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
78 math optimizations. Minor code clean-ups. Recursively call
79 fold when constructing sub-expressions.
81 2003-08-26 Roger Sayle <roger@eyesopen.com>
83 * builtins.c (fold_builtin_bitop): New function to perform constant
84 folding of ffs, clz, ctz, popcount and parity builtin functions
85 and their long and long long variants (such as ffsl and ffsll).
86 (fold_builtin): fold_builtin_bitop when appropriate.
87 * simplify-rtx.c (simplify_unary_operation): Honor both
88 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
89 evaluating clz and ctz at compile-time, for operands wider
92 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
94 * builtins.c (build_function_call_expr): Don't set
95 TREE_SIDE_EFFECTS here.
96 * expr.c (emit_block_move_via_libcall): Likewise.
97 (clear_storage_via_libcall): Likewise.
98 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
101 * gcse.c (is_too_expensive): New function.
102 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
104 2003-08-25 Zack Weinberg <zack@codesourcery.com>
106 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
107 commented-out logic to use DCE threads (if present), add
108 support for POSIX threads.
109 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
110 #defines for -pthread. Add -lpthread to LIB_SPEC when
111 -pthread. In both cases take -mt as a synonym for -pthread
112 for acc compatibility.
113 Define GTHREAD_USE_WEAK to 0.
114 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
115 Remove old logic for DCE threads from LIB_SPEC.
116 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
118 2003-08-25 Roger Sayle <roger@eyesopen.com>
120 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
121 return 0 for invalid argument types. Instead drop through to a
122 call of expand_call at the bottom of function. If op is SQRT,
123 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
125 2003-08-25 Richard Henderson <rth@redhat.com>
127 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
128 result when op0 is SImode.
130 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
132 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
134 * fixinc/fixincl.x: Regenerate.
135 * fixinc/tests/base/sys/signal.h: Regenerate.
137 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
139 * combine.c (simplify_comparison): Re-enable widening of comparisons
140 with non-paradoxical subregs of non-REG expressions.
142 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
144 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
146 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
148 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
150 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
152 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
153 * c-pretty-print.h (c_pretty_printer): Now typedef to the
154 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
155 (struct c_pretty_print_info): Document. Add new fields.
156 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
157 (pp_direct_abstract_declarator): New macro.
158 (pp_ptr_operator): Likewise.
159 (pp_simple_type_specifier): Likewise.
160 (pp_expression): Likewise.
161 (pp_parameter_list): Rename from pp_parameter_declaration.
162 * c-pretty-print.c (pp_c_whitespace): Now a function.
163 (pp_c_left_paren): Likewise.
164 (pp_c_right_paren): Likewise.
165 (pp_c_dot): Likewise.
166 (pp_c_ampersand): Likewise.
167 (pp_c_arrow): Likewise.
168 (pp_c_semicolon): Likewise.
169 (pp_c_type_cast): New function.
170 (pp_c_space_for_pointer_operator): Likewise.
171 (pp_c_call_argument_list): Likewise.
172 (pp_c_cv_qualifier): Adjust prototype.
173 (pp_c_type_qualifier_list): Likewise.
174 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
175 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
176 Adjust to follow standard grammar.
177 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
178 REFERENCE_TYPE. Tidy.
179 (pp_c_parameter_type_list): Adjust prototype. Tidy.
180 (pp_c_parameter_declaration): Remove.
181 (pp_c_abstract_declarator): Adjust prototype.
182 (pp_c_direct_abstract_declarator): Likewise.
183 (pp_c_type_id): Likewise.
184 (pp_c_storage_class_specifier): Likewise.
185 (pp_c_function_specifier): Likewise.
186 (pp_c_declaration_specifiers): Likewise.
187 (pp_c_direct_declarator): Likewise.
188 (pp_c_declarator): Likewise.
189 (pp_c_declarator): Likewise.
190 (pp_c_declaration): Likewise.
191 (pp_c_attributes): Likewise. Tidy.
192 (pp_c_function_definition): Adjust prototype.
193 (pp_c_char): Likewise.
194 (pp_c_string_literal): Likewise.
195 (pp_c_integer_constant): Likewise.
196 (pp_c_character_constant): Likewise.
197 (pp_c_bool_constant): Likewise.
198 (pp_c_enumeration_constant): Likewise.
199 (pp_c_floating_constant): Likewise.
200 (pp_c_constant): Likewise.
201 (pp_c_identifier): Likewise.
202 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
203 (pp_c_initializer): Adjust prototype.
204 (pp_c_init_declarator): Likewise.
205 (pp_c_initializer_list): Likewise.
206 (pp_c_id_expression): Likewise.
207 (pp_c_postfix_expression): Likewise.
208 (pp_c_expression_list): Likewise.
209 (pp_c_unary_expression): Likewise.
210 (pp_c_cast_expression): Likewise.
211 (pp_c_multiplicative_expression): Likewise.
212 (pp_c_additive_expression): Likewise.
213 (pp_c_shift_expression): Likewise.
214 (pp_c_relational_expression): Likewise.
215 (pp_c_equality_expression): Likewise.
216 (pp_c_and_expression): Likewise.
217 (pp_c_exclusive_or_expression): Likewise.
218 (pp_c_inclusive_or_expression): Likewise.
219 (pp_c_logical_and_expression): Likewise.
220 (pp_c_logical_or_expression): Likewise.
221 (pp_c_conditional_expression): Likewise.
222 (pp_c_assignment_expression): Likewise.
223 (pp_c_expression): Likewise. Tidy.
224 (pp_c_statement): Likewise. Document.
225 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
227 * c-lang.c (c_initialize_diagnostics): Update.
228 * c-common.h (strip_pointer_operator): Declare.
229 * c-common.c (strip_pointer_operator): Define.
231 2003-08-25 Mark Mitchell <mark@codesourcery.com>
234 * tree.h (build_method_type_directly): Declare.
235 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
236 (vector_size_helper): Likewise.
237 * tree.c (build_method_type_directly): New function.
238 (build_method_type): Use it.
240 2003-08-24 Richard Henderson <rth@redhat.com>
242 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
243 for 16-byte vector modes if sse not enabled; warn for abi change.
244 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
246 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
248 * rtlanal.c (may_trap_p): Simplify an integer comparison.
250 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
252 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
253 comment. Enable for DYNIX/ptx systems (when they switch to
254 regular fixincludes).
255 * fixinc/fixincl.x: Regenerate.
257 2003-08-23 Jason Eckhardt <jle@rice.edu>
259 * config/i860/t-i860: New.
260 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
262 2003-08-23 Jakub Jelinek <jakub@redhat.com>
264 * c-decl.c (pushdecl): Only put decls which finish_struct will do
265 something about onto incomplete chain.
266 (finish_struct): If not removing type from incomplete
269 Wed Aug 20 12:08:55 CEST 2003 Jan Hubicka <jh@suse.cz>
272 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
275 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
276 const_0_to_15_operand, const_0_to_255_operand): New predicates.
277 * i386.h (PREDICATE_CODES): Add these.
278 * i386.c (pinsrw and pextrw patterns): Use them.
281 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
284 * expr.c (convert_modes): Deal properly with integer to vector
288 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
290 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
292 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
293 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
294 ("*movhi"): ... this.
295 ("movqi", "*movqi"): Likewise.
296 ("movqi_64"): Remove.
297 ("*zero_extendhisi2_31"): Change predicate to s_operand.
299 2003-08-23 Dale Johannesen <dalej@apple.com>
300 * calls.c (emit_library_call_value_1): Fix obvious errors in
301 arguments to emit_group_store.
303 2003-08-23 Jason Eckhardt <jle@rice.edu>
305 * calls.c (emit_library_call_value_1): Remove code related
306 to LIBGCC_NEEDS_DOUBLE.
307 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
308 * doc/tm.texi: Likewise.
309 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
311 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
313 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
315 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
317 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
318 as well. Put memory references in the varargs alias set.
319 (mips_expand_prologue): Remove varargs handling from here.
321 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
323 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
324 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
325 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
326 for function pointer calls.
327 * config/s390/s390.md ("*negdi2_31"): Likewise.
329 2003-08-23 Roger Sayle <roger@eyesopen.com>
331 * combine.c (apply_distributive_law): Correct comment.
333 2003-08-23 Jason Eckhardt <jle@rice.edu>
335 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
337 2003-08-22 Jason Eckhardt <jle@rice.edu>
339 * config/i860/i860.c (i860_build_va_list): Create the va_decl
340 declaration. Document the va_list structure.
341 (i860_va_start): Initialize the va_list structure.
342 (i860_va_arg): Rewrite completely.
343 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
344 * config/i860/varargs.asm: Do not allocate or initialize
345 a va_list. Return the address of the register save area.
347 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
349 * config/iq2000/iq2000.c: Fix comment typos.
350 * config/iq2000/iq2000.md: Likewise.
352 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
354 * config/iq2000/iq2000.c: Follow spelling conventions.
355 * config/iq2000/iq2000.h: Likewise.
356 * config/mn10300/mn10300.c: Likewise.
358 2003-08-22 Jason Eckhardt <jle@rice.edu>
360 * config/i860/i860.c (output_move_double): Don't set latehalf
361 to zero for CONST_INT (since it could be, e.g., -1).
363 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
364 (MODSI3_LIBCALL): ...with this one.
365 (UREMSI3_LIBCALL): Replace this macro...
366 (UMODSI3_LIBCALL): ...with this one.
368 2003-08-22 Jason Eckhardt <jle@rice.edu>
370 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
371 (output_delayed_branch): Remove prototype.
372 (single_insn_src_p): Remove prototype.
373 * config/i860/i860.c (single_insn_src_p): Remove function.
374 (output_delayed_branch): Remove function.
375 (output_delay_insn): Remove function.
376 (va_start): Remove unconditional test and dead code, re-format.
377 Fix coding style and spelling problems in various comments.
378 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
379 (blockage pattern): ...and use it here.
380 (all define_peephole patterns related to delayed branches): Remove.
381 Fix coding style and spelling problems in various comments.
383 2003-08-22 Jason Eckhardt <jle@rice.edu>
385 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
386 Remove all uses of the PARAMS macro. Remove superflous prototypes.
387 Convert all function definitions from traditional to ISO C90 syntax.
388 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
389 with 'GCC'. Remove all uses of the PARAMS macro.
390 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
391 * config/i860/i860.md: Likewise.
392 * config/i860/sysv4.h: Likewise.
393 * config/i860/varargs.asm: Likewise.
395 2003-08-22 Jason Eckhardt <jle@rice.edu>
397 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
399 (tdesc_section): Add prototype.
400 Update copyright dates.
401 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
402 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
403 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
405 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
406 for '%d' where necessary.
407 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
408 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
409 by UNITS_PER_WORD when referencing (likewise for .floats).
410 (I860_SVR4_VARARGS): Rename...
411 (I860_SVR4_VA_LIST): ...to this.
412 Call build() with 't' rather than 'field'.
413 (i860_rtx_costs): New function.
414 (TARGET_RTX_COSTS): Define.
415 (i860_internal_label): New function.
416 (TARGET_ASM_INTERNAL_LABEL): Define.
417 (i860_file_start): New function.
418 Update copyright dates.
419 * config/i860/i860.h (CPP_PREDEFINES): Remove.
420 (TARGET_CPU_CPP_BUILTINS): Define.
421 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
422 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
423 (ASM_FILE_START): Remove.
424 (ASM_FILE_START_1): Remove.
425 (ASM_GLOBALIZE_LABEL): Remove.
426 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
427 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
428 with targetm.asm_out.internal_label.
429 Update copyright dates.
430 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
431 (CPP_PREDEFINES): Remove.
432 (TARGET_OS_CPP_BUILTINS): Define.
433 (GLOBAL_ASM_OP): Define.
434 (ASM_FILE_START): Remove.
435 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
436 (TARGET_ASM_FILE_START): Define.
437 Update copyright dates.
439 2003-08-22 Jason Eckhardt <jle@rice.edu>
441 * gcc/config.gcc (i860-*-sysv4*): Add target.
442 * config/i860/i860-protos.h: New.
443 * config/i860/i860.c: New.
444 * config/i860/i860.h: New.
445 * config/i860/i860.md: New.
446 * config/i860/sysv4.h: New.
447 * config/i860/varargs.asm: New.
448 * config/i860/x-sysv4: New.
450 2003-08-22 Jason Eckhardt <jle@rice.edu>
452 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
453 Remove all uses of PARAMS macro.
454 Convert all function definitions to ISO C90 syntax.
455 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
456 * config/pa/fptr.c: Likewise.
457 * config/pa/lib2funcs.asm: Likewise.
458 * config/pa/long_double.h: Likewise.
459 * config/pa/milli64.S: Likewise.
460 * config/pa/pa-64.h: Likewise.
461 * config/pa/pa-hpux.h: Likewise.
462 * config/pa/pa-hpux10.h: Likewise.
463 * config/pa/pa-hpux11.h: Likewise.
464 * config/pa/pa-linux.h: Likewise.
465 * config/pa/pa-modes.def: Likewise.
466 * config/pa/pa-osf.h: Likewise.
467 * config/pa/pa-pro-end.h: Likewise.
468 * config/pa/pa.md: Likewise.
469 * config/pa/pa32-linux.h: Likewise.
470 * config/pa/pa64-linux.h: Likewise.
471 * config/pa/pa64-hpux.h: Likewise.
472 * config/pa/pa64-regs.h: Likewise.
473 * config/pa/quadlib.c: Likewise.
474 * config/pa/rtems.h: Likewise.
475 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
476 all uses of the PARAMS macro.
477 * config/pa/pa.h: Likewise.
478 * config/pa/som.h: Likewise.
480 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
481 Remove all uses of PARAMS macro.
482 Convert all function definitions to ISO C90 syntax.
483 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
484 Remove all uses of PARAMS macro.
485 * config/iq2000.h: Remove all uses of PARAMS macro.
486 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
488 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
490 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
491 * config/s390/s390.c (gen_consttable): Remove.
492 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
493 (s390_output_pool_entry): New function.
494 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
495 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
496 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
497 (UNSPECV_POOL_ENTRY): ... this new constant.
498 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
499 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
500 ("*pool_entry"): ... and replace by this new insn.
501 ("literal_pool_31"): Do not emit anchor label if pool empty.
503 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
504 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
505 (s390_fixup_clobbered_return_reg): Remove.
506 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
507 (s390_return_addr_rtx): Always retrieve return address from save area
508 slot. Use save_return_addr_p to force slot to be filled.
509 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
511 2003-08-22 Chris Demetriou <cgd@broadcom.com>
513 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
514 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
515 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
516 around SB-1 errata if TARGET_FIX_SB1 is set.
517 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
518 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
520 2003-08-22 Roger Sayle <roger@eyesopen.com>
522 * hashtable.c (ht_expand): Avoid calculating rehash for the common
523 case that the first probe hits an empty hash table slot.
525 2003-08-22 Mark Mitchell <mark@codesourcery.com>
527 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
529 2003-08-22 Mark Mitchell <mark@codesourcery.com>
531 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
532 (ptr_extend_plus_imm): ... this.
533 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
535 (ia64_output_mi_thunk): Support ILP32 mode.
537 2003-08-22 bernardo innocenti <bernie@develer.com>
539 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
541 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
543 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
545 * config/i386/i386.c (const_int_1_operand): Simplify an
548 2003-08-22 Alan Modra <amodra@bigpond.net.au>
550 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
551 * config/rs6000/ppc64-fp.c: Likewise.
553 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
555 * cfgcleanup.c: Fix comment typos.
556 * emit-rtl.c: Likewise.
557 * optabs.c: Likewise.
558 * ra-build.c: Likewise.
559 * rtlanal.c: Likewise.
562 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
564 * c-decl.c: Fix comment formatting.
565 * cfgrtl.c: Likewise.
566 * combine.c: Likewise.
567 * convert.c: Likewise.
568 * dominance.c: Likewise.
569 * dwarf2out.c: Likewise.
570 * dwarfout.c: Likewise.
571 * expmed.c: Likewise.
572 * fold-const.c: Likewise.
574 * genattrtab.c: Likewise.
575 * ggc-common.c: Likewise.
576 * mips-tfile.c: Likewise.
577 * regmove.c: Likewise.
579 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
581 * builtin-attrs.def: Fix comment formatting.
582 * c-pretty-print.c: Likewise.
583 * diagnostic.h: Likewise.
584 * langhooks.h: Likewise.
586 * simplify-rtx.c: Likewise.
587 * tree.def: Likewise.
589 2003-08-22 Bernardo Innocenti <bernie@develer.com>
591 * config/m68k/m68k-protos.h: Convert to ISO C90.
592 * config/m68k/m68k.c: Likewise.
594 2003-08-21 Bernardo Innocenti <bernie@develer.com>
595 Paul Dale <pauli@snapgear.com>
596 Peter Barada <peter@baradas.org>
598 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
601 2003-08-21 Zack Weinberg <zack@codesourcery.com>
603 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
604 * config.gcc (*-*-openbsd): Don't set tm_file.
605 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
606 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
607 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
608 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
609 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
610 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
611 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
612 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
613 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
614 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
615 xscale-*-coff): Use explicit and complete lists of target headers
616 to include. Move definitions to tm_defines where appropriate.
617 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
618 not-yet-contributed configuration.
620 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
621 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
622 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
623 * config/i386/nto.h, config/iq2000/iq2000.h,
624 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
625 * config/m68k/linux.h, config/m68k/m68k-aout.h
626 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
627 * config/m68k/netbsd.h, config/m68k/openbsd.h
628 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
629 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
630 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
631 Remove includes of other target config headers, and
632 definitions of macros moved to tm_defines lists. Add #undefs
633 where now necessary to prevent redefinition warnings.
635 * config/h8300/coff.h: New file split out of...
636 * config/h8300/elf.h: ...here.
637 * config/m68k/hp320base.h: New file split out of...
638 * config/m68k/hp320.h: ...here.
639 * config/rs6000/lynxbase.h: New file split out of...
640 * config/rs6000/lynx.h: ...here.
642 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
643 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
645 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
646 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
647 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
648 Remove unnecessary #ifndef.
649 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
650 [under IN_LIBGCC2] with config/.
652 2003-08-21 Per Bothner <bothner@pbothner.com>
654 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
656 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
657 by return_at_eof check. Always call _cpp_pop_buffer at end.
659 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
662 * config/h8300/h8300.md (two anonymous patterns): Remove.
664 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
666 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
667 * config/mips/mips.c (function_arg_pass_by_reference): Never return
670 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
672 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
673 and similarly in (A | C) == D where C & ~D != 0.
675 2003-08-20 Geoffrey Keating <geoffk@apple.com>
678 * configure.in: When testing with_libs and with_headers, treat
679 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
680 * configure: Regenerate.
682 2003-08-20 Peter Barada <peter@baradas.org>
684 * longlong.h (umul_ppmm): Add ColdFire support.
686 2003-08-20 Peter Barada <peter@baradas.org>
687 Bernardo Innocenti <bernie@develer.com>
689 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
690 * config/m68k/m68k.h: Likewise.
691 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
692 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
693 * config/m68k/linux.h: Likewise.
694 * config/m68k/m68k.c: Likewise.
695 * config/m68k/m68k.md: Likewise.
696 * config/m68k/m68kelf.h: Likewise.
697 * config/m68k/netbsd-elf.h: Likewise.
698 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
700 2003-08-20 Bernardo Innocenti <bernie@develer.com>
702 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
703 * config/m68k/m68k.md: Likewise.
705 2003-08-20 Mark Mitchell <mark@codesourcery.com>
709 2003-08-19 Mark Mitchell <mark@codesourcery.com>
710 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
711 types with precisions other than those given by native machine
714 2003-08-20 Gunther Nikl <gni@gecko.de>
716 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
717 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
718 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
719 * config/m68k/m68k.md (anonymous define_insn): Likewise
720 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
721 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
722 code selected by NO_ASM_FMOVECR
724 2003-08-20 Gunther Nikl <gni@gecko.de>
726 * config/m68k/m68k.c (output_move_const_into_data_reg,
727 output_move_himode): unify MOTOROLA/MIT handling of moveq
728 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
731 2003-08-20 Gunther Nikl <gni@gecko.de>
733 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
735 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
736 HOST_WIDE_INT_PRINT_DEC with %wd
738 2003-08-20 Loren James Rittle <ljrittle@acm.org>
740 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
743 2003-08-20 Roger Sayle <roger@eyesopen.com>
746 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
747 operands before calling tree_int_cst_lt when performing associative
750 2003-08-20 Jason Merrill <jason@redhat.com>
752 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
753 (EXPR_CHECK): Don't check for 'r' or 's' if we're
754 checking IS_EXPR_CODE_CLASS.
755 * calls.c (calls_function_1): Likewise.
756 * fold-const.c (fold): Likewise.
757 * tree.c (iterative_hash_expr): Likewise.
758 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
760 2003-08-20 Gunther Nikl <gni@gecko.de>
762 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
763 depending on MOTOROLA_BSR
764 * config/m68k/m68k.md (anonymous define_insn): Likewise
766 2003-08-20 Jason Merrill <jason@redhat.com>
768 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
769 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
770 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
771 * dojump.c (do_jump): Likewise.
772 * fold-const.c (operand_equal_p, fold): Likewise.
773 (tree_expr_nonnegative_p): Likewise.
775 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
776 TYPE_USER_ALIGN for FIELD_DECLs.
778 * attribs.c (decl_attributes): Rebuild the function pointer type after
779 changing the target type.
780 * tree.c (get_qualified_type): Also check that the attributes match.
782 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
784 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
785 * objc/config-lang.in (stagestuff): ... to here.
787 2003-08-19 Mark Mitchell <mark@codesourcery.com>
790 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
791 NOP_EXPR) when necessary.
792 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
793 types with precisions other than those given by native machine
796 2003-08-19 Geoffrey Keating <geoffk@apple.com>
798 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
799 because some macro is defined.
801 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
803 * config/i386/darwin.h (ASM_SPEC): New.
804 (SUBTARGET_EXTRA_SPECS): New.
805 * config/rs6000/darwin.h (ASM_SPEC): New.
806 (SUBTARGET_EXTRA_SPECS): New.
807 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
808 a cross-compiler between two different processors on Darwin.
809 * configure: Regenerate.
811 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
813 * builtins.c: Fix comment typos.
814 * c-common.c: Likewise.
815 * c-decl.c: Likewise.
816 * c-pretty-print.c: Likewise.
817 * cfgbuild.c: Likewise.
818 * cfglayout.c: Likewise.
819 * cfgloopanal.c: Likewise.
820 * cgraphunit.c: Likewise.
821 * cppfiles.c: Likewise.
822 * dwarfout.c: Likewise.
824 * fold-const.c: Likewise.
826 * ggc-page.c: Likewise.
827 * haifa-sched.c: Likewise.
828 * pretty-print.c: Likewise.
831 * value-prof.c: Likewise.
833 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
835 * c-decl.c: Follow spelling conventions.
836 * cppfiles.c: Likewise.
838 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
840 * c-common.c: Fix comment formatting.
841 * c-common.h: Likewise.
842 * c-decl.c: Likewise.
843 * cppinit.c: Likewise.
844 * cpplib.h: Likewise.
845 * emit-rtl.c: Likewise.
847 * line-map.h: Likewise.
850 * simplify-rtx.c: Likewise.
852 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
854 * unwind-c.c: Add libgcc-style exception.
855 * unwind-dw2.c: Likewise.
856 * unwind-pe.h: Likewise.
857 * unwind-sjlj.c: Likewise.
858 * unwind.inc: Likewise.
860 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
862 PR c/5582 PR c++/10538
863 * langhooks-def.h (lhd_decl_uninit): Declare.
864 (LANG_HOOKS_DECL_UNINIT): New macro.
865 (LANG_HOOKS_INITIALIZER): Adjust.
866 * langhooks.h (struct lang_hooks): Add new field
868 * langhooks.c (lhd_decl_uninit): Define.
869 * c-common.c (c_decl_uninit_1): New function.
870 (c_decl_uninit): New function.
871 (warn_init_self): Define.
872 * c-common.h (c_decl_uninit): Declare.
873 (warn_init_self): Declare.
874 * c.opt: Introduce -Winit-self.
875 * c-opts.c (c_common_handle_options): Set warn_init_self.
876 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
877 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
878 * function.c (uninitialized_vars_warning): Call the language hook.
879 * doc/invoke.texi: Document -Winit-self.
881 2003-08-19 Chris Demetriou <cgd@broadcom.com>
883 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
884 to use better predicates and constraints. Define new
885 instruction to handle "trap_if" with DI-mode arguments.
886 (conditional_trap): FAIL if trap code is not 0.
888 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
890 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
891 strstr with $pb to a strcompare with "<pic base>"
892 (ix86_output_addr_diff_elt): Output the real pic base.
894 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
896 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
897 (LANG_HOOKS_INITIALIZER): Correct.
898 * c-lang.c: Likewise.
900 2003-08-19 Jan Hubicka <jh@suse.cz>
902 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
903 (cgraph_varpool_mark_needed_node): Likewise.
904 * cgraph.h (notice_global_symbol): Declare
905 * varasm.c (notice_global_symbol): Break out from ...
906 (assemble_start_function): ... here; update for variables.
907 (assemble_variable): Use notice_global_symbol.
909 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
911 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
912 expect SFmode and DFmode arguments to be passed in FPRs,
913 regardless of the underlying type.
915 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
918 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
919 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
921 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
924 * c-typeck.c (set_init_index): Check for negative index.
926 2003-08-18 Bob Wilson <bob.wilson@acm.org>
928 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
930 * config/xtensa/crtn.asm (_init, _fini): Likewise.
931 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
932 __umodsi3, __modsi3): Likewise.
933 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
936 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
938 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
940 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
942 * config/mips/mips.md: Quote C code in braces. Remove use of
943 fake const0_rtx operands. Remove double backslashes. Use \;.
944 Remove workarounds for bogus warnings.
946 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
948 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
949 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
950 rather than TARGET_MIPS4300.
951 (mulsf3_internal, mulsf3_r4300): Likewise.
953 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
955 * config/mips/mips.md: Renumber unspecs. Clean up comments.
957 2003-08-17 Roger Sayle <roger@eyesopen.com>
959 * simplify-rtx.c (associative_constant_p): New function to test
960 whether an RTX expression is an immediate constant.
961 (simplify_associative_operation): New function to perform some
962 reassociation optimizations of associative binary expressions.
963 (simplify_binary_operation): Use simplify_associative_operation
964 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
965 Floating point expressions are only reassociated when unsafe
966 math optimizations are permitted.
968 2003-08-17 Andreas Jaeger <aj@suse.de>
970 * config/alpha/alpha.md: Remove usage of PARAMS.
972 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
973 * config/i386/i386-interix.h: Likewise.
974 * config/i386/winnt.c: Likewise.
975 * config/i386/cygming.h: Likewise.
976 * config/i386/cygwin2.c: Likewise.
977 * config/darwin.c: Likewise.
978 * config/darwin-c.c: Likewise.
979 * config/darwin-protos.h: Likewise.
980 * config/darwin.h: Likewise.
981 * config/s390/s390-protos.h: Likewise.
982 * config/s390/s390.c: Likewise.
983 * config/ia64/ia64.c: Likewse
984 * config/ia64/ia64-protos.h: Likewise.
985 * config/ia64/ia64-c.c: Likewise.
987 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
989 * config/sparc/sparc.c: Convert to ISO C.
991 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
992 * config/sparc/sparc.c: Likewise.
994 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
997 * stmt.c (expand_expr_stmt_value): Don't warn about any void
1000 2003-08-16 Jan Hubicka <jh@suse.cz>
1002 * i386.c (ix86_fntype_regparm): Rename from ...
1003 (ix86_function_regparm): ... this one; add fastcall and local
1005 (ix86_function_ok_for_sibcall): Update.
1006 (ix86_return_pops_args): Likewise.
1007 (init_cumulative_args): Likewise.
1008 (x86_can_output_mi_thunk): Likewise.
1009 (function_arg): Fix formating.
1010 (x86_this_parameter): Fix fastcall.
1011 (x86_output_mi_thunk): Likewise.
1013 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
1014 body as reachable; mark nested functions as needed too.
1015 (dump_cgraph): Do not output global.calls.
1016 * cgraph.h (cgraph_global_info): Kill.
1017 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
1018 (record_call_1): Speedup.
1019 (cgraph_analyze_function): Break out from ...; compute inlining
1021 (cgraph_finalize_compilation_unit): ... here.
1022 (cgraph_mark_inline): Kill computation of calls.
1023 (cgraph_decide_inlining): Do not compute most of initial values.
1025 2003-08-14 Roger Sayle <roger@eyesopen.com>
1027 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
1028 to negate if either operand is easy to negate, if we don't care
1029 about sign-dependent rounding.
1030 (negate_expr): Make the logic to negate a REAL_CST explicit.
1031 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
1032 that's easy to negate, if we don't honor sign-dependent rounding.
1033 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
1034 negate, and the symmetric A * -B as -A * B if A is easy to negate.
1035 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
1036 -C/D if B and C are cheap to negate. Add an explicit rule to
1037 optimize X/-1.0 as -X when we don't care about signaling NaNs.
1039 2003-08-14 Zack Weinberg <zack@codesourcery.com>
1041 * Makefile.in (tm_file): Rename tm_include_list.
1042 (tm_p_file): Rename tm_p_include_list.
1043 (build_xm_file): Rename build_xm_include_list.
1044 (host_xm_file): Rename host_xm_include_list.
1045 (xm_file): Rename xm_include_list.
1046 (xm_file_list): Add to be substituted.
1047 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
1049 (bt-load.o): Add missing dependency on $(TM_H).
1050 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
1051 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
1052 build_xm_file, generate both *_file_list and *_include_list
1053 values from it. (xm_file_list was formerly not being generated.)
1054 In *_include_list, prefix the names of all headers found in
1055 $(srcdir)/config with config/. In each loop, consider only
1056 the special case files that can actually appear in that list.
1057 AC_SUBST all *_file_list and all *_include_list variables; do
1058 not AC_SUBST the plain *_file variables.
1059 * configure: Regenerate.
1061 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1063 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
1065 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1067 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
1069 (attr_length_call): Include it here. Improve length estimate for
1071 (output_call): Use targetm.binds_local_p.
1073 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1075 * builtins.c (CASE_MATHFN): New helper macro.
1076 (mathfn_built_in): Simplify and sort.
1078 * protoize.c (substr): Delete, callers changed to `strstr'.
1080 2003-08-13 Zack Weinberg <zack@codesourcery.com>
1082 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
1083 * config/iq2000/xm-iq2000.h: Delete file.
1085 2003-08-13 Geoffrey Keating <geoffk@apple.com>
1087 * gengtype.c (walk_type): Process a subobject before processing
1088 the pointer that points to the subobject.
1090 2003-08-13 Per Bothner <pbothner@apple.com>
1092 * regclass.c (init_reg_modes): Make non-static.
1093 Rename to init_reg_modes_once per new naming convention.
1094 (init_regs): Don't call init_reg_modes here.
1095 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
1096 * rtl.h (init_reg_modes_once): New declaration.
1097 * toplev.c (backend_init): Call init_regs after init_emit_once.
1099 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
1101 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
1102 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
1104 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
1106 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
1107 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
1109 2003-08-13 Dale Johannesen <dalej@apple.com>
1111 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
1112 handling of decrement-and-branch farther than 32 bits.
1114 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
1116 * configure.in (make_compare_target): Move test to ...
1117 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
1118 * configure: Regenerate.
1120 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
1122 * config/mips/iris6.h: Convert to C90 prototypes.
1123 * config/mips/irix6-libc-compat.c: Likewise.
1124 * config/mips/mips-protos.h: Likewise.
1125 * config/mips/mips.c: Likewise.
1127 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1129 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
1130 for selected machines. Comment heavily.
1131 fixinc/fixincl.x: Rebuild.
1132 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
1134 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
1136 * config/mips/mips.h: Tweak various comments.
1137 * config/mips/mips.c: Likewise.
1139 2003-08-11 James E Wilson <wilson@tuliptree.org>
1141 PR optimization/11319
1143 * alias.c (find_base_value, case REG): Return 0 not src if no base
1146 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1148 * gcse.c (gmalloc): Fix last change.
1150 2003-08-11 Roger Sayle <roger@eyesopen.com>
1152 * simplify-rtx.c (simplify_binary_operation): Replace calls to
1153 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
1154 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
1155 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
1157 2003-08-11 Roger Sayle <roger@eyesopen.com>
1159 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
1160 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
1161 typecode for an ABS_EXPR.
1163 * doc/c-tree.texi: Document ABS_EXPR.
1165 2003-08-11 Roger Sayle <roger@eyesopen.com>
1167 * fold-const.c (fold): Optimize any associative floating point
1168 operator with -funsafe-math-optimizations, not just MULT_EXPR.
1170 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
1172 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
1173 information in SHmedia case too.
1174 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
1176 (__set_fpscr): Use an access via GOT for PIC case.
1178 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
1180 * configure.in (intermodule): Make switch test more portable.
1181 * configure: Regenerate.
1183 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
1185 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
1186 (restrap): Likewise.
1188 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1190 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
1191 (grealloc): Size argument is a size_t.
1192 (gcalloc): New function. Use throughout in lieu of
1195 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
1197 * config/ia64/ia64.c (ia64_reorg): Likewise.
1198 * conflict.c (conflict_graph_new): Likewise.
1199 * fixinc/fixincl.c (run_compiles): Likewise.
1200 * genattrtab.c (optimize_attrs): Likewise.
1201 * genrecog.c (new_decision): Likewise.
1202 * haifa-sched.c (schedule_block): Likewise.
1203 * hashtable.c (ht_create): Likewise.
1205 2003-08-11 Bob Wilson <bob.wilson@acm.org>
1207 * config/xtensa/lib2funcs.S: Fix whitespace.
1208 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
1209 syntax where appropriate. Remove unnecessary backslash escapes.
1210 Reformat comments and fix some code formatting.
1211 (extendqisi2): Rearrange conditional.
1212 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
1213 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
1216 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
1218 * config/mips/mips.c: Various formatting fixes.
1219 (override_options): Resync -mtune handling with gas.
1220 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
1221 * config/mips/mips.h: More formatting fixes.
1222 (mips_abi): Move declaration.
1223 * config/mips/mips.md (exception_receiver): Add mode to
1226 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
1228 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
1230 (bdesc_1arg): Remove evsplati and evsplatfi.
1232 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
1234 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
1237 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1239 * builtins.c (expand_builtin_strcat): Optimize constant strings.
1241 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
1243 * pretty-print.c (pp_base_indent): Rename from pp_indent.
1244 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
1245 (struct c_pretty_print_info): Add more fields.
1246 (pp_c_left_paren): Move to c-pretty-print.c.
1247 (pp_c_right_paren): Likewise.
1248 (pp_c_left_brace): Likewise.
1249 (pp_c_right_brace): Likewise.
1250 (pp_c_left_bracket): Likewise.
1251 (pp_c_right_bracket): Likewise.
1252 (pp_c_declarator): Declare.
1253 (pp_c_direct_declarator): Likewise.
1254 (pp_c_specifier_qualifier_list): Likewise.
1255 (pp_c_type_id): Likewise.
1256 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
1257 (pp_c_type_qualifier_list): New.
1258 (pp_c_pointer): Likewise.
1259 (pp_c_parameter_type_list): Likewise.
1260 (pp_c_function_definition): Likewise.
1261 (pp_c_id_expression): Likewise.
1262 (pp_c_simple_type_specifier): Tidy.
1263 (pp_c_unary_expression): Likewise.
1264 (pp_c_expression): Likewise.
1265 (pp_c_pretty_printer_init): Likewise.
1266 (pp_c_specifier_qualifier_list): Rework..
1267 (pp_c_abstract_declarator): Likewise.
1268 (pp_c_postfix_expression): Likewise.
1269 (pp_c_primary_expression): Likewise.
1270 (pp_c_cast_expression): Likewise.
1271 (pp_c_direct_abstract_declarator): Likewise.
1272 (pp_c_storage_class_specifier): Likewise.
1273 (pp_c_function_specifier): Likewise.
1274 (pp_c_declaration_specifiers): Likewise.
1275 (pp_c_direct_declarator): Likewise.
1276 (pp_c_declarator): Likewise.
1277 (pp_c_declaration): Likewise.
1278 (pp_c_statement): Likewise.
1279 (pp_c_integer_constant): Rename from pp_c_integer_literal.
1280 (pp_c_character_constant): Rename from pp_c_character_literal.
1281 (pp_c_bool_constant): Rename from pp_c_bool_literal.
1282 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
1283 (pp_c_floating_constant): Rename from pp_c_real_literal.
1284 (pp_c_constant): Rename from pp_c_literal.
1285 * c-lang.c: Include diagnostic.h and c-pretty-print.h
1286 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
1287 (c_initialize_diagnostics): New.
1288 * Makefile.in (c-lang.o): Update dependency.
1290 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
1292 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
1294 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
1296 * config/mips/mips.c (mips_no_mips16_string): Remove.
1297 (override_options): Don't handle -mips16 as part of -mipsN.
1298 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
1299 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
1300 (TARGET_OPTIONS): Remove -mno-mips16.
1302 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
1304 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
1305 (coprocessor2_operand): Likewise.
1306 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
1307 (lookup_name): Remove declaration.
1308 (abort_with_insn): Remove. Replace all uses with fatal_insn.
1309 (mips16, mips_abicalls): Remove.
1310 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
1311 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
1312 (coprocessor_operand, coprocessor2_operand): Remove.
1313 (override_options): Don't set mips16 or mips_abicalls.
1314 (print_operand): Don't expect SIGN_EXTEND operands.
1315 (mips_secondary_reload_class): Likewise.
1316 (mips_output_conditional_branch): Remove disabled long-branch code.
1317 * config/mips/mips.h (call_used_regs): Remove declaration.
1318 (may_call_alloca): Likewise.
1319 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
1320 (mips_abicalls, mips16): Remove declarations.
1321 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
1322 (CC1_SPEC): Remove outdated comment.
1323 (MIPS_VERSION, MACHINE_TYPE): Remove.
1324 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1325 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
1326 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
1327 (PUSH_ROUNDING): Likewise.
1328 (ASSEMBLER_SCRATCH_REGNUM): Remove.
1329 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
1330 and mips16 with TARGET_MIPS16.
1332 2003-08-09 Per Bothner <pbothner@apple.com>
1334 * cppinit.c (cpp_read_main_file): Split out source-independent
1335 initialization to separate function ...
1336 (cpp_post_options): New function.
1337 * cppfiles.c (cpp_stack_file): Rename public name to ...
1338 (_cpp_stack_file): New internal function name.
1339 * cpplib.h: Update accordingly.
1340 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
1341 (cpp_read_main_file): Don't initialize line here.
1342 * c-opts.c (c_common_post_options): Call cpp_post_options.
1343 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
1344 * fix-header.c (read_scan_file): Call cpp_post_options.
1346 2003-08-09 Per Bothner <per@bothner.com>
1348 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
1350 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1352 * pa.c (pa_asm_output_mi_thunk): Fix typo.
1354 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
1356 PR preprocessor/11839
1357 * cppfiles.c (open_file): Handle ENOTDIR.
1359 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
1362 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
1364 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1366 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
1367 source/destination is not a register operand.
1369 2003-08-08 Richard Henderson <rth@redhat.com>
1372 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
1373 RETURN_ADDRESS_POINTER_REGNUM.
1374 (ia64_expand_prologue): Don't frob it.
1375 (ia64_output_function_epilogue): Likewise.
1376 (ia64_return_addr_rtx): New.
1377 (ia64_split_return_addr_rtx): New.
1378 * config/ia64/ia64-protos.h: Update.
1379 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
1380 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
1381 (GENERAL_REGNO_P): Don't check it.
1382 (AR_*_REGNUM): Renumber.
1383 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1384 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
1385 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
1386 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
1387 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
1388 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
1389 (movdi_ret_addr): New.
1391 2003-08-08 Geoffrey Keating <geoffk@apple.com>
1393 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
1395 2003-08-08 Roger Sayle <roger@eyesopen.com>
1397 * tree.h (get_identifier) Define a macro form of get_identifier
1398 that calls get_identifier_with_length when the string is constant.
1399 (get_identifier_with_length): Change type of second argument to
1400 size_t in prototype.
1401 * stringpool.c (get_identifier): Undefine the macro before giving
1402 the function definition.
1403 (get_identifier_with_length): Change type of second argument to
1404 size_t in function definition.
1405 * hashtable.c (calc_hash): Change type of second argument to size_t.
1406 (ht_lookup): Change type of third argument to size_t. Reorganize
1407 to speed-up the cases where the hash table slot is empty, or the
1408 first probe matches (i.e. there isn't a collision).
1409 * hashtable.h (ht_lookup): Adjust function prototype.
1411 2003-08-08 Bernardo Innocenti <bernie@develer.com>
1415 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
1417 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
1419 * common.opt: Add debug switches.
1420 * flags.h (use_gnu_debug_info_extensions): Boolify.
1421 * opts.c (write_symbols, debug_info_level,
1422 use_gnu_debug_info_extensions): Move from toplev.c.
1423 (set_debug_level): New.
1424 (common_handle_options): Handle debug switches.
1425 (print_help): Display target options directly.
1426 * toplev.c (debug_hooks): Don't initialize.
1427 (write_symbols, debug_info_level,
1428 use_gnu_debug_info_extensions): Move to opts.c.
1429 (debug_args, display_help, decode_g_option): Remove.
1430 (process_options): Set no debug if level zero here,
1431 and no-debug-hooks. Error here if impossible debug format selected.
1432 * toplev.h (display_help, decode_g_option): Remove.
1434 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
1436 * tree.c (get_file_function_name_long): Fix size of alloca() area.
1438 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
1440 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
1441 and gcc_cv_prog_cmp_skip.
1442 * configure: Regenerate.
1444 2003-08-08 Stan Cox <scox@redhat.com>
1446 * config/iq2000: New port.
1447 * config.gcc (iq2000-*-elf): Added.
1448 * doc/install.texi (Specific): Add iq2000 description.
1450 2003-08-08 Andreas Schwab <schwab@suse.de>
1452 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
1453 and insert missing empty argument.
1454 * configure: Regenerate.
1456 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1458 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
1459 (attr_length_millicode_call): Likewise.
1460 (attr_length_call): Likewise. Revise some maximum insn lengths.
1461 (attr_length_indirect_call): Likewise.
1462 (output_call): Fix thinko that added extra nop.
1463 * pa.h (IN_NAMED_SECTION_P): Define.
1466 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
1467 __STDC_EXT__ when using C++ dialect.
1469 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
1471 * sh.c (calc_live_regs): If the return address pointer is live,
1473 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
1474 for saves / restores.
1475 (sh_expand_epilogue): If sh_media_register_for_return returns a
1476 register number, flag the instructions that restores PR_MEDIA_REG
1478 Remove dead update of offset.
1479 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
1480 we can use the result of get_hard_reg_initial_val.
1481 * sh.md (UNSPEC_RA): New constant.
1482 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
1483 (load_ra). Handle UNSPEC_RA.
1484 (sibcall_media): Use PR_MEDIA_REG.
1486 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
1487 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
1488 needs saving on SHmedia.
1490 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
1492 * config/s390/s390.md: Replace all occurrences of \\t with \t.
1494 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
1496 * local-alloc.c (combine_regs): Fix comment typo.
1498 2003-08-06 Zack Weinberg <zack@codesourcery.com>
1500 * c-decl.c (builtin_decls): Replace with first_builtin_decl
1501 and last_builtin_decl.
1502 (c_init_decl_processing): Initialize both.
1503 (c_reset_state): Iterate from first_builtin_decl to
1504 last_builtin_decl inclusive to reintroduce builtins.
1506 2003-08-06 David Mosberger <davidm@hpl.hp.com>
1508 * doc/extend.texi (Function Attributes): Document the IA-64 version
1509 of the "model" attribute.
1511 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
1512 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
1513 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
1515 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
1516 (ia64_encode_section_info): Likewise.
1517 (ia64_attribute_table): Add "model" attribute.
1518 (TARGET_ENCODE_SECTION_INFO): Define.
1519 (small_addr_symbolic_operand): New function.
1520 (got_symbolic_operand): Return 0 for a symbolref to an object
1521 in the small address area.
1522 (enum ia64_addr_area): New type.
1523 (small_ident1): New variable.
1524 (small_ident2): Likewise.
1525 (init_idents): New function.
1526 (ia64_get_addr_area): Likewise.
1527 (ia64_encode_addr_area): Likewise.
1528 (ia64_encode_section_info): Likewise.
1529 (ia64_expand_load_address): For symbolic references to objects in
1530 the small-address-area, load the address via gen_rtx_SET() (which,
1531 eventually, will expand into "addl").
1533 2003-08-06 Per Bothner <pbothner@apple.com>
1535 * line-map.h (fileline): New typedef.
1536 (struct line_map, linemap_add, linemap_lookup): Use it.
1537 * input.h (struct location_s): Comment notes that long-term we want
1538 to replace it by fileline.
1540 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
1542 Fix SHcompact exception handling:
1543 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
1544 by the prologue, return a MEM with return_address_pointer_rtx
1546 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
1547 (RETURN_ADDR_OFFSET): Don't define.
1548 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
1549 registers that are visible in compact mode. Show that SHmedia
1550 registers still exist in compact mode, even if there are not
1552 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
1553 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
1554 and DW_EH_PE_pcrel for pic data.
1555 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
1556 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
1557 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
1558 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
1559 * sh.md (movsi_media-1): New splitter.
1561 2003-08-06 Graeme Peterson <gp@qnx.com>
1563 * config/i386/nto.h: New.
1564 * config/i386/t-nto: New.
1565 * config.gcc (i[34567]86-*-nto-qnx*): New.
1567 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
1569 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
1571 2003-08-06 Alan Modra <amodra@bigpond.net.au>
1573 * calls.c (load_register_parameters): Arrange for call_fusage to
1574 report the whole register as used when shifting to the msb.
1576 2003-08-05 Roger Sayle <roger@eyesopen.com>
1578 * builtins.c (expand_builtin): When not optimizing, call the library
1579 function for all builtins that have library functions (except alloca).
1581 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
1583 * c.opt: Introduce -fworking-directory.
1584 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
1585 * c-common.h (flag_working_directory): Declare.
1586 * c-common.c (flag_working_directory): Define.
1587 * c-opts.c (c_common_handle_options): Set it.
1588 (sanitize_cpp_opts): Set...
1589 * cpplib.h (struct cpp_options): ... working_directory option.
1590 (struct cpp_callbacks): Add dir_change.
1591 * cppinit.c (read_original_filename): Call...
1592 (read_original_directory): New. Look for # 1 "directory//"
1594 (cpp_read_main_file): Call dir_change callback if working_directory
1596 * gcc.c (cpp_unique_options): Pass -g*.
1597 * c-lex.c (cb_dir_change): New.
1598 (init_c_lex): Set dir_change callback.
1599 * toplev.c (src_pwd): New static variable.
1600 (set_src_pwd, get_src_pwd): New functions.
1601 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1602 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1603 * dwarf2out.c (gen_compile_unit_die): Likewise.
1604 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1606 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1608 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1609 (pp_set_prefix): Likewise.
1610 (pp_destroy_prefix): Likewise.
1611 (pp_remaining_character_count_for_line): Likewise.
1612 (pp_clear_output_area): Likewise.
1613 (pp_formatted_text): Likewise.
1614 (pp_last_position_in_text): Likewise.
1615 (pp_emit_prefix): Likewise.
1616 (pp_append_text): Likewise.
1617 (pp_flush): Likewise.
1618 (pp_format_text): Likewise.
1619 (pp_format_verbatim): Likewise.
1620 (pp_tree_identifier): Tidy.
1621 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1622 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1623 (pp_base_flush): Rename from pp_flush.
1624 (pp_base_set_line_maximum_length): Rename from
1625 pp_set_line_maximum_length.
1626 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1627 (pp_base_set_prefix): Rename from pp_set_prefix.
1628 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1629 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1630 (pp_base_append_text): Rename from pp_append_text.
1631 (pp_base_formatted_text): Rename from pp_formatted_text.
1632 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1633 (pp_base_remaining_character_count_for_line): Rename from
1634 pp_remaining_character_count_for_line.
1635 * diagnostic.h (diagnostic_format_decoder): Tidy.
1636 (diagnostic_flush_buffer): Likewise.
1637 * c-pretty-print.h: (pp_c_string_literal): Declare.
1638 (pp_c_real_literal): Likewise.
1639 (pp_c_integer_literal): Likewise.
1640 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1642 (pp_c_character_literal): Tidy.
1643 (pp_c_string_literal): Make public.
1644 (pp_c_bool_literal): Likewise.
1645 (pp_c_integer_literal): Likewise.
1646 (pp_c_real_literal): Likewise.
1648 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1649 (c-pretty-print.o): Update dependence.
1651 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1653 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1654 ".set nomacro" state.
1655 (fix_truncsfsi2_macro): Likewise.
1657 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1659 * tree.h (DID_INLINE_FUNC): Remove macro.
1660 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1661 add tree check for FUNCTION_DECL.
1662 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1663 (struct tree_decl): Rename inlined_function_flag to
1664 declared_inline_flag.
1665 * c-common.h (c_lang_decl): Remove.
1666 (DECL_ESTIMATED_INSNS): Remove.
1667 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1668 (DECL_DECLARED_INLINE_P): Remove.
1669 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1670 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1671 (finish_function): Make uninlinable a bool. Fixup call to
1672 tree_inlinable_function_p() and fix some code style issues.
1673 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1674 * cgraph.c (dump_cgraph): Likewise.
1675 * cgraphunit.c (cgraph_decide_inlining): Likewise
1676 (cgraph_finalize_compilation_unit): Likewise.
1677 Also update call to tree_inlinable_function_p().
1678 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1679 look at DECL_DECLARED_INLINE and reverse logic.
1680 * print-tree.c (print_node): Likewise.
1681 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1682 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1684 * tree-inline.c (inlinable_function_p): Split up in this function to
1685 check for basic inlining inhibiting conditions, and new
1686 limits_allow_inlining() function. Warn if inlining is impossible
1687 because the inline candidate calls alloca or uses sjlj exceptions.
1688 (limits_allow_inlining): this new function to check if the inlining
1689 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1690 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1691 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1693 (tree_inlinable_function_p): Make a bool. Update call to
1694 inlinable_function_p
1695 (expand_call_inline): Use limits_allow_inlining() when not in
1696 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1697 instead see if the function was declared `inline'.
1699 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1701 * gcse.c (try_replace_reg): Fix updating of note.
1703 2003-08-04 Roger Sayle <roger@eyesopen.com>
1706 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1707 logic in negate_expr, i.e. we don't invert (A-B) for floating
1708 point types unless flag_unsafe_math_optimizations.
1710 2003-08-04 Roger Sayle <roger@eyesopen.com>
1712 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1713 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1714 for floating point expressions with -ffast-math.
1715 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1716 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1718 2003-08-04 Roger Sayle <roger@eyesopen.com>
1720 * c-common.c (flag_noniso_default_format_attributes): Delete.
1721 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1722 (c_attrs_initialized): Delete.
1723 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1724 always call c_init_attributes.
1725 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1726 set c_attrs_initialized when done.
1727 (c_common_insert_default_attributes): Delete.
1728 * c-common.h (flag_noniso_default_format_attributes): Delete.
1729 (c_coomon_insert_default_attributes): Delete prototype.
1730 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1731 flag_noniso_default_format_attributes.
1733 * c-decl.c (c_insert_default_attributes): Delete.
1734 * c-tree.h (c_insert_default_attributes): Delete prototype.
1736 * attribs.c (decl_attributes): Don't call insert_default_attributes
1737 langhook. Update function description comment.
1738 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1739 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1740 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1741 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1743 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1746 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1748 * config/mips/mips.c (override_options): Disable -G on targets that
1749 have no .section support.
1750 (mips_select_section): Use default_select_section for such targets.
1752 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1754 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1755 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1756 * fixinc/fixincl.x: Rebuild.
1757 * fixinc/tests/base/regexp.h: New test.
1759 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1761 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1762 parsing macro arguments in the top-level context.
1764 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1766 * config.in: Remove HAVE_LSTAT.
1767 * configure, configure.in: Don't test for lstat.
1769 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1771 * opts.c (decode_options): Do language-specific initialization for
1772 the global diagnostic context.
1773 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1774 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1775 (LANG_HOOKS_INITIALIZER): Adjust.
1776 * langhooks.h (struct lang_hooks): Add new field
1777 initialize_diagnostics.
1778 * langhooks.c (lhd_initialize_diagnostics): Define.
1780 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1782 * pretty-print.h: Adjust macro definitions.
1783 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1784 (pp_character): Rename to pp_base_character.
1785 (pp_string): Rename to pp_base_string.
1786 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1787 (pp_newline): Likewise. Adjust.
1788 (pp_c_char): Adjust.
1790 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1792 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1793 BUILT_IN_LLABS): Move to miscellaneous section.
1795 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1797 PR preprocessor/11534
1798 * cppexp.c (parse_defined): Warn only if -pedantic.
1800 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1802 * cppfiles.c (stack_file): Use file path.
1804 2003-08-02 Roger Sayle <roger@eyesopen.com>
1806 * builtin-types.def (BT_SSIZE): New primitive type.
1807 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1808 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1809 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1810 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1811 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1812 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1813 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1814 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1815 few functions that define default attributes using it.
1816 * c-common.c (c_common_insert_default_attributes): Do nothing.
1818 * doc/extend.texi: Document these "new" builtins.
1820 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1822 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1823 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1824 when -mieee-fp set and -shared not set.
1825 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1827 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1829 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1830 next_file. Remove import and pragma_once, add once_only.
1831 (find_file): Add new file structures to the all_files list.
1832 (should_stack_file): Mark #import-ed files once-only, and
1833 don't stack them if the file has already been stacked.
1834 (_cp_mark_file_once_only): Simplify.
1835 * cpphash.h (struct cpp_reader): Rename once_only_files
1836 to all_files. Rename saw_pragma_once to seen_once_only.
1837 (_cpp_mark_file_once_only): Update prototype.
1838 * cpplib.c (do_pragma_once): Update.
1840 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1842 * cppfiles.c (ENOTDIR): Remove.
1843 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1844 other than ENOENT here.
1845 (once_only_file_p): Rename should_stack_file.
1846 (find_file, open_file_failed, read_file_guts): Report errors
1847 with full path name.
1848 (read_file): Move pch handling to should_stack_file.
1849 (should_stack_file): Handle PCH and once-only issues, and
1851 (stack_file): Don't do file reads.
1853 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1855 * libgcov.c (gcov_exit): Cleanup and fix.
1856 * profile.c (compute_value_histograms): Don't try to read profiles
1857 that are not present.
1859 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1861 * builtins.def: Categorize.
1863 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1865 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1867 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1869 * config.gcc: Enable posix threads by default on darwin.
1871 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1873 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1874 even if nehedges1 is 0.
1876 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1878 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1879 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1880 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1883 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1884 * fixinc/fixincl.x: Regenerate.
1885 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1887 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1889 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1891 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1893 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1894 for accesses to exc_ptr.
1896 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1898 * doc/sourcebuild.texi (Front End Directory): Don't make references
1899 to libsubdir, it's not part of the interface to frontends.
1900 * doc/install.texi (Configuration): Help users read faster by saying
1901 that GCC's configure options are the standard autoconf ones.
1902 Mention --libdir. Update the default rules for finding the
1903 assembler. Don't use libsubdir since we haven't said what it means.
1904 (Specific): In the Solaris 7 notes, update the place to put the
1906 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1907 * doc/cpp.texi (Search Path): Actually, the search path
1908 depends on libdir, which can relocate with cpp.
1909 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1910 now a private interface between the Makefile and the driver.
1912 2003-08-01 Richard Henderson <rth@redhat.com>
1914 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1916 * varasm.c (lookup_constant_def): New function.
1917 * rtl.h (lookup_constant_def): Declare it.
1918 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1919 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1921 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1923 * c-decl.c (gettags, pushdecl_function_level): Delete.
1924 (last_function_parm_vars): Rename last_function_parm_others.
1925 (current_function_parm_vars): Rename current_function_parm_others.
1926 (struct c_scope): Rewrite comment explaining this data structure.
1927 Add names_last, blocks_last, parms_last fields. Rename
1928 incomplete_list to incomplete.
1929 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1930 (poplevel): Ignore second argument. No need to nreverse
1931 anything. Restructure such that each list is processed
1932 exactly once. Use 'const location_t *locus' syntactic sugar
1933 variable where useful. Issue unused variable warnings
1934 ourselves, do not rely on function.c.
1935 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1936 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1937 (implicitly_declare): decl cannot be error_mark_node.
1938 (undeclared_variable): Manipulate scope structure directly.
1939 (c_make_fname_decl): Likewise.
1940 (getdecls, c_init_decl_processing): Fix comment.
1941 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1942 for 'last' variable.
1943 (grokparms): No need to nreverse parms list.
1944 (store_parm_decls_newstyle): Set up the parms_last and
1945 names_last fields of the new scope too.
1946 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1947 on parms to begin with; check this under ENABLE_CHECKING. Set
1949 (check_for_loop_decls): Refer directly to current_scope->tags.
1950 Use consistent quote style in diagnostics.
1951 (c_write_global_declarations): The names list is not backward.
1953 * c-common.h: Don't prototype gettags.
1954 * c-parse.in: Call poplevel with second argument 0 always.
1956 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1958 * builtins.def: Resort builtins.
1960 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1962 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1963 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1964 Prepend "__builtin_" onto NAME with string concatenation. Remove
1965 explicit "__builtin_" from each macro call.
1967 Reformat entire file.
1969 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1971 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1972 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1974 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1976 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1977 CCL1, or CCL2 modes with floating point operations.
1979 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1980 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1981 "*subdf3_cconly"): New insns.
1982 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1984 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1986 * Makefile.in: Refine dependencies.
1987 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1988 * c.opt: Update help for -Wimport.
1989 * cppfiles.c: Include hashtab.h. Update comments.
1990 (stack_file): Read the file before updating dependencies.
1991 (once_only_file_p): Be smarter about marking once-only files.
1992 (_cpp_mark_file_once_only): Correct the check for existence on
1994 (open_file_failed): Use name not path, which is NULL.
1995 * cpphash.h: Don't include hashtab.h.
1996 (struct _cpp_file): Remove.
1997 (struct cpp_reader): Update.
1998 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1999 * cpplib.h (struct cpp_options): Remove warn_import.
2000 (cpp_simplify_path): Remove.
2002 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
2005 * doc/extend.texi (Statement Expressions): Document C++ semantics.
2007 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2009 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
2011 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2013 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
2015 * builtins.def: Likewise.
2017 2003-07-31 Jason Merrill <jason@redhat.com>
2019 * Makefile.in (bubblestrap): Don't require a previous full
2022 * expr.c (mostly_zeros_p): No longer static.
2023 * tree.h: Declare it.
2024 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
2025 unless we need to do substitutions.
2027 2003-07-31 Roger Sayle <roger@eyesopen.com>
2029 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
2030 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
2031 as pow(x,2.0) when the latter will be expanded back into x*x.
2032 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
2033 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
2034 pow can never set errno when used with an integer exponent.
2035 Always use expand_powi when exponent is -1, 0, 1 or 2.
2036 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
2037 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
2038 the pow forms of these expressions.
2040 2003-07-31 Geoffrey Keating <geoffk@apple.com>
2042 * Makefile.in (libexecdir): New.
2043 (libsubdir): Use gcc instead of gcc-lib.
2044 (libexecsubdir): New.
2045 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
2046 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
2048 (installdirs): Make libexecsubdir.
2049 (install-common): Put executables in libexecsubdir.
2050 (itoolsdir): Use libexecsubdir.
2051 (itoolsdatadir): New.
2052 (install-mkheaders): Separate data files and executables.
2053 (install-collect2): Put executables in libexecsubdir.
2054 (uninstall): Remove libexecsubdir.
2055 * mkheaders.in: Update for new arrangement of files.
2057 (libexecsubdir): New.
2058 (itoolsdir): Use libexecsubdir.
2059 (itoolsdatadir): New.
2060 * gcc.c (gcc_libexec_prefix): New.
2061 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
2062 (standard_exec_prefix_1): Use libexec.
2063 (standard_exec_prefix_2): New.
2064 (standard_libexec_prefix): New.
2065 (process_command): Update for new arrangement of files. Compute
2066 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
2068 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
2070 * inclhack.def (stdio_va_list): Avoid bogus replacement which
2071 triggers on Interix.
2072 * fixincl.x: Regenerate.
2074 2003-07-31 Jakub Jelinek <jakub@redhat.com>
2076 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
2077 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
2079 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2081 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
2083 2003-07-31 Per Bothner <pbothner@apple.com>
2085 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
2086 (add_input_filename): New function.
2087 (handle_options): Call add_input_filename directly instead of
2089 * opts.h (in_fnames, num_in_fnames): Moved here.
2090 (add_input_filename): Declare.
2091 * c-decl.c: Need to #include opts.h.
2092 * Makefile.in (c-decl.o): Also depends on opts.h.
2093 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
2094 (c_common_handle_filename): Replaced by add_input_filename.
2095 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
2097 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
2098 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
2099 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
2100 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
2102 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2104 * combine.c (try_combine): Set JUMP_LABEL for newly created
2107 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2109 * fold-const.c (fold): Fold some comparisons of bit operations.
2111 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
2113 * cgraph.c (create_edge): Fix typo.
2114 * i386.c (pic_symbolic_operand): Reorder tests.
2116 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
2118 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
2120 (Gcov Data Files): Update.
2122 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2124 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
2127 * gthr-posix.c: New file.
2128 * gthr-posix.h: Define _REENTRANT if missing.
2129 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
2131 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
2133 * config/alpha/t-osf-pthread: New file.
2135 * fixinc/inclhack.def (alpha_pthread): New fix.
2136 * fixinc/fixincl.x: Regenerate.
2137 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
2139 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
2141 Fixes PR bootstrap/9330.
2143 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2145 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
2148 * configure: Regenerate.
2150 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
2152 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
2155 2003-07-30 Roger Sayle <roger@eyesopen.com>
2157 * builtins.def: Alphabetize.
2159 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
2161 * doc/c-tree.texi: Normalize spellings of "lowercase" and
2163 * doc/cpp.texi: Likewise.
2164 * doc/md.texi: Likewise.
2165 * doc/rtl.texi: Likewise.
2166 * doc/tm.texi: Likewise.
2168 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
2170 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
2171 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
2174 2003-07-30 Chris Demetriou <cgd@broadcom.com>
2176 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
2177 macros before defining them.
2179 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
2181 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
2182 UNSPECV_BLOCKAGE): New constants.
2183 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
2184 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
2185 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
2186 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
2188 (all insns and expanders): Write output control string as brace block
2189 where appropriate. Remove \-escapes for doublequote characters.
2191 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
2193 * gcse.c (insert_store): Fix typo in previous patch.
2195 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
2197 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
2199 2003-07-30 Andi Kleen <ak@muc.de>
2201 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
2203 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2205 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
2206 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
2207 GCOV_N_VALUE_COUNTERS): New.
2208 * profile.c (compute_value_histograms): New static function.
2209 (branch_prob): Read back the value histograms.
2210 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
2211 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
2212 * value-prof.c: Add comment on reading the profile.
2213 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
2214 * doc/invoke.texi (-fprofile-values): Document behavior with
2215 -fbranch-probabilities.
2217 2003-07-30 David Edelsohn <edelsohn@gnu.org>
2219 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
2221 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
2223 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
2226 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2228 * gcse.c (insert_store): Ignore fake edges.
2230 * c-common.c (flag_vtable_gc): Kill.
2231 * c-common.g (flag_vtable_gc): Kill.
2232 * c-opts (c_common_handle_option): Kill.
2233 * c.opt (fvtable-gc): Kill.
2234 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
2235 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
2236 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
2238 * invoke.texi (-ftable-gc): Kill documentation.
2240 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
2241 just because function body is missing.
2243 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
2245 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
2247 * unwind-sjlj.c: Fix typo in file description.
2249 2003-07-30 Alan Modra <amodra@bigpond.net.au>
2251 * calls.c (load_register_parameters): When shifting reg sized values
2252 to the msb, move the value to a reg first.
2254 2003-07-29 Geoffrey Keating <geoffk@apple.com>
2256 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
2257 * line-map.h (linemap_add): Update comments.
2258 * line-map.c (linemap_add): Update comments, interpret zero-length
2259 filename as "<stdin>".
2261 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
2263 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
2265 2003-07-29 Zack Weinberg <zack@codesourcery.com>
2267 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
2268 New static variables.
2269 (struct c_scope): Add parms and warned_forward_parm_decls
2270 fields; remove parm_order.
2271 (storedecls, storetags): Delete.
2272 (poplevel): Also clear bindings on the parms chain.
2273 (pushdecl): Handle forward declarations of parameters, and
2274 chain PARM_DECLs on the parms list, not the names list.
2275 (lookup_name_current_level): Check for PARM_DECLs on the parms
2277 (push_parm_decl): Don't update parm_order.
2278 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
2279 warning, only once per parameter list, and set TREE_ASM_WRITTEN
2280 on the decls here. Then move the forward decls to the names list.
2281 (grokparms): Set last_function_parm_vars.
2282 (get_parm_info): Don't use gettags or getdecls. No need to
2283 extract non-parms from the parms list, or reorganize the parms
2284 list. Feed nonparms back in the TREE_TYPE of the list node
2285 returned. Issue only one error per parameter list for "void"
2286 appearing more than once in said parameter list. Collapse
2287 parmlist_tags_warning into this function to avoid double scan
2289 (start_function): Set current_function_parm_vars.
2290 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
2291 directly. Get non-parms from current_function_parm_vars; no
2292 need to extract them from the parms chain. Properly bind tags
2294 (store_parm_decls_oldstyle): No need to extract non-parameters
2295 from the parms chain, nor to store them back afterward. Move
2296 declaration to top of function, restructure code reordering
2298 (store_parm_decls): No need to save and restore warn_shadow.
2299 * c-parse.in: Don't call parmlist_tags_warning nor
2300 clear_parm_order. Call mark_forward_parm_decls when forward
2301 parm decls are encountered.
2302 * c-tree.h: Prototype mark_forward_parm_decls; not
2303 clear_parm_order or parmlist_tags_warning.
2305 2003-07-29 Geoffrey Keating <geoffk@apple.com>
2307 * c-common.c (allow_pch): Remove.
2308 * c-common.h (allow_pch): Remove.
2309 (c_common_no_more_pch): Declare.
2310 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
2311 * c-pch.c: Include hosthooks.h.
2312 (c_common_valid_pch): Don't check allow_pch.
2313 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
2314 (c_common_no_more_pch): New.
2315 * ggc-common.c: Include hosthooks.h.
2316 (gt_pch_save): Call gt_pch_get_address.
2317 (gt_pch_restore): Call gt_pch_use_address.
2318 * hooks.c (hook_voidp_size_t_null): New.
2319 (hook_bool_voidp_size_t_false): New.
2320 * hooks.h (hook_voidp_size_t_null): New.
2321 (hook_bool_voidp_size_t_false): New.
2322 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
2323 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
2324 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
2325 HOST_HOOKS_GT_PCH_USE_ADDRESS.
2326 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
2328 * doc/hostconfig.texi (Host Common): Document
2329 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
2330 * Makefile.in (c-pch.o): Depend on hosthooks.h.
2331 (ggc-common.o): Likewise.
2333 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
2334 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
2335 (pch_address_space): New.
2336 (darwin_rs6000_gt_pch_get_address): New.
2337 (darwin_rs6000_gt_pch_use_address): New.
2339 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
2341 PR preprocessor/11569
2342 PR preprocessor/11649
2343 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
2344 * cppfiles.c: Completely rewritten.
2345 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
2346 struct cpp_path is now struct cpp_dir.
2347 (remove_duplicates): Don't simplify path names.
2348 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
2350 * cpphash.h: Include hashtab.h.
2351 (_cpp_file): Declare.
2352 (struct cpp_buffer): struct include_file is now struct _cpp_file,
2353 and struct cpp_path is now struct cpp_dir. Rename members.
2354 (struct cpp_reader): Similarly. New members once_only_files,
2355 file_hash, file_hash_entries, quote_ignores_source_dir,
2356 no_search_path, saw_pragma_once. Remove all_include_files and
2357 max_include_len. Make some members bool.
2358 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
2359 (_cpp_stack_file): Renamed from _cpp_read_file.
2360 (_cpp_stack_include): Renamed from _cpp_execute_include.
2361 (_cpp_init_files): Renamed from _cpp_init_includes.
2362 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
2363 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
2364 (cpp_read_next_file): Rename and move to cppfiles.c.
2365 (cpp_read_main_file): Update.
2366 * cpplib.c (run_directive): Update for renamed members.
2367 (do_include_common, _cpp_pop_buffer): Update.
2368 (do_import): Undeprecate #import.
2369 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
2370 * cpplib.h: Remove file_name_map_list.
2371 (cpp_options): Remove map_list.
2372 (cpp_dir): Rename from cpp_path. New datatype for name_map.
2373 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
2375 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2377 * Makefile.in: Make stamp-objdir safe for parallel builds.
2379 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2381 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
2382 (info): Depend on stmp-docobjdir.
2384 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2386 * configure: Regenerate.
2388 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2391 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
2392 in !unit-at-a-time mode.
2394 2003-07-28 Geoffrey Keating <geoffk@apple.com>
2396 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
2399 2003-07-28 Mark Mitchell <mark@codesourcery.com>
2402 * c-common.c (shorten_compare): Take into account differences
2403 between C and C++ representation for enumeration types.
2404 * tree.h (set_min_and_max_values_for_integral_type): Declare.
2405 * stor-layout.c (set_min_and_max_values_for_integral_type): New
2406 function, broken out from ...
2407 (fixup_signed_type): ... here and ...
2408 (fixup_unsigned_type): ... here.
2410 2003-07-28 Zack Weinberg <zack@codesourcery.com>
2412 * c-decl.c: Update commentary, adjust blank lines throughout.
2413 (struct c_scope): Fix indentation. Reorder members so
2414 outer-context pointers come first, booleans last.
2415 (duplicate_decls, define_label): Use a 'locus' variable for
2416 diagnostic locations in a few more places.
2417 (warn_if_shadowing): Un-split a conditional that fits on one line.
2418 (c_init_decl_processing): No need to clear current_scope and
2419 current_function_scope.
2420 (start_decl): Merge if/else if statements with same action.
2421 (push_parm_decl): Rename old_immediate_size_expand to use
2422 save_foo convention; save/restore around entire function.
2423 (grokdeclarator): Remove unnecessary braces.
2425 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
2426 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
2428 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
2429 when warn_declaration_after_statement. Call pedwarn_c90, not
2430 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
2431 * c-common.c (warn_declaration_after_statement): Define.
2432 * c-common.h (warn_declaration_after_statement): Declare.
2433 * c.opt (Wdeclaration-after-statement): New.
2434 * c-errors.c (pedwarn_c90): New function.
2435 * c-opts.c (c_common_handle_option) <case
2436 OPT_Wdeclaration_after_statement>: New.
2437 * c-tree.h (pedwarn_c90): Declare.
2438 * doc/invoke.texi (Option Summary): Document
2439 -Wdeclaration-after-statement.
2440 (Warning Options): Ditto.
2442 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
2444 * i386.md (memory attribute) Avoid accessing uninitialized memory
2445 for ishift1 type instructions.
2447 2003-07-28 Jakub Jelinek <jakub@redhat.com>
2449 * configure.in (--enable-checking): Add fold category.
2450 (ENABLE_FOLD_CHECKING): Define if requested.
2451 * configure: Rebuilt.
2452 * config.in: Rebuilt.
2453 * doc/install.texi: Document it.
2454 * fold-const.c: Include md5.h.
2455 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
2456 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
2457 print_fold_checksum): New functions.
2459 * fold-const.c (fold): Never modify argument passed to fold, instead
2460 change a copy and return it.
2461 * convert.c (convert_to_integer): Likewise.
2463 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
2465 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
2466 cleanup of junk after #else and #endif directives. Collapse repeated
2467 clauses into for statment.
2469 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
2471 2003-07-27 Zack Weinberg <zack@codesourcery.com>
2473 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
2474 (keep_next_if_subblocks): Rename next_is_function_body.
2475 (pushlevel): Adjust commentary. Always set ->keep on the
2476 outermost level of a function. Don't set ->keep_if_subblocks.
2477 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
2478 (store_parm_decls): Adjust to match.
2479 (finish_function): Adjust to match.
2480 Call poplevel with all three arguments zero.
2482 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
2483 New functions split out of store_parm_decls.
2484 Avoid unnecessary work. Use local variables consistently.
2485 (store_parm_decls): Likewise.
2487 (finish_function): No need to set functionbody flag on call to
2489 (struct language_function): Remove scope field.
2490 (c_push_function_context, c_pop_function_context): No need to
2491 save and restore current_scope.
2493 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
2495 * doc/extend.texi (Deprecated Features): Implicit typename is
2496 gone. Default args on types is going.
2498 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
2500 * Makefile.in (ifcvt.o): Depend on target.h
2501 * ifcvt.c (target.h): Include.
2502 (if_convert): Don't call mark_loop_exit_edges if we can't
2505 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2507 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
2509 2003-07-26 Richard Henderson <rth@redhat.com>
2512 * cse.c (count_reg_usage): Handle asm_operands properly.
2514 2003-07-26 Roger Sayle <roger@eyesopen.com>
2516 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
2517 (DEF_EXT_FALLBACK_BUILTIN): Delete.
2518 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
2519 the regular DEF_EXT_LIB_BUILTIN macro.
2520 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
2521 the regular DEF_LIB_BUILTIN macro.
2522 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
2523 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
2524 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
2525 DEF_EXT_LIB_BUILTIN macro.
2527 * c-decl.c (duplicate_decls): Remove code to handle builtin
2528 functions prototyped without an argument list.
2530 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2532 * config/i386/winnt.c: Revert 2003-07-08 change.
2533 (i386_pe_section_type_flags): Remove error_with_decl here too.
2535 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
2537 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
2538 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
2539 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
2540 (v850_handle_data_area_attribute): Likewise.
2542 2003-07-26 Geoffrey Keating <geoffk@apple.com>
2544 * varasm.c (output_constant_def_contents): Use
2545 ASM_DECLARE_CONSTANT_NAME if defined.
2546 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
2547 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
2548 objects get at least one byte to prevent assembler problems.
2549 (ASM_DECLARE_CONSTANT_NAME): New.
2551 * Makefile.in (libbackend.o): Remove options_.h.
2552 (mostlyclean): Likewise.
2554 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2555 insert a label at the end of an function under Mach-O.
2557 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
2559 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
2561 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
2563 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
2565 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
2567 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2569 * doc/passes.texi (Passes): Mention pretty-printing and
2572 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
2574 * doc/extend.texi (Function Attributes): GNU C++ does now allow
2575 unused parameter decls.
2576 (Attribute Syntax): GNU C++ does not allow label attributes to be
2579 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2581 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
2582 (objc_declare_class): Likewise.
2583 (error_with_ivar): Likewise.
2584 (start_class): Likewise.
2585 (warn_with_method): Likewise.
2587 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2589 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
2591 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2592 (expand_call): Likewise.
2593 * dwarfout.c (output_reg_number): Likewise.
2594 * expr.c (expand_expr): Likewise.
2595 * function.c (assign_temp): Likewise.
2596 (uninitialized_vars_warning): Likewise.
2597 (setjmp_args_warning): Likewise.
2598 (expand_function_end): Likewise.
2599 * stmt.c (fixup_gotos): Likewise.
2600 (warn_about_unused_variables): Likewise.
2601 (expand_end_bindings): Likewise.
2602 * stor-layout.c (layout_decl): Likewise.
2603 (place_field): Likewise.
2604 * toplev.c (check_global_declarations): Likewise.
2605 (rest_of_handle_inlining): Likewise.
2606 (default_tree_printer): New function.
2607 (general_init): Initialize diagnostic machinery before routing
2608 signals to the ICE machinery. Set default tree printer.
2609 * toplev.h (pedwarn_with_decl): Remove declaration.
2610 (warning_with_decl): Likewise.
2611 (error_with_decl): Likewise.
2612 (pedwarn): Remove attribute for the time being.
2613 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2614 * varasm.c (named_section): Likewise.
2615 (make_decl_rtl): Likewise.
2616 (assemble_variable): Likewise.
2617 (merge_weak): Likewise.
2618 (declare_weak): Likewise.
2620 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2621 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2622 (format_with_decl): Remove.
2623 (diagnostic_for_decl): Likewise.
2624 (pedwarn_with_decl): Likewise.
2625 (warning_with_decl): Likewise.
2626 (error_with_decl): Likewise.
2627 (diagnostic_initialize): Adjust.
2628 (diagnostic_count_diagnostic): Likewise.
2629 (announce_function): Likewise.
2630 (lhd_print_error_function): Likewise.
2631 (diagnostic_report_current_module): Likewise.
2632 (default_diagnostic_starter): Likewise.
2633 (diagnostic_report_diagnostic): Likewise.
2634 (default_diagnostic_finalizer): Likewise.
2635 (verbatim): Likewise.
2637 (warning): Likewise.
2638 * opts.c (common_handle_option): Likewise.
2639 * pretty-print.c: New file.
2640 * c-pretty-print.h (pp_base): Override.
2641 * c-pretty-print.c: Adjust use of macros throughout.
2642 (pp_buffer): New macro.
2643 (pp_newline): Likewise.
2644 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2645 * Makefile.in (DIAGNOSTIC_H): New variable.
2646 (c-errors.o): Use it.
2647 (c-objc-common.o): Likewise.
2648 (c-common.o): Likewise.
2649 (c-opts.o): Likewise.
2650 (c-format.o): Likewise.
2651 (diagnostic.o): Likewise.
2653 (toplev.o): Likewise.
2654 (rtl-error.o): Likewise.
2655 (dwarf2out.o): Likewise.
2657 (pretty-print.o): New rule.
2659 2003-07-24 Roger Sayle <roger@eyesopen.com>
2661 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2662 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2663 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2664 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2665 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2666 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2667 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2669 * builtins.c (build_string_literal): New function to construct
2670 a char* pointer to a string literal.
2671 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2672 "rtx target" to be consistent with other expand_builtin_* functions.
2673 Change 3rd argument from "int unlocked" to "bool unlocked".
2674 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2675 c-common.c to avoid front-end dependencies. Optimize printf("")
2676 as a no-op when the result isn't required. Handle embedded NULs
2678 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2679 from c-common.c to avoid front-end dependencies. Likewise, optimize
2680 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2681 fp for side-effects. Handle embedded NULs in format string.
2682 (expand_builtin_sprintf): Fix typo.
2683 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2684 optimizing. Adjust calls of expand_builtin_fputs to match the API
2685 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2686 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2687 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2689 * c-common.c (is_valid_printf_arglist): Delete.
2690 (c_expand_builtin): Delete.
2691 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2692 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2693 (c_expand_expr): No longer treat CALL_EXPRs specially.
2694 (CALLED_AS_BUILT_IN): Delete.
2696 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2698 PR optimization/11631
2699 * gcse.c (store_motion): Connect infinite loops to exit.
2701 2003-07-24 Jason Merrill <jason@redhat.com>
2703 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2704 (boolean_true_node, boolean_false_node): Likewise.
2705 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2706 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2707 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2708 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2709 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2710 (truthvalue_true_node): Renamed from boolean_true_node.
2711 (truthvalue_false_node): Renamed from boolean_false_node.
2712 * c-decl.c: Just set truthvalue_* to integer_*.
2713 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2715 2003-07-24 Roger Sayle <roger@eyesopen.com>
2717 * c-decl.c (match_builtin_function_types): New subroutine of
2718 duplicate_decls to test whether a redeclaration of a builtin
2719 function is suitably close, i.e. the return type and all of
2720 the argument types have the same modes as the builtin expects.
2721 (duplicate_decls): Fuzzy type matching for builtin functions
2722 moved to match_builtin_function_types.
2724 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2726 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2729 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2731 * c-decl.c: Search-and-replace change 'binding level' to
2732 'scope' in commentary.
2733 (struct binding_level): Now struct c_scope.
2734 (current_binding_level): Now current_scope.
2735 (free_binding_level): Now scope_freelist.
2736 (current_function_level): Now current_function_scope.
2737 (global_binding_level): Now global_scope.
2738 (make_binding_level): Now make_scope.
2739 (pop_binding_level): Now pop_scope.
2741 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2743 * configure.in (libgcc_visibility): Add missing whitespace.
2745 2003-07-24 Richard Henderson <rth@redhat.com>
2747 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2748 __gcc_personality_v0.
2750 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2752 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2754 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2756 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2757 documentation missed from my 2003-07-09 patch.
2759 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2761 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2763 * configure: Rebuild.
2765 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2768 * c-typeck.c (type_lists_compatible_p): Do not compare
2769 arguments if one of them is an error_mark_node
2771 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2773 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2774 if current_function_calls_eh_return.
2776 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2778 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2780 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2782 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2783 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2784 __umodsi3, __modsi3): Increase frame size to 32.
2786 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2788 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2791 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2793 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2795 PR optimization/10679
2796 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2798 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2800 PR target/11607 and PR target/11516
2801 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2803 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2805 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2806 * varasam.c (output_constant): Likewise.
2808 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2810 * alias.c: Fix comment formatting.
2811 * c-common.c: Likewise.
2812 * c-decl.c: Likewise.
2813 * c-opts.c: Likewise.
2814 * combine.c: Likewise.
2815 * cpplib.c: Likewise.
2816 * diagnostic.c: Likewise.
2817 * dojump.c: Likewise.
2818 * final.c: Likewise.
2819 * fold-const.c: Likewise.
2822 * ggc-page.c: Likewise.
2825 * mips-tfile.c: Likewise.
2826 * recog.c: Likewise.
2827 * regclass.c: Likewise.
2828 * regmove.c: Likewise.
2832 2003-07-22 Per Bothner <pbothner@apple.com>
2834 * line-map.c (add_line_map): Handle invalid LEAVE request.
2835 Fixes PR preprocessor/11361.
2837 2003-07-22 Per Bothner <pbothner@apple.com>
2839 * diagnostic.c.(diagnostic_report_current_module): Update to match
2840 2003-06-05 changes to push_srcloc and pop_srcloc.
2842 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2844 * doc/trouble.texi: Better document two-stage name lookup.
2846 2003-07-22 Eric Christopher <echristo@redhat.com>
2848 * config/s390.c (s390_valid_pointer_mode): New.
2849 (TARGET_VALID_POINTER_MODE): Use.
2850 (s390_emit_prologue): Add tpf profiling hooks.
2851 (s390_emit_epilogue): Ditto.
2852 * config/s390.h (MASK_TPF): New.
2854 (POINTERS_EXTEND_UNSIGNED): Define.
2855 * config/s390.md (ptr_extend): New pattern.
2857 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2859 * hashtable.c (approx_sqrt): Make static.
2860 * hashtable.h: Don't prototype approx_sqrt.
2861 * line-map.c (init_line_maps): Rename linemap_init.
2862 (free_line_maps): Rename linemap_free.
2863 (add_line_map): Rename linemap_add.
2864 (lookup_line): Rename linemap_lookup.
2865 (print_containing_files): Rename linemap_print_containing_files.
2866 * linemap.h: Update to match.
2868 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2869 linemap routines to use new names.
2871 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2873 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2874 typedef. Propagate packedness from a main variant.
2876 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2878 * Makefile.in (install-common): Add dependency on installdirs.
2880 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2882 * c-common.c (c_common_type_for_mode): Return integer types for
2885 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2887 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2888 (finish_decl): Call maybe_apply_pragma_weak here.
2889 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2890 TREE_PUBLIC and TREE_STATIC are decided.
2891 (start_function): Move call to maybe_apply_pragma_weak. Check that
2892 DECL_ASSEMBLER_NAME isn't set too early.
2894 * cpplex.c (_cpp_process_line_notes): Mention option name in
2897 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2899 * combine.c (if_then_else_cond): Simplify the comparison of
2900 rtx against -1, 0, and 1.
2901 * loop.c (check_dbra_loop): Likewise.
2902 * optabs.c (emit_conditional_move): Likewise.
2903 (emit_conditional_add): Likewise.
2904 * config/i386/i386.md (*movsi_or): Likewise.
2905 (*movdi_or_rex6): Likewise.
2907 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2909 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2911 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2913 * cppfiles.c (open_file_pch): Don't put unused entries in the
2914 splay tree. Remove dead code.
2916 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2918 * c-common.h (num_in_fnames): Declare.
2919 (c_static_assembler_name): Move from here...
2920 * c-tree.h (c_static_assembler_name): ... to here.
2921 * c-opts.c: Don't include langhooks-def.h.
2922 (c_static_assembler_name): Move to c-decl.c.
2923 (num_in_fnames): Make externally visible.
2924 * c-decl.c: Include langhooks-def.h.
2925 (c_static_assembler_name): Move from c-opts.c.
2926 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2927 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2929 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2930 when it's not needed.
2932 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2934 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2935 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2936 (rs6000_emit_prologue): Save FPRs inline if set.
2938 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2940 * config/ia64/ia64.md (prefetch): Support predicate.
2942 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2944 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2945 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2948 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2950 PR optimization/11536
2951 * unroll.c (loop_iterations): Do not replace a register holding
2952 the final value by its equivalent before the loop if it is not
2955 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2957 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2959 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2961 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2962 (V850 Options): Spelling fixes.
2964 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2966 * doc/invoke.texi: Fixes to style, grammar and diction.
2968 2003-07-20 Roger Sayle <roger@eyesopen.com>
2970 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2971 * system.h (SMALL_STACK): Poison obsolete target macro.
2972 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2974 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2976 * configure.in: Cache the results of testing for cmp's capabilities.
2977 * configure: Regenerate.
2979 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2982 * dwarf2out.c (gen_enumeration_type_die): Remember that
2983 enumerators can be unsigned.
2985 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2987 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2988 (push_label_level, pop_label_level): Kill.
2989 (struct binding_level): Rename level_chain to outer.
2990 Add outer_function field. Change parm_flag, function_body,
2991 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2992 (current_function_level): New variable.
2993 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2994 (keep_next_level, declare_parm_level, warn_if_shadowing):
2996 (struct language_function): Kill named_labels, shadowed_labels fields.
2997 (c_init_decl_processing, start_function, c_push__function_context)
2998 (c_pop_function_context): No need to muck with named_labels nor
3001 (make_binding_level): No need to clear the structure here.
3002 (pop_binding_level): Always operate on current_binding_level.
3003 Update current_function_level if necessary.
3004 (pushlevel): Don't clear named_labels. Update current_function_level
3005 if necessary. Use "true" and "false" where appropriate.
3006 (poplevel): Diagnose labels defined but not used, or vice
3007 versa, and clear out label-meanings leaving scope, while
3008 walking down the decls list, for all binding levels.
3009 Handle LABEL_DECLs appearing in the shadowed list.
3010 pop_binding_level takes no arguments.
3011 (pushdecl_function_level): Use current_function_level.
3013 (make_label, bind_label): New static functions.
3014 (declare_label): New exported function.
3015 (lookup_label, define_label): Rewritten for new data structure.
3016 (shadow_label): Kill.
3018 * c-tree.h: Prototype declare_label; don't prototype
3019 push_label_level, pop_label_level, nor shadow_label.
3020 * c-parse.in: Remove all calls to push_label_level and
3021 pop_label_level. Use declare_label for __label__ decls.
3023 * doc/extend.texi: Clarify that __label__ can be used to
3024 declare labels with local scope in any nested block, not
3025 just statement expressions. Cross-reference nested functions
3026 section from local labels section.
3028 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3030 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
3032 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
3034 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
3036 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3038 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
3039 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
3041 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
3043 * config/s390/s390.c (legitimize_pic_address): Access local symbols
3044 relative to the GOT instead of relative to the literal pool base.
3045 (s390_output_symbolic_const): Handle new GOT-relative accesses.
3046 * config/s390/s390.md ("call"): Access local functions and PLT stubs
3047 relative to the GOT instead of relative to the literal pool base.
3048 ("call_value"): Likewise.
3049 ("call_value_tls"): Likewise.
3051 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
3052 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
3053 (s390_chunkify_finish): Likewise.
3054 (s390_chunkify_cancel): Likewise.
3055 (s390_reorg): Adapt caller.
3056 (find_base_register_in_addr,
3057 find_base_register_ref, replace_base_register_ref): Delete.
3058 (find_ltrel_base, replace_ltrel_base): New functions.
3059 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
3060 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
3061 base vs. index register usage.
3062 (struct constant_pool): Remove 'anchor'.
3063 (s390_add_anchor): Delete.
3064 (s390_dump_pool): Remove anchor handling.
3065 * config/s390/s390.md ("reload_anchor"): Remove.
3067 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
3068 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
3069 (s390_emit_prologue): Use it.
3070 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
3071 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
3072 hard-code register 14.
3073 * config/s390/s390-protos.h (s390_load_got): Declare.
3075 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
3076 Support TImode constants.
3077 * config/s390/s390.md ("consttable_ti"): New.
3078 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
3080 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
3081 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
3082 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
3083 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
3084 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
3085 New symbolic constants.
3086 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
3087 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
3088 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
3089 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
3090 symbolic UNSPEC values.
3091 * config/s390/s390.c (larl_operand, s390_short_displacement,
3092 bras_sym_operand, s390_cannot_force_const_mem,
3093 s390_delegitimize_address, s390_decompose_address,
3094 legitimize_pic_address, s390_output_symbolic_const,
3095 s390_function_profiler): Use symbolic UNSPEC values.
3097 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3099 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
3100 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
3101 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
3102 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
3103 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
3104 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
3105 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
3106 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
3107 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
3108 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
3109 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
3110 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
3111 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
3112 postreload.c prefix.c print-tree.c protoize.c ra-build.c
3113 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
3114 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
3115 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
3116 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
3117 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
3118 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
3121 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3123 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
3124 * toplev.h (warning): Remove attribute.
3126 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3128 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
3129 (pop_label_level): Likewise.
3130 (duplicate_decls): Likewise.
3131 (implicitly_declare): Likewise.
3132 (shadow_label): Likewise.
3133 (start_decl): Likewise.
3134 (finish_decl): Likewise.
3135 (grokdeclarator): Likewise.
3136 (get_parm_info): Likewise.
3137 (detect_field_duplicates): Likewise.
3138 (finish_struct): Likewise.
3139 (start_function): Likewise.
3140 (store_parm_decls): Likewise.
3141 (finish_function): Likewise.
3142 (c_expand_body_1): Likewise.
3143 (check_for_loop_decls): Likewise.
3144 (merge_translation_unit_decls): Likewise.
3146 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
3148 * common.opt: Document --param.
3149 * opts.c (columns, undocumented_msg): New.
3150 (print_help): Get number of columns from environment. Print
3151 --param help. Tweak newline handling.
3152 (print_param_help): New.
3153 (print_filtered_help): Better handling of duplicates. Complain
3154 about undocumented switches.
3155 (print_switch): New.
3156 (wrap_help): Improve wrapping, use COLUMNS.
3157 * opts.sh: Ignore comments in records.
3158 * params.def: Fix typos and remove trailing periods.
3159 * toplev.c (display_help): Don't dump --param help.
3160 * doc/sourcebuild.texi: Update.
3162 2003-07-18 Richard Henderson <rth@redhat.com>
3165 * optabs.c (prepare_operand): Fail gracefully instead of abort
3166 if the predicate doesn't satisfy.
3167 (gen_cond_trap): Allow prepare_operand to fail.
3169 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3171 * c-common.c: Don't undefine GCC_DIAG_STYLE.
3172 (fname_decl): Don't use xxx_with_decl.
3173 (c_add_case_label): Likewise.
3174 (handle_section_attribute): Likewise.
3175 (handle_alias_attribute): Likewise.
3176 (handle_no_instrument_function_attribute): Likewise.
3177 (handle_no_limit_stack_attribute): Likewise.
3178 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
3179 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
3181 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3183 * Makefile.in (ifcvt.o): Add cfgloop.h.
3184 * basic-block.h (EDGE_LOOP_EXIT): New flag.
3185 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
3186 * ifcvt.c: Include cfgloop.h.
3187 (mark_loop_exit_edges): New static function.
3188 (if_convert): Call it.
3189 (find_if_header): Ignore branches out of loops.
3191 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
3193 * combine.c (simplify_comparison): Don't share rtx when converting
3194 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
3196 2003-07-18 David Edelsohn <edelsohn@gnu.org>
3198 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
3199 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3200 (MUST_PASS_IN_STACK): Define.
3201 (BLOCK_REG_PADDING): Define.
3203 2003-07-18 Richard Henderson <rth@redhat.com>
3205 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
3206 to skip the addr_vec.
3208 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
3210 * combine.c (combinable_i3pat): Don't forbid occurrences of
3211 i2dest or i1dest in inner_dest if inner_dest is a mem.
3213 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
3215 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
3217 2003-07-17 Jakub Jelinek <jakub@redhat.com>
3220 * loop.c (basic_induction_var): Check if convert_modes emitted any
3221 instructions. Remove them and return 0 if so.
3223 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3225 PR optimization/11083
3226 * toplev.c (rest_of_handle_addresof): Rename into
3227 rest_of_handle_addressof. Delete unreachable blocks
3228 if dead edges were purged after the addressof pass.
3230 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
3232 * Makefile.in, configure, configure.in: Remove handling of
3233 lang-options.h and options_.h.
3234 * toplev.c (struct lang_opt, documented_lang_options): Remove.
3235 (display_help): Don't use documented_lang_options.
3237 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3239 * c-decl.c (pushdecl_function_level): Make static, return nothing.
3240 (kept_level_p): Fold into poplevel.
3241 (undeclared_variable): Moved here from c-typeck.c. Export.
3242 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
3243 (undeclared_variable): Prototype here. Don't prototype
3244 kept_level_p nor pushdecl_function_level.
3245 * c-parse.in: Change first argument to poplevel from
3246 "kept_level_p()" to "KEEP_MAYBE".
3247 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
3249 2003-07-17 Roger Sayle <roger@eyesopen.com>
3251 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
3252 commutative operands instead of modifying the RTL in-place.
3254 2003-07-17 Mark Mitchell <mark@codesourcery.com>
3256 PR optimization/11557
3257 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
3258 unless we know which function is being called.
3260 2003-07-17 Roger Sayle <roger@eyesopen.com>
3262 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
3263 whether to reorder the operands of a commutative binary operator.
3265 2003-07-17 Roger Sayle <roger@eyesopen.com>
3267 * fold-const.c (const_binop): Avoid performing the FP operation at
3268 compile-time, if either operand is NaN and we honor signaling NaNs,
3269 or if we're dividing by zero and either flag_trapping_math is set
3270 or the desired mode doesn't support infinities.
3271 (fold_initializer): New function to fold an expression ignoring any
3272 potential run-time exceptions or traps.
3273 * tree.h (fold_initializer): Prototype here.
3274 * c-typeck.c (build_binary_op): Move to the end of the file so
3275 that intializer_stack is in scope. If constructing an initializer,
3276 i.e. when initializer_stack is not NULL, use fold_initializer to
3278 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
3279 performing FP operations at compile-time, if they would raise an
3280 exception at run-time.
3282 2003-07-17 Geoffrey Keating <geoffk@apple.com>
3285 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
3286 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
3287 (GTFILES): Add langhooks.c.
3288 (gt-langhooks.h): New.
3289 * c-common.h (c_static_assembler_name): Prototype.
3290 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
3291 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
3292 * c-opts.c: Include langhooks-def.h.
3293 (c_static_assembler_name): New.
3294 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
3296 (lhd_set_decl_assembler_name): Give static objects with context
3298 * varasm.c (var_labelno): Delete.
3299 (make_decl_rtl): Don't change the assembler name once it's set.
3301 * c-opts.c (this_input_filename): New.
3302 (finish_options): Take new parameter, name of file being compiled.
3303 Update callers. Set this_input_filename.
3304 (push_command_line_include): Use this_input_filename not
3305 main_input_filename.
3307 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3309 * Makefile.in: Depend .pot generation on options.c.
3310 * po/exgettext: Add an extra_files variable containing additional
3313 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3315 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
3316 c_write_global_declarations.
3318 * c-decl.c: Fix typos in several comments. Remove all
3319 #if 0 blocks; reindent as needed. Remove unused argument
3320 to declare_parm_level; all callers changed.
3321 * c-parse.in: Update calls to declare_parm_level. Avoid
3322 issuing a double warning in some circumstances.
3323 * c-typeck.c: Update calls to declare_parm_level.
3324 * c-tree.h: Update prototype of declare_parm_level.
3326 * c-pragma.c (apply_pragma_weak): Don't complain about a
3327 redundant #pragma weak.
3329 * objc/objc-act.c (forward_declare_categories,
3330 build_selector_reference_decl, build_class_reference_decl,
3331 build_objc_string_decl, synth_forward_declarations,
3332 build_protocol_reference): Set TREE_PUBLIC on synthetic
3333 forward decl to 0, consistent with eventual definition.
3334 Correct comments to match.
3336 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
3337 in regexp that don't form a range expression.
3338 * fixinc/fixincl.def: Regenerate.
3340 2003-07-17 Richard Henderson <rth@redhat.com>
3343 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
3344 even with !TARGET_CONST_GP.
3345 (ia64_function_ok_for_sibcall): Reject non-local functions.
3347 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
3349 * c-common.c (c_estimate_num_insns_1): Don't handle
3351 * expr.c (safe_from_p): Likewise.
3352 * gengtype.c (adjust_field_tree_exp): Likewise.
3353 * stmt.c (warn_if_unused_value): Likewise
3354 * tree.c (first_rtl_op): Likewise.
3355 * tree.def: Don't define METHOD_CALL_EXPR.
3356 * java/lang.c (java_estimate_num_insns_1): Don't handle
3359 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3362 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
3363 and its restrictions for the SPARC64 port.
3364 Move the entry of "-mimpure-text" before that of "-mv8".
3366 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3367 Phil Edwards <phil@jaj.com>
3369 * doc/install.texi (*-*-solaris2*): Document the step-by-step
3370 procedure to bootstrap and install.
3371 Document the preference for the legacy Sun tools in /usr/bin
3372 over the POSIX tools in /usr/xpg4/bin for the build process.
3374 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3376 * c.opt: Document Uncodumented; use it. Document ObjC options.
3377 * opts.c (print_filtered_help): Skip undocumented switches.
3378 * opts.h (CL_UNDOCUMENTED): New.
3379 * opts.sh: Handle Undocumented.
3380 * toplev.c (documented_lang_options): Prevent its becoming empty.
3382 * lang-options.h: Remove.
3384 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
3386 * loop.c (check_ext_dependent_givs): Pass const struct loop *
3387 instead of struct loop_info * as argument. Accept BIVs with
3388 increment +/- 1 provided there is a friendly exit test against
3389 a loop-invariant value.
3390 (strength_reduce): Adapt call to check_ext_dependent_givs.
3392 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3393 Con Bradley <con.bradley@superh.com>
3395 * sh-protos.h (sh_get_pr_initial_val): Declare.
3396 * sh.c (regno_reg_class): Make its elements type enum reg_class.
3397 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
3398 and live_regs_mask arguments. Changed all callers.
3399 (save_schedule_s): New structure.
3400 (save_schedule): New typedef.
3401 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
3402 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
3403 In interrupts handlers, also save registers that are usually
3404 partially saved, and make sure there is at least one general purpose
3405 register saved if a target register needs saving.
3406 Add casts in comparisons to avoid warnings.
3407 (sh_media_register_for_return): return -1 for interrupt handlers.
3408 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
3409 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
3410 registers used are available.
3411 Set RTX_FRAME_RELATED_P where appropriate.
3412 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
3413 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
3414 (initial_elimination_offset): Likewise.
3415 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
3416 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
3417 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
3418 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
3419 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
3420 and for target registers.
3421 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
3422 (regno_reg_class): Make its elements type enum reg_class.
3423 (CONSTRAINT_LEN): Don't use isdigit.
3424 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
3425 (FUNCTION_ARG): Add parentheses to avoid warnings.
3426 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
3427 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
3428 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
3429 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
3430 * sh.md (xordi3+1): Remove unused variable regno.
3431 (return_media): Check that tr0 is available before using it.
3433 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
3435 * c.opt: Document more options.
3437 2003-07-16 Roger Sayle <roger@eyesopen.com>
3439 * combine.c (subst): Also handle (subreg (const_double ...)) case
3440 if created by a substitution, by using the original inner mode.
3442 2003-07-16 Roger Sayle <roger@eyesopen.com>
3444 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
3445 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
3446 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
3448 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
3450 * doc/install.texi (--without-headers): New.
3452 Partial Fix PR/10129
3453 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
3454 (machopic_output_function_base_name): New; print the true pic label.
3455 (machopic_classify_ident): Pic Base is always a defined data.
3456 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
3457 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
3459 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
3460 if they are not floating point registers.
3463 * ggc.h: Add header guards.
3464 * c-decl.c (finish_struct): Sort fields if
3465 number greater than 15 and there are no
3466 anonymous structs/unions.
3467 * c-common.h: Include ggc.h.
3468 (sorted_fields_type): New struct.
3469 (field_decl_cmp): New prototype.
3470 (resort_sorted_fields): New prototype.
3471 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
3472 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
3473 as s, removing other fields.
3474 * c-typeck.c (lookup_field): Use s in lang_type.
3475 These were mostly moved from cp/class.c:
3476 * c-common.c (field_decl_cmp): New static function.
3477 (field_decl_cmp): New function.
3478 (resort_sorted_fields): New function.
3480 2003-07-16 Geoffrey Keating <geoffk@apple.com>
3482 * config/darwin.c (machopic_select_section): Use decl_readonly_section
3483 to do most of the work.
3485 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
3487 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
3488 * config/mmix/mmix.c: Convert functions to ISO C90.
3489 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
3491 (mmix_get_hard_reg_initial_val): Tweak section head comment.
3493 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3495 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
3497 2003-07-16 Jakub Jelinek <jakub@redhat.com>
3499 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
3500 (uw_update_context_1): Use it.
3501 * config/rs6000/rs6000.c (insn_after_throw): Remove.
3502 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
3503 in parent frame if _Unwind_* called directly instead of through
3505 (rs6000_emit_eh_toc_restore): Remove.
3506 (rs6000_emit_prologue): Update stack pointer before doing any saving
3507 if current_function_calls_eh_return. Generate unwind info for $r2.
3508 (rs6000_emit_epilogue): Restore stack pointer after doing all
3509 restoring if current_function_calls_eh_return. Restore $r2.
3510 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
3511 * config/rs6000/rs6000.md (eh_return): Remove call to
3512 rs6000_emit_eh_toc_restore.
3513 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
3514 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
3516 2003-07-15 Jakub Jelinek <jakub@redhat.com>
3518 * expr.c (emit_block_move): Don't move anything if size is const 0.
3519 (clear_storage): Test against const0_rtx instead of comparing INTVAL
3522 2003-07-15 David S. Miller <davem@redhat.com>
3524 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
3525 emit nop if the last real insn is CALL_INSN.
3527 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3529 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
3531 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
3533 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3535 * config/i386/winnt.c (associated_type): Artificial methods are not
3536 affected by the import/export status of their class unless they are
3538 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
3540 * config/i386/winnt.c: Fix GCC copyright comment.
3542 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
3545 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
3546 not recursing on hard error.
3547 (diagnostic_for_decl): Likewise.
3548 * diagnostic.def: Rearrange.
3550 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3552 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3553 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
3555 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3556 Richard Henderson <rth@redhat.com>
3558 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
3559 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
3560 (_Unwind_SetGR): Likewise.
3561 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
3562 (Unwind_SpTmp): New typedef.
3563 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
3564 (uw_update_context): Use _Unwind_GetPtr.
3565 (init_dwarf_reg_size_table): Move above uw_init_context_1.
3566 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
3567 Use _Unwind_SetSpColumn.
3568 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
3571 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3573 * c.opt: Document more options.
3574 * toplev.c (documented_lang_options): Remove all local help strings.
3576 2003-07-15 Mark Mitchell <mark@codesourcery.com>
3579 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
3582 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3585 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
3586 swap comparison operands if doing so would generate an
3587 unrecognizable insn.
3589 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3591 PR optimization/11320
3592 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3593 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3594 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3595 current_sched_info->compute_jump_reg_dependencies. Record which
3596 registers are used and which registers are set by the jump.
3597 Clear deps->reg_conditional_sets after a barrier.
3598 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3599 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3600 (init_deps): Initialize reg_conditional_sets.
3601 (free_deps): Clear reg_conditional_sets.
3602 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3603 Mark registers live on entry of the fallthrough block and conditionally
3604 set as set by the jump. Mark registers live on entry of non-fallthrough
3605 blocks as used by the jump.
3606 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3607 Mark new parameters as unused.
3609 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3611 * doc/invoke.texi: Resync MIPS -march documentation.
3613 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3615 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3616 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3617 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3618 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3619 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3620 (mips_issue_rate): Handle PROCESSOR_R9000.
3621 (mips_use_dfa_pipeline_interface): Likewise.
3622 * config/mips/9000.md: New file.
3623 * config/mips/mips.md: Include it.
3624 (define_attr cpu): Add r9000.
3625 (mulsi3_mult3): Use "mul" for rm9000 code.
3627 2003-07-15 Stan Cox <scox@redhat.com>
3629 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3630 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3631 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3632 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3633 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3634 (mips_issue_rate): Handle PROCESSOR_R7000.
3635 (mips_use_dfa_pipeline_interface): Likewise.
3636 * config/mips/7000.md: New file.
3637 * config/mips/mips.md: Include it.
3638 (define_attr cpu): Add r7000.
3639 (mulsi3_mult3): Use "mul" for rm7000 code.
3641 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3643 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3644 the conditional move patterns.
3645 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3646 Check for condmove type.
3647 (ir_vr54_arith): Add move type.
3648 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3649 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3651 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3653 * c-opts.c (print_help): Remove.
3654 (c_common_handle_option): Don't handle --help.
3655 * c.opt: Document some options.
3657 * opts.c (print_filtered_help): New.
3658 (print_help): Use it.
3660 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3662 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3663 * tree.c: (build_common_tree_nodes_2): Likewise.
3664 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3665 (V4DF_type_node): New.
3667 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3669 (finish_options): Reset init_cursor.
3671 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3673 * expr.c (expand_assignment): Remove an unused argument
3675 * expr.h: Update the prototype.
3676 * function.c: Update the callers.
3679 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3682 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3685 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3687 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3688 with __cplusplus, not "we must use the C++ compiler's type"
3689 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3690 * fixinc/fixincl.x: Regenerate.
3692 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3694 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3695 and unseen_objects from the global data before calling
3696 __deregister_frame_info_bases.
3697 (examine_objects): Insert objects into the seen_objects list,
3699 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3700 we couldn't allocate a data structure to put in it.
3702 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3703 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3704 (SET_TYPE_PROTOCOL_LIST): New.
3705 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3706 (get_object_reference): Likewise.
3708 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3710 * cfglayout.c (locator_file): Break out from ....
3711 (insn_file): ... here.
3712 (locator_line): Break out from ....
3713 (insn_line): ... here.
3714 * rtl.h (locator_file, locator_line): Declare.
3715 (final_start_function): Set proper line/file info.
3717 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3719 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3720 handled by pp_c_cast_expression.
3722 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3724 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3725 allocate 32768 bytes of stack. Use addition rather than subtraction
3726 when a single insn is enough.
3727 * config/mips/mips.md: Remove insns and splitters for subtracting
3729 (subsi3): Only accept register operands.
3730 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3731 (subdi3_internal_3, subsi3_internal_2): Likewise.
3732 (casesi): Use expand_binop to subtract the lower bound.
3734 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3736 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3737 TARGET_MIPS16 specially.
3739 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3741 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3742 mips_output_aligned_bss.
3743 * config/mips/linux.h: Likewise.
3744 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3745 * config/mips/mips.c (mips_output_aligned_bss): New function.
3747 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3748 * config/mips/elf64.h: Likewise.
3750 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3751 mips_declare_object_name.
3752 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3753 * config/mips/elf64.h: As for elf.h.
3754 * config/mips/iris6.h: Likewise.
3755 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3756 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3757 do...while (0) block.
3758 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3759 (mips_finish_declare_object): Declare.
3760 * config/mips/mips.c (mips_declare_object_name): New function.
3761 (mips_finish_declare_object): New function.
3763 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3764 * config/mips/linux.h: Likewise.
3766 * config/mips/mips.c (inside_function): Delete.
3767 (file_in_function_warning, ignore_line_number): Delete.
3768 (mips_output_filename): Don't warn about changing filenames within
3770 (mips_output_lineno): Update accordingly.
3771 (mips_output_function_prologue): Don't reset the deleted variables.
3772 * config/mips/mips.h (inside_function): Delete.
3773 (file_in_function_warning, ignore_line_number): Delete.
3775 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3776 * config/mips/elf64.h: Likewise.
3777 * config/mips/openbsd.h: Likewise.
3778 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3779 * config/mips/linux.h: Likewise.
3780 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3781 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3783 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3784 to the list of include files when using gas.
3785 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3786 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3787 * config/mips/elf64.h: Likewise.
3788 * config/mips/iris5.h: Likewise.
3789 * config/mips/linux.h: Likewise.
3790 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3791 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3792 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3793 * config/mips/sdb.h: ...this new file.
3795 2003-07-14 Douglas Rupp <rupp@gnat.com>
3797 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3798 argument to getcwd; use fixed buffer instead.
3800 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3802 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3803 * fixinc/fixinc.wrap: Delete.
3805 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3807 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3810 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3812 * ggc-page.c (struct globals): Add new fields to keep track of the
3813 total allocated memory and overhead.
3814 (ggc_print_statistics): Print them.
3815 (ggc_alloc): Keep track of the total allocated memory and the
3818 * tree.c (dump_tree_statistics): Increase spacing.
3819 (enum tree_node_kind): Move to ...
3820 * tree.h (enum tree_node_kind): ... here.
3821 (tree_node_counts, tree_node_sizes): Declare.
3823 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3825 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3827 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3829 PR optimization/11440
3830 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3833 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3835 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3836 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3837 (emit_group_load, emit_group_store): Adjust declarations.
3838 Remove most occurrences of #ifdef TREE_CODE.
3839 * expr.c (emit_group_load): Add "type" param, and use
3840 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3841 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3842 (emit_group_store): Likewise.
3843 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3844 emit_group_load and emit_group_store calls.
3845 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3846 BLOCK_REG_PADDING to determine whether we need endian_correction.
3847 (load_register_parameters): Localize vars. Handle shifting of
3848 small values to the correct end of regs. Adjust emit_group_load
3850 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3851 and emit_group_store calls.
3852 * function.c (assign_parms): Set mem alignment for stack slots.
3853 Adjust emit_group_store call. Store values at the "wrong" end
3854 of regs to the stack. Use BLOCK_REG_PADDING.
3855 (locate_and_pad_parm): Save where_pad.
3856 (expand_function_end): Adjust emit_group_load call.
3857 * stmt.c (expand_value_return): Adjust emit_group_load call.
3858 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3859 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3860 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3861 (MUST_PASS_IN_STACK): Define.
3862 (BLOCK_REG_PADDING): Define.
3863 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3864 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3865 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3866 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3867 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3869 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3871 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3873 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3875 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3876 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3878 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3881 * toplev.c: Don't cut off option names.
3883 2003-07-13 Andreas Jaeger <aj@suse.de>
3885 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3886 to integer of different size.
3888 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3890 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3891 to (eq (and X 1) 0).
3893 2003-07-13 Andreas Jaeger <aj@suse.de>
3895 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3897 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3899 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3900 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3901 list. Move these all together down by cpplib.
3903 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3904 definition of CPPCHAR_SIGNED_T.
3906 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3907 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3908 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3910 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3911 * cppinit.c (cpp_create_reader): Likewise.
3913 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3914 * cpptrad.c: Likewise. All callers changed.
3915 * cpplib.c: All callers changed.
3916 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3917 * hashtable.h: Define GTY(x) to nothing here too.
3919 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3921 * stor-layout.c (compute_record_mode): Remove very obsolete test
3922 that forces BLKmode for records with fields crossing word boundary.
3924 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3926 * Makefile.in: Remove orphan reference to acconfig.h.
3928 2003-07-13 Andreas Jaeger <aj@suse.de>
3930 * cgraphunit.c: Convert prototypes to ISO C90.
3932 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3934 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3936 * fixinc/fixincl.x: Rebuild.
3938 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3940 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3941 i?86-*-*. Use correct name of cache variable.
3942 * configure: Regenerate.
3944 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3946 * config/alpha/alpha.c: Fix comment typos.
3947 * config/alpha/alpha.md: Likewise.
3948 * config/arm/arm.c: Likewise.
3949 * config/arm/arm.md: Likewise.
3950 * config/arm/lib1funcs.asm: Likewise.
3951 * config/avr/avr.md: Likewise.
3952 * config/arm/README-interworking: Fix typos.
3954 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3956 * c-format.c: Fix comment formatting.
3957 * c-typeck.c: Likewise.
3958 * coverage.c: Likewise.
3959 * cppcharset.c: Likewise.
3960 * cpplib.c: Likewise.
3961 * dbxout.c: Likewise.
3962 * gcov-io.h: Likewise.
3963 * toplev.c: Likewise.
3965 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3967 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3970 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3972 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3973 uses three-argument AC_DEFINE so no acconfig.h entries are
3975 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3976 which contains the GAS version number as a scaled integer.
3977 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3978 ability to check for ELF assembler.
3979 (gcc_GAS_CHECK_FEATURE): New macro.
3980 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3981 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3982 Use three-argument AC_DEFINE everywhere.
3983 * acconfig.h: Deleted.
3984 * config.in, configure: Regenerate.
3986 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3988 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3990 * fixinc/fixincl.x: Regenerate.
3992 * fixinc/inclhack.def (gnu_types): Improve comment.
3994 2003-07-12 Andreas Jaeger <aj@suse.de>
3996 * fp-test.c (main): Use ISO C90 prototype.
3998 * version.c: Remove unneded include of ansidecl.h.
4000 * cgraph.h: Convert prototypes to ISO C90.
4001 * cgraph.c: Likewise.
4002 * fix-header.c: Likewise.
4004 * protoize.c: Likewise.
4006 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
4008 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
4011 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4012 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4014 * cgraph.c (cgraph_max_uid): New global variable.
4015 (cgraph_node): Set uid field.
4016 (create_edge): Keep inline flags consistent.
4017 (dump_cgraph): Dump more info.
4018 * cgraph.h (struct cgraph_local_info): Remove inline_many and
4019 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
4020 (struct cgraph_global_info): Add insns, calls, cloned_times,
4022 (struct cgraph_node): Add uid.
4023 (struct cgraph_edge): Add inline_call.
4024 (cgraph_max_uid, cgraph_inline_p): Declare.
4025 * cgraph.c: Include params.h and fibheap.h
4026 (cgraph_mark_functions_to_inline_once): Kill.
4027 (INSNS_PER_CALL): New constant.
4028 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
4030 (cgraph_finalize_function): Do not analyze inlining.
4031 (cgraph_finalize_compilation_unit): Set inlining attributes.
4032 (cgraph_mark_functions_to_output): More consistency checks.
4033 (cgraph_optimize_function): Set current_function_decl to NULL.
4034 (cgraph_expand_function): Use new inline flags.
4035 (cgraph_postorder): Expand from cgraph_expand_functions.
4036 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
4037 (cgraph_inlined_into, cgraph_inlined_callees,
4038 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
4039 cgraph_mark_inline, cgraph_check_inline_limits,
4040 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
4041 cgraph_decide_inlining, cgraph_inline_p): New functions.
4042 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
4043 PARAM_INLINE_UNIT_GROWTH): New parameters.
4044 * tree-inline.c (struct inline_data): New field current_decl.
4045 (expand_call_inline): Avoid forward declarations; use
4046 inlinable_function_p.
4047 (optimize_inline_calls): Set id.current_decl.
4049 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
4051 * configure.in: Remove wrongly added definition of
4053 * configure: Regenerate.
4055 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4057 * rtl.def (NOTE): Do not use padding.
4059 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
4061 * doc/install.tex: Update required binutils for i?86-*-linux*
4063 2003-07-11 Richard Henderson <rth@redhat.com>
4065 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
4067 2003-07-11 Mark Mitchell <mark@codesourcery.com>
4069 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
4070 TRANSLATION_UNIT_DECL as top_level.
4072 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4074 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
4075 then fall back to cmpstrM.
4076 * builtins.c (expand_builtin_memcmp): Likewise.
4077 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
4078 (s390_expand_cmpmem): ... this.
4079 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
4080 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
4081 from cmpstr* patterns. Rename call to s390_expand_cmpstr
4082 to s390_expand_cmpmem.
4083 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
4084 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
4086 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
4088 * doc/md.texi (cmpstrM): Describe as String compare insn, not
4092 2003-07-11 Loren James Rittle <ljrittle@acm.org>
4094 * config/i386/freebsd.h (SET_ASM_OP): Remove.
4095 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
4096 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
4097 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
4099 2003-07-11 Richard Henderson <rth@redhat.com>
4101 * function.c (assign_parms): Don't recombine complex args if
4102 fnargs is unchanged from orig_fnargs.
4103 (split_complex_args): Return args without complex before copying.
4104 Re-layout the modified parameters.
4106 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
4108 * regclass.c (choose_hard_reg_mode): Add third argument.
4109 Changed all callers.
4110 * rtl.h (choose_hard_reg_mode): Update declaration.
4111 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4112 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
4114 2003-07-11 Geoffrey Keating <geoffk@apple.com>
4116 * c-decl.c (finish_decl): Handle 'used' here...
4117 * cgraphunit.c (cgraph_finalize_function): ... and here ...
4118 * c-common.c: (handle_used_attribute): ... not here.
4120 * configure.in (onstep): Support --enable-intermodule.
4121 * Makefile.in (OBJS-common): New.
4123 (OBJS-archive): New.
4124 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
4125 (OBJS-onestep): New.
4126 (libbackend.a): Support @onestep@.
4127 (libbackend.o): New.
4128 * configure: Regenerate.
4130 * c-common.h (c_reset_state): New prototype.
4131 (c_parse_file): New prototype.
4132 (finish_file): Move prototype from c-tree.h.
4133 * c-decl.c: Include <hashtab.h>.
4134 (builtin_decls): New.
4135 (current_file_decl): New.
4136 (duplicate_decls): Add extra parameter. Change all callers. Don't
4137 output duplicate common symbols.
4138 (link_hash_hash): New.
4139 (link_hash_eq): New.
4140 (poplevel): Handle popping of the top level.
4141 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
4142 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
4143 (pushdecl_top_level): Likewise.
4144 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
4145 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
4146 (finish_decl): Handle TRANSLATION_UNIT_DECL.
4147 (merge_translation_unit_decls): New.
4148 (c_write_global_declarations): New.
4149 (c_reset_state): New.
4150 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
4151 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
4152 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
4153 TRANSLATION_UNIT_DECL.
4154 (c_objc_common_finish_file): Call merge_translation_unit_decls.
4155 * c-opts.c (in_fnames): Rename from in_fname.
4156 (c_common_decode_option): Handle multiple input filenames.
4157 (c_common_post_options): Likewise.
4158 (c_common_parse_file): Likewise; also, call c_parse_file rather than
4160 * c-parse.in: Move cleanup code to c_parse_file.
4161 (free_parser_stacks): Move contents to c_parse_file.
4162 (c_parse_file): New.
4163 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
4165 (C_DECL_FILE_SCOPE): New.
4166 (finish_file): Move prototype to c-common.h.
4167 (merge_translation_unit_decls): New prototype.
4168 (comptypes): Add extra parameter to prototype.
4169 (c_write_global_declarations): New prototype.
4170 * c-typeck.c (tagged_types_tu_compatible_p): New.
4171 (function_types_compatible_p): Add extra parameter, change all callers.
4172 (type_lists_compatible_p): Likewise.
4173 (comptypes): Likewise.
4174 (struct tagged_tu_seen): New.
4175 (tagged_tu_seen_base): New.
4176 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
4177 (c_mark_addressable): Remove #if 0 code.
4178 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
4179 comment explaining why it shouldn't have to.
4180 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
4182 * cppinit.c (cpp_read_next_file): New.
4183 (cpp_read_main_file): Use it.
4184 * cpplib.c (undefine_macros): New.
4185 (cpp_undef_all): New.
4186 * cpplib.h (cpp_read_next_file): Prototype.
4187 (cpp_undef_all): Prototype.
4188 * langhooks-def.h (write_global_declarations): Remove prototype.
4189 * toplev.h (write_global_declarations): Add prototype.
4190 * tree.c (decl_type_context): Use switch statement, handle
4191 TRANSLATION_UNIT_DECL.
4192 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
4193 (TRANSLATION_UNIT_DECL): New kind of tree.
4194 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
4195 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
4196 * doc/invoke.texi: Make attempt to document new functionality.
4198 2003-05-19 Per Bothner <bothner@apple.com>
4200 * gcc.c (combine_inputs): New.
4201 (process_command): Set combine_inputs.
4202 (do_spec_1): Handle combine_inputs.
4205 2003-07-10 James E Wilson <wilson@tuliptree.org>
4207 PR optimization/9745
4208 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
4209 loop_insn_emit_before.
4210 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
4212 2003-07-10 Zack Weinberg <zack@codesourcery.com>
4214 * cppcharset.c: Fix comment.
4215 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
4216 (EILSEQ): #define to EINVAL if not already defined.
4217 (convert_using_iconv): #if out when !HAVE_ICONV.
4218 (init_iconv_desc): Handle !HAVE_ICONV here...
4219 (cpp_init_iconv): ...not here.
4221 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
4223 * common.opt: More --help messages.
4224 * opts.c (print_help): Use puts().
4225 * toplev.c (f_options): Remove help text.
4226 (display_help): Don't dump f_options.
4228 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
4230 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
4231 Move i?86-*-interix* to the don't-fix list.
4232 * fixinc/fixinc.interix: Delete with extreme prejudice.
4234 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
4237 * doc/install.texi: Document requirements for ia64-*-hpux* target.
4239 2003-07-10 Roger Sayle <roger@eyesopen.com>
4241 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
4243 2003-07-10 Zack Weinberg <zack@codesourcery.com>
4245 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
4246 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
4247 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
4248 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
4249 convert_no_conversion, convert_using_iconv): New functions.
4250 (APPLY_CONVERSION): New macro.
4251 (struct conversion, conversion_tab): New data structure.
4252 (init_iconv_desc): Check conversion_tab for a custom conversion
4253 primitive before trying to use iconv.
4254 (convert_cset): Deleted.
4255 (cpp_init_iconv): Use UTF- terminology, not UCS-.
4256 (_cpp_destroy_iconv): Update to match.
4257 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
4258 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
4259 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
4260 (_cpp_interpret_string_notranslate): New function, moved here
4263 * cpphash.h (convert_f, struct cset_converter): New types.
4264 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
4265 are now struct cset_converter, not bare iconv_t.
4267 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
4268 all callers changed.
4270 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
4272 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
4273 to opts.sh command line.
4274 * opts.sh: Write to temporary files with a move-if-change at the end.
4276 2003-07-10 Denis Chertykov <denisc@overta.ru>
4277 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4279 * combine.c (gen_binary): Handle the CLOBBER rtx and
4280 don't build a binary operation with it.
4282 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4284 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
4285 store_killed_after, store_killed_before): Keep track of the correct
4286 dependency function to use.
4288 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
4289 * toplev.c (do_compile): Don't try to open dump files before
4290 lang_dependent_init initializes dump_base_name.
4292 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4294 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
4296 * config/frv/frv.c (frv_expand_builtin): Likewise.
4297 * config/sh/sh.c (sh_media_init_builtins): Likewise.
4299 2003-07-09 Mark Mitchell <mark@codesourcery.com>
4302 * doc/invoke.texi (C++ Dialect Options): Change documentation of
4305 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
4307 * tm.texi (RETURN_ADDR_OFFSET): Document.
4309 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
4311 * gcov-io.h: Update documentation.
4312 (GCOV_UNSIGNED2STRING): New.
4313 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4314 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4315 GCOV_TAG_SUMMARY_LENGTH): Adjust.
4316 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
4317 GCOV_TAG_COUNTER_NUM): New.
4318 (GCOV_BLOCK_SIZE): Number of words.
4319 (gcov_var): Adjust buffer type.
4320 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
4321 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
4322 count, not byte count.
4323 (gcov_open): Adjust overread init.
4324 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
4325 gcov_write_string, gcov_write_tag, gcov_write_length,
4326 gcov_write_tag_length): Adjust.
4327 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
4328 (gcov_sync, gcov_seek): Adjust.
4329 * gcov-dump.c (print_usage): Show gcc version only.
4330 (dump_file): Use GCOV_UNSIGNED2STRING.
4331 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
4332 * gcov.c (print_version): Show gcc version only.
4333 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
4334 GCOV_TAG_*_NUM macros.
4335 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
4336 GCOV_TAG_COUNTER_LENGTH.
4337 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
4338 Use GCOV_TAG_COUNTER_NUM.
4339 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
4340 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
4342 2003-07-10 Andreas Schwab <schwab@suse.de>
4344 * gcov-dump.c (dump_file): Fix missing address operator.
4346 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4349 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
4351 (fold_single_bit_test): If sign_bit_p() fails, assume that the
4352 bit being tested is not a sign bit.
4354 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4356 * config/h8300/h8300.md (a peephole2): New.
4358 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
4360 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
4361 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
4362 from ld-linux.so.2 to ld.so.1.
4363 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
4364 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
4365 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
4366 nor -Wl,-rpath-link.
4367 (LIB_SPEC): Add -rpath-link if !static.
4368 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
4369 * config/mn10300/mn10300.c (mn10300_protect_label): New
4371 * config/mn10300/linux.h (PRINT_OPERAND,
4372 PRINT_OPERAND_ADDRESS): Set it during their execution.
4373 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
4374 mn10300_protect_label is set.
4375 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
4377 (LIB_SPEC, STARTFILE_SPEC): Define.
4378 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
4379 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
4380 FLOAT_BIT_ORDER_MISMATCH.
4381 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4382 * config.gcc (am33_2.0-*-linux*): Added.
4383 * config/mn10300/linux.h: New.
4384 * config/mn10300/t-linux: New.
4386 2003-07-10 Andreas Jaeger <aj@suse.de>
4388 * fold-const.c: Properly wrap prototypes.
4390 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4392 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
4393 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
4395 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
4396 * config/mn10300/mn10300.h: GTY-declare it.
4397 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
4398 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
4399 prototype. Use incoming RTL argument.
4400 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
4401 * config/mn10300/mn10300.md (int_label): Move C statements...
4402 (GOTaddr2picreg): ... here.
4403 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4404 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
4405 * config/mn10300/mn10300.c (mn10300_encode_section_info):
4406 ... here. New function.
4407 (TARGET_ENCODE_SECTION_INFO): Define to it.
4408 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
4409 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
4411 (mn10300_loadPC): Define as insn splittable after reload.
4412 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
4413 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
4414 be defined in .rodata even in PIC, now that the assembler
4416 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4417 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
4418 symbol take an underscore prefix.
4419 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4420 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
4421 legitimize_pic_address): Declare.
4422 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
4423 the PIC register as fixed.
4424 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
4425 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
4427 (LEGITIMATE_PIC_OPERAND_P): Define.
4428 (PIC_OFFSET_TABLE_REGNUM): Define.
4429 (GOT_SYMBOL_NAME): Define.
4430 (SYMBOLIC_CONST_P): Define.
4431 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
4433 (MN10300_GLOBAL_P): Test it.
4434 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
4435 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
4436 * config/mn10300/mn10300.c (print_operand): Handle unspec.
4437 (expand_prologue): Set PIC register.
4438 (call_address_operand): Don't match SYMBOL_REFs in PIC.
4439 (legitimize_address): Call legitimize_pic_address.
4440 (legitimize_pic_address): New fn.
4441 (legitimate_pic_operand_p): New fn.
4442 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
4443 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
4444 UNSPEC_PLT): New constants.
4445 (pop_pic_reg): New insn.
4446 (movsi): Adjust non-PIC addresses.
4447 (builtin_setjmp_receiver): Restore the PIC register.
4449 (call): Adjust non-PIC addresses.
4450 (int_label, GOTaddr2picreg): New expands.
4451 (am33_loadPC): New insn.
4452 (mn10300_loadPC): New expand.
4453 (call_next_insn): New insn.
4454 (add_GOT_to_pic_reg): New expand.
4455 (symGOT2reg, symGOT2reg_i): New expands.
4456 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
4457 (sym2PIC, sym2PLT): New expands.
4459 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4461 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
4462 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
4463 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
4464 to flag_unsafe_math_optimizations.
4465 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4466 * config/mn10300/mn10300.c (expand_prologue): Mark
4467 FP-register-saving insns as frame-related.
4468 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
4469 * config/mn10300/mn10300.c
4470 (mn10300_get_live_callee_saved_regs): Don't search past
4471 LAST_EXTENDED_REGNUM.
4472 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
4473 * config/mn10300/mn10300.md: Remove excessive line breaks from
4474 `@' output patterns that were accounted as additional
4476 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
4477 Re-introduce changes accidentally removed in Richard Sandiford's
4479 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
4480 Re-instate am33-2 lost in merge from net GCC.
4481 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
4482 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
4483 floating-point registers.
4484 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
4485 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
4486 pessimizations that had gone in on 2000-05-08.
4487 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
4488 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
4489 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
4490 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
4492 * (movhi): Likewise.
4493 * (movsi): Likewise.
4494 * (movsf): Likewise.
4495 * (movdi): Likewise.
4496 * (movdf): Likewise.
4497 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4498 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
4499 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
4500 (expand_prologue, expand_epilogue): Save and restore FP regs.
4501 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
4502 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
4503 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
4504 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
4505 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
4507 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4508 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
4509 Discourage the two-argument, longer opcodes.
4510 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
4512 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
4513 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
4514 * config/mn10300/mn10300.md (cmpsf): New pattern.
4515 (branch): Test mdep.fpCC and output fbCC.
4516 * config/mn10300/mn10300.c (print_operand): Output conditions.
4517 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
4518 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
4519 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
4520 mulsf3, divsf3): Use the `F' constraint for FP values.
4521 * config/mn10300/mn10300.c (const_1f_operand): New function.
4522 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
4523 * config/mn10300/mn10300.md (sqrtsf2): New expand.
4524 (rsqrtsf2): New insn.
4525 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
4526 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
4528 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
4529 * config/mn10300/mn10300.md (abssf2, negdf2): On
4530 TARGET_AM33_2, expand to...
4531 (abssf2_am33_2, negdf2_am33_2): New insns.
4532 (addsf3, subsf3, mulsf3, divsf3): Likewise.
4533 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
4534 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
4535 movdi, movdf): Added FP regs.
4536 * invoke.texi (-mam33-2, -mno-am33-2): Document.
4537 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
4538 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
4540 (REGNO_AM33_2_FP_P): Renamed to...
4541 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
4542 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4543 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4544 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
4545 regs from GENERAL_REGS.
4546 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4547 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
4548 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
4549 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
4550 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
4551 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
4553 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
4554 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
4555 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
4556 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
4557 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
4558 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
4559 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
4560 AM33/2.0 floating-point registers.
4561 (CONDITIONAL_REGISTER_USAGE): Adjust.
4562 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
4563 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
4564 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
4565 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
4566 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
4567 (MULTILIB_DIRNAMES): Likewise.
4568 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
4569 `__AM33_2__' when `-mam33-2' is given.
4570 (TARGET_AM33_2): Define.
4571 (TARGET_SWITCHES): Adjust.
4572 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
4575 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
4577 * doc/install.texi: Add missing @.
4579 2003-07-09 Bob Wilson <bob.wilson@acm.org>
4581 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
4583 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
4586 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4588 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4591 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
4592 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4594 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4595 * fixinc/fixincl.x: Rebuild.
4597 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4598 * fixinc/fixincl.x: Rebuild.
4600 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4602 * doc/install.texi (Configuration): Document the valgrind option
4603 to --enable-checking.
4605 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4607 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4609 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4611 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4613 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4615 * gcov-io.h: Update documentation.
4616 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4618 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4619 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4620 (struct gcov_var): Change buffer's type. Add endian flag.
4621 (gcov_open): Remove mode in libgcov.
4622 (gcov_magic): Prototype.
4623 * gcov-io.c (from_file): New.
4624 (gcov_open): Clear endian flag.
4626 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4628 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4629 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4630 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4631 * gcov-iov.c (main): Correct cast.
4632 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4634 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4635 (coverage_init): Use GCOV_NOTE_SUFFIX.
4636 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4637 Rename to gcov_version, and return flag.
4638 (gcov_exit): Use gcov_version.
4639 (__gcov_init): Use gcov_version.
4640 * Makefile.in (coverageexts): Update.
4641 * gcov.c (print_version): Remove endianness conversion.
4642 (create_file_names): Use GCOV_NOTE_SUFFIX.
4643 (read_graph_file): Use gcov_magic.
4644 (read_count_file): Likewise.
4645 * gcov-dump.c (dump_file): Remove endianness conversion, use
4648 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4650 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4652 * configure: Regenerated.
4653 * Makefile.in (ALL_CFLAGS): Correct its comment.
4655 2003-07-08 Mark Mitchell <mark@codesourcery.com>
4657 * fold-const.c (make_range): Do not access operand 1 for a
4658 zero-operand operator.
4660 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
4662 * toplev.c (warn_dummy, W_options): Die.
4663 (display_help): Don't print W_options.
4664 * common.opt: Add W_options help from toplev.c.
4666 2003-07-09 Andreas Jaeger <aj@suse.de>
4668 * opts.c (wrap_help): Only pass int arguments as arguments to
4669 printf's '*' modifier. Change argument of function.
4671 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4673 * doc/invoke.texi: Fix misspelling of "@item".
4675 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4677 * config/i386/i386.md: Remove an old comment about
4680 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4682 * cgraph.c (cgraph_node_name): New function.
4683 (dump_cgraph): Use it.
4684 * cgraph.h (cgraph_dump_file): Declare.
4685 (cgraph_node_name): Declare.
4686 * cgraphunit.c: Include timevar.h
4687 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4688 (cgraph_optimize_function): Use TV_INTEGRATION.
4689 (cgraph_mark_local_functions): reorganize dumps.
4690 (cgraph_mark_functions_to_inline_once): Likewise.
4691 (cgraph_optimize): Likewise; use timevar.
4692 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4693 * toplev.c (dump_file_index): Add DFI_cgraph.
4694 (dump_file_info): Likewise.
4695 (cgraph_dump_file): New global variable.
4696 (do_compile): Open and close cgraph dump.
4697 * invoke.texi (-d): Document new flag; renumber.
4699 2003-07-08 Roger Sayle <roger@eyesopen.com>
4702 * calls.c (emit_call_1): Don't bother popping the arguments off of
4703 the stack after a noreturn function call; The adjustment is dead.
4704 (expand_call): Likewise.
4706 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4708 * expr.c (MOVE_MAX_PIECES): Move from here...
4709 * defaults.h (MOVE_MAX_PIECES): ... to here.
4711 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4713 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4715 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4717 * genattr.c (internal_dfa_insn_code): Don't prototype.
4718 * genattrtab.c (attr_desc): Add `static_p' field.
4719 (expand_units): Make blockage range and ready cost functions
4721 (write_attr_get): Don't add extern prototypes in C file. Mark
4722 static functions as appropriate.
4723 (find_attr, make_internal_attr): Initialize static_p.
4724 * genattrtab.h (ATTR_STATIC): New macro.
4725 * genautomata.c (output_internal_reset_func): Mark output function
4727 (make_internal_dfa_insn_code_attr): Mark output function as static.
4729 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4731 * genattrtab.h: Add new macros for attr `special' flags.
4732 * genattrtab.c (attr_desc): Reorder/resize fields better.
4733 Use attr `special' macros in all calls to make_internal_attr.
4734 * genautomata.c: Likewise.
4736 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4738 * c-common.c (c_estimate_num_insns_1): New static function.
4739 (c_estimate_num_insns): New global function.
4740 * c-common.h (DECL_NUM_STMTS): Rename to...
4741 (DECL_ESTIMATED_INSNS): ... this.
4742 (c_estimate_num_insns): Declare.
4743 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4744 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4745 * c-semantics.c (add_stmt): Do not account statements.
4746 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4748 * langhooks.h (lang_hooks_for_tree_inlining): Add
4750 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4752 (max-inline-insns): set to 300.
4753 (min-inline-insns): set to 10.
4754 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4756 (INSNS_PER_STMT): Kill.
4757 (inlinable_function_p): Compute and store body size.
4758 (expand_call_inline): Likewise.
4759 (optimize_inline_calls): Likewise.
4761 2003-07-08 James E Wilson <wilson@tuliptree.org>
4764 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4765 loop over new variable t2 instead of t.
4767 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4770 * config/i386/winnt.c: Replace use of error(), warning() with
4771 error_with_decl(), warning_with_decl(), throughout.
4773 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4775 * opts.c (wrap_help): Use unsigned int, not size_t.
4777 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4779 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4780 as .file/.loc directives are incompatible with linker relaxation.
4782 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4784 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4785 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4786 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4787 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4788 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4789 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4790 Escape { and } characters which are not part of range expressions.
4791 * fixinc/fixincl.x: Regenerate.
4792 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4794 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4797 * tree-inline.c (find_alloca_call): Use
4798 walk_tree_without_duplicates, instead of walk_tree.
4799 (find_builtin_longjmp_call): Likewise.
4800 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4801 * c-semantics.c (find_reachable_label): Likewise.
4803 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4806 * config/i386/i386.c (ix86_check_movabs): New function.
4807 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4808 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4809 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4811 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4813 * Makefile.in (install-po): Cope with empty CATALOGS.
4815 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4817 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4818 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4819 (SECTION_FUNCTION_TEMPLATE): Delete.
4820 * config/mips/elf.h: As for elf64.h.
4821 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4822 * config/mips/linux.h: As for elf.h
4823 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4824 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4825 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4826 of in_sdata from current_section_name and current_section_flags.
4827 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4828 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4829 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4830 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4831 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4832 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4833 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4834 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4835 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4836 (override_options): Remove setting of MASK_GPOPT.
4837 (mips_output_external): Use mips_in_small_data_p to check whether a
4838 symbol needs an .extern directive. Don't emit such directives for
4839 TARGET_EXPLICIT_RELOCS.
4840 (mips_declare_object): Update accordingly.
4841 (mips_select_rtx_section): Call named_section rather than
4843 (mips_select_section): Use default_elf_section_section for everything
4844 except .text string constants.
4845 (mips_in_small_data_p): New function.
4846 (mips_encode_section_info): Remove small data handling.
4847 (mips_unique_section): Delete.
4848 (iris6_section_type_flags): New function.
4849 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4851 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4854 * pa.md: Disparage all mtsar constraints.
4855 (extzv, extv, insv): Don't fail on length of {32|64}.
4857 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4859 * system.h: Poison MAP_CHARACTER.
4860 * config/i370/i370-protos.h (mvs_map_char): Delete.
4861 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4862 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4863 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4865 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4867 * toplev.c (randomize): Correct call to time().
4869 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4871 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4872 REG_EQUIV notes as well.
4874 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4876 * doc/md.texi: Fix the description of addmodecc.
4878 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4880 * Makefile.in (top_builddir): Set to "..", not ".".
4881 (INTLLIBS, INTLDEPS): Delete.
4882 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4883 (LIBDEPS): Add $(LIBICONV_DEP).
4884 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4885 (INCLUDES): Replace -I../intl with @INCINTL@.
4886 ($(top_builddir)/intl/libintl.a): Delete rule.
4887 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4888 stagefeedback-start): Use $$ for variable to be evaluated by
4890 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4891 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4892 * aclocal.m4: sinclude ../config/progtest.m4. Add
4893 contents of lcmessage.m4 from gettext distro.
4894 * configure.in: Check for wchar.h and setlocale. Set
4895 LIBICONV_DEP to the empty string and substitute it.
4896 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4897 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4898 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4899 in $LIBINTL, to avoid linking it twice.
4900 * configure, config.in: Regenerate.
4902 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4904 * fixinc/mkfixinc.sh: Remove winnt support.
4905 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4907 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4909 * Makefile.in: Update.
4910 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4911 * c.opt: Update documentation.
4912 * common.opt: Add some help text.
4913 * opts.c: Include intl.h.
4914 (wrap_help, print_help): New.
4915 (find_opt, handle_option, common_handle_option): opt_text now
4916 contains the '-'. Use print_help to output help.
4917 * opts.h (struct cl_option): New member "help".
4918 * opts.sh: Update to handle help text output and to prepend
4920 * toplev.c (display_help): Remove some help text.
4922 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4923 Fariborz Jahanian <fjahanian@apple.com>
4925 * configure.in: Test for PowerPC mfcr field support in assembler.
4926 * config.in, configure: Regenderated.
4928 * config/rs6000/power4.md: Add mfcrf reservation.
4929 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4930 * config/rs6000/rs6000.c (mfcr_operation): Define.
4931 (print_operand): Add 'Q' case for mfcrf.
4932 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4933 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4934 (movcc_internal1): Emit optional field operand for mfcr and set
4935 "type" attribute appropriately.
4936 (mfcr SCC): Likewise.
4937 (movesi_from_cr_one): New.
4939 2003-07-07 Roger Sayle <roger@eyesopen.com>
4941 * config/i386/i386.md: Correct check-in of incorrect version.
4943 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4945 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4946 adjacent stdio calls.
4947 * c-decl.c (c_print_identifier): Likewise.
4948 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4949 * print-rtl.c (print_rtx): Likewise.
4950 * print-tree.c (print_node_brief, print_node): Likewise.
4951 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4953 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4954 * config.in, configure: Regenerated.
4956 2003-07-07 Roger Sayle <roger@eyesopen.com>
4959 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4960 Changed to define_expand patterns that copy operand[1] to prevent
4961 it from being clobbered before emitting an atan2?f3_1 insn.
4962 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4963 patterns that actually specify the behaviour of x87's FPATAN.
4965 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4967 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4968 clearing of SYMBOL_FLAG_LOCAL bit.
4969 If vcall_offset fits into signed 16-bit immediate, use
4970 one instruction for both addition and load.
4972 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4974 * opts.c (common_handle_option): Correct handling of the
4975 -falign- switches that do and don't take an argument.
4977 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4979 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4981 (pushhi1_h8300hs): Likewise.
4983 2003-07-07 Andreas Jaeger <aj@suse.de>
4985 * genextract.c: Convert remaining prototypes to ISO C90.
4987 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4988 * fold-const.c (fold_single_bit_test): Likewise.
4989 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4990 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4992 * gengtype.c (write_array): Generate ISO C90 prototypes.
4994 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4996 2003-07-07 Roger Sayle <roger@eyesopen.com>
4998 PR optimization/11059
4999 * expr.c (can_store_by_pieces): Return true if length is zero.
5000 (store_by_pieces): If length is zero and endp is two, abort,
5001 othwerise, if length is zero and endp is not two, return "to".
5002 (clear_by_pieces): Do nothing if length is zero.
5003 (clear_storage): Do nothing if length is zero.
5004 (store_constructor): Simplify code when size is zero, or the
5005 target has already been cleared. This avoids emitting a
5006 blockage instruction when initializing empty structures.
5008 2003-07-07 Andreas Jaeger <aj@suse.de>
5010 * mips-tfile.c: Convert prototypes to ISO C90.
5011 * mips-tdump.c: Convert prototypes to ISO C90.
5013 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
5015 * rtl.h (emit_line_note): Take a location_t.
5016 (emit_line_note_force): Remove.
5017 (set_file_and_line_for_statement): Take a location_t.
5018 * tree.g (emit_line_note): Take a location_t.
5019 * emit-rtl.c (emit_line_note): Take a location_t.
5020 (emit_line_note_force): Remove.
5021 * function.c (init_function_start): Adjust emit_line_note call.
5022 (expand_function_end): Use force_next_line_note, not
5023 emit_line_note_force.
5024 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
5025 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
5026 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5027 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
5028 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5029 genrtl_continue_stmt, genrtl_switch_stmt,
5030 genrtl_asm_stmt): Likewise.
5031 * expr.c (expand_expr): Likewise.
5032 * integrate.c (expand_inline_function): Likewise.
5033 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
5034 (expand_decl_init): Adjust emit_line_note call.
5036 2003-07-07 Dale Johannesen <dalej@apple.com>
5038 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
5040 2003-07-07 Andreas Jaeger <aj@suse.de>
5042 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
5043 * config/i386/i386.c: Likewise.
5045 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
5047 * config/h8300/h8300.md: Use gen_int_mode instead of
5048 GEN_INT (trunc_int_for_mode (...)).
5050 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
5052 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
5053 2 bytes and then subtract 2 from the stack pointer.
5054 (pushhi1_h8300hs): Likewise.
5056 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
5058 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
5060 * configure: Regenerated.
5061 * Makefile.in: Remove extraneous comment.
5062 * toplev.c (randomize): Protect against potential multiple calls.
5063 * doc/invoke.texi (-frandom-seed): Document use for in coverage
5066 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5067 Eric Botcazou <ebotcazou@libertysurf.fr>
5069 PR optimization/11198
5070 * alias.c (objects_must_conflict_p): Return 1 if the types have
5071 the same alias set, not if the alias sets only conflict.
5073 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
5075 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
5076 (convert_cset): Change inbuf to type ICONV_CONST char.
5077 * Makefile.in (LIBS): Add LIBICONV.
5079 * doc/invoke.texi (-falign-functions): Document that
5080 when n is zero then a machine-dependent default is used.
5081 (-falign-labels): Document that when n is zero then a
5082 machine-dependent default is used and that -falign-labels =1
5083 is equivalent to -fno-align-labels.
5084 (-falign-loops): Likewise.
5085 (-falign-jumps): Likewise.
5087 2003-07-06 Art Haas <ahaas@airmail.net>
5089 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
5092 2003-07-06 James E Wilson <wilson@tuliptree.org>
5094 PR optimization/9812
5095 * rtl.h (mem_for_const_double): Delete prototype.
5096 * varasm.c (mem_for_const_double): Delete function.
5097 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
5098 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
5099 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
5100 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
5101 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
5102 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
5103 comment about confused support for XFmode constants.
5105 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
5107 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
5109 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
5111 * config/h8300/h8300.c: Fix comment typos.
5112 * config/h8300/h8300.md: Likewise.
5113 * config/i386/athlon.md: Likewise.
5114 * config/i386/i386.c: Likewise.
5115 * config/i386/pentium.md: Likewise.
5116 * config/ia64/ia64.c: Likewise.
5117 * config/ia64/itanium1.md: Likewise.
5118 * config/ia64/itanium2.md: Likewise.
5119 * config/m32r/m32r.md: Likewise.
5120 * config/m68hc11/m68hc11.c: Likewise.
5121 * config/mcore/mcore.c: Likewise.
5122 * config/mips/sr71k.md: Likewise.
5123 * config/mips/t-iris5-as: Likewise.
5124 * config/mmix/mmix.h: Likewise.
5125 * config/ns32k/ns32k.h: Likewise.
5126 * config/ns32k/NOTES: Fix a typo.
5128 2003-07-06 Andreas Jaeger <aj@suse.de>
5130 * stmt.c: Convert remaining prototypes to ISO C90.
5131 * cfglayout.c: Likewise.
5132 * dbxout.c: Likewise.
5134 * genemit.c: Likewise.
5136 * basic-block.h: Convert prototypes to ISO C90.
5137 * c-parse.in: Likewise.
5138 * c-pragma.h: Likewise.
5139 * c-typeck.c: Likewise.
5140 * cfghooks.h: Likewise.
5141 * cfgloopanal.c: Likewise.
5142 * dbxout.h: Likewise.
5143 * debug.h: Likewise.
5144 * dwarf2asm.h: Likewise.
5146 * gengtype-lex.l: Likewise.
5147 * sched-int.h: Likewise.
5148 * timevar.c: Likewise.
5150 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
5152 * c-common.h (c_comon_handle_filename,
5153 c_common_missing_arguement): New.
5154 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
5155 LANG_HOOKS_MISSING_ARGUMENT): New.
5156 * c-opts.c (missing_arg): Rename c_common_missing_argument,
5157 update to be an appropriate langhook.
5158 (c_common_handle_option): Don't handle filenames.
5159 (c_common_handle_filename): New.
5160 * hooks.c (hook_void_constcharptr,
5161 hook_bool_constcharptr_size_t_false): New.
5162 * hooks.h (hook_void_constcharptr,
5163 hook_bool_constcharptr_size_t_false): New.
5164 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
5165 LANG_HOOKS_MISSING_ARGUMENT): New.
5166 (LANG_HOOKS_INITIALIZER): Update.
5167 * langhooks.h (struct lang_hooks): Add handle_filename and
5169 * opts.c (handle_option): Don't handle filenames here, but ...
5170 (handle_options): ... here.
5171 (common_handle_option): Don't handle missing arguments here.
5172 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
5173 LANG_HOOKS_MISSING_ARGUMENT): New.
5175 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
5177 * Makfile.in: Remove traces of mbchar.
5178 * c-parse.in (MULTIBYTE_CHARS): Remove.
5179 * config.in (MULTIBYTE_CHARS): Remove.
5180 * configure: Remove --enable-mbchar.
5181 * configure.in: Remove --enable-mbchar.
5182 * mbchar.c, mbchar.h: Remove.
5183 * system.h: Poison MULTIBYTE_CHARS.
5184 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
5185 * config/linux.h (MULTIBYTE_CHARS): Remove.
5186 * config/svr4.h (MULTIBYTE_CHARS): Remove.
5187 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
5189 2003-07-06 Andreas Jaeger <aj@suse.de>
5191 * varray.c (varray_check_failed): Fix typo.
5193 * unroll.c: Convert prototypes to ISO C90.
5194 * varasm.c: Likewise.
5195 * varray.c: Likewise.
5196 * varray.h: Likewise.
5197 * vmsdbgout.c: Likewise.
5198 * xcoffout.c: Likewise.
5199 * xcoffout.h: Likewise.
5201 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5203 * gcov-io.h: Add a local time stamp.
5204 (struct gcov_info): Add stamp field.
5205 (gcov_truncate): New.
5206 * coverage.c (read_counts_file): Skip the stamp.
5207 (coverage_begin_output): Write the stamp.
5208 (build_gcov_info): Declare and init the stamp.
5209 (coverage_finish): Only unlink data file, if stamp is zero.
5210 * gcov-dump.c (dump_file): Dump the stamp.
5211 * gcov.c (bbg_stamp): New.
5212 (release_structures): Clear bbg_stamp.
5213 (read_graph_file): Read stamp.
5214 (read_count_file): Check stamp.
5215 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
5217 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5219 * tree.h (default_flag_random_seed): Remove.
5220 * toplev.h (local_tick): Declare.
5221 * tree.c (flag_random_seed, default_flag_random_seed): Move to
5223 (append_random_chars): Don't call default_flag_random_seed.
5224 * toplev.c (flag_random_seed): Define here. Set local_tick.
5225 (local_tick): Define.
5226 (randomize): New, moved from tree.c.
5227 (print_switch_values): Adjust.
5228 (toplev_main): Call randomize.
5230 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5232 * tree.h (crc32_string): Declare.
5233 * tree.c (append_random_chars): Remove.
5234 (crc32_string): New.
5235 (get_file_function_name_long): Use crc32_string here.
5237 2003-07-06 Andreas Jaeger <aj@suse.de>
5239 * gcc.c: Convert prototypes to ISO C90.
5241 * gcov-dump.c: Likewise.
5242 * gcov-iov.c: Likewise.
5244 * genattrtab.h: Likewise.
5246 * global.c: Likewise.
5247 * graph.c: Likewise.
5248 * graph.h: Likewise.
5249 * hosthooks.h: Likewise.
5250 * hooks.h: Likewise.
5251 * hooks.c: Likewise.
5252 * hashtable.h: Likewise.
5253 * hashtable.c: Likewise.
5254 * haifa-sched.c: Likewise.
5255 * integrate.h: Likewise.
5256 * integrate.c: Likewise.
5257 * input.h: Likewise.
5258 * ifcvt.c: Likewise.
5260 * langhooks-def.h: Likewise. Add extern to prototypes.
5261 * langhooks.c: Likewise.
5262 * langhooks.h: Likewise.
5264 * local-alloc.c: Likewise.
5265 * loop-init.c: Likewise.
5266 * loop-unroll.c: Likewise.
5267 * loop-unswitch.c: Likewise.
5269 * loop.h: Likewise. Add extern to prototypes.
5270 * machmode.h: Likewise.
5272 * mbchar.c: Likewise.
5273 * mbchar.h: Likewise.
5274 * mkdeps.c: Likewise.
5275 * mkdeps.h: Likewise.
5276 * optabs.c: Likewise.
5277 * optabs.h: Likewise.
5278 * output.h: Likewise.
5279 * gccspec.c: Likwise.
5280 * postreload.c: Likewise.
5281 * prefix.c: Likewise.
5282 * prefix.h: Likewise.
5283 * print-rtl.c: Likewise.
5284 * print-tree.c: Likewise.
5285 * profile.c: Likewise.
5286 * read-rtl.c: Likewise.
5289 * recog.c: Likewise.
5290 * recog.h: Likewise.
5291 * reg-stack.c: Likewise.
5292 * regclass.c: Likewise.
5293 * regmove.c: Likewise.
5294 * regrename.c: Likewise.
5296 * reload.c: Likewise.
5297 * reload.h: Likewise.
5298 * reload1.c: Likewise.
5299 * reorg.c: Likewise.
5300 * resource.c: Likewise.
5301 * resource.h: Likewise.
5302 * rtl-error.c: Likewise.
5305 * rtlanal.c: Likewise.
5306 * sbitmap.c: Likewise.
5307 * sbitmap.h: Likewise.
5308 * scan-decls.c: Likewise.
5310 * sched-deps.c: Likewise.
5311 * sched-ebb.c: Likewise.
5312 * sched-int.h: Likewise.
5313 * sched-rgn.c: Likewise.
5314 * sched-vis.c: Likewise.
5315 * sibcall.c: Likewise.
5316 * simplify-rtx.c: Likewise.
5317 * sreal.c: Likewise.
5318 * sreal.h: Likewise.
5319 * ssa-ccp.c: Likewise.
5320 * ssa-dce.c: Likewise.
5323 * stack.h: Likewise.
5325 * stor-layout.c: Likewise.
5326 * stringpool.c: Likewise.
5327 * target.h: Likewise.
5328 * timevar.c: Likewise.
5329 * timevar.h: Likewise.
5330 * tlink.c: Likewise.
5331 * tracer.c: Likewise.
5332 * tree-inline.c: Likewise.
5333 * tree-inline.h: Likewise.
5337 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5339 * combine.c (nonzero_bits1): Fix a warning.
5341 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5343 * config/h8300/h8300.c (compute_mov_length): Correct the
5344 length of loading CONST0_RTX (SFmode).
5346 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
5348 * toplev.c (output_clean_symbol_name): Remove.
5349 * toplev.h (output_clean_symbol_name): Remove.
5350 * config/alpha/alpha.c (unicosmk_output_module_name): Use
5351 lbasename & clean_symbol_name.
5353 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5355 * ggc.h: Follow spelling conventions.
5356 * config/i386/i386.c: Likewise.
5357 * config/i386/winnt.c: Likewise.
5358 * config/rs6000/rs6000.c: Likewise.
5360 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5362 * bt-load.c: Fix comment typos.
5363 * c-incpath.c: Likewise.
5365 * cfgcleanup.c: Likewise.
5366 * cfgloop.h: Likewise.
5367 * cfgloopmanip.c: Likewise.
5368 * cfgrtl.c: Likewise.
5369 * diagnostic.h: Likewise.
5370 * dwarfout.c: Likewise.
5371 * emit-rtl.c: Likewise.
5372 * et-forest.c: Likewise.
5373 * et-forest.h: Likewise.
5376 * genattr.c: Likewise.
5378 * langhooks.h: Likewise.
5379 * local-alloc.c: Likewise.
5380 * loop-unroll.c: Likewise.
5381 * loop-unswitch.c: Likewise.
5382 * ra-build.c: Likewise.
5383 * regclass.c: Likewise.
5384 * regmove.c: Likewise.
5385 * rtl.def: Likewise.
5386 * rtlanal.c: Likewise.
5387 * sched-ebb.c: Likewise.
5388 * sched-rgn.c: Likewise.
5389 * simplify-rtx.c: Likewise.
5391 * tracer.c: Likewise.
5394 2003-07-05 Zack Weinberg <zack@codesourcery.com>
5396 * cppcharset.c: Use the correct return type for the fallback iconv
5399 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5401 Blame to Jan Hubicka <jh@suse.cz>
5402 * cfglayout.c (record_effective_endpoints): Split insns before
5403 first basic block correctly.
5405 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5407 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
5408 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
5409 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
5411 2003-07-05 Andreas Jaeger <aj@suse.de>
5413 * genattrtab.c (write_attr_get): Revert part of last patch to
5414 always write out a prototype.
5416 * genemit.c (gen_split): Readd lost unused attributes in last
5419 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5421 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
5422 different from header.
5424 2003-07-05 Andreas Schwab <schwab@suse.de>
5426 * config/m68k/m68k.c: Remove code protected by CRDS.
5427 * config/m68k/m68k.md: Likewise.
5429 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
5432 * c-opts.c (permit_fortran_options): New.
5433 (c_common_init_options): Accept fortran front end options if
5434 it looks like we might be preprocessing Fortran.
5435 (c_common_handle_option): Don't reject switch if permit_fotran_options.
5437 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5439 * genattr.c (internal_dfa_insn_code): Output prototype.
5440 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
5441 * genautomata.c: Likewise.
5442 * genconditions.c: Likewise.
5443 * genemit.c: Likewise.
5444 * genextract.c: Likewise.
5445 * gengenrtl.c: Likewise.
5446 * gengtype.c: Likewise.
5447 * genopinit.c: Likewise.
5448 * genoutput.c: Likewise.
5449 * genpeep.c: Likewise.
5450 * genrecog.c: Likewise.
5452 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5454 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
5455 (struct cpp_options): Add narrow_charset, wide_charset,
5456 bytes_big_endian fields. Remove EBCDIC field.
5457 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
5459 * cpphash.h: Include <iconv.h> if we have it, otherwise
5460 provide a dummy definition of iconv_t.
5461 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
5462 (_cpp_valid_ucn): Update prototype.
5463 (_cpp_destroy_iconv): New prototype.
5465 * doc/cpp.texi: Document character set handling.
5466 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
5467 * doc/extend.texi: Delete entire section on multiline strings.
5468 Rewrite section on __FUNCTION__ etc now that these are
5471 * cppucnid.tab, cppucnid.pl: New files.
5472 * cppucnid.h: New generated file.
5473 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
5474 (iconv_open, iconv, iconv_close): Provide dummy definitions
5476 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
5477 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
5478 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
5479 cpp_interpret_string, narrow_str_to_charconst,
5480 wide_str_to_charconst): New.
5481 (ucn_valid_in_identifier): Use a binary search through the
5482 ucnranges table defined in cppucnid.h, not a long chain of if
5484 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
5485 character names are only valid in C++ and C99" to a warning.
5486 Issue the "meaning of \[uU] is different in traditional C"
5487 warning here. Take care not to let iconv see an invalid UCS
5488 value if we get a malformed UCN. Issue an error if we don't
5490 (cpp_interpret_charconst): Moved here from cpplex.c. Use
5491 cpp_interpret_string to do the heavy lifting.
5493 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
5494 narrow_charset, wide_charset fields of options structure.
5495 (cpp_destroy): Call _cpp_destroy_iconv.
5496 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
5497 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
5498 (cpp_interpret_charconst): Moved to cppcharset.c.
5499 * cpplib.c (dequote_string): Delete.
5500 (interpret_string_notranslate): New.
5501 (do_line, do_linemarker): Use interpret_string_notranslate.
5503 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
5505 * c-common.c (fname_string, combine_strings): Delete.
5506 * c-common.h (fname_string, combine_strings): Delete prototypes.
5507 * c-lex.c (ignore_escape_flag): Delete.
5508 (cb_ident): Use cpp_interpret_string, not lex_string.
5509 (get_nonpadding_token): New function.
5510 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
5511 Adjust calls to lex_string. Don't write *value twice.
5512 (lex_string): Now handles string constant concatenation.
5513 Most of the work handed off to cpp_interpret_string.
5514 Call fix_string_type here.
5515 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
5516 FUNC_NAME, throughout.
5517 (OBJC_STRING): New token type.
5518 (primary:STRING): No need to call fix_string_type here.
5519 (primary:objc_string): Make that OBJC_STRING.
5520 (objc_string nonterminal): Delete.
5521 (yylexname): Delete code to handle fake string constants.
5522 (yylexstring): Delete entirely.
5523 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
5524 to handle CPP_ATSIGN.
5526 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
5527 * c-opts.c (missing_arg, c_common_handle_option): Handle
5528 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
5529 (c_common_init): Set cpp_opts->bytes_big_endian, not
5530 cpp_opts->EBCDIC. Call cpp_init_iconv.
5531 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
5532 (TARGET_EBCDIC): Delete default definition.
5534 * objc/objc-act.c (build_objc_string_object): No need to
5535 handle string constant concatenation.
5537 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5539 * doc/install.texi: Fix typos.
5540 * doc/invoke.texi: Likewise.
5541 * doc/tm.texi: Likewise.
5543 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5545 * config/pa/fptr.c: Fix comment typos.
5546 * config/pa/pa-64.h: Likewise.
5547 * config/pa/pa.c: Likewise.
5548 * config/pa/pa.h: Likewise.
5549 * config/rs6000/603.md: Likewise.
5550 * config/rs6000/7xx.md: Likewise.
5551 * config/rs6000/darwin.h: Likewise.
5552 * config/rs6000/freebsd.h: Likewise.
5553 * config/rs6000/rs6000.c: Likewise.
5554 * config/rs6000/rs6000.md: Likewise.
5555 * config/rs6000/spe.h: Likewise.
5557 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
5559 * config/s390/2064.md: Change GNU CC to GCC.
5560 * config/s390/2084.md: Likewise.
5561 * config/s390/fixdfdi.h: Likewise.
5562 * config/s390/linux.h: Likewise.
5563 * config/s390/s390-modes.def: Likewise.
5564 * config/s390/s390-protos.h: Likewise.
5565 * config/s390/s390.c: Likewise.
5566 * config/s390/s390.h: Likewise.
5567 * config/s390/s390.md: Likewise.
5568 * config/s390/s390x.h: Likewise.
5570 2003-07-04 Jeff Law <law@redhat.com>
5573 * expr.c (do_store_flag): Pass in the correct result type
5574 when calling fold_single_bit_test.
5575 * fold-const.c (fold_single_bit_test): Use result_type for the
5576 result when folding a sign bit test.
5578 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
5580 * opts.c (common_handle_options): Negate sense of -falign- switches.
5582 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
5584 * Makefile.in: Replace PWD with PWD_COMMAND.
5586 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5588 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5589 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5590 Handle strange loops.
5592 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5594 * install.texi: Even the g77 manpage is derived from
5595 the full g77 manual.
5597 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5599 * ABOUT-NLS: Delete.
5600 * intl: Delete entire directory.
5601 * aclocal.m4: Include ../config/gettext.m4. Delete
5602 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5603 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5604 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5605 Remove intl/Makefile from all_outputs.
5606 * configure, config.in: Regenerate.
5607 * Makefile.in: Expunge all references to intl subdirectory.
5608 Add -I../intl to INCLUDES.
5609 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5611 2003-07-04 Roger Sayle <roger@eyesopen.com>
5613 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5614 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5616 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5618 PR c++/5287, PR c++/7910, PR c++/11021
5619 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5620 dllimport attribute if function is defined at declaration, but
5621 report error instead. Likewise for dllimport'd variable
5622 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5623 declared within functions, Report error if dllimport or dllexport
5624 symbol is not global.
5625 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5626 if defined after declaration or if inlined. Don't allow definition
5627 of static data members of C++ classes. Don't dllimport virtual
5629 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5630 (i386_pe_mark_dllimport): Remove unnecessary checks.
5631 (i386_pe_encode_section_info): Warn if the dllimport attribute
5632 and symbol prefix have been instantiated and then overridden.
5634 * doc/extend.texi: Document dllimport and dllexport attributes.
5636 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5638 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
5640 * config/kaos.h (CPP_PREDEFINES): Delete.
5641 (TARGET_OS_CPP_BUILTINS): New.
5643 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5645 * c-aux-info.c: Include toplev.h after c-tree.h.
5646 * c-common.c: Likewise.
5647 (GCC_DIAG_STYLE): Undef.
5648 * c-semantics.c (GCC_DIAG_STYLE): Define.
5649 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5650 * diagnostic.h (inform): Move prototype to toplev.h.
5651 * jump.c: Include diagnostic.h before toplev.h.
5652 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5653 (warning, error, fatal_error, pedwarn, sorry, inform,
5654 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5656 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5658 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5659 at all if edge is not specified.
5660 (can_copy_bbs_p, copy_bbs): New.
5661 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5662 * cfgloop.c (get_loop_body): Comment more precisely.
5663 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5664 (scale_bbs_frequencies): Fix comment typo.
5665 (can_duplicate_loop_p): Use can_copy_bbs_p.
5666 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5668 2003-07-03 Devang Patel <dpatel@apple.com>
5670 * c-opts.c (c_common_parse_file): Remove extra
5671 debug_hooks->start_source_file call.
5673 2003-07-03 Roger Sayle <roger@eyesopen.com>
5675 * real.c (real_trunc, real_floor, real_ceil): New functions
5676 to implement trunc, floor and ceil respectively.
5677 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5678 * builtins.c (integer_valued_real_p): New function to test if
5679 a floating point expression has an integer valued result.
5680 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5681 foo(x) where foo is an integer rounding function. Similarly,
5682 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5683 (double)(int)x when both foo and bar are integer rounding
5684 functions and we don't need to honor errno.
5685 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5686 New functions to fold trunc, floor and ceil.
5687 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5688 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5689 to fold BUILT_IN_CEIL*.
5690 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5691 the remaining integer rounding functions.
5693 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5695 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5696 SPARC_INT_ARG_MAX to determine where to split unnamed
5697 complex FP arguments.
5699 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5701 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5702 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5703 (merge_blocks_move_predecessor_nojumps,
5704 merge_blocks_move_successor_nojumps): Use merge_blocks.
5705 (try_optimize_cfg): Use merge_blocks_move.
5706 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5707 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5708 (cfg_layout_create_basic_block): New.
5709 (rtl_can_merge_blocks): New.
5710 (cfg_layout_split_block): Do not alloc aux by hand.
5711 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5713 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5714 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5715 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5716 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5718 * basic-block.h (basic_block_def): Add field 'rbi'.
5719 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5720 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5721 * cfg.c (entry_exit_blocks): Add new field.
5722 * cfglayout.c: Include alloc-pool.h;
5723 (cfg_layout_pool): New.
5724 (record_effective_endpoints, fixup_reorder_chain,
5725 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5727 (cfg_layout_initialize_rbi): New function.
5728 (cfg_layout_initialize): Use it.
5729 (cfg_layout_finalize): Clear rbi fields.
5730 * cfglayout.h (RBI): Kill.
5731 (cfg_layout_initialize_rbi): Declare.
5732 * cfgloopmanip.c (copy_bbs): Use rbi.
5733 (record_exit_edges): Likewise.
5734 (duplicate_loop_to_header_edge): Likewise.
5735 * cfgrtl.c (cfg_layout_create_basic_block): Use
5736 cfg_layout_initialize_rbi.
5737 (cfg_layout_split_block): Use rbi.
5738 (cfg_layout_delete_block): Likewise.
5739 * loop-init.c (loop_optimizer_finalize): Likewise.
5740 * loop-unswitch.c (unswitch_loop): Likewise.
5741 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5743 * cfgrtl.c: Update comments.
5744 (try_redirect_by_replacing_jump): New argument.
5745 (redirect_branch_edge): Break out from ...
5746 (rtl_redirect_edge_and_branch): ... this one.
5747 (update_cfg_after_block_merging): Break out from ...
5748 (rtl_merge_blocks): ... this one.
5749 (cfg_layout_split_edge): New.
5750 (cfg_layout_merge_blocks): New.
5751 (cfg_layout_can_merge_blocks_p): New.
5752 (cfg_layout_redirect_edge_and_branch): Reorganize.
5753 (cfg_layout_rtl_cfg_hooks): Fill in.
5754 (cfg_layout_delete_block): Kill barriers.
5755 * cfganal.c (can_fallthru): Deal with exit blocks
5756 * cfglayout.c (cfg_layout_function_header): New function
5757 (record_effective_endpoints): Record function header.
5758 (fixup_reorder_chain): Fixup dead jumptables; place header
5760 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5761 * bb-reorder.c (cfg_layout_initialize): Update call.
5762 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5763 edges in cfglayout mode.
5764 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5765 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5766 * cfglayout.h (cfg_layout_initialize): Update prototype.
5767 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5768 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5769 * flow.c (propagate_block): Do not crash when basic block ends
5770 by first insn in the chain.
5771 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5773 * tracer.c (tracer): Update call of cfg_layout_initialize.
5775 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5777 * Makefile.in: Use dependency variables in lieu of explicit
5780 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5782 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5783 * tree.h: ...to here.
5785 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5787 * config/s390/2064.md: Fix comment typos.
5788 * config/s390/2084.md: Likewise.
5789 * config/s390/s390.c: Likewise.
5790 * config/s390/s390.md: Likewise.
5791 * config/sh/sh.c: Likewise.
5792 * config/sh/sh.h: Likewise.
5793 * config/sh/sh.md: Likewise.
5794 * config/sparc/sparc.c: Likewise.
5795 * config/sparc/sparc.h: Likewise.
5796 * config/sparc/sparc.md: Likewise.
5797 * config/stormy16/stormy16.c: Likewise.
5798 * config/stormy16/stormy16.h: Likewise.
5799 * config/stormy16/stormy-abi: Fix a typo.
5801 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5803 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5805 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5807 * config/mips/mips.h (save_argv): Delete.
5809 2003-07-03 Roger Sayle <roger@eyesopen.com>
5812 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5813 if the expression is a SAVE_EXPR.
5815 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5817 * config/m32r/m32r.c: Fix comment typos.
5818 * config/m68hc11/m68hc11.c: Likewise.
5819 * config/m68hc11/m68hc11.h: Likewise.
5820 * config/m68k/m68k.c: Likewise.
5821 * config/mcore/mcore.c: Likewise.
5822 * config/mcore/mcore.h: Likewise.
5823 * config/mcore/mcore.md: Likewise.
5824 * config/mips/mips.c: Likewise.
5825 * config/mips/mips.h: Likewise.
5826 * config/mips/mips.md: Likewise.
5827 * config/mips/netbsd.h: Likewise.
5828 * config/mn10300/mn10300.c: Likewise.
5830 2003-07-03 Andreas Schwab <schwab@suse.de>
5832 * dbxout.c (pending_bincls): Move decl down inside
5833 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5835 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5837 * rtl.h (NOTE_DATA): Refer to whole union.
5838 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5840 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5842 PR optimization/11381
5843 * simplify-rtx.c (simplify_relational_operation): Check that
5844 two equal operands have no side-effects before simplifying
5847 2003-07-02 Jeff Law <law@redhat.com>
5849 * expr.c (do_store_flag): Remove special case folding for
5850 single bit tests. Instead call back into the commonized folder
5852 * fold-const.c (fold_single_bit_test): New function, mostly
5853 extracted from do_store_flag, with an additional case extracted
5855 (fold): Call fold_single_bit_test appropriately.
5856 * tree.h (fold_single_bit_test): Prototype.
5858 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5860 * system.h: Include filenames.h.
5861 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5862 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5863 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5864 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5865 * config/i386/xm-mingw32.h: Don't define
5866 HAVE_DOS_BASED_FILE_SYSTEM,
5867 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5868 * doc/hostconfig.texi: Update to match.
5870 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5871 config/i386/cygwin.h:
5872 Use IS_ABSOLUTE_PATH throughout.
5873 * gcc.c (DIR_UP): Delete, unused.
5874 * protoize.c (IS_SAME_PATH): Define in terms of
5876 (is_abspath): Delete.
5878 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5880 * config/i386/emmintrin.h: Fix comment typos.
5881 * config/i386/i386.c: Likewise.
5882 * config/i386/i386.h: Likewise.
5883 * config/i386/sco5.h: Likewise.
5884 * config/ia64/ia64.c: Likewise.
5885 * config/ia64/itanium2.md: Likewise.
5887 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5889 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5891 (emit_bincl_stab): Same.
5892 (emit_pending_bincls): Same.
5894 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5896 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5897 loading CONST0_RTX (SFmode).
5898 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5899 'G' to CONST0_RTX (SFmode).
5900 * config/h8300/h8300.md (movsf_h8300): Change the first
5902 (movsf_h8300h): Likewise.
5904 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5906 * c-common.h (c_common_init_options): New prototype.
5907 * c-opts.c (deferred_size): Remove.
5908 (defer_opt): Array is now pre-allocated.
5909 (c_common_init_options): Pre-allocate deferred_opts. Make
5910 lang_flags unsigned.
5911 (push_command_line_options): Free deferred_opts.
5912 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5913 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5914 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5915 * langhooks.h (struct lang_hooks): New prototype for init_options.
5916 * main.c (main): Cast argv.
5917 * opts.c (handle_option, handle_options): Update prototypes.
5918 (decode_options): save_argc, save_argv are not global. Constify.
5919 * opts.h (decode_options): New prototype.
5920 * toplev.c (general_init): New protoype.
5921 (save_argv): Make static.
5922 (save_argc): Remove.
5923 (print_switch_values, general_init): Constify.
5924 (toplev_main): Save argv.
5925 * toplev.h (toplev_main): Update prototype.
5926 (save_argc, save_argv): Remove.
5928 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5930 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5931 (emit_bincl_stab): Same.
5932 (emit_pending_bincls): Same.
5934 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5937 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5939 2003-07-02 Andreas Schwab <schwab@suse.de>
5941 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5943 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5945 PR optimization/11210
5946 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5947 about the behaviour with regard to bitfields.
5948 * fold-const (decode_field_reference): Record outermost type in
5949 case the expression is a NOP. Strip all NOPs. Set the signedness
5950 to that of the outermost type (if any) when the bitsize is equal
5951 to the size of the type.
5953 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5955 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5956 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5957 (adddi3_internal_3, addsi3_internal_2): Likewise.
5959 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5961 * config/mips/mips.c (machine_function): Add new fields:
5962 ignore_hazard_length_p and all_noreorder_p.
5963 (mips_flag_delayed_branch): New variable.
5964 (override_options): Treat '/' as an operand punctuation character.
5965 Set up mips_flag_delayed_branch.
5966 (print_operand): Handle '/'.
5967 (mips_output_function_prologue): Put the whole function in
5968 .set noreorder and .set nomacro if all_noreorder_p is true.
5969 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5970 (mips16_optimize_gp): Remove "first insn" parameter.
5971 (mips16_lay_out_constants): New function, split out from mips_reorg.
5972 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5973 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5974 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5975 do delayed-branch scheduling followed by hazard detection.
5976 (mips_adjust_insn_length): Only account for hazards if
5977 !ignore_hazard_length_p.
5978 (mips_output_load_label): Add a nop to the o32 sequence if
5979 the target suffers from load delays.
5980 (mips_output_conditional_branch): Add %/ to the end of branches.
5981 (mips_output_division): Fill the branch delay slot with %#.
5982 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5983 instructions. End all other %* branches with %/.
5984 (ffssi2, ffsdi2): Fix lengths.
5985 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5986 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5987 (fix_truncsfsi2_macro): Likewise.
5988 (mov_lwl): Set hazard to "none".
5989 (ashldi3_internal): Fill the branch delay slot with %#.
5990 (ashrdi3_internal, lshrdi3_internal): Likewise.
5991 (exception_receiver): Explicitly set $28.
5992 (hazard_nop): New pattern.
5994 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5996 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5997 before calling tree_inlinable_function_p.
5999 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6001 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
6002 <internal/stdio_core.h> too.
6003 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
6004 <internal/wchar_core.h> too.
6005 Substitute va_list uses in inline definition.
6006 * fixinc/fixincl.x: Regenerate.
6008 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6010 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
6011 Undef before redefinition.
6012 (LABEL_AFTER_LOC): Likewise.
6013 (DEFAULT_SIGNED_CHAR): Likewise.
6014 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
6017 * config/mips/iris3.h: Remove, unused.
6018 * config/mips/iris4.h: Likewise.
6020 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
6022 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
6023 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
6026 * config/mips/iris5.h: Move explicit includes ...
6027 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
6029 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
6030 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
6033 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
6034 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
6037 * config/mips/iris6.h: Fix IRIX spelling.
6038 (MULTILIB_DEFAULTS): Undef before redefinition.
6040 * config/mips/iris6.h: Move explicit includes ...
6041 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
6043 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
6045 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
6046 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
6047 Use next_needed field instead of aux to maintain the queue.
6048 * cgraph.h (cgraph_node): Add next_needed.
6049 (cgraph_varpool_node): Add next_needed; remove aux.
6050 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
6052 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
6054 * cgraphunit.c (cgraph_finalize_function): Set finalized.
6055 (cgraph_finalize_function): Do not examine inlinablility.
6056 (cgraph_finalize_compilation_unit): Do it here.
6057 * cgraph.h (cgraph_local_info): Add finalized field.
6059 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6061 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
6062 (gt_pch_restore): Likewise.
6064 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6066 * config/alpha/alpha.c: Fix comment typos.
6067 * config/alpha/elf.h: Likewise.
6068 * config/arm/arm.c: Likewise.
6069 * config/arm/arm.h: Likewise.
6070 * config/arm/arm.md: Likewise.
6071 * config/arm/t-arm-coff: Likewise.
6072 * config/arm/t-strongarm-pe: Likewise.
6073 * config/arm/xscale-elf.h: Likewise.
6074 * config/avr/avr.h: Likewise.
6076 2003-07-01 Jeff Law <law@redhat.com>
6078 * stmt.c (any_pending_cleanups): Remove another redundant test.
6080 2003-07-01 David Edelsohn <edelsohn@gnu.org>
6081 J"orn Rennecke <joern.rennecke@superh.com>
6083 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
6086 2003-07-01 Devang Patel <dpatel@apple.com>
6088 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
6090 (struct dbx_file): New members - bincl_status, pending_bincl_name and
6092 (pending_bincls): New.
6093 (dbxout_init): Initialize new dbx_file members.
6094 (dbxout_start_source_file): Same.
6095 (emit_bincl_stab): New function.
6096 (emit_pending_bincls): Same.
6097 (emit_pending_bincls_if_required): Same.
6098 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
6100 (dbxout_begin_block): Emit pending BINCL stabs.
6101 (dbxout_end_block): Same.
6102 (dbxout_function_decl): Same.
6103 (dbxout_continue): Same.
6104 (dbxout_type): Same.
6105 (dbxout_class_name_qualifiers): Same.
6106 (dbxout_symbol): Same.
6107 (dbxout_symbol_location): Same.
6108 (dbxout_parms): Same.
6110 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6112 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
6113 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
6115 2003-07-01 Andreas Jaeger <aj@suse.de>
6117 * fold-const.c: Convert prototypes to ISO C90.
6118 * function.c: Likewise.
6119 * function.h: Likewise.
6121 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6123 * doc/contrib.texi: Fix typos.
6124 * doc/invoke.texi: Likewise.
6125 * doc/passes.texi: Likewise.
6126 * doc/sourcebuild.texi: Likewise.
6127 * doc/tm.texi: Likewise.
6129 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6131 * basic-block.h: Fix comment typos.
6132 * bb-reorder.c: Likewise.
6133 * c-format.c: Likewise.
6134 * cfgcleanup.c: Likewise.
6135 * cfghooks.h: Likewise.
6136 * cfgloop.c: Likewise.
6137 * cfgloopmanip.c: Likewise.
6138 * cfgrtl.c: Likewise.
6139 * cgraph.h: Likewise.
6140 * cgraphunit.c: Likewise.
6141 * combine.c: Likewise.
6142 * convert.c: Likewise.
6143 * dbxout.c: Likewise.
6146 * diagnostic.c: Likewise.
6147 * dwarf2out.c: Likewise.
6148 * et-forest.h: Likewise.
6150 * fold-const.c: Likewise.
6151 * function.h: Likewise.
6152 * gcov-io.h: Likewise.
6155 * genautomata.c: Likewise.
6156 * ggc-common.c: Likewise.
6157 * ggc-page.c: Likewise.
6158 * loop-unroll.c: Likewise.
6159 * loop-unswitch.c: Likewise.
6161 * mips-tfile.c: Likewise.
6162 * optabs.c: Likewise.
6163 * ra-build.c: Likewise.
6164 * ra-colorize.c: Likewise.
6165 * ra-rewrite.c: Likewise.
6167 * regmove.c: Likewise.
6168 * reload.c: Likewise.
6169 * rtlanal.c: Likewise.
6170 * sched-ebb.c: Likewise.
6171 * sched-int.h: Likewise.
6172 * sched-vis.c: Likewise.
6173 * sreal.c: Likewise.
6174 * ssa-ccp.c: Likewise.
6176 * toplev.c: Likewise.
6177 * tree-inline.c: Likewise.
6178 * value-prof.c: Likewise.
6179 * value-prof.h: Likewise.
6181 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
6183 * rtl.h (emit_line_note_after): Remove.
6184 (emit_note_copy_after, emit_note_copy): New.
6185 * emit-rtl.c (reorder_insns_with_line_notes): Replace
6186 emit_line_note_after with emit_note_copy_after.
6187 (emit_insn_after_with_line_notes): Likewise.
6188 (emit_line_note_after): Kill.
6189 (emit_note_copy_after): New.
6190 (emit_note_copy): New.
6191 * function.c (emit_return_into_block): Use emit_note_copy_after.
6192 (thread_prologue_and_epilogue_insns): Likewise.
6193 * integrate.c (expand_inline_function): Use emit_note_copy.
6194 (copy_insn_list): Likewise.
6195 * unroll.c (copy_loop_body): Likewise.
6196 * cfglayout.c (duplicate_insn_chain): Likewise.
6198 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
6200 * c-tree.h (define_label): Replace filename and lineno arguments
6202 * c-decl.c (poplevel): Adjust define_label call.
6203 (pop_label_level): Likewise.
6204 (define_label): Replace filename and lineno arguments with a
6206 (store_parm_decls): Use DECL_SOURCE_LOCATION.
6207 * c-parse.in (label): Adjust define_label call.
6209 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
6211 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
6212 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
6213 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
6214 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
6215 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
6217 2003-07-01 Andreas Jaeger <aj@suse.de>
6219 * final.c: Convert prototypes to ISO C90.
6221 * flags.h: Likewise.
6222 * gcov-io.c: Likewise.
6223 * gcov-io.h: Likewise.
6225 See ChangeLog.9 for earlier changes.