cppcharset.c (one_iso88591_to_utf8): New function.
[gcc.git] / gcc / ChangeLog
1 2004-01-16 Eric Christopher <echristo@redhat.com>
2 Chandrakala Chavva <cchavva@redhat.com>
3
4 * cppcharset.c (one_iso88591_to_utf8): New function.
5 (convert_iso88591_utf8): Ditto. Use.
6 (conversion_tab): Use.
7 (_cpp_input_to_utf8): New function.
8 (_cpp_init_iconv_buffer): Ditto.
9 (_cpp_close_iconv_buffer): Ditto.
10 * cpphash.h: Prototype new functions.
11 (cpp_buffer): Add input_cset_desc.
12 * cppinit.c: Add input_charset default.
13 * cpplib.c (cpp_push_buffer): Support init and
14 close of iconv.
15 * cpplib.h (cpp_options): Add input_charset.
16
17 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18
19 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
20 * config/alpha/unicosmk.h: Remove a commented-out definition
21 of ASM_OUTPUT_SECTION_NAME.
22 * config/stormy16/stormy16.h: Likewise.
23
24 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25
26 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
27 (alpha___extern_prefix_sys_stat): ... this.
28 Apply to <sys/mount.h>, too.
29 Tweak to match more variations.
30 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
31
32 * fixinc/inclhack.def (alpha___extern_prefix,
33 alpha___extern_prefix_standards): New hacks to obey
34 __PRAGMA_EXTERN_PREFIX.
35 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
36 test.
37 * fixinc/tests/base/standards.h: Likewise.
38
39 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
40 variations.
41 New testcase.
42 * fixinc/tests/base/pthread.h: Handle it.
43
44 * fixincl/inclhack.def (bad_lval): Sort file list.
45 Add many missing files up to Tru64 UNIX V5.1B.
46 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
47 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
48 order.
49
50 * fixinc/fixincl.x: Regenerate.
51
52 2004-01-16 Mark Mitchell <mark@codesourcery.com>
53
54 * version.c (version_string): Change to 3.5.0.
55 * doc/include/gcc-common.texi (version-GCC): Likewise.
56
57 2004-01-16 Jan Hubicka <jh@suse.cz>
58
59 * i386.md (load_tp_di): Fix pasto.
60
61 PR opt/13608
62 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
63
64 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
65 pp_c_character_constant, pp_c_floating_constant,
66 pp_c_additive_expression, pp_c_shift_expression,
67 pp_c_equality_expression, pp_c_and_expression,
68 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
69 pp_c_logical_and_expression): Remove inline modifier.
70 * dwarf2out.c (get_AT): Likewise.
71 * et-forest.c (et_splay): Likewise.
72 * ra.h (ra_alloc, ra_calloc): Likewise
73
74 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
75
76 * config/frv/frv-protos.h: Fix comment formatting.
77 * config/frv/frv.c: Likewise.
78 * config/frv/frv.h: Likewise.
79 * config/frv/frv.md: Likewise.
80 * config/frv/frvbegin.c: Likewise.
81 * config/frv/frvend.c: Likewise.
82
83 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
84
85 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
86 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
87 LINKER_DOES_NOT_WORK_WITH_DWARF2.
88 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
89
90 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
91
92 PR 11864
93 * postreload.c (reload_cse_simplify_operands): Don't remove
94 implicit extension from LOAD_EXTEND_OP.
95
96 2004-01-16 Jan Hubicka <jh@suse.cz>
97
98 PR opt/11350
99 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
100 after reload.
101 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
102 rtl_try_redirect_by_replacing_branch): Likewise.
103
104 2004-01-15 Geoffrey Keating <geoffk@apple.com>
105
106 PR pch/13689
107 * alias.c (struct alias_set_entry): Mark for GC.
108 (alias_sets): Make static, mark for GC.
109 (record_alias_subset): Use GC to allocate alias structures.
110 * varray.c (element): Make generic varrays GCed.
111
112 PR pch/13361
113 * c-typeck.c (constructor_asmspec): Delete.
114 (struct initializer_stack): Delete field 'asmspec'.
115 (start_init): Delete saving of asmspec.
116 (finish_init): Don't update constructor_asmspec.
117 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
118 * stmt.c (expand_asm): Duplicate strings from tree.
119 (expand_asm_operands): Likewise.
120 * tree.c (tree_size): Update computation of size of STRING_CST.
121 (make_node): Don't make STRING_CST nodes.
122 (build_string): Allocate string with tree node.
123 * tree.def (STRING_CST): Update comment.
124 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
125 (tree_string): Place contents of string in tree node.
126 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
127 from tree.
128
129 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
130 altivec operands.
131
132 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
133
134 * c-common.h: Fix comment formatting.
135 * c-cppbuiltin.c: Likewise.
136 * c-pragma.c: Likewise.
137 * calls.c: Likewise.
138 * collect2.c: Likewise.
139 * cppcharset.c: Likewise.
140 * cpptrad.c: Likewise.
141 * dbxout.c: Likewise.
142 * defaults.h: Likewise.
143 * dwarf2out.c: Likewise.
144 * fold-const.c: Likewise.
145 * genautomata.c: Likewise.
146 * genconditions.c: Likewise.
147 * genflags.c: Likewise.
148 * gengtype.c: Likewise.
149 * integrate.c: Likewise.
150 * loop.c: Likewise.
151 * predict.c: Likewise.
152 * sdbout.c: Likewise.
153
154 2004-01-15 Zack Weinberg <zack@codesourcery.com>
155
156 * config/ia64/ia64.md (*movti_internal): C output template
157 extracted to ia64.c.
158 (*movti_internal_reg): Delete.
159 (reload_inti, reload_outti): Use the correct mode on operand 2
160 in the first place, don't fix it up in the output template.
161 (movtf, reload_ointf, reload_outtf): New expanders.
162 (*movtf_internal): New define_insn_and_split.
163 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
164 make static; do not hand TFmode CONST_DOUBLEs to split_double.
165 (ia64_split_tmode_move): New function, body mostly pulled
166 from ia64.md:*movti_internal.
167 (ia64_function_arg_words): New function, extracted common
168 logic from ia64_function_arg et seq.
169 (ia64_function_arg_offset): Likewise. Handle correctly the
170 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
171 (ia64_function_arg, ia64_function_arg_partial_nregs)
172 (ia64_function_arg_advance): Use ia64_function_arg_words and
173 ia64_function_arg_offset.
174 (ia64_function_value): TCmode does not go in float regs.
175 (ia64_secondary_reload_class): Also handle TFmode.
176 * config/ia64/ia64-protos.h: Remove prototype for
177 ia64_split_timode; add prototype for ia64_split_tmode_move.
178
179 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
180
181 * Makefile.in (MAINT): Make it an immediate assignment.
182
183 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
184
185 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
186
187 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
188
189 * config/h8300/coff.h: Replace Hitachi with Renesas.
190 * config/h8300/elf.h: Likewise.
191 * config/h8300/h8300-protos.h: Likewise.
192 * config/h8300/h8300.c: Likewise.
193 * config/h8300/h8300.h: Likewise.
194 * config/h8300/h8300.md: Likewise.
195 * config/h8300/lib1funcs.asm: Likewise.
196
197 2004-01-15 Andrew Pinski <apinski@apple.com>
198
199 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
200 around it.
201
202 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
203
204 * config/h8300/h8300.c (h8300_return_in_memory): New.
205 (TARGET_STRUCT_VALUE_RTX): Likewise.
206 (TARGET_RETURN_IN_MEMORY): Likewise.
207 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
208 (RETURN_IN_MEMORY): Likewise.
209
210 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
211
212 PR optimization/13375
213 * gcse.c (handle_avail_expr): Just return if the source is not a
214 single set.
215
216 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
217 Daniel Jacobowitz <drow@mvista.com>
218
219 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
220 (EQUIV): Define.
221 (ARM_FUNC_ALIAS): New macro.
222 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
223 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
224
225 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
226
227 PR optimization/12372
228 * calls.c (expand_call): Add call_fusage data for stack arguments in
229 constant calls.
230
231 2004-01-15 Alan Modra <amodra@bigpond.net.au>
232
233 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
234 (rs6000_elf_declare_function_name): Formatting.
235 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
236
237 2004-01-15 Jan Hubicka <jh@suse.cz>
238
239 PR bootstrap/13692
240 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
241 previous patch.
242
243 2004-01-15 Richard Henderson <rth@redhat.com>
244
245 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
246 integer regs of the same call-savedness.
247
248 2004-01-15 Andreas Schwab <schwab@suse.de>
249
250 PR bootstrap/13562
251 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
252 status for NOTB/NOTW/NEGW methods.
253
254 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
255
256 * doc/invoke.texi: Update dump file names. Fix a typo.
257
258 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
259
260 * builtins.c (expand_builtin_va_end): Don't use
261 EXPAND_BUILTIN_VA_END.
262 * system.h (EXPAND_BUILTIN_VA_END): Poison.
263 * config/d30v/d30v.h: Remove a commented-out definition of
264 EXPAND_BUILTIN_VA_END.
265 * config/stormy16/stormy16.h: Likewise.
266
267 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
268
269 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
270 * targhooks.c (default_struct_value_rtx): Don't use
271 STRUCT_VALUE_INCOMING_REGNUM.
272
273 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
274
275 PR bootstrap/12744
276 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
277 GENINSRC and not parsedir. Define srcextra as a langhook.
278 * configure: Regenerate.
279 * Makefile.in: Suppress default .l.c rule. Don't substitute
280 parsedir and delete all references throughout. Conditionally define
281 rule for srcextra dependent on GENINSRC.
282 (stmp-docobjdir): Delete.
283 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
284 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
285 and gengtype-yacc.h back to source directory.
286 (maintainer-clean): Delete all parse files in source directory.
287 (distclean): Delete generated files.
288
289 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
290 (objc-parse.c, objc-parse.y): Don't use parsedir.
291 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
292 directory if requested.
293 (po-generated): Don't use parsedir.
294 (objc.maintainer-clean): Delete above files from source directory.
295
296 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
297
298 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
299
300 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
301
302 * doc/tm.texi: Replace RETURN_IN_MEMORY with
303 TARGET_RETURN_IN_MEMORY.
304
305 2004-01-15 Jan Hubicka <jh@suse.cz>
306
307 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
308 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
309 functions accepting SSE arguments
310 (function_arg): Warn only when asked to warn.
311 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
312
313 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
314
315 * c-parse.in (stmts_and_decls): Make label at end of compound
316 statement a hard error.
317
318 2004-01-14 Jan Hubicka <jh@suse.cz>
319
320 * cgraph.c (create_edge): Use local.redefined_extern_inline.
321 * cgraph.h (cgraph_local_info): Sort fields by size; add
322 redefined_extern_inline
323 (cgraph_global_info): Sort fields by size.
324 (cgraph_node): Likewise.
325 * cgraphunit.c (cgraph_finalize_function): Se
326 local.redefined_extern_inline on redefinition.
327 (cgraph_analyze_function): Use it; fix formating.
328
329 2004-01-14 Jan Hubicka <jh@suse.cz>
330
331 PR c++/10776
332 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
333 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
334 bitmaps
335 (cache_size): New variable
336 (add_dependence): Update use; canonize early memory locations
337 (sched_analyze_1): Likewise.
338 (sched_analyze_2): Likewise.
339 (init_dependency_caches): Initialize bitmaps.
340 (free_dependency_caches): Free bitmaps
341
342 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
343
344 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
345 targetm.calls.strict_argument_naming().
346 * target.h: Likewise.
347
348 2004-01-14 Richard Henderson <rth@redhat.com>
349
350 PR debug/13231
351 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
352 instructions.
353
354 2004-01-14 Richard Henderson <rth@redhat.com>
355
356 PR c++/12491
357 * except.c (struct eh_region): Add u.fixup.resolved.
358 (resolve_one_fixup_region): Split out from ...
359 (resolve_fixup_regions): ... here.
360
361 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
362
363 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
364
365 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
366
367 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
368 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
369 (STRUCT_VALUE): Remove.
370
371 2003-01-14 Steven Bosscher <stevenb@suse.de>
372
373 * system.h: Poison PROMOTED_MODE
374 * integrate.c (expand_inline_function): Don't mention the
375 PROMOTED_MODE.
376 * loop.c (update_giv_derive): Same.
377 * tree.h (DECL_RTL): Same.
378
379 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
380
381 PR target/9365
382 * sh.c (gen_block_redirect): Add special handling of RETURN.
383 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
384 far branch target (i.e. it's a return).
385
386 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
387
388 * regrename.c (find_oldest_value_reg): Fix a warning.
389
390 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
391
392 PR bootstrap/12527
393 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
394 Move linux-gas.h and linux-elf.h before aout.h.
395 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
396 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
397
398 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
399
400 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
401 (CONST_INT, VOIDmode, ...).
402
403 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
404
405 * regrename.c (find_oldest_value_reg): If the replacement uses
406 multiple hard registers, check that all of them are in CLASS.
407
408 2004-01-14 Jan Hubicka <jh@suse.cz>
409
410 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
411 impossible.
412
413 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
414
415 * Makefile.in: Define MAINT from --enable-maintainer-mode.
416
417 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
418
419 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
420 Calculate always vrsave_mask if TARGET_ALTIVEC.
421 (rs6000_emit_prologue): Emit code for vrsave
422 only if TARGET_ALTIVEC_VRSAVE.
423 (rs6000_emit_epilogue): Likewise.
424
425 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
426
427 * config/sparc/sparc.md (tie_add32): Fix pasto.
428 (tie_add64): Likewise.
429
430 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
431
432 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
433
434 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
435
436 * config/iq2000/iq2000-protos.h: Fix comment formatting.
437 * config/iq2000/iq2000.c: Likewise.
438 * config/iq2000/iq2000.md: Likewise.
439
440 2004-01-14 J. Brobecker <brobecker@gnat.com>
441
442 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
443 (subrange_type_die): Add handle for nameless subrange types.
444
445 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
446
447 * config/h8300/h8300-protos.h: Replace do_movsi with
448 h8300_expand_movsi.
449 * config/h8300/h8300.c (do_movsi): Change to
450 h8300_expand_movsi.
451 * config/h8300/h8300.md (movsi): Replace do_movsi with
452 h8300_expand_movsi.
453 (movsf): Likewise.
454
455 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
456
457 * config/h8300/h8300.c (dosize): Change to
458 h8300_emit_stack_adjustment. Update callers.
459
460 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
461
462 * config/h8300/h8300.md (movstrictqi): Add an alternative with
463 the source being post_inc. Tighten the predicate for the
464 destination to register_operand.
465 (movstricthi): Likewise.
466
467 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
468
469 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
470 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
471 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
472
473 2004-01-14 Jan Hubicka <jh@suse.cz>
474
475 Partial fix PR c++/12850
476 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
477 at zero nest level.
478
479 2004-01-13 Bernardo Innocenti <bernie@develer.com>
480
481 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
482 pseudo-register.
483
484 2004-01-13 Devang Patel <dpatel@apple.com
485
486 PR debug/7078
487 * dbxout.c (dbxout_symbol_name): Emit mangled names for
488 NAMESPACE_DECL memebers.
489
490 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
491
492 PR c++/12709
493 * c-common.c (finish_fname_decls): Use the chain only if the
494 tree is an expr_stmt.
495
496 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
497
498 * rtl.def: Add comment about new option in automata_option.
499
500 * genautomata.c (PROGRESS_OPTION): New macro.
501 (progress_flag): New global variable.
502 (gen_automata_option): Process `progress'.
503 (transform_insn_regexps, check_unit_distributions_to_automata,
504 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
505 expand_automata, write_automata): Print about the progress only if
506 progress_flag. Remove fflush.
507 (initiate_automaton_gen): Process command line flag `-progress'.
508
509 * doc/md.texi: Describe the new option.
510
511 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
512
513 * cfg.c (dump_bb): Dump entry edges.
514
515 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
516
517 * arm.c (thumb_legitimate_address_p): Only allow constant pool
518 references from SImode.
519 * arm.md (thumb_movhi_insn): Don't allow minipool references.
520
521 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
522
523 * system.h (TEXT_SECTION): Poison.
524 * varasm.c (text_section): Don't use TEXT_SECTION.
525 * config/sh/sh.c (sh_file_start): Fix a comment typo.
526 * doc/tm.texi (TEXT_SECTION): Remove.
527
528 2004-01-13 Ben Elliston <bje@wasabisystems.com>
529
530 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
531
532 2004-01-12 James E Wilson <wilson@specifixinc.com>
533
534 * unwind-libunwind.c: Delete.
535
536 2004-01-12 Zack Weinberg <zack@codesourcery.com>
537
538 PR 13656
539 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
540 oldtype is set, set *newtypep or *oldtypep too. Do not set
541 them at the very end.
542 (validate_proto_after_old_defn): Restructure for comprehensibility;
543 make error messages clearer.
544
545 2004-01-12 Zack Weinberg <zack@codesourcery.com>
546
547 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
548 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
549 * varray.c: No need to prototype error.
550 (varray_check_failed): Wrap long string onto two lines.
551 (varray_underflow): New function.
552
553 2004-01-13 Steven Bosscher <stevenb@suse.de>
554
555 PR c++/13376
556 * function.h (struct function): Kill `name' field.
557 (current_function_name): Make it an extern function.
558 * function.c (current_function_name): New function.
559 * graph.c: Update all uses of current_function_name.
560 * gcse.c: Likewise.
561 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
562 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
563 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
564 instead of a strcmp with "main".
565
566 2004-01-13 Jan Hubicka <jh@suse.cz>
567
568 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
569
570 * cgraphunit.c (cgraph_optimize_function): Always do
571 optimize_inline_calls when there is always_inline callee.
572 (cgraph_decide_inlining): Fix formating.
573 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
574 functions.
575 (expand_call_inline): Likewise.
576 * toplev.h (sorry): Fix prototype.
577
578 2004-01-12 Roger Sayle <roger@eyesopen.com>
579
580 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
581 conditional jumps that drop through to unconditional jumps or the
582 end of the sequence.
583
584 2004-01-13 Jan Hubicka <jh@suse.cz>
585
586 * alias.c (new_alias_set): Construct the alias_set varray.
587 (init_alias_once): Don't do it here.
588
589 2004-01-12 Marc Espie <espie@openbsd.org>
590
591 * system.h: handle YYBYACC like YYBISON.
592
593 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
594
595 PR target/10847
596 * config.gcc: No longer includes conflicting header sparc/sol2.h when
597 building on sparc64-*-openbsd*.
598
599 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
600
601 PR debug/13539
602 * dbxout.c (dbxout_type): Protected inheritance is not
603 private but protected.
604
605 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
606
607 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
608
609 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
610
611 PR optimization/12508.
612 * combine.c (try_combine): Remove a dead set in a parallel
613 even if its destination is a subreg.
614
615 Revert:
616 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
617 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
618 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
619
620 2004-01-12 Geoffrey Keating <geoffk@apple.com>
621
622 * real.c: Update copyright date.
623 * emit-rtl.c: Likewise.
624 * rtl.h: Likewise.
625 * dwarf2out.c: Likewise.
626 * config/rs6000/darwin-ldouble.c: Likewise.
627 * config/rs6000/rs6000.md: Likewise.
628
629 2004-01-12 David Edelsohn <edelsohn@gnu.org>
630
631 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
632 TFmode to SImode libfuncs.
633
634 2004-01-12 Roger Sayle <roger@eyesopen.com>
635
636 PR middle-end/11397
637 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
638
639 2004-01-12 Jan Hubicka <jh@suse.cz>
640
641 PR opt/12826
642 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
643 stored.
644
645 PR opt/12863
646 * cfgcleanup.c (label_is_jump_target_p): Move to...
647 * rtlanal.c (label_is_jump_target_p): ... here.
648 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
649 edges unified with branch edges.
650
651 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
652
653 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
654 high word of an integral CONST_DOUBLE.
655
656 2004-01-12 Paul Brook <paul@codesourcery.com>
657
658 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
659
660 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
661
662 PR target/13585
663 * sh-protos.h (check_use_sfunc_addr): Declare.
664 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
665 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
666
667 2004-01-12 Jan Hubicka <jh@suse.cz>
668
669 * alias.c: Invlude varray.h
670 (alias_sets): Turn into varray.
671 (get_alias_set_entry): Use VARRAY; mark inline.
672 (mems_in_disjoint_alias_sets_p): Mark inline.
673 (record_alias_subset): Use varray.
674 (init_alias_once): Initialize varray.
675 (new_alias_set): Grow array.
676 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
677
678 2004-01-12 Jan Hubicka <jh@suse.cz>
679
680 Partial fix for PR opt/10776 II
681 * cselib.c: Include params.h
682 (cselib_invalidate_mem): Limit amount of nonconflicting memory
683 locations.
684 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
685 * Makefile.in (cselib.o): Depend on params.h
686
687 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
688
689 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
690 simplify_unary_operation if the operand has a known mode.
691
692 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
693
694 PR target/13534
695 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
696 predicate to handle 'ld' conform addresses.
697 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
698 contraint.
699 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
700 are memory contraints.
701 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
702 New prototype.
703 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
704 Change 'o' to 'Y' constraint.
705 (*movdf_softfloat64): Ditto.
706
707 2004-01-12 Bernardo Innocenti <bernie@develer.com>
708
709 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
710 brace-enclosed syntax in all C output statements.
711
712 2004-01-12 David Edelsohn <edelsohn@gnu.org>
713
714 PR target/13401
715 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
716 Objective-C language type value is 14.
717
718 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
719
720 PR c/12148
721 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
722 `int' in a number of places to make sure we always have a SImode
723 and not a HImode. Add a 'L' suffix to a number of constants.
724
725 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
726
727 * pa.c: Don't include obstack.h.
728
729 * pa.md: Correct constraint in pattern for loading PIC label address.
730
731 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
732
733 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
734 before defining.
735
736 2004-01-11 Steven Bosscher <stevenb@suse.de>
737
738 PR fortran/9972
739 * toplev.c (rest_of_handle_inline): Also consider functions
740 for deferral if the language is GNU F77.
741
742 2004-01-11 Zack Weinberg <zack@codesourcery.com>
743
744 * c-decl.c (diagnose_arglist_conflict): Add missing space to
745 diagnostic messages.
746
747 2004-01-11 Jakub Jelinek <jakub@redhat.com>
748
749 PR middle-end/13392
750 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
751 to drop through label. Don't fall back to SCC even when conditional
752 jump has not been found.
753
754 2004-01-11 Jan Hubicka <jh@suse.cz>
755
756 * invoke.texi: Fix syntax error in previous patch.
757
758 Partial fix for PR opt/10776
759 * Makefile.in (reload.o): Include param.h
760 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
761 * reload.c: Include params.h.
762 (find_equiv_reg): Work limiting check.
763 * invoke.texi: Document.
764
765 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
766
767 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
768 out-of-bounds accesses to string constants. Simplify mips16
769 case accordingly.
770
771 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
772
773 PR optimization/13469
774 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
775 reload_cse_regs (-fnon-call-exceptions only).
776
777 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
778
779 * config/mcore/lib1.asm: Fix comment formatting.
780 * config/mcore/mcore-elf.h: Likewise.
781 * config/mcore/mcore.c: Likewise.
782 * config/mcore/mcore.h: Likewise.
783 * config/mcore/mcore.md: Likewise.
784
785 2004-01-10 Zack Weinberg <zack@codesourcery.com>
786
787 * c-decl.c (duplicate_decls): Break apart into...
788 (diagnose_arglist_conflict, validate_proto_after_old_defn)
789 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
790 ... these new functions. Restructure for comprehensibility.
791 Remove various archaic special cases. Always report the
792 location of the previous declaration when a diagnostic is issued.
793 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
794 (match_builtin_function_types): Delete unnecessary forward declaration.
795
796 2004-01-10 Zack Weinberg <zack@codesourcery.com>
797
798 * genautomata.c (make_automaton, NDFA_to_DFA):
799 Print progress bars with '.' characters instead of '*'.
800 (build_automaton): Change notes to match.
801
802 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
803
804 * config/m32r/m32r.md: Use define_constants for unspec and
805 unspec_volatile.
806
807 2004-01-10 Jan Hubicka <jh@suse.cz>
808
809 PR opt/11635
810 * expr.c (expand_expr_real): More curefully expand union casts.
811
812 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
813
814 * config/m32r/m32r.md (flush_icache): Use 1 for
815 unspec_volatile.
816
817 2004-01-10 David Edelsohn <edelsohn@gnu.org>
818 James E Wilson <wilson@specifixinc.com>
819
820 PR debug/12860
821 * dbxout.c (dbxout_symbol): Remove initialization of
822 current_sym_code, current_sym_value, and current_sym_addr.
823 (dbxout_symbol_location): Same.
824 (dbxout_prepare_symbol): Zero current_sym_code,
825 current_sym_value, and current_sym_addr.
826
827 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
828
829 * tree.c (get_unwidened): Reorder conditions so that the null pointer
830 check is done first.
831
832 2004-01-09 Eric Christopher <echristo@redhat.com>
833
834 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
835 if we're running mark_constant_function.
836
837 2004-01-09 Jeff Bailey <jbailey@nisa.net>
838
839 PR target/12561
840 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
841
842 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
843
844 PR debug/11231
845 * dbxout.c (dbxout_type_fields): Return if any item is
846 error_mark_node or the type is error_mark_node.
847
848 2004-01-09 Geoffrey Keating <geoffk@apple.com>
849
850 * config/rs6000/darwin-ldouble.c: Add big comment explaining
851 exactly what is expected as a 'long double'.
852 (_xlqadd): When a value to be returned is representable as a
853 'double', just return it directly, do not construct it using a union.
854 Also, correct final fixup.
855 (_xlqmul): Likewise.
856 (_xlqdiv): Likewise.
857 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
858
859 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
860
861 2004-01-09 Richard Henderson <rth@redhat.com>
862
863 * recog.c (constrain_operands): Validate mem operands.
864
865 2004-01-09 James E Wilson <wilson@specifixinc.com>
866
867 * gcc.c (init_spec): Remove -lunwind from shared case.
868 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
869
870 2004-01-09 Steve Ellcey <sje@cup.hp.com>
871
872 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
873 * configure: Regenerate
874
875 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
876
877 PR c/11234
878 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
879 between function and object pointers.
880 (digest_init): When comparing a pointer to function type to the
881 target type, only apply TREE_TYPE once to the pointer to function
882 type.
883 * except.c (for_each_eh_label_1): Treat data as a pointer to a
884 function pointer rather than casting it to a function pointer.
885 (for_each_eh_label): Update caller.
886 * recog.h (struct insn_data): Use a struct or union for output.
887 * genoutput.c (output_insn_data): Update.
888 * final.c (get_insn_template): Update.
889
890 2004-01-09 Mark Mitchell <mark@codesourcery.com>
891
892 * expr.h (expand_expr): Make it a macro, not a function.
893 (expand_expr_real): New function.
894 * expr.c (store_expr): Adjust logic for deciding whether or not to
895 copy the value returned by expand_expr.
896 (expand_expr): Rename to ...
897 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
898 calls to language hooks.
899 * c-common.h (c_expand_expr): Adjust prototype.
900 * c-common.c (c_expand_expr): Add alt_rtl parameter.
901 * langhooks-def.h (lhd_expand_expr): Change prototype.
902 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
903 * langhooks.h (lang_hooks): Change type of expand_expr.
904 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
905 (last_expr_alt_rtl): Likewise.
906 (expand_expr_stmt_value): Set last_expr_alt_rtl.
907 (clear_last_expr): Clear it.
908 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
909 (expand_end_bindings): Save and restor last_expr_alt_rtl.
910 * tree.def (RTL_EXPR): Give it an additional operand.
911 * tree.h (RTL_EXPR_ALT_RTL): New macro.
912
913 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
914
915 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
916 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
917
918 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
919
920 PR target/13380.
921 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
922 or (ne:SI (reg:CC 17) (const_int 0)).
923 Be specific about modes wherever possible.
924
925 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
926
927 * config/m32r/m32r.c (m32r_expand_block_move): Call
928 gen_movestrsi_internal with two more arguments.
929 (m32r_output_block_move): Adjust operand numbers.
930 Properly update the source and destination pointers.
931 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
932 'r+'. Change the set detinations to match_operand.
933
934 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
935
936 * final.c (FIRST_INSN_ADDRESS): Remove.
937 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
938 * system.h (FIRST_INSN_ADDRESS): Poison.
939 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
940 * config/m32r/m32r-protos.h: Remove the prototype for
941 m32r_first_insn_address.
942 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
943 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
944 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
945
946 2004-01-09 J. Brobecker <brobecker@gnat.com>
947
948 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
949 we just created.
950 (is_ada_subrange_type): DIEs for enumeration subtypes should be
951 emitted as subrange types too.
952 (subrange_type_die): Add handling of enumeration subtypes.
953
954 2004-01-08 Richard Henderson <rth@redhat.com>
955
956 PR opt/12441
957 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
958 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
959 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
960 (ix86_address_cost): Be prepared for SUBREGed registers.
961 (legitimate_address_p): Accept SUBREGed registers.
962
963 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
964
965 * Makefile.in: Rename configure.in to configure.ac
966 * doc/sourcebuild.texi: Likewise.
967 * configure: Regenerate.
968 * config.in: Regenerate.
969
970 2004-01-08 Stuart Hastings <stuart@apple.com>
971
972 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
973
974 2004-01-08 Jan Hubicka <jh@suse.cz>
975
976 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
977
978 2004-01-08 Geoffrey Keating <geoffk@apple.com>
979
980 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
981 (UNSPEC_FIX_TRUNC_TF): New constant.
982 (movtf_internal): Make splitter active only when insn is active.
983 (extenddftf2): Rewrite to properly load zero into low part.
984 (extenddftf2_internal): New.
985 (extendsftf2): Rewrite.
986 (truncdftf2): Correct length.
987 (floatditf2): Delete.
988 (fix_trunc_helper): New.
989 (fix_trunctfdi2): Use fix_trunc_helper.
990 (fix_trunctfsi2): Likewise.fix_trunc
991 (fix_trunctfsi2_internal): New.
992
993 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
994 addresses are legitimate on Darwin even when flag_pic.
995 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
996 non-offsettable addresses for loads of TFmode constants.
997
998 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
999
1000 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
1001 variables in the appropriate bss section.
1002
1003 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1004
1005 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
1006 target_flags has MASK_POWERPC64 when -m64.
1007 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
1008 to 620, 630, power3, power4 and rs64a entries.
1009 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
1010
1011 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
1012
1013 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
1014 floating-point constants.
1015
1016 2004-01-08 J. Brobecker <brobecker@gnat.com>
1017
1018 * dwarf2out.c (subrange_type_die): Add context_die parameter.
1019 Create the subrange_type DIE using the given context DIE.
1020 (modified_type_die): Update call to subrange_type_die.
1021
1022 2004-01-08 Zack Weinberg <zack@codesourcery.com>
1023
1024 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
1025 Add multiple-include guard.
1026
1027 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
1028
1029 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
1030 all vector constant loadable by vsplt*.
1031 (output_vec_const_move): Likewise.
1032
1033 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1034
1035 PR c/6024
1036 * c-typeck.c (comptypes): Only treat enumerated types in the same
1037 translation unit as compatible with each other when they are the
1038 same type.
1039 * doc/extend.texi: Update.
1040
1041 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1042
1043 PR c/12165
1044 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
1045 array type from the array element type.
1046
1047 2004-01-07 Alan Modra <amodra@bigpond.net.au>
1048
1049 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
1050 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
1051 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
1052 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
1053 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
1054
1055 2004-01-06 Eric Christopher <echristo@redhat.com>
1056
1057 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
1058 (DWARF2_DEBUGGING_INFO): Define.
1059 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
1060 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
1061 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
1062 for irix as.
1063 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
1064 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
1065 * config/mips/iris5gas.h: Ditto.
1066 (DBX_DEBUGGING_INFO): Remove.
1067 (DWARF2_DEBUGGING_INFO): Ditto.
1068 (MIPS_DEBUGGING_INFO): Ditto.
1069 (PREFERRED_DEBUGGING_TYPE): Ditto.
1070 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
1071 (PREFERRED_DEBUGGING_TYPE): Ditto.
1072 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
1073 * config/mips/elf64.h: Ditto.
1074
1075 2004-01-06 Jan Hubicka <jh@suse.cz>
1076
1077 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
1078 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
1079
1080 2004-01-06 Geoffrey Keating <geoffk@apple.com>
1081
1082 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
1083 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
1084 * config/rs6000/darwin-ldouble.c: New.
1085
1086 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
1087 for constants.
1088 (constant_subword): Delete.
1089 * rtl.h (constant_subword): Delete prototype.
1090 (immed_double_const): Is not in varasm.c.
1091 * simplify-rtx.c (simplify_immed_subreg): New.
1092 (simplify_subreg): Use simplify_immed_subreg.
1093
1094 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1095 than trying to generate RTL directly.
1096 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1097 RTL directly.
1098
1099 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1100
1101 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1102
1103 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1104 function into a separate macro.
1105 (read_only_data_section): Add void argument.
1106 (private_data_section): Same.
1107 (read_only_private_data_section): Same.
1108 (toc_section): Same.
1109
1110 2004-01-06 Jan Hubicka <jh@suse.cz>
1111
1112 * invoke.texi: Remove typo in last change.
1113
1114 PR target/10301
1115 * config.gcc: Accept opteron and athlon-64 as variants
1116 of k8.
1117 * i386.c (override_options): Likewise.
1118 * invoke.texi (i386 -mtune): Expand documentation.
1119
1120 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1121
1122 * alias.c: Fix comment typos.
1123 * builtins.c: Likewise.
1124 * cfg.c: Likewise.
1125 * df.c: Likewise.
1126 * dominance.c: Likewise.
1127 * dwarf2out.c: Likewise.
1128 * emit-rtl.c: Likewise.
1129 * expr.c: Likewise.
1130 * final.c: Likewise.
1131 * fold-const.c: Likewise.
1132 * gcse.c: Likewise.
1133 * genattrtab.c: Likewise.
1134 * genrecog.c: Likewise.
1135 * gensupport.c: Likewise.
1136 * ggc-zone.c: Likewise.
1137 * integrate.c: Likewise.
1138 * local-alloc.c: Likewise.
1139 * loop.c: Likewise.
1140 * recog.c: Likewise.
1141 * regmove.c: Likewise.
1142 * reg-stack.c: Likewise.
1143 * reorg.c: Likewise.
1144 * rtlanal.c: Likewise.
1145 * rtl.h: Likewise.
1146 * sched-ebb.c: Likewise.
1147 * simplify-rtx.c: Likewise.
1148 * toplev.c: Likewise.
1149 * varasm.c: Likewise.
1150
1151 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1152
1153 * doc/install.texi: Fix typos.
1154 * doc/invoke.texi: Likewise.
1155 * doc/md.texi: Likewise.
1156
1157 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1158
1159 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1160
1161 2004-01-06 Jan Hubicka <jh@suse.cz>
1162
1163 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1164 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1165 of MMX_REGPARM.
1166 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1167 add MMX_REGPARM.
1168 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1169 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1170 (MMX_REGPARM_MAX): Similarly for -mmmx.
1171
1172 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1173
1174 * config/sh/linux.h: Fix comment formatting.
1175 * config/sh/netbsd-elf.h: Likewise.
1176 * config/sh/sh.c: Likewise.
1177 * config/sh/sh.h: Likewise.
1178 * config/sh/vxworks.h: Likewise.
1179
1180 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1181
1182 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1183 * toplev.c (output_file_directive): Don't use
1184 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1185
1186 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1187
1188 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1189 (USING_MMAP): We don't support non-mmap.
1190 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1191 large objects.
1192 (struct page_entry): Remove bytes_free.
1193 (struct page_table_chain): Remove.
1194 (struct globals): Remove page_table member.
1195 (loookup_page_table_entry): Function deleted.
1196 (set_page_table_entry): Ditto.
1197 (ggc_allocated_p): No longer need page table lookups.
1198 (ggc_marked_p): Ditto.
1199 (alloc_small_page): Don't care about bytes_free anymore.
1200 (alloc_large_page): Round up size.
1201 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1202 their size the new way.
1203 Remove page table lookups and setting.
1204 (ggc_get_size): Calculate large object size the new way.
1205 (sweep_pages): Redo to account for fact that we no longer have
1206 bytes_free.
1207 (ggc_collect): No longer need to reincrement bytes_free.
1208 (ggc_pch_alloc_object): Handle new large objects properly.
1209 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1210
1211 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1212
1213 * doc/invoke.texi: Remove a page break.
1214
1215 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1216
1217 * config/avr/avr.c (avr_output_function_prologue): Remove an
1218 extra pair of curly braces.
1219
1220 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1221
1222 * config/mn10300/mn10300.c: Fix comment formatting.
1223 * config/mn10300/mn10300.h: Likewise.
1224
1225 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1226
1227 * tree.h: Update documentation on nothrow_flag.
1228 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1229 types.
1230
1231 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1232
1233 * doc/invoke.texi: Remove traces of dead ports.
1234
1235 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1236
1237 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1238 option.
1239
1240 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1241
1242 PR target/12945
1243 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1244 counter labels.
1245 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1246 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1247 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1248 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1249 (mips_symbol_insns): Don't trust the local/global classification.
1250 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1251 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1252 -mno-explicit-relocs.
1253 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1254 between local and global symbols.
1255
1256 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1257
1258 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1259 (mips_preferred_reload_class): Declare.
1260 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1261 (EXTRA_CONSTRAINT): Update accordingly.
1262 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1263 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1264 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1265 mips_dangerous_for_la25_p.
1266 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1267 if mips_dangerous_for_la25_p.
1268
1269 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1270
1271 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1272 warning.
1273
1274 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1275
1276 * configure.ac: Use AC_PROG_CPP_WERROR.
1277 * configure: Regenerate.
1278
1279 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1280
1281 * .cvsignore: Add autom4te.cache.
1282
1283 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1284
1285 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1286 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1287 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1288 then architecture options, then ABI options. General rewording.
1289
1290 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1291
1292 PR c/3414
1293 * doc/extend.texi: Clarify definition of malloc attribute.
1294
1295 2004-01-04 Jan Hubicka <jh@suse.cz>
1296
1297 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1298 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1299 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1300 (cgraph_inline_p): Add extra argument reason.
1301 * cgraphunit.c: Minor formating fixes.
1302 cgraph_first_inlined_callee): New functions.
1303 (record_call_1): Record builtins too.
1304 (cgraph_analyze_function): Update inline_failed messages.
1305 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1306 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1307 (cgraph_check_inline_limits): Likewise; Add argument reason.
1308 (cgraph_set_inline_failed): New static function.
1309 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1310 reasons.
1311 (cgraph_inline_p): Add new argument reason.
1312 * tree-inline.c (expand_call_inline): Update warning.
1313
1314 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1315
1316 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1317 with modern equivalents.
1318 * configure: Regenerate.
1319
1320 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1321 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1322 * configure: Regenerate.
1323
1324 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1325
1326 * configure.in: Rename to configure.ac.
1327 * configure.ac: Renamed from configure.in; make minimum necessary
1328 changes for autoconf 2.5x.
1329 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1330 * configure: Regenerate with autoconf 2.57.
1331
1332 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1333
1334 * config/mips/linux.h: Fix comment formatting.
1335 * config/mips/mips.c: Likewise.
1336 * config/mips/mips.h: Likewise.
1337 * config/mips/mips.md: Likewise.
1338 * config/mips/netbsd.h: Likewise.
1339 * config/mips/windiss.h: Likewise.
1340
1341 2004-01-02 Richard Henderson <rth@redhat.com>
1342
1343 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1344 for sse and 387; add suppression for mmx.
1345
1346 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1347
1348 * loop.c (loop_optimize): Free all loops_info's mems.
1349
1350 * c-typeck.c (finish_init): Free spelling_base before
1351 setting it again.
1352
1353 * cfgloop.c (flow_loops_find): Always free the sbitmap
1354 headers.
1355
1356 * predict.c (estimate_probability): Free bbs after being
1357 done with it.
1358
1359 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1360
1361 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1362 const_8bit_operand and call_address_operand.
1363
1364 2004-01-02 Jan Hubicka <jh@suse.cz>
1365
1366 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1367 when there is nothing to inline but warnings are requested.
1368 (cgraph_decide_inlining): Fix memory leak.
1369
1370 2004-01-02 Jan Hubicka <jh@suse.cz>
1371
1372 * expr.c (store_constructor): Fix pasto in previous patch.
1373
1374 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1375
1376 * config/i386/cygming.h: Fix comment formatting.
1377 * config/i386/djgpp.h: Likewise.
1378 * config/i386/gthr-win32.c: Likewise.
1379 * config/i386/i386-interix.h: Likewise.
1380 * config/i386/i386.c: Likewise.
1381 * config/i386/i386.h: Likewise.
1382 * config/i386/openbsd.h: Likewise.
1383 * config/i386/winnt.c: Likewise.
1384 * config/i386/xm-mingw32.h: Likewise.
1385
1386 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1387
1388 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1389 copyright and last modification dates.
1390
1391 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1392
1393 * doc/install.texi (Specific): Mention x86_64.
1394
1395 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1396
1397 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1398 Call force_operand on plus_constant result.
1399
1400 2004-01-01 Jan Hubicka <jh@suse.cz>
1401
1402 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1403 * expr.c (store_constructor): Use vec_init pattern.
1404 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1405 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1406 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1407 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1408 New patterns.
1409 (sse2_unpc?pd): Fix pattern.
1410 (sse2_movlpd): Kill.
1411 (sse2_movsd): Deal with movlpd too.
1412 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1413 (ix86_expand_vector_init): New.
1414 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1415 * md.texi (vec_set, vec_extract): Document
1416
1417 2003-12-31 Jan Hubicka <jh@suse.cz>
1418
1419 PR opt/13473
1420 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1421 ASM input operands
1422
1423 PR opt/12617
1424 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1425 (dump_file): Likewise.
1426 (rest_of_compilation): Likewise.
1427
1428 PR debug/13367
1429 * cgraph.c (cgraph_function_possibly_inlined): Even with
1430 flag_really_no_inline we inline always_inline functions.
1431 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1432 for non-always_inline functions when there is flag_really_no_inline.
1433 (cgraph_decide_inlining): Limit work done when not inlining.
1434 (cgraph_decide_inlining_incrementally): Likewise.
1435 (cgraph_optimize_function): Check whether something got inlined.
1436 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1437 extern inline functions when not inlining.
1438
1439 * opts.c (decode_options): Disable crossjumping at -O1
1440 * invoke.texi (-O1): Document change.
1441
1442 See ChangeLog.10 for earlier changes.