]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
config.gcc: Move use_fixproto=no from generic FreeBSD clause to specific FreeBSD...
[gcc.git] / gcc / ChangeLog
CommitLineData
7bc5294a
NN
12003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2
76bc249d
NN
3 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
4 specific FreeBSD clauses.
980465f3
NN
5 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6 specific NetBSD clauses.
7bc5294a
NN
7 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
8 to specific OpenBSD clauses.
9
102003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3ffa9dc1
JDA
11
12 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
13 without adding a frame note.
14 * pa.md (allocate_stack): Save pic register in new frame marker when
15 generating pic code.
16
a20af5b8
KC
172003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
18
19 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
20 cgraph_expand_functions.
21
269a7343
KG
222003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23
24 * Makefile.in (gnucompare*): Merge into ...
25 (slowcompare*): ... here.
26 (fastcompare*): New targets.
27 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
28 other "fast" cmp programs.
29 * configure: Regenerate.
30
d84a4ef1
RO
312003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32
33 * targhooks.c: Include output.h.
34 * Makefile.in (targhooks.o): Add output.h to dependency list.
35
92b836fa
RO
362003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37
38 * config.host: Removed superfluous newline.
39
b01bc573
NN
402003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
41
42 * config.gcc: Use ${target}, not $machine.
43 * configure.in: Don't set $machine.
44 * configure: Regenerate.
45
fff2cb99
GK
462003-09-23 Geoffrey Keating <geoffk@apple.com>
47
48 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
49 pass zero-size arrays by reference.
50 (rs6000_va_arg): Likewise.
51
e5f11328
NN
522003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
53
54 * config.gcc: Set use_fixproto=no in each specific *-gnu*
55 configuration, rather than the generic one.
56
1593ad2e
RH
572003-09-23 Richard Henderson <rth@redhat.com>
58
59 * tree-inline.c (remap_save_expr): Map new save_expr to identity
60 rather than to error_mark_node.
61
5d4856a0
RO
622003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
63
64 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
65 Update description.
66 * configure: Regenerate.
67 * config.in: Likewise.
68 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
69 HAVE_GAS_SHF_MERGE value.
70 * varasm.c (mergeable_string_section): Likewise.
71 (mergeable_constant_section): Likewise.
72
5748beec
RO
732003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
74
75 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
76 value.
77
6773a41c
RO
782003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
79
80 * target.h (struct gcc_target): New member external_libcall.
81 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
82 (TARGET_ASM_OUT): Use it.
83 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
84 * targhooks.c: Convert to ISO C 90.
85 (default_external_libcall): New function.
86 * targhooks.h (default_external_libcall): Declare.
87 * varasm.c (assemble_external_libcall): Use
88 targetm.asm_out.external_libcall instead of
89 ASM_OUTPUT_EXTERNAL_LIBCALL.
90 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
91 (mips_output_external_libcall): Declare.
92 * config/mips/mips.c (mips_output_external_libcall): Change
93 definition guard.
94 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
95 Only operate for O32 ABI.
96 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
97 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
98 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
99 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
100
d064c269
NN
1012003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
102
e5f11328
NN
103 * config.gcc: Do per-target disabling of fixproto here in clauses,
104 not in t- fragments.
105 * configure.in: Adjust to set STMP_FIXPROTO correctly.
106 * configure: Regenerate.
107 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
108 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
109 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
110 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
111 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
112 t-interix, t-linux-aout: Delete files consisting only of
113 setting of STMP_FIXPROTO.
114
d064c269
NN
115 * config.host: Allow unknown hosts (not targets). Allow
116 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
117 empty clauses. Remove useless obsolete-configuration clause.
118 Prune unsupported configuration list. Collapse identical
119 clauses for closely related systems. Rewrite comment for
120 unsupported hosts list. Reorganize a little.
121
3504b199
RH
1222003-09-22 Richard Henderson <rth@redhat.com>
123
124 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
125 not precision.
126
3a1f863f
DE
1272003-09-22 David Edelsohn <edelsohn@gnu.org>
128 Hartmut Penner <hpenner@de.ibm.com>
8c8a95ff 129 Segher Boessenkool <boessen@de.ibm.com>
3a1f863f
DE
130
131 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
8c8a95ff 132 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
3a1f863f
DE
133 (rs6000_split_altivec_in_gprs): Rename to ...
134 (rs6000_split_multireg_move): Add support for update addressing.
135 * config/rs6000/rs6000-protos.h: Same.
136 * config/rs6000/altivec.md: Same.
137 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
138 multiple GPRs.
139 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
140 (movti_power): Use new splitter for multiple GPRs.
141 (movti_string): Same.
142 (movti_ppc64): Same.
143
ffbc8796
BW
1442003-09-22 Bob Wilson <bob.wilson@acm.org>
145
146 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
147 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
148
4d76fdaa
AO
1492003-09-22 Alexandre Oliva <aoliva@redhat.com>
150
151 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
152 (andsi3): Set attr cc to set_zn when using shifts or adds.
153
0ba529ca
BI
1542003-09-22 Bernardo Innocenti <bernie@develer.com>
155
156 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
157
6b475ad5
BI
1582003-09-22 Bernardo Innocenti <bernie@develer.com>
159
160 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
161 Resurrect -mrtd option.
162
af0f185b
AP
1632003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
164
165 PR target/12281
166 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
167 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
168
de582cfb
EB
1692003-09-22 Olivier Hainque <hainque@act-europe.fr>
170
171 PR target/9786
172 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
173 after potential deletion of trapping insn. Avoids later ICE
174 from call to fixup_abnormal_edges.
175 (convert_regs_2): Stack the current block successors before
176 processing this block, that is, before the potential deletion of
177 dead edges by convert_regs_1, because these edges have been used
178 to initialize the predecessors count.
179
9554f886
EB
1802003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
181
182 * real.c: Fix several nits in the head comment.
183
f31686a3
RH
1842003-09-21 Richard Henderson <rth@redhat.com>
185
186 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
187 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
188 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
189 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
190 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
191
7e2af53a
RH
1922003-09-21 Richard Henderson <rth@redhat.com>
193
194 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
195 (TREE_FILENAME, TREE_LINENO): Likewise.
196 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
197 (TREE_LOCUS_SET_P): New.
198 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
199 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
200 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
201 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
202 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
203
0d92b0e4
NN
2042003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
205
d6a1d39a 206 * config/vax/vax-protos.h: Convert to ISO C90.
0d92b0e4
NN
207 * config/vax/vax.c: Convert to ISO C90.
208
fa543fdd
GS
2092003-09-21 Graham Stott <grahams@btinternet.com>
210
211 PR target/12353
212 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
213
5cfc5356
EB
2142003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
215
216 PR target/12301
217 * reorg.c (stop_search_p): Return 1 for insns that can
218 throw internally.
219
ddd2d57e
RH
2202003-09-20 Richard Henderson <rth@redhat.com>
221
222 * c-format.c (gcc_diag_char_table): Add %J.
223 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
224 (check_format_types): Fix wanted_type name lookup.
225 (init_dynamic_diag_info): Setup %J.
226 * diagnostic.c (text_specifies_location): Implement %J.
227 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
228 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
229 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
230 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
231 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
232
233 * tree-inline.c: Include intl.h
234 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
235 * Makefile.in (tree-inline.o): Update.
236
ccea753c
RS
2372003-09-20 Roger Sayle <roger@eyesopen.com>
238
239 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
240 transformation of a>=0 into (unsigned)a<0x80000000.
241
86b0a4f3
AP
2422003-09-20 Andrew Pinski <apinski@apple.com>
243
244 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
245
aa9762f6
NN
2462003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
247
da9d3b37
NN
248 * Makefile.in: Don't set (unused) DLLTOOL.
249
aa9762f6
NN
250 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
251 Remove obsolete references to ENQUIRE.
252
748fad95
NN
2532003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
254
2c813e21
NN
255 * configure.in: Remove --with-elf, which doesn't work.
256 * configure: Regenerate.
257 * config.gcc: Remove references to $elf, which does nothing.
258
748fad95
NN
259 * config/i386/xm-vsta.h: Remove xm-file believed useless.
260 * config.build (i386-vsta): Remove reference to it.
261 * config.host (i386-vsta): Remove reference to it.
262
e08737dc
PE
2632003-09-19 Phil Edwards <phil@codesourcery.com>
264
265 * doc/install.texi: Document the multiple testsuite options.
266
6a1dbbaf
GP
2672003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
268
269 * doc/install.texi (Specific): Add the specific versions of GCC
270 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
271 version 3 and older was discontinued.
272
86677d25
JS
2732003-09-19 Joel Sherrill <joel@oarcorp.com>
274
275 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
276 68881.
277
0988b758
BI
2782003-09-19 Bernardo Innocenti <bernie@develer.com>
279
280 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
281 for -m68030, -m68020-60 and -m68020-40.
282 * config/m68k/m68k.h (TARGET_68030): New target flag.
283 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
284 TARGET_REGPARM): Remove.
285 * config/m68k/m68k.h: Regroup and renumber target flags.
286 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
287 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
288 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
289 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
290 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
291
472b0fbc
RC
2922003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
293
294 * config/m68k/t-rtems (m68k-*-rtems*): New.
295 * config.gcc: Use config/m68k/t-rtems.
296
c7fcd90b
RC
2972003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
298
299 * config/mips/t-rtems: New.
300 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
301
7dd87381
KC
3022003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
303
304 * cgraph.c: Fix typo in debugging output.
305
04b67900
P
3062003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
307 Eric Botcazou <ebotcazou@libertysurf.fr>
308
309 PR target/12166
310 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
311
a1c18b4a
MS
3122003-09-18 Mike Stump <mrs@apple.com>
313
314 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
315 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
316 cb_ident, cb_def_pragma): Use fileline typedef.
317 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
318
7229527c
DS
3192003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
320
321 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
322 total parm size if a parm has incomplete type.
323 (gen_fastcall_suffix): Likewise.
324
19ae5445
RK
3252003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
326
327 * except.c (output_function_exception_table): Adjust last change
328 to handle TYPE of INTEGER_CST.
329
5ae6cd0d
MM
3302003-09-18 Mark Mitchell <mark@codesourcery.com>
331
332 PR target/11184
333 * builtins.c (expand_builtin_apply): Use convert_memory_address
334 before returning the value.
335
336 * alias.c (find_base_value): Simplify use of
337 convert_memory_address.
338 (find_base_term): Likewise.
339 * builtins.c (expand_builtin_stejmp_setup): Likewise.
340 (expand_builtin_longjmp): Likewise.
341 (expand_builtin_prefetch): Likewise.
342 (get_memory_rtx): Likewise.
343 (expand_builtin_return): Likewise.
344 (expand_builtin_memcpy): Likewise.
345 (expand_builtin_strncpy): Likewise.
346 (expand_builtin_memset): Likewise.
347 (expand_builtin_va_arg): Likewise.
348 (expand_builtin_va_copy): Likewise.
349 (expand_builtin_alloca): Likewise.
350 * calls.c (expand_call): Likewise.
351 * except.c (expand_builtin_extract_return_addr): Likewise.
352 (expand_builtin_eh_return): Likewise.
353 * explow.c (convert_memory_address): Define even when
354 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
355 is already in the right mode.
356 * explow.c (memory_address): Simplify use of convert_memory_address.
357 (probe_stack_range): Likewise.
358 * expmed.c (make_tree): Likewise.
359 * expr.c (emit_block_move_in_libcall): Likewise.
360 (expand_assignment): Likewise.
361 (expand_expr): Likewise.
362 * function.c (assign_parms): Likewise.
363 (expand_function_end): Likewise.
364 * integrate.c (copy_rtx_and_substitute): Likewise.
365 * stmt.c (expand_computed_goto): Likewise.
366
a6a0f876
RS
3672003-09-18 Roger Sayle <roger@eyesopen.com>
368
369 * simplify-rtx.c (simplify_unary_operation): Only transform
370 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
371 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
372
1d6ba901
ZD
3732003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
374
f857cb42 375 PR target/11674
1d6ba901
ZD
376 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
377
96123432
RS
3782003-09-18 Roger Sayle <roger@eyesopen.com>
379
380 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
381 PARITY_EXPR): Delete unused tree codes.
382 * c-common.c (c_common_truthvalue_conversion): Delete references
383 to FFS_EXPR and POPCOUNT_EXPR.
384 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
385 (pp_c_expression): Likewise.
386 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
387 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
388 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
389 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
390 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
391 and long long variants.
392
53de5204
GDR
3932003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
394
395 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
396 * c-pretty-print.c: Fix formatting.
397 (pp_c_integer_constant): Append type annotation to literals. Tidy.
398 (pp_c_type_specifier): Tidy.
399 (pp_c_compound_literal): New function.
400 (pp_c_initializer): Simplify..
401 (pp_c_initializer_list): Likewise.
402 (pp_c_brace_enclosed_initializer_list): New function.
403 (pp_c_postfix_expression): Simplify.
404
feb297fe
AO
4052003-09-17 Alexandre Oliva <aoliva@redhat.com>
406
407 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
408 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
409
5d4854c8
RH
4102003-09-17 Richard Henderson <rth@redhat.com>
411
412 * tree-optimize.c (tree_rest_of_compilation): Save and restore
413 input_location.
414
ce7e7ceb
DJ
4152003-09-17 Daniel Jacobowitz <drow@mvista.com>
416
417 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
418
7d8405cf
RH
4192003-09-17 Richard Henderson <rth@redhat.com>
420
421 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
422
dc5f3d7c
RO
4232003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
424
425 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
426 * configure: Regenerate.
427
47aa0df4
MM
4282003-09-17 Mark Mitchell <mark@codesourcery.com>
429
430 PR debug/12066
431 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
432 * langhooks-def.h (lhd_return_null_tree_v): New function.
433 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
434 (LANG_HOOKS_DECLS): Add it to the intializer.
435 * langhooks.c (lhd_return_null_tree_v): New function.
436 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
437
eeae7b41
DJ
4382003-09-17 Daniel Jacobowitz <drow@mvista.com>
439
440 * configure.in: Quote gcc_config_arguments for configargs.h.
441 * configure: Regenerated.
442 * gccbug.in: Don't shell-expand gcc_config_arguments.
443
44f8f96a
GDR
4442003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
445
446 PR c++/11357
447 * c-pretty-print.c (pp_c_floating_constant): Append
448 type-annotation to floating constants.
449
a192710e
RO
4502003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
451
452 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
453 Define _ABIO32.
454 Use it for _MIPS_SIM.
455 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
456
457 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
458 Moved ...
459 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
460 updating comment.
461 Fixes PR target/10190.
462
43bc5d6b
DJ
4632003-09-17 Daniel Jacobowitz <drow@mvista.com>
464
465 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
466 to shared libraries.
467
0b75beaa
EB
4682003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
469
470 PR optimization/11646
471 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
472 EDGE_ABNORMAL flag for EH edges.
473 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
474 if dead edges were purged.
475
e2ffd796
BI
4762003-09-16 Bernardo Innocenti <bernie@develer.com>
477
478 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
479 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
480 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
481 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
482
1dd61cb4
ILT
4832003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
484
485 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
486 returned by tablejump_p.
487
1e290ba1
JB
4882003-09-16 Joel Brobecker <brobecker@gnat.com>
489
490 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
491
0c6d17ec
RS
4922003-09-16 Roger Sayle <roger@eyesopen.com>
493
494 PR bootstrap/12269
495 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
496 argument to be VOIDmode, taking the mode of the comparison from
497 the operands. Only call simplify_relational_operation if we
498 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
499 if comparison has a floating point result. Ensure that the
500 result is always of the specified mode.
501 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
502 (simplify_unary_operation): Ensure the correct mode and cmp_mode
503 are always passed to simplify_gen_relational. Simplify NOT of
504 comparison operator in any mode, not just BImode.
505 (simplify_ternary_operation): Correct tests on the return value
506 of simplify_relational_operation to use const_true_rtx, not
507 const1_rtx. Abort if it ever returns a non-constant result.
508
509 * cfgloopanal.c (count_strange_loop_iterations): Use the function
510 simplify_relational_operation, not simplify_gen_relational, if
511 we're only interested in constant comparisons and will ignore
512 non-constant results.
513
37af03cb
RS
5142003-09-16 Roger Sayle <roger@eyesopen.com>
515
516 * fold-const.c (tree_swap_operands_p): New function to determine
517 the prefered ordering of operands.
518 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
519 operands to commutative, comparison or ternary operators. Replace
520 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
521 transformation of A ? B : C into !A ? C : B.
522
42df2193
JJ
5232003-09-16 Jakub Jelinek <jakub@redhat.com>
524
525 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
526 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
527 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
528 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
529 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
530 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
531 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
532 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
533
72954a4f
JM
5342003-09-16 Jason Merrill <jason@redhat.com>
535 Jakub Jelinek <jakub@redhat.com>
536
537 * c-common.c (handle_warn_unused_result_attribute): New function.
538 (c_common_attribute_table): Add warn_unused_result.
539 (c_expand_expr): Issue warning when result of inlined function
540 with warn_unused_result attribute is ignored.
541 * calls.c (expand_call): Issue warning when result of function
542 with warn_unused_result attribute is ignored.
543 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
544 * expr.c (expr_wfl_stack): Define.
545 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
546 pass const0_rtx as target. Chain locations into expr_wfl_stack.
547 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
548 bit if inlined function has warn_unused_result attribute.
549 * input.h (expr_wfl_stack): Declare.
550 * doc/extend.texi: Document warn_unused_result attribute.
551
5a8a65b1
AO
5522003-09-15 Alexandre Oliva <aoliva@redhat.com>
553
554 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
555
cadafd1f
BW
5562003-09-15 Bob Wilson <bob.wilson@acm.org>
557
558 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
559 ATTRIBUTE_UNUSED.
560 (call_insn_operand): For PIC, don't allow a direct call to a
561 function in a different section than the current one.
562
fb0317c6
VR
5632003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
564
565 * doc/invoke.texi (Warning Options): Add missing hyphen before
566 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
567 Move "-Wold-style-definition" to the C-only section.
568 Fix the ordering of the warning options.
569
d088acea
ZD
5702003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
571 Jeff Law <law@redhat.com>
572
573 * gcse.c (remove_reachable_equiv_notes): New.
574 replace_store_insn): Call it. Update antic list.
575 (store_killed_in_insn): Take REG_EQUAL notes into account.
576 (build_store_vectors, delete_store): Add parameter to
577 replace_store_insn call.
578
b9397bb4
BW
5792003-09-15 Bob Wilson <bob.wilson@acm.org>
580
581 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
582 SYMBOL_REF_LOCAL_P.
583
d3704c46
KH
5842003-09-15 Kazu Hirata <kazu@cs.umass.edu>
585
586 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
587 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
588 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
589 Likewise.
590 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
591 Likewise.
592 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
593 * config/sparc/sparc.c (function_arg_padding): Likewise.
594
3d9b0280
VM
5952003-09-15 Vladimir Makarov <vmakarov@redhat.com>
596
597 * haifa-sched.c (schedule_block): Use ready_remove_first instead
598 of choose_ready for non-dfa insn scheduling.
599
2352184a
AJ
6002003-09-15 Andreas Jaeger <aj@suse.de>
601 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
602
603 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
604 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
605 * c-parse.in: Warn about old-style parameter definition.
606 * c-common.c: Define warn_old_style_defintion.
607 * c-common.h: Declare it.
608 * c.opt: Add Wold-style-defintion.
609
863d938c
AJ
6102003-09-15 Andreas Jaeger <aj@suse.de>
611
612 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
613 * config/rs6000/rs6000.c: Likewise.
614
ec6ec6aa
ZD
6152003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
616
617 PR optimization/10914
618 * expr.h (get_condition, canonicalize_condition): Declaration changed.
619 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
620 and canonicalize_condition calls.
621 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
622 delete_null_pointer_checks): Ditto.
623 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
624 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
625 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
626 (canonicalize_condition, get_condition): Allow to return comparisons
627 of cc mode registers.
628 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
629 cc mode registers comparison in condition.
630
a7e8c268
MM
6312003-09-12 Mark Mitchell <mark@codesourcery.com>
632
633 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
634 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
635 function.
636 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
637
5565e874
KH
6382003-09-14 Kazu Hirata <kazu@cs.umass.edu>
639
640 * combine.c (simplify_comparison): Convert
641 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
642 (eq (and (lshiftrt X Y) 1) 0).
643
83a00410
KH
6442003-09-14 Kazu Hirata <kazu@cs.umass.edu>
645
646 * alias.c: Follow spelling conventions.
647 * cpphash.h: Likewise.
648 * fold-const.c: Likewise.
649
7b9a5a66
AO
6502003-09-14 Alexandre Oliva <aoliva@redhat.com>
651
652 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
653 * c-lex.c (cb_line_change): Skip line changing whenever
654 c-ppoutput.c would.
655
93bad80e
SB
6562003-09-14 Steven Bosscher <steven@gcc.gnu.org>
657
658 * ra.c: Convert to ISO C90 prototypes.
659 * ra-build.c: Likewise.
660 * ra-colorize.c: Likewise.
661 * ra-debug.c: Likewise.
662 * ra-rewrite.c: Likewise.
663
3983d33e
RS
6642003-09-14 Richard Sandiford <rsandifo@redhat.com>
665
666 * Makefile.in (%.dvi): Remove excess $(docdir).
667
975f3818
RS
6682003-09-14 Richard Sandiford <rsandifo@redhat.com>
669
670 * function.c (STACK_BYTES): Move definition to head of file.
671 (assign_parms): Don't pass current_function_pretend_args_size
672 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
673 round current_function_pretend_args_size up to STACK_BYTES. Skip any
674 excess before laying out the argument.
675
011d50d9
AJ
6762003-09-14 Andreas Jaeger <aj@suse.de>
677
678 * objc/objc-act.c: Convert to ISO C90 prototypes.
679 * objc/objc-act.h: Likewise.
680
6812003-09-14 Olaf Hering <olh@suse.de>
682
683 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
684
876455fa
AP
6852003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
686
6ef3d457
AP
687 PR target/12021
688 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
689 as they already are done in config/m68k/m68k.h.
690 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
691
876455fa
AP
692 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
693 (machopic_output_stub): Only generate pic base symbols when using pic
694 and generate them in the form L00000000$spb.
695
f6d1b84a
RH
6962003-09-13 Richard Henderson <rth@redhat.com>
697
698 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
699 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
700 * cgraph.h: Update.
701
d779d0dc 7022003-09-12 Dale Johannesen <dalej@apple.com>
f6d1b84a 703
d779d0dc
DJ
704 * config/rs6000/rs6000.c: Fix typos in previous.
705
c4555dd9
ZL
7062003-09-12 Ziemowit Laski <zlaski@apple.com>
707
708 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
709 when allocating pp->buffer.
710
2e53734e
GK
7112003-09-12 Geoffrey Keating <geoffk@apple.com>
712
713 * config/darwin.c (machopic_select_rtx_section): Use
714 const_data_section for things that might require relocation.
715
edeb3871
L
7162003-09-12 H.J. Lu <hongjiu.lu@intel.com>
717
718 PR bootstrap/12264
719 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
720
6cedbe44
BW
7212003-09-12 Bob Wilson <bob.wilson@acm.org>
722
723 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
724 * config/xtensa/linux.h (ASM_SPEC): Likewise.
725 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
726 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
727 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
728 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
729 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
730 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
731 and redefine corresponding TARGET_* macros with constants from the
732 xtensa-config.h header.
733 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
734 for the options listed above.
735
317feb46
DE
7362003-09-12 Dale Johannesen <dalej@apple.com>
737
a2369ed3
DJ
738 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
739 * config/rs6000/rs6000-c.c: Ditto.
740 * config/rs6000/rs6000.c: Ditto.
741 * config/rs6000/ sysv4.h: Ditto.
742
4ca0d6d4
CL
7432003-09-12 Chris Lattner <sabre@nondot.org>
744
745 * loop.c: Move comments describing BIV's and GIV's to top of file
746
d2399d75
RS
7472003-09-12 Roger Sayle <roger@eyesopen.com>
748
749 PR optimization/8967
750 * alias.c (write_dependence_p): Modify to take an additional constp
751 argument that controls whether the UNCHANGING_RTX_P flags are used.
752 (anti_dependence, output_dependence): Adjust write_dependence_p
753 callers to pass this additional argument, to return the same result.
754 (unchanging_anti_dependence): New variant of anti_dependence that
755 ignores the UNCHANGING_RTX_P property on memory references.
756 * rtl.h (unchaning_anti_dependence): Prototype here.
757 * flow.c (init_propagate_block): Place fake constant mem writes on
758 the mem_set_list so that dead writes to const variables are deleted.
759 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
760 (mark_used_regs): Likewise.
761
f0f4da32
RS
7622003-09-12 Richard Sandiford <rsandifo@redhat.com>
763
764 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
765 (mcore_secondary_reload_class): Declare.
766 (mcore_output_inline_const_forced): Remove.
767 * config/mcore/mcore.md (movsi): Remove the code that forced
768 non-inlineable constants into a register if the target was r15
769 or the stack pointer. Remove constant restrictions from the main
770 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
771 of an r <- P alternative. Remove fallback define_insn for reload.
772 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
773 define_insn. Use mcore_output_move in the remaining define_insn.
774 Adjust condition and constraints in the way as for movsi.
775 (movdi): Always split unacceptable constants into two. Use
776 simplify_gen_subreg instead of operand_subword{,_force}.
777 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
778 (mcore_output_move): Support HImode and QImode moves as well.
779 (mcore_m15_operand_p): New function.
780 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
781 (mcore_secondary_reload_class): New function.
782 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
783 terms of mcore_secondary_reload_class.
784
70b16073
MS
7852003-09-11 Mike Stump <mrs@apple.com>
786
787 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
788
ab01a87c
KG
7892003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
790
fe27b7cc
KG
791 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
792 MODE exactly, then only convert logN(N) -> 1.0 if
793 flag_unsafe_math_optimizations is set.
794
ab01a87c
KG
795 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
796 init_builtin_dconsts): Delete.
797 * emit-rtl.c (dconstpi, dconste): Define.
798 (init_emit_once): Initialize dconstpi & dconste.
799 * real.h (dconstpi, dconste): Declare.
800
9bdca184
AO
8012003-09-11 Alexandre Oliva <aoliva@redhat.com>
802
803 PR fortran/11522
804 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
805 for ultimate origin even if block is abstract.
806
aa166939
RS
8072003-09-11 Roger Sayle <roger@eyesopen.com>
808
809 * combine.c (combine_simplify_rtx): Move several NOT and NEG
810 optimizations from here...
811 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
812 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
813
6b00c969
RH
8142003-09-11 Richard Henderson <rth@redhat.com>
815
816 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
817 Tweek tests for function already generated.
818 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
819 * cgraph.h (cgraph_finalize_function): Update for extra arg.
820 * c-decl.c (finish_function): Likewise.
821
dd5c7759
JB
8222003-09-10 Joe Buck <jbuck@welsh-buck.org>
823
824 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
825
64871887
JQ
8262003-09-10 Jerry Quinn <jlquinn@optonline.net>
827
828 * real.c: Update URL to VAX floating point docs.
829 (decode_vax_d): Extract 8 exponent bits instead of 7.
830
50b29dbb
ILT
8312003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
832
833 * combine.c (force_to_mode): Set fuller_mask based only on mask,
834 not op_mode.
835
602a82f3 8362003-09-11 Jan Hubicka <jh@suse.cz>
f08545a8
JH
837
838 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
839 on why function is not inlinable; do not check
840 the body.
841 (inline_forbidden_p): Move to...
842 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
843 deal with alloca, longjmp.
844 (inline_forbidden_p): New static function.
845 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
846 find_builtin_longjmp_call): Kill.
847
25c84396
RH
8482003-09-10 Richard Henderson <rth@redhat.com>
849
850 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
851 * cgraphunit.c: Update to match.
852 (record_call_1): Rearrange. Call lang hook for language nodes.
853 (cgraph_analyze_function): Don't call lower_function.
854 * langhooks.h (struct lang_hooks_for_callgraph): Replace
855 lower_function with analyze_expr.
856 * langhooks-def.h: Update to match.
857 * langhooks.c (lhd_callgraph_analyze_expr): New.
858
1c8b4e29
EB
8592003-09-10 Martin Husemann <martin@duskware.de>
860
861 PR target/11965
862 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
863 constants greater than 63.
864 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
865 against constants greater than 31.
866 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
867 constants greater than 63.
868
39adabaf
RH
8692003-09-09 Richard Henderson <rth@redhat.com>
870
871 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
872 * cgraph.h (cgraph_finalize_function): Update.
873 * c-decl.c (finish_function): Update.
e62f462e
DP
874
8752003-09-09 Devang Patel <dpatel@apple.com>
876
877 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
878 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
879
bace148a
EC
8802003-09-09 Eric Christopher <echristo@redhat.com>
881
882 * configure.in: Change usage of 'head' to 'sed 1q'.
883 * configure: Regenerate.
884
dd07abd7
RH
8852003-09-09 Richard Henderson <rth@redhat.com>
886
887 * except.c: Include cgraph.h.
888 (output_function_exception_table): Invoke
889 cgraph_varpool_mark_needed_node.
890 * Makefile.in (except.o): Update.
891
7f5cc0f3
KC
8922003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
893
894 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
895 and use it throughout.
896
f7657db9
KG
8972003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
898
899 * builtins.c (real_dconstp, fold_builtin_logarithm,
900 fold_builtin_exponent): New, split out from fold_builtin. Also
901 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
902 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
903 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
904 of hardcoded array size.
905 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
906 (tree_expr_nonnegative_p): Likewise.
907 * real.h (dconst3, dconst10, dconstthird): New.
908
602a82f3 9092003-09-09 Jan Hubicka <jh@suse.cz>
cd4dea62
JH
910
911 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
912 inline functions.
913 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
914 DECL_SAVED_TREE.
915
892955bf
RS
9162003-09-09 Roger Sayle <roger@eyesopen.com>
917
918 * builtins.c (fold_builtin_cabs): Protect the complex argument
919 against multiple evaluation when optimizing cabs* into sqrt*.
920
602a82f3 9212003-09-09 Jan Hubicka <jh@suse.cz>
f0985900
JH
922
923 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
924
94fd5176
KC
9252003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
926
927 * Makefile.in: Revert yesterday's change.
928
860c4900
BI
9292003-09-08 Bernardo Innocenti <bernie@develer.com>
930 Peter Barada <peter@baradas.org>
931
932 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
933 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
934 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
935 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
936 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
937 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
938 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
939 (m68k_compute_frame_layout): New function.
940 (m68k_initial_elimination_offset): New function.
941 (m68k_output_function_prologue): ColdFire-specific movem handling.
942 (m68k_output_function_epilogue): Likewise.
943 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
944 (ARG_POINTER_REGNUM): Add new definition.
945 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
946 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
947 (CAN_ELIMINATE): Likewise.
948 (INITIAL_ELIMINATION_OFFSET): Likewise.
949
ed311a33
BI
9502003-09-08 Bernardo Innocenti <bernie@develer.com>
951
952 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
953 by removing redundant variable cfa_store_offset.
954
9649812a
MM
9552003-09-08 Mark Mitchell <mark@codesourcery.com>
956
957 * langhooks-def.h (lhd_register_builtin_type): New function.
958 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
959 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
960 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
961 * langhooks.c (lhd_register_builtin_type): New function.
962 * c-common.h (c_register_builtin_type): Declare.
963 * c-common.c (c_register_builtin_type): New function.
964 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
965 c_register_builtin_type.
966 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
967 __float80, and __float128 macros.
968 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
969 __float80, and __float128 types.
970
11bf0eb0
KG
9712003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
972
973 * builtin-types.def
974 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
975 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
976 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
977 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
978 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
979 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
980 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
981 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
982 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
983 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
984 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
985 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
986 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
987 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
988 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
989 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
990 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
991 New.
992 * doc/extend.texi: Document new builtins.
993
602a82f3 9942003-09-09 Jan Hubicka <jh@suse.cz>
d853a20e
JH
995
996 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
997 finalization.
998 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
999 functions, check for COMDAT.
1000 (cgraph_assemble_pending_functions): Break out from...
1001 (cgraph_finalize_function): ... here; allow redefinig of extern inline
1002 functions.
1003 (record_call_1): Record function references only in non-unit-at-a-time
1004 mode.
1005 (cgraph_analyze_function): Reset current_function_decl.
1006 (cgraph_finalize_compilation_unit): Assemble pending functions.
1007
3d81ccc6
MM
10082003-09-08 Mark Mitchell <mark@codesourcery.com>
1009
1010 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
1011 (libgov.a): Likewise.
1012 (libgcc_eh.a): Likewise.
1013
fae111c1
RS
10142003-09-08 Roger Sayle <roger@eyesopen.com>
1015
1016 * fold-const.c (operand_equal_p): Clarify documentation.
1017
c1f927e8
RH
10182003-09-08 Richard Henderson <rth@redhat.com>
1019
1020 * c-decl.c (c_expand_body_1): Push and pop function context here.
1021 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
1022 nested argument instead of computing nesting ourselves.
1023
7f14bbe6
JJ
10242003-09-08 Jakub Jelinek <jakub@redhat.com>
1025
1026 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
1027 regstack if optimizing but not scheduling after reload.
1028
5751a10b
JJ
10292003-09-08 Jakub Jelinek <jakub@redhat.com>
1030
1031 * config/sparc/sparc.c (struct machine_function): New type.
1032 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
1033 (sparc_override_options): Initialize init_machine_status.
1034 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
1035 tie_symbolic_operand, tle_symbolic_operand): New functions.
1036 (symbolic_operand): Disallow tls_symbolic_operand.
1037 (symbolic_memory_operand): Likewise.
1038 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
1039 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
1040 New functions.
1041 (sparc_tls_symbol): New variable.
1042 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
1043 legitimize_address): New functions.
1044 (print_operand): Handle %&.
1045 (sparc_init_machine_status, get_some_local_dynamic_name,
1046 get_some_local_dynamic_name_1): New functions.
1047 (sparc_output_dwarf_dtprel): New function.
1048 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
1049 constant_address_p.
1050 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
1051 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
1052 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
1053 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
1054 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1055 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
1056 (ASM_OUTPUT_DWARF_DTPREL): Define.
1057 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
1058 tie_symbolic_operand, tle_symbolic_operand.
1059 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
1060 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
1061 (tls_call_delay): New attribute.
1062 (in_call_delay): Use it.
1063 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
1064 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
1065 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
1066 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
1067 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
1068 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
1069 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
1070 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
1071 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
1072 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
1073 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
1074 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
1075 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
1076 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
1077 insns.
1078 * config/sparc/sparc-protos.h (legitimate_constant_p,
1079 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
1080 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
1081 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
1082 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1083 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
1084 * configure.in (sparc*-*-*): Add TLS check.
1085 * configure: Rebuilt.
1086
7b65ed54
EB
10872003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1088
1089 PR target/11689
1090 * config/i386/i386.c (memory_address_length): Fix computation when
1091 the base is esp or ebp.
1092
cf9ad9a7
MM
10932003-09-07 Mark Mitchell <mark@codesourcery.com>
1094
1095 PR c++/11852
1096 * varasm.c (initializer_constant_valid_p): Correct logic for
1097 CONSTRUCTORs.
1098
eb698c58
RS
10992003-09-07 Roger Sayle <roger@eyesopen.com>
1100
1101 * expr.c (expand_operands): New function to expand an operand pair.
1102 (expand_expr): Call expand_operands whenever we need to expand both
1103 operands of a binary operator.
1104 (do_store_flag): Likewise for operands of comparison operations.
1105
4f61b3b7
RS
11062003-09-07 Roger Sayle <roger@eyesopen.com>
1107
1108 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
1109 (-A)*B if we care about sign-dependent rounding.
1110
a2a9e21c
GDR
11112003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
1112
1113 * c-pretty-print.h (pp_c_left_brace): Declare.
1114 (pp_c_right_brace): Likewise.
1115 * c-pretty-print.c (pp_c_left_brace): Now a function
1116 (pp_c_right_brace): Likewise.
1117
602a82f3 11182003-09-07 Jan Hubicka <jh@suse.cz>
1ab237df
JH
1119
1120 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
1121
43f9ce02
GDR
11222003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
1123
1124 * diagnostic.c (warn_deprecated_use): Move to toplev.c
1125
dba65e79
GDR
11262003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
1127
1128 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
1129 * Makefile.in (langhooks.o): Depend on diagnostic.h
1130
10ef35a9
JW
11312003-09-06 James E Wilson <wilson@tuliptree.org>
1132
1133 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
1134 simplify.
1135
9aec989f
KC
11362003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
1137
1138 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
1139 and use it throughout.
bace148a 1140
9aec989f 11412003-09-07 Jan Hubicka <jh@suse.cz>
7e668417 1142
470d9044
JH
1143 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
1144
7e668417 1145 * toplev.c (rest_of_decl_compilation): Do not finalize external
bace148a 1146 virables.
7e668417 1147
ba245151
JH
1148 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
1149 functions.
1150 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
1151
9aec989f 11522003-09-06 Jan Hubicka <jh@suse.cz>
9778f2f8
JH
1153
1154 PR target/12070
1155 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
1156
1157 PR opt/12082
1158 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
1159
0761f342
GDR
11602003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
1161
1162 * diagnostic.c (announce_function): Move to toplev.c.
1163
bad998e0
ZD
11642003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1165
1166 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
1167 volatile mem.
1168
d85a0aae
KG
11692003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1170
1171 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
1172 when gc checking is enabled.
1173
03845b47
SB
11742003-09-06 Steven Bosscher <steven@gcc.gnu.org>
1175
1176 PR c/9862
1177 * c-decl.c (c_expand_body_1): Move return warning from here...
1178 (finish_function): ...to here.
1179
c55a59cc
GK
11802003-09-05 Geoffrey Keating <geoffk@apple.com>
1181
1182 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
1183 a subset of the input class.
1184
e86ac6af
KH
11852003-09-05 Kazu Hirata <kazu@cs.umass.edu>
1186
1187 * config/i860/i860.c: Follow spelling conventions.
1188 * config/i860/i860.h: Likewise.
1189 * config/sh/sh.h: Likewise.
1190
c87ec0ba
NY
11912003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
1192
1193 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
1194 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
1195 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
1196
31ff3e0b
RS
11972003-09-05 Roger Sayle <roger@eyesopen.com>
1198 Richard Henderson <rth@redhat.com>
1199
1200 PR optimization/1823
1201 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
1202 multiplication to implement division by constant integer.
1203
602a82f3 12042003-09-05 Jan Hubicka <jh@suse.cz>
1f95c733
JH
1205
1206 * opts.c (decode_options): Enable unit-at-a-time at -O2.
1207 * params.def (max-inline-insns-single): Set to 500
1208 (max-inline-insns-auto): Set to 150
1209 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
1210
8dafba3c
RH
12112003-09-04 Richard Henderson <rth@redhat.com>
1212
1213 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
1214 (cgraph_mark_needed_node): Remove needed argument.
1215 * cgraph.h: Update to match.
1216 * cgraphunit.c (decide_is_function_needed): Split out from ...
1217 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
1218 if we generated the function.
1219 (record_call_1): Update for cgraph_mark_reachable_node.
1220 * varasm.c (mark_referenced): Likewise.
1221 * objc/objc-act.c (mark_referenced_methods): Likewise.
1222
dd37c5a0
DD
12232003-09-04 DJ Delorie <dj@redhat.com>
1224
1225 * targhooks.c: Add comment explaining the migration process.
1226
3922e7c1
EC
12272003-09-04 Eric Christopher <echristo@redhat.com>
1228
1229 * config/frv/t-frv: Fix path for frv-abi.h.
1230 * config/frv/frv-asm.h: Fix string concatenation.
1231
92f6864c
DD
12322003-09-04 DJ Delorie <dj@redhat.com>
1233
1234 * builtins.c (apply_args_size): Guard against a NULL cfun.
1235 (expand_builtin_apply_args_1): Likewise.
92f6864c 1236 (expand_builtin_apply): Likewise.
3f571a78 1237 Fixes PR bootstrap/12172.
92f6864c 1238
f6f5dff2
RO
12392003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1240
1241 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
1242 assembler supports Sun syntax for cmov.
1243 * configure: Regenerate.
1244 * config.in: Likewise.
1245 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
3922e7c1 1246 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
f6f5dff2
RO
1247 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
1248 Fixes PR target/12101.
1249
47ab33b2
MA
12502003-09-04 Matt Austern <austern@apple.com>
1251
1252 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
1253 with verbosity 0, instead of DECL_NAME, for human-readable string.
3922e7c1 1254
be6acd4b
EC
12552003-09-04 Eric Christopher <echristo@redhat.com>
1256
1257 * targhooks.c (default_return_in_memory): Allow
1258 unconverted ports.
1259
33d05111
EC
12602003-09-04 Eric Christopher <echristo@redhat.com>
1261
1262 * targhooks.c (default_return_in_memory): Fix typo
1263 in last checkin.
1264
ed75b1d6
EC
12652003-09-04 Eric Christopher <echristo@redhat.com>
1266
1267 * targhooks.c (default_return_in_memory): Fix default
1268 definition.
1269
45849738
BI
12702003-09-04 Bernardo Innocenti <bernie@develer.com>
1271
1272 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
1273 deleted function.
1274 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
1275 enable coff-only code in m68k.c.
1276
232830b7
NC
12772003-09-04 Nick Clifton <nickc@redhat.com>
1278
1279 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
1280 v850e1.
1281 * config/v850/v850.h: Accept v850e1 as a default CPU.
1282 Accept -mv850e1 as a command line option.
1283 * doc/invoke.texi: Document new -mv850e1 command line switch.
1284 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
1285 -mv850e.
1286
c490cc89
NC
12872003-09-04 Nick Clifton <nickc@redhat.com>
1288
1289 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
1290 * config/v850/t-v850: Only produce one extra multilib - for
1291 the v850e.
1292 * config/v850/t-v850e: New file: Only produce one extra
1293 multilib - for the v850.
1294
bc93e287
JJ
12952003-09-04 Jakub Jelinek <jakub@redhat.com>
1296
1297 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
1298 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
1299 * unwind.h (_Unwind_GetBSP): New prototype.
1300 * libgcc-std.ver: Add empty GCC_3.3.2 version.
1301 * mkmap-symver.awk: For symbol versions with no exported symbols,
1302 don't put anything into version script, just change all symbol
1303 versions which inherit from it to inherit from its ancestor.
1304
ec24a740
EC
13052003-09-04 Eric Christopher <echristo@redhat.com>
1306
1307 * config/mips/mips.c (mips_expand_prologue): Convert to
1308 calls.struct_value_rtx hook.
1309 (reg_or_const_float_1_operand): New.
1310 * config/mips/mips.h: Update Comments.
1311 (mips_arg): Add reg_or_const_float_1_operand.
1312 * config/mips/mips.md (divdf3); Convert to expander.
1313 (divsf3): Ditto.
1314 (*divdf3): New pattern.
1315 (*divsf3): Ditto.
1316
602a82f3 13172003-09-04 Jan Hubicka <jh@suse.cz>
b379a593
JH
1318
1319 * toplev.c (wrapup_global_declarations): Fix final pass in
1320 unit-at-atime mode.
1321
d18a8251
MM
13222003-09-04 Mark Mitchell <mark@codesourcery.com>
1323
1324 * doc/extend.texi: Document removal of cast-as-lvalue extension in
1325 C++.
1326
c5ef564b
NR
13272003-09-04 Nicolas Roche <roche@act-europe.fr>
1328
1329 * gcc.c (process_command): Fix typo.
1330
04b379ba
DB
13312003-09-03 David O'Brien <obrien@FreeBSD.org>
1332
1333 optimization/11980
1334 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
1335 (PTRDIFF_TYPE): Likewise.
1336 (WCHAR_TYPE_SIZE): Likewise.
1337
61f71b34
DD
13382003-09-03 DJ Delorie <dj@redhat.com>
1339
1340 * targhooks.c: New file.
1341 * targhooks.h: New file.
1342 * Makefile.in: Add targhooks.o support.
1343 (function.o): Depend on$(TARGET_H).
1344 (stmt.o): Likewise.
1345 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
1346 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
1347 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
1348 (expand_builtin_saveregs): Convert to
1349 calls.expand_builtin_saveregs hook.
1350 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
1351 here, instead of ...
1352 (get_parm_info) ... here.
1353 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
1354 hook.
1355 (finish_function): Handle calls.promote_prototypes hook here too.
1356 * c-typeck.c (convert_arguments): Convert to
1357 calls.promote_prototypes hook.
1358 (c_convert_parm_for_inlining): Likewise.
1359 * calls.c (initialize_argument_information): Convert to
1360 calls.promote_function_args hook.
1361 (expand_call): Convert to calls.struct_value_rtx,
1362 calls.strict_argument_naming,
1363 calls.pretend_outgoing_varargs_named, and
1364 calls.promote_function_return hooks. Pass fndecl to
1365 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
1366 hooks, so they can use that.
1367 (emit_library_call_value_1): Likewise.
1368 * combine.c (setup_incoming_promotions): Convert to
1369 calls.promote_function_args hook.
1370 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
1371 * expr.c (expand_assignment): Pass call to aggregate_value_p.
1372 (expand_expr): Likewise.
1373 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
1374 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
1375 RETURN_IN_MEMORY macro defaults.
1376 * final.c (profile_function): Convert to calls.struct_value_rtx
1377 hook.
1378 * function.c (aggregate_value_p): Accept function type tree as
1379 second parameter; try to deduce fntype from it. Convert to
1380 calls.return_in_memory hook.
1381 (assign_parms): Convert to calls.setup_incoming_varargs,
1382 calls.strict_argument_naming, calls.promote_function_args,
1383 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
1384 aggregate_value_p.
1385 (expand_function_start): Likewise. Convert to
1386 calls.struct_value_rtx hook.
1387 (expand_function_end): Convert to calls.promote_function_return hook.
1388 (allocate_struct_function): Pass fndecl to aggregate_value_p.
1389 * hard-reg-set.h: Update comments to new hook names.
1390 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
1391 * reg-stack.c (stack_result): Likewise.
1392 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
1393 * stmt.c (expand_value_return): Convert to
1394 calls.promote_function_return hook.
1395 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
1396 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
1397 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
1398 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
1399 TARGET_STRICT_ARGUMENT_NAMING,
1400 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
1401 * target.h: Likewise.
1402 * tree.h (aggregate_value_p): Also takes a tree to deduce function
1403 attributes from (for target hooks).
1404 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
1405 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
1406 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
1407 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
1408 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
1409 to hooks.
ec24a740 1410
61f71b34
DD
1411 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
1412 to aggregate_value_p.
1413 * config/arm/arm.c (arm_init_cumulative_args,
1414 arm_output_mi_thunk): Likewise.
1415 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
1416 Likewise.
1417 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
1418 mips_can_use_return_insn): Likewise.
1419 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1420 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1421 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
1422 aggregate_value_p.
1423 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
1424 function to aggregate_value_p.
1425 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
1426 aggregate_value_p.
ec24a740 1427
61f71b34
DD
1428 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
1429 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
1430 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
1431 (sh_handle_renesas_attribute, sh_promote_prototypes,
1432 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
1433 sh_setup_incoming_varargs, sh_strict_argument_naming,
1434 sh_pretend_outgoing_varargs_named): New decls.
1435 (targetm): Add new hooks.
1436 (calc_live_regs): Save MACL and MACH if the function has the
1437 renesas attribute.
1438 (sh_expand_prologue): Support renesas attribute.
1439 (sh_builtin_saveregs): Make static.
1440 (sh_build_va_list): Support renesas attribute.
1441 (sh_va_start): Likewise.
1442 (sh_va_arg): Likewise.
1443 (sh_promote_prototypes): New.
1444 (sh_function_arg): New, moved from sh.h. Support renesas
1445 attribute.
1446 (sh_function_arg_advance): Likewise.
1447 (sh_return_in_memory): Likewise.
1448 (sh_strict_argument_naming): Likewise.
1449 (sh_pretend_outgoing_varargs_named): Likewise.
1450 (sh_struct_value_rtx): New.
1451 (sh_attribute): Add renesas attribute.
1452 (sh_handle_renesas_attribute): New.
1453 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
1454 (sh_ms_bitfield_layout_p): Support renesas attribute also.
1455 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
1456 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
1457 -mhitachi.
1458 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
1459 target hooks.
1460 (sh_args): Add renesas_abi flag.
1461 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
1462 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
1463 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
1464 stack for the renesas abi.
1465 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
1466 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
1467 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
1468 call cookie to indicate renesas calls.
ec24a740 1469
b885908b
MH
14702003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
1471
1472 * gcse.c (replace_one_set): New function.
1473 (pre_insert_copy_insn): Change the order of copying
1474 to make copy propagation discover additional PRE opportunities.
1475
bcfb8075
RS
14762003-09-03 Roger Sayle <roger@eyesopen.com>
1477
1478 PR optimization/11700.
1479 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
1480 of a hard register is representable before trying to simplify it
1481 using subreg_hard_regno.
1482
eb53bcc0
RO
14832003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1484
1485 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
1486 * configure: Regenerate.
1487
9a57322b
RO
14882003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1489
1490 * intl.h (N_): Remove parentheses.
1491
47fe5c48
BI
14922003-09-03 Bernardo Innocenti <bernie@develer.com>
1493
1494 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
1495 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
1496 definition and code blocks compiled when not defined.
1497 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
1498 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
1499 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
1500 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
1501
7dff32e6
JS
15022003-09-03 Jeff Sturm <jsturm@one-point.com>
1503
1504 * cgraphunit.c (visited_nodes): New static variable.
1505 (record_call_1): Use walk_tree with visited_nodes.
1506 (cgraph_create_edges): Use walk_tree with visited_nodes.
1507 Setup/teardown visited_nodes hashtable.
1508
039c3d42
RS
15092003-09-03 Roger Sayle <roger@eyesopen.com>
1510
1511 * toplev.c (flag_rounding_math): New global variable.
1512 (f_options): Add to the list of language independent options.
1513 * flags.h (flag_rounding_math): Prototype here.
1514 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
1515 * common.opt (frounding-math): New common command line option.
1516 * opts.c (common_handle_option): Handle OPT_frounding_math.
1517 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
1518
1519 * doc/invoke.texi: Document this new command line option.
1520
b689848f
RO
15212003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1522
1523 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
1524
602a82f3 15252003-09-03 Jan Hubicka <jh@suse.cz>
4a46cbfb
JH
1526
1527 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
1528 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
1529 * c-objc-common.c: Kill include of gt-c-objc-common.h
1530 (expand_deferred_fns, deffer_fn): Kill function.
1531 (deferred_fns): Kill variable.
1532 (finish_cdtor): Update finish_function call.
1533 (c_objc_common_finish_file): Always call cgraph code.
1534 * c-parse.c: Regenerate.
1535 * c-parse.y: Regenerate.
1536 * c-tree.h (finish_function): Update prototype.
1537 * objc-acct.c (build_module_descriptor, finish_method_def):
1538 Update call of finish_function.
1539 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
1540 forward prototype.
1541 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
1542 function and assemble it if needed.
1543 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
1544 mode.
1545 (cgraph_optimize): Likewise.
1546 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
1547 even when it has no inline callees.
1548 * c-parse.in: Update calls to finish_function.
1549
877bcd2d
NC
15502003-09-03 Nick Clifton <nickc@redhat.com>
1551
1552 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
1553 Use #error to generate the message if TARGET_DEFAULT is not
1554 recognised.
1555
ee692410
RS
15562003-09-03 Richard Sandiford <rsandifo@redhat.com>
1557
1558 * config/mips/mips.h (MASK_UNUSED1): Remove.
1559 (MASK_XGOT, TARGET_XGOT): Define.
1560 (TARGET_SWITCHES): Add an entry for -mxgot.
1561 (ASM_SPEC): Map -mxgot to -xgot.
1562 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
1563 whether we're using a big-GOT sequences.
1564 (mips_legitimize_const_move, mips_expand_call): Likewise.
1565 (override_options): Revert 2003-01-09 change.
1566 * doc/invoke.texi: Document -mxgot.
1567
49fa0661
JM
15682003-09-02 Jason Merrill <jason@redhat.com>
1569
1570 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
1571 * config/sparc/sol2.h: Not here.
1572
f0e9957a
RS
15732003-09-02 Roger Sayle <roger@eyesopen.com>
1574
1575 * expr.c (expand_expr): The code following both_summands performs
1576 the same task as simplify_gen_binary. Replace all gotos to
1577 both_summands with a call to simplify_gen_binary and delete the
1578 now unused label.
1579
5220823f
JM
15802003-09-02 Jason Merrill <jason@redhat.com>
1581
1582 PR c++/7327
1583 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
1584
64384568
JS
15852003-09-02 Jeff Sturm <jsturm@one-point.com>
1586
1587 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
1588 (cgraph_optimize_function): Set current_function_decl to the
1589 fndecl we're integrating from.
1590
742c0a4e
KG
15912003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1592
1593 * builtins.def: Break out _Complex math functions into their
1594 own category.
1595
27f35b75
AJ
15962003-09-02 Andreas Jaeger <aj@suse.de>
1597
1598 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
1599
441c9a12
JZ
16002003-09-02 Josef Zlomek <zlomekj@suse.cz>
1601
1602 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
1603 finding the note again.
1604
b3422074
NN
16052003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
1606
1607 * config.gcc: Remove host-specific rewrites of target_alias.
1608
4b09846b
MM
16092003-09-01 Mark Mitchell <mark@codesourcery.com>
1610
9b0f6145
MM
1611 * Makefile.in (genprogs): Fix typo.
1612
4b09846b
MM
1613 * Makefile.in (gencheck.o): Remove build commands.
1614 (dummy-conditions.o): Likewise.
1615 (read-rtl.o): Likewise.
1616 (gensupport.o): Likewise.
1617 (genconfig$(build_exeext)): Remove rule.
1618 (genconfig.o): Remove build commands.
1619 (genflags$(build_exeext)): Remove rule.
1620 (genflags.o): Remove build commands.
1621 (gencodes$(build_exeext)): Remove rule.
1622 (gencodes.o): Remove build commands.
1623 (genconstants.o): Remove build commands.
1624 (genemit$(build_exeext)): Remove rule.
1625 (genemit.o): Remove build commands.
1626 (genrecog$(build_exeext)): Remove rule.
1627 (genrecog.o): Remove build commands.
1628 (genextract$(build_exeext)): Remove rule.
1629 (genextract.o): Remove build commands.
1630 (genpeep$(build_exeext)): Remove rule.
1631 (genpeep.o): Remove build commands.
1632 (genattr$(build_exeext)): Remove rule.
1633 (genattr.o): Remove build commands.
1634 (genprognames): New variable.
1635 (genprogs): Likewise.
1636 (genobjs): Likewise.
1637 (genprogs): New rule.
1638 (genobjs): Likewise.
1639 (genattrtab.o): Remove build commands.
1640 (genautomata.o): Likewise.
1641 (genoutput$(build_exeext)): Remove rule.
1642 (genoutput.o): Remove build commands.
1643 (gengenrtl.o): Likewise.
1644 (genpreds.o): Likewise.
1645 (gengtype.o): Likewise.
1646 (genconditions.o): Likewise.
1647 (gen-protos.o): Likewise.
1648 (scan.o): Likewise.
1649 (fix-header.o): Likewise.
1650 (scan-decls.o): Likewise.
1651 (check-g++): Combine with other check targets.
1652 (check-gcc): Likewise.
1653 (check-g77): Likewise.
1654 (check-objc): Likewise.
1655
330532ab
NN
16562003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
1657
53b49aca
NN
1658 * config.gcc: Remove host-specific stuff which is unused here
1659 since the introduction of config.host.
1660
330532ab
NN
1661 * doc/fragments.texi: Mention config.host.
1662 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
1663 of config.build, config.host, and config.gcc.
1664
130a1080
ZW
16652003-09-01 Zack Weinberg <zack@codesourcery.com>
1666
1667 * c-decl.c (pushdecl): Don't put variables on
1668 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
1669 incomplete.
1670
a89ea0df
NN
16712003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
1672
1673 * config.host: New file.
1674 * config.gcc: Remove some host-specific stuff and some
1675 logic needed only for repeated invocation.
1676 * configure.in: Use config.host.
1677 * configure: Regenerate.
1678
31934da7
JZ
16792003-09-01 Josef Zlomek <zlomekj@suse.cz>
1680
1681 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
1682 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
1683 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
1684 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
1685 * tree.def (BIT_ANDTC_EXPR): Kill.
1686
d0d0e9ac
NN
16872003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
1688
c406e779
NN
1689 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
1690 * configure: Regenerate.
1691
d0d0e9ac
NN
1692 * config.gcc: Remove references to install_headers_dir, now unused
1693 since introduction of config.build.
1694 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
1695
1696 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
1697 config.build.
1698
1699 * config.build: New file.
1700 * config.gcc: Remove some build-specific stuff.
1701 * configure.in: Use config.build.
1702 * configure: Regnerate.
1703
9e4b13a7
SB
17042003-08-31 Steven Bosscher <steven@gcc.gnu.org>
1705 Roger Sayle <roger@eyesopen.com>
1706
1707 PR middle-end/11823
1708 * stmt.c (expand_end_case_type): Only use jump tables for dense
1709 switch statements when optimizing for size.
1710
7c66d5f5
OH
17112003-08-31 Olivier Hainque <hainque@act-europe.fr>
1712
130a1080
ZW
1713 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
1714 the != 0 case, which ensures pending stack adjustments are flushed.
7c66d5f5 1715
2ed26f6b
ZW
17162003-08-30 Zack Weinberg <zack@codesourcery.com>
1717
1718 * configure.frag: Delete file.
1719 * configure.in: Rename the substitution variables
1720 dep_host_xmake_file and dep_tmake_file to xmake_file and
1721 tmake_file respectively. Do not expand $srcdir in the
1722 value of these; leave that for Make. Introduce a new
1723 substitution varaible, all_lang_makefrags, which lists
1724 subdirectory Make-lang.in files; exclude these from
1725 all_lang_makefiles, which is now only for subdirectory
1726 outputs. Do not invoke configure.frag. Do not set nor
1727 AC_SUBST_FILE target_overrides, host_overrides, or
1728 language_fragments. Create build subdirectories in
1729 config.status extra commands.
1730 * configure: Regenerate.
1731 * Makefile.in: Update substitutions to match changes to
1732 configure. Use include directives instead of @-insertions
1733 to read in host, target, and language fragments.
1734 (Makefile rule): Do not invoke configure.frag. Do not copy
1735 config.status to config.run before executing it. Set
1736 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
1737 regenerated.
1738 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
1739
766beae1
ZW
17402003-08-30 Zack Weinberg <zack@codesourcery.com>
1741
1742 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
1743 * c-typeck.c (same_translation_unit_p): New function.
1744 (comptypes): Use it instead of flags parameter to identify
1745 structure types from different translation units.
1746 * c-decl.c (duplicate_decls): Always call comptypes with
1747 COMPTYPE_STRICT flags argument.
1748 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
1749 to file_scope_decl.
1750
bf7a697f
ZW
17512003-08-30 Zack Weinberg <zack@codesourcery.com>
1752
1753 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
1754 * c-decl.c (struct c_scope): Remove "incomplete" field.
1755 (pushdecl): Attach variables with incomplete types to
1756 the TYPE_MAIN_VARIANT of the incomplete type in question.
1757 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
1758 to complete, not at current_scope->incomplete. All such
1759 variables do need completion.
1760
496b84c8
RE
17612003-08-30 Richard Earnshaw <rearnsha@arm.com>
1762 Nicolas Pitre <nico@cam.org>
1763
1764 * arm/lib1funcs.asm (RETCOND): Delete.
1765 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
1766 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
1767 (__ARM_ARCH__): Move here from ieee754-?f.S.
1768 (RET, RETc): Clean up definitions.
1769 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
1770 (FUNC_END): New macro that marks the end of any function.
1771 (ARM_FUNC_START): New macro that allows an assembler routine to be
1772 implemented in ARM code even if a Thumb-only build.
1773 Unconditionally include ieee754-?f.S.
1774 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
1775 Mark ends of functions.
1776 Split into separate conditionally-compiled units.
1777 Use RETLDM to return from routines.
1778 * arm/ieee754-sf.S: Similarly.
bf7a697f 1779 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
496b84c8
RE
1780 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
1781 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
1782 _fixsfsi and _fixunssfsi.
1783
bf7a697f 1784 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
496b84c8 1785 multiplication underflows to zero.
bf7a697f 1786 (__adddf3): Fix bug when using VFP ordering on little-endian
496b84c8
RE
1787 processors.
1788 (__fixdfsi): Use rrx to extract the carry into a register instead of
1789 MRS instruction. Optimize later use of result.
1790 * arm/ieee754-sf.S (__fixsfsi): Likewise.
1791 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
bf7a697f 1792
4985cde3
RH
17932003-08-29 Richard Henderson <rth@redhat.com>
1794
1795 * tree-optimize.c: New file.
1796 * Makefile.in (OBJS-archive): Add tree-optimize.o.
1797 (tree-optimize.o): New.
1798 * c-decl.c (store_parm_decls): Use allocate_struct_function.
1799 (finish_function): Don't free_after_parsing or free_after_compilation.
1800 (set_save_expr_context): Move to tree-optimize.c.
1801 (c_expand_body_1): Use tree_rest_of_compilation.
1802 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1803 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1804 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
1805 iterate until closure.
1806 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
1807 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
1808 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
1809 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
1810 * toplev.h (tree_rest_of_compilation): Declare it.
1811
d560a41c
RH
18122003-08-29 Richard Henderson <rth@redhat.com>
1813
1814 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
1815 * integrate.c (save_for_inline): Set saved_for_inline.
1816 * c-semantics.c (genrtl_scope_stmt): Check it.
1817 * toplev.c (wrapup_global_declarations): Check it.
1818 (rest_of_handle_inlining): Set and check rtl_inline_init.
1819 (rest_of_compilation): Remove out of date comment.
1820
3a70d621
RH
18212003-08-29 Richard Henderson <rth@redhat.com>
1822
1823 * function.c (allocate_struct_function): New, split out of ...
1824 (prepare_function_start, init_function_start): ... here.
1825 * expr.c (init_expr): Use ggc_alloc_cleared.
1826 * stmt.c (init_stmt_for_function): Likewise.
1827 * tree.h (allocate_struct_function): Declare.
1828
2d3359eb
NN
18292003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1830
bf7a697f
ZW
1831 * config.gcc: Don't use negated character class in shell case
1832 clause.
2d3359eb 1833
23b6da10
RH
18342003-08-29 Richard Henderson <rth@redhat.com>
1835
1836 * function.h (struct function): Move function_frequency and
1837 max_jumptable_ents before start of bit field members.
1838
0dcd3840
RH
18392003-08-29 Richard Henderson <rth@redhat.com>
1840
1841 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
1842 (fold_builtin_constant_p) ... not here.
1843
4b1e44be
RH
18442003-08-29 Richard Henderson <rth@redhat.com>
1845
1846 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
1847 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
1848 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
1849
fe3d04dc
KG
18502003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1851
05a5fba9
KG
1852 * builtins.def: Fix typos.
1853 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
1854 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
1855 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
1856 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
1857 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
1858
fe3d04dc
KG
1859 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
1860 Use ATTR_MATHFN_FPROUNDING_ERRNO.
1861
5650fd39
NN
18622003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1863
c5e54ac8
NN
1864 * config.gcc (i386-*-vsta): Fix obvious bogosity.
1865
5650fd39
NN
1866 * fixinc/inclhack.def: Remove special cases for unsupported
1867 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
1868 * fixinc/fixincl.x: Regenerate.
1869
6280c439
MM
18702003-08-29 Mark Mitchell <mark@codesourcery.com>
1871
1872 * Makefile.in (cpp.info): Just state dependencies.
1873 (gcc.info): Likewise.
1874 (gccint.info): Likewise.
1875 (gccinstall.info): Likewise.
1876 (cppinternals.info): Likewise.
1877 (cpp.dvi): Likewise.
1878 (gcc.dvi): Likewise.
1879 (gccint.dvi): Likewise.
1880 (gccinstall.dvi): Likewise.
1881 (cppinternals.dvi): Likewise.
1882 (gcov.1): Likewise.
1883 (cpp.1): Likewise.
1884 (gcc.1): Likewise.
1885 (gfdl.7): Likewise.
1886 (gpl.7): Likewise.
1887 (fsf-funding.7): Likewise.
1888 ($(objdir)/%.info): New pattern rule.
1889 (%.dvi): Likewise.
bf7a697f 1890
e46f77a4
KC
18912003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
1892
1893 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
1894 (restage2): Likewise.
1895 (restage3): Likewise.
1896 (restage4): Likewise.
1897 (restageprofile): Likewise.
1898 (restagefeedback): Likewise.
1899 (bubblestrap): Likewise.
1900
8e3a7070
NN
19012003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1902
1903 * config.gcc: Narrow unsupported target match to avoid clobbering
1904 i?86-sequent-sysv4*.
1905
d119e83e
KG
19062003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1907
1908 * builtins.c (mathfn_built_in): Handle new math builtins.
1909
2be570f9
PB
19102003-08-28 Per Bothner <per@bothner.com>
1911
1912 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
1913 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
1914 (_cpp_lex_buffer): Likewise.
1915 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
1916
f1e77d83
UW
19172003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
1918
1919 * config/s390/s390.md ("*mulsi3_sign"): New insn.
1920 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
1921 ("mulsidi3"): ... this new insn.
1922 ("umulsidi3"): New insn.
1923 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
1924 mixed-mode matching constraints.
1925 ("udivmodsi4", "udivmoddisi3"): New insns.
1926 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
1927
a2a919aa
KG
19282003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1929
1930 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
1931 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
1932 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
1933 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
1934 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
1935 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
1936 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
1937 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
1938 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
1939 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
1940 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
1941 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
1942 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
1943 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
1944 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
1945 * tree.c: Assign new type_nodes.
1946 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
1947 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
1948 (float_ptr_type_node, double_ptr_type_node,
bf7a697f
ZW
1949 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
1950
a2a919aa
KG
1951 * doc/extend.texi: Document new builtins.
1952
488f17e1
KG
19532003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1954
1955 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
1956 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
bf7a697f 1957
488f17e1
KG
1958 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
1959 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
1960 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
1961 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
1962 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
1963 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
1964 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
1965 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
1966 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
1967 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
bf7a697f 1968
488f17e1
KG
1969 * doc/extend.texi: Document new builtins.
1970
199c4ccc
NN
19712003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1972
2882c718 1973 * fixinc/mkfixinc.sh: Remove special case code for unsupported
bf7a697f 1974 variants of i?86, powerpcle, and thumb.
199c4ccc
NN
1975 * fixinc/mkfixinc.sh: Remove special case code for unsupported
1976 arm and hppa variants.
1977
98ff7c4d
KG
19782003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1979
1980 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
1981 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
1982 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
1983 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
1984 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
1985 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
1986 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
1987 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
1988 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
1989 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
1990
1991 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
1992 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
1993 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
1994 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
1995 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
1996 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
1997 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
1998 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
1999 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
2000 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
2001 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
2002 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
2003 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
2004 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
2005 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
2006 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
2007 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
2008 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
2009 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
2010 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
2011 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
2012 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
2013 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
2014 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
2015 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
2016 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
2017 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
2018 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
2019 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
2020 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
2021 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
2022
2023 * doc/extend.texi: Document new builtins.
2024
9e8327e3
UW
20252003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2026
2027 * config/s390/s390.c (legitmate_constant_p): Use LARL on
2028 zSeries machines even in 31-bit addressing mode.
2029 (legitimate_reload_constant_p): Likewise.
2030 (legitimize_pic_address): Likewise.
2031 (legitimize_tls_address): Likewise.
2032 (s390_split_branches): Likewise.
2033 (s390_dump_pool): Likewise.
2034 (s390_mainpool_finish): Likewise.
2035 (s390_chunkify_start): Likewise.
2036 (s390_select_rtx_section): Likewise.
2037 * config/s390/s390.md ("doloop_si"): Likewise.
2038 ("pool_start_31", "pool_end_31"): Likewise.
2039 ("pool_start_64", "pool_end_64"): Likewise.
2040 ("main_base_31_small", "main_base_31_large"): Likewise.
2041 ("main_base_64"): Likewise.
2042 ("reload_base_31", "reload_base_64"): Likewise.
2043 ("*movsi_larl"): New insn.
2044 ("cjump", "icjump"): Use long branches on zSeries machines.
2045 ("jump"): Likewise.
2046 ("call"): Use BRASL on zSeries machines.
2047 ("call_value", "call_value_tls"): Likewise.
bf7a697f 2048 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9e8327e3
UW
2049 and replace by ...
2050 ("*bras", "*brasl", "*basr") ... these new insns.
bf7a697f 2051 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9e8327e3
UW
2052 "bas_31_r"): Remove and replace by ...
2053 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
bf7a697f 2054 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9e8327e3
UW
2055 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
2056 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
2057 ("*return_si", "*return_di"): Remove and replace by ...
2058 ("*return"): ... this new insn.
2059 ("rotlsi3"): Allow on zSeries machines.
2060
2061 * config/s390/s390.c (legitimize_reload_constant_p): Use
2062 LL/LH type instructions in z/Architecture mode.
2063 * config/s390/s390.md ("*movsi_lli"): Likewise.
2064 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
2065 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
2066 ("*extendqisi2"): Use LB in z/Architecture mode.
bf7a697f 2067 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9e8327e3 2068 z/Architecture mode.
bf7a697f 2069 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9e8327e3 2070 Likewise.
bf7a697f 2071
9e8327e3
UW
2072 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
2073 and 31-bit mode.
2074 ("ptr_extend"): Allow only in 64-bit mode.
2075
0d037580
DJ
20762003-08-27 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
2079 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
2080 definitions.
2081 (main): Only use standard_startfile_prefix if native.
2082 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
2083
75ee800b
PB
20842003-08-27 Per Bothner <pbothner@apple.com>
2085
2086 * cpperror.c (print_location): Don't check for !pfile->buffer. That
2087 test fails following my 08-21 change, and it seems unnecessary anyway.
2088 (cpp_error): Likewise.
2089
138ca312
JM
20902003-08-27 Jason Merrill <jason@redhat.com>
2091
2092 * real.c (do_multiply): Initialize with memset.
2093
3d7ca167
ZD
20942003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2095
2096 * gcov.c (typedef struct arc_info): New field cs_count.
2097 (accumulate_line_counts): Find cycles correctly.
2098
5af2f3d3
UW
20992003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2100
2101 * config/s390/s390.c (struct machine_function): Remove member
2102 literal_pool_label.
bf7a697f 2103 (s390_optimize_prolog): Replace TEMP_REG argument with
5af2f3d3 2104 TEMP_USED and BASE_USED. Do not check get_pool_size ().
bf7a697f
ZW
2105 (general_s_operand): Accept all immediates before reload if
2106 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
5af2f3d3
UW
2107 references.
2108 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
2109 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
2110 (s390_alloc_pool): New function.
2111 (s390_new_pool): Call it.
2112 (s390_dump_pool): Add REMOTE_LABEL argument.
bf7a697f 2113 (s390_chunkify_start): Add BASE_REG argument. Do not check
5af2f3d3 2114 get_pool_size ().
bf7a697f 2115 (s390_chunkify_finish): Add BASE_REG argument. Adapt
5af2f3d3
UW
2116 s390_dump_pool call.
2117 (s390_pool_count, s390_nr_constants): Remove.
2118 (s390_output_constant_pool): Remove.
2119 (s390_mainpool_start): New function.
2120 (s390_mainpool_finish): New function.
2121 (s390_mainpool_cancel): New function.
2122 (s390_reorg): Implement main literal pool handling.
bf7a697f 2123 (s390_emit_prologue): Emit main_pool placeholder instead of
5af2f3d3
UW
2124 literal_pool_31 / literal_pool_64 insns.
2125 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
2126 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
2127 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
2128 ("main_base_31_small", "main_base_31_large"): New insns.
2129 ("main_base_64", "main_pool"): New insns.
2130 ("literal_pool_31", "literal_pool_64"): Remove.
2131
036e07f2
NN
21322003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
2133
2134 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
2135 fixinc.ptx.
2136 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
2137 Prettify a little.
2138 * fixinc/fixincl.x: Regenerate.
2139
4202ce82
RE
21402003-08-27 Richard Earnshaw <rearnsha@arm.com>
2141
2142 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
2143 (L_ieee754_dp): New. Include ieee754-df.S.
2144 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
2145 and compilation in apcs-26 mode.
2146 * arm/ieee754-df.S: Likewise.
2147 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
2148 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
2149
21502003-08-27 Nicolas Pitre <nico@cam.org>
2151
2152 * arm/ieee754-sf.S: New.
2153 * arm/ieee754-df.S: New.
2154
b7bc76e3
JJ
21552003-08-27 Jakub Jelinek <jakub@redhat.com>
2156
2157 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
2158 and restore it if returning NULL.
2159
648bb159
RS
21602003-08-27 Richard Sandiford <rsandifo@redhat.com>
2161
2162 * calls.c (initialize_argument_information): If an argument has no
2163 stack space associated with it, and BLOCK_REG_PADDING is defined,
2164 use it to decide at which end the argument should be padded.
2165 * function.c (assign_parms): Allocate BLKmode stack slots.
2166 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
2167 (mips_pad_reg_upward): Declare.
2168 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
2169 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
2170 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
2171 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
2172 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
2173 (mips_expand_call): Remove code for generating structure shifts.
2174 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
2175 types unless using the EABI.
2176 (function_arg_advance): Don't generate shift instructions.
2177 (function_arg): Don't return them. Don't short-circuit the
2178 check for double structure chunks for DFmode arguments.
2179 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
2180 (mips_expand_prologue): Remove code to emit structure shifts.
2181 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
2182 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
2183 comments to say that only structure returns are a problem.
2184
228e7b62
NN
21852003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
2186
88f505f6
NN
2187 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
2188 Fix to match produced versions.
2189 * fixinc/inclhack.def (longlong_t): New disabled test, ported
2190 from fixinc.svr4.
7309576c
NN
2191 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
2192 from fixinc.ptx.
bf7a697f
ZW
2193 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
2194 ported from fixinc.ptx.
2195
dc3786d8
PB
21962003-08-26 Per Bothner <pbothner@apple.com>
2197
2198 * cpplib.h (struct cpp_token): Change type of field line to fileline.
2199 (cpp_error_with_line): Use fileline for appropriate parameter.
2200 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
2201 (struct cpp_reader): Likewise for fields line and directive_line.
2202 (_cpp_begin_message): Use fileline for appropriate parameter.
2203 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
2204 cpp_error): Use fileline for appropriate parameters and variables.
2205 (print_location): New local lin, since it is not a fileline.
2206
00229de4
RS
22072003-08-26 Roger Sayle <roger@eyesopen.com>
2208
2209 PR middle-end/12002
2210 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
2211 (FLOAT_TYPE_P): Define in terms of these two new macros.
2212 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
2213 for complex floating point types.
2214
b41ead3e
UW
22152003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2216
2217 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
bf7a697f 2218 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
b41ead3e
UW
2219 s390_output_pool_entry.
2220
c2f523ea
NN
22212003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
2222
bf7a697f
ZW
2223 * fixinc/inclhack.def (svr4_preproc_lint_on,
2224 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
c2f523ea
NN
2225 fixes, ported from fixinc.svr4.
2226
e158a5fb
MM
22272003-08-26 Mark Mitchell <mark@codesourcery.com>
2228
2229 * doc/install.texi (Prerequisites): Mention GNU make requirement.
2230
2231 * Makefile.in (AR_FOR_TARGET): Export it.
2232 (AR_CREATE_FOR_TARGET): Likewise.
2233 (AR_FLAGS_FOR_TARGET): Likewise.
2234 (AR_EXTRACT_FOR_TARGET): Likewise.
2235 (AWK): Likewise.
2236 (BUILD_PREFIX): Likewise.
2237 (BUILD_PREFIX_1): Likewise.
2238 (DESTDIR): Likewise.
2239 (GCC_FOR_TARGET): Likewise.
2240 (INCLUDES): Likewise.
2241 (INSTALL_DATA): Likewise.
2242 (LIB1ASMSRC): Likewise.
2243 (LIBGCC2_CFLAGS): Likewise.
2244 (MACHMODE_H): Likewise.
2245 (NM_FOR_TARGET): Likewise.
2246 (RANLIB_FOR_TARGET): Likewise.
2247 (libsubdir): Likewise.
2248 (slibdir): Likewise.
2249 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
2250 exporting.
2251 (libgcc.a): Don't pass them here.
2252 (stmp-multilib): Or here.
2253 (install-libgcc): Or here.
2254 (install-multilib): Or here.
2255 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
2256 (stage1_build): Or here.
2257
288e517f
AK
22582003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2259
2260 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
2261 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
2262
a1b892b5
AK
22632003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2264
bf7a697f 2265 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
a1b892b5
AK
2266 "*fmaddsf", "*fmsubsf"): New insns.
2267
e3232933
RS
22682003-08-26 Roger Sayle <roger@eyesopen.com>
2269
2270 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
2271 (C1*C2)/X when unsafe math optimizations are allowed.
2272 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
2273 math optimizations. Minor code clean-ups. Recursively call
2274 fold when constructing sub-expressions.
2275
cf42869d
RS
22762003-08-26 Roger Sayle <roger@eyesopen.com>
2277
2278 * builtins.c (fold_builtin_bitop): New function to perform constant
2279 folding of ffs, clz, ctz, popcount and parity builtin functions
2280 and their long and long long variants (such as ffsl and ffsll).
2281 (fold_builtin): fold_builtin_bitop when appropriate.
2282 * simplify-rtx.c (simplify_unary_operation): Honor both
2283 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
2284 evaluating clz and ctz at compile-time, for operands wider
2285 than HOST_WIDE_INT.
2286
d128effb
NS
22872003-08-26 Nathan Sidwell <nathan@codesourcery.com>
2288
20b50672
NS
2289 * builtins.c (build_function_call_expr): Don't set
2290 TREE_SIDE_EFFECTS here.
2291 * expr.c (emit_block_move_via_libcall): Likewise.
2292 (clear_storage_via_libcall): Likewise.
2293 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
2294 CALL_EXPRs.
bf7a697f 2295
d128effb
NS
2296 * gcse.c (is_too_expensive): New function.
2297 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
2298
7e2055ec
ZW
22992003-08-25 Zack Weinberg <zack@codesourcery.com>
2300
2301 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
2302 commented-out logic to use DCE threads (if present), add
2303 support for POSIX threads.
2304 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
2305 #defines for -pthread. Add -lpthread to LIB_SPEC when
2306 -pthread. In both cases take -mt as a synonym for -pthread
2307 for acc compatibility.
2308 Define GTHREAD_USE_WEAK to 0.
2309 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
2310 Remove old logic for DCE threads from LIB_SPEC.
2311 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
2312
8634629b
RS
23132003-08-25 Roger Sayle <roger@eyesopen.com>
2314
2315 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
2316 return 0 for invalid argument types. Instead drop through to a
2317 call of expand_call at the bottom of function. If op is SQRT,
2318 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
2319
0d433a6a
RH
23202003-08-25 Richard Henderson <rth@redhat.com>
2321
2322 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
2323 result when op0 is SImode.
7e2055ec 2324
1d109416
NN
23252003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
2326
2327 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
2328 from fixinc.svr4.
2329 * fixinc/fixincl.x: Regenerate.
2330 * fixinc/tests/base/sys/signal.h: Regenerate.
2331
dc5c3188
UW
23322003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2333
2334 * combine.c (simplify_comparison): Re-enable widening of comparisons
2335 with non-paradoxical subregs of non-REG expressions.
2336
b01e3e38
UW
23372003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2338
2339 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
2340
c6279378
UW
23412003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2342
2343 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
2344
12ea3302
GDR
23452003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2346
2347 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
2348 * c-pretty-print.h (c_pretty_printer): Now typedef to the
2349 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
2350 (struct c_pretty_print_info): Document. Add new fields.
2351 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
2352 (pp_direct_abstract_declarator): New macro.
2353 (pp_ptr_operator): Likewise.
2354 (pp_simple_type_specifier): Likewise.
2355 (pp_expression): Likewise.
2356 (pp_parameter_list): Rename from pp_parameter_declaration.
2357 * c-pretty-print.c (pp_c_whitespace): Now a function.
2358 (pp_c_left_paren): Likewise.
2359 (pp_c_right_paren): Likewise.
2360 (pp_c_dot): Likewise.
2361 (pp_c_ampersand): Likewise.
2362 (pp_c_arrow): Likewise.
2363 (pp_c_semicolon): Likewise.
2364 (pp_c_type_cast): New function.
2365 (pp_c_space_for_pointer_operator): Likewise.
2366 (pp_c_call_argument_list): Likewise.
2367 (pp_c_cv_qualifier): Adjust prototype.
2368 (pp_c_type_qualifier_list): Likewise.
2369 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
2370 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
2371 Adjust to follow standard grammar.
2372 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
2373 REFERENCE_TYPE. Tidy.
2374 (pp_c_parameter_type_list): Adjust prototype. Tidy.
2375 (pp_c_parameter_declaration): Remove.
2376 (pp_c_abstract_declarator): Adjust prototype.
2377 (pp_c_direct_abstract_declarator): Likewise.
2378 (pp_c_type_id): Likewise.
7e2055ec 2379 (pp_c_storage_class_specifier): Likewise.
12ea3302
GDR
2380 (pp_c_function_specifier): Likewise.
2381 (pp_c_declaration_specifiers): Likewise.
2382 (pp_c_direct_declarator): Likewise.
2383 (pp_c_declarator): Likewise.
2384 (pp_c_declarator): Likewise.
2385 (pp_c_declaration): Likewise.
2386 (pp_c_attributes): Likewise. Tidy.
2387 (pp_c_function_definition): Adjust prototype.
2388 (pp_c_char): Likewise.
2389 (pp_c_string_literal): Likewise.
2390 (pp_c_integer_constant): Likewise.
2391 (pp_c_character_constant): Likewise.
2392 (pp_c_bool_constant): Likewise.
2393 (pp_c_enumeration_constant): Likewise.
2394 (pp_c_floating_constant): Likewise.
2395 (pp_c_constant): Likewise.
2396 (pp_c_identifier): Likewise.
2397 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
2398 (pp_c_initializer): Adjust prototype.
2399 (pp_c_init_declarator): Likewise.
2400 (pp_c_initializer_list): Likewise.
2401 (pp_c_id_expression): Likewise.
2402 (pp_c_postfix_expression): Likewise.
2403 (pp_c_expression_list): Likewise.
2404 (pp_c_unary_expression): Likewise.
2405 (pp_c_cast_expression): Likewise.
2406 (pp_c_multiplicative_expression): Likewise.
2407 (pp_c_additive_expression): Likewise.
2408 (pp_c_shift_expression): Likewise.
2409 (pp_c_relational_expression): Likewise.
2410 (pp_c_equality_expression): Likewise.
2411 (pp_c_and_expression): Likewise.
2412 (pp_c_exclusive_or_expression): Likewise.
2413 (pp_c_inclusive_or_expression): Likewise.
2414 (pp_c_logical_and_expression): Likewise.
2415 (pp_c_logical_or_expression): Likewise.
2416 (pp_c_conditional_expression): Likewise.
2417 (pp_c_assignment_expression): Likewise.
2418 (pp_c_expression): Likewise. Tidy.
2419 (pp_c_statement): Likewise. Document.
2420 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
2421
2422 * c-lang.c (c_initialize_diagnostics): Update.
2423 * c-common.h (strip_pointer_operator): Declare.
2424 * c-common.c (strip_pointer_operator): Define.
2425
43dc123f
MM
24262003-08-25 Mark Mitchell <mark@codesourcery.com>
2427
2428 PR c++/8795
2429 * tree.h (build_method_type_directly): Declare.
2430 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
2431 (vector_size_helper): Likewise.
2432 * tree.c (build_method_type_directly): New function.
2433 (build_method_type): Use it.
2434
a30b6839
RH
24352003-08-24 Richard Henderson <rth@redhat.com>
2436
2437 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
2438 for 16-byte vector modes if sse not enabled; warn for abi change.
2439 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
2440
30c3267c
KH
24412003-08-24 Kazu Hirata <kazu@cs.umass.edu>
2442
2443 * rtlanal.c (may_trap_p): Simplify an integer comparison.
2444
791996d1
NN
24452003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
2446
2447 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
2448 comment. Enable for DYNIX/ptx systems (when they switch to
2449 regular fixincludes).
2450 * fixinc/fixincl.x: Regenerate.
2451
b882d60d
JE
24522003-08-23 Jason Eckhardt <jle@rice.edu>
2453
2454 * config/i860/t-i860: New.
2455 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
2456
61c234ce
JJ
24572003-08-23 Jakub Jelinek <jakub@redhat.com>
2458
2459 * c-decl.c (pushdecl): Only put decls which finish_struct will do
2460 something about onto incomplete chain.
2461 (finish_struct): If not removing type from incomplete
2462 list, update prev.
2463
602a82f3 24642003-08-20 Jan Hubicka <jh@suse.cz>
ebe75517
JH
2465
2466 PR target/11369
2467 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
2468
2469 PR target/11031
2470 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
2471 const_0_to_15_operand, const_0_to_255_operand): New predicates.
2472 * i386.h (PREDICATE_CODES): Add these.
2473 * i386.c (pinsrw and pextrw patterns): Use them.
2474
2475 PR target/10984
2476 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
2477
2478 PR target/8869
2479 * expr.c (convert_modes): Deal properly with integer to vector
2480 constant conversion.
2481
2482 PR target/8871
2483 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
2484
02ed3c5e
UW
24852003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2486
2487 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
2488 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
2489 ("*movhi"): ... this.
2490 ("movqi", "*movqi"): Likewise.
2491 ("movqi_64"): Remove.
2492 ("*zero_extendhisi2_31"): Change predicate to s_operand.
2493
643642eb
DJ
24942003-08-23 Dale Johannesen <dalej@apple.com>
2495 * calls.c (emit_library_call_value_1): Fix obvious errors in
f346cc37 2496 arguments to emit_group_store.
643642eb 2497
edf11bda
JE
24982003-08-23 Jason Eckhardt <jle@rice.edu>
2499
2500 * calls.c (emit_library_call_value_1): Remove code related
2501 to LIBGCC_NEEDS_DOUBLE.
2502 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
2503 * doc/tm.texi: Likewise.
2504 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
2505
e2a188b2
RS
25062003-08-23 Richard Sandiford <rsandifo@redhat.com>
2507
2508 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
2509
520d96c6
RS
25102003-08-23 Richard Sandiford <rsandifo@redhat.com>
2511
2512 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
2513 as well. Put memory references in the varargs alias set.
2514 (mips_expand_prologue): Remove varargs handling from here.
2515
47798692
UW
25162003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2517
2518 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
2519 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
2520 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
2521 for function pointer calls.
2522 * config/s390/s390.md ("*negdi2_31"): Likewise.
2523
a0209ac2
RS
25242003-08-23 Roger Sayle <roger@eyesopen.com>
2525
2526 * combine.c (apply_distributive_law): Correct comment.
2527
fe232263
JE
25282003-08-23 Jason Eckhardt <jle@rice.edu>
2529
2530 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
2531
5dab8d92
JE
25322003-08-22 Jason Eckhardt <jle@rice.edu>
2533
2534 * config/i860/i860.c (i860_build_va_list): Create the va_decl
2535 declaration. Document the va_list structure.
2536 (i860_va_start): Initialize the va_list structure.
2537 (i860_va_arg): Rewrite completely.
2538 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
2539 * config/i860/varargs.asm: Do not allocate or initialize
2540 a va_list. Return the address of the register save area.
2541
2cac216b
KH
25422003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2543
2544 * config/iq2000/iq2000.c: Fix comment typos.
2545 * config/iq2000/iq2000.md: Likewise.
2546
4375e090
KH
25472003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2548
2549 * config/iq2000/iq2000.c: Follow spelling conventions.
2550 * config/iq2000/iq2000.h: Likewise.
2551 * config/mn10300/mn10300.c: Likewise.
2552
a36b8cb8
JE
25532003-08-22 Jason Eckhardt <jle@rice.edu>
2554
2555 * config/i860/i860.c (output_move_double): Don't set latehalf
2556 to zero for CONST_INT (since it could be, e.g., -1).
2557
2558 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
2559 (MODSI3_LIBCALL): ...with this one.
2560 (UREMSI3_LIBCALL): Replace this macro...
2561 (UMODSI3_LIBCALL): ...with this one.
2562
89520fd7
JE
25632003-08-22 Jason Eckhardt <jle@rice.edu>
2564
2565 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
2566 (output_delayed_branch): Remove prototype.
2567 (single_insn_src_p): Remove prototype.
2568 * config/i860/i860.c (single_insn_src_p): Remove function.
2569 (output_delayed_branch): Remove function.
2570 (output_delay_insn): Remove function.
2571 (va_start): Remove unconditional test and dead code, re-format.
2572 Fix coding style and spelling problems in various comments.
2573 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
2574 (blockage pattern): ...and use it here.
2575 (all define_peephole patterns related to delayed branches): Remove.
2576 Fix coding style and spelling problems in various comments.
2577
8274e603
JE
25782003-08-22 Jason Eckhardt <jle@rice.edu>
2579
2580 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
2581 Remove all uses of the PARAMS macro. Remove superflous prototypes.
2582 Convert all function definitions from traditional to ISO C90 syntax.
2583 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
2584 with 'GCC'. Remove all uses of the PARAMS macro.
2585 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
2586 * config/i860/i860.md: Likewise.
2587 * config/i860/sysv4.h: Likewise.
2588 * config/i860/varargs.asm: Likewise.
2589
cfbdb830
JE
25902003-08-22 Jason Eckhardt <jle@rice.edu>
2591
2592 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
2593 argument.
2594 (tdesc_section): Add prototype.
2595 Update copyright dates.
2596 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
2597 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
2598 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
2599 (targetm): Likewise.
2600 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
2601 for '%d' where necessary.
2602 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
2603 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
2604 by UNITS_PER_WORD when referencing (likewise for .floats).
2605 (I860_SVR4_VARARGS): Rename...
2606 (I860_SVR4_VA_LIST): ...to this.
2607 Call build() with 't' rather than 'field'.
2608 (i860_rtx_costs): New function.
2609 (TARGET_RTX_COSTS): Define.
2610 (i860_internal_label): New function.
2611 (TARGET_ASM_INTERNAL_LABEL): Define.
2612 (i860_file_start): New function.
2613 Update copyright dates.
2614 * config/i860/i860.h (CPP_PREDEFINES): Remove.
2615 (TARGET_CPU_CPP_BUILTINS): Define.
2616 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
2617 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
2618 (ASM_FILE_START): Remove.
2619 (ASM_FILE_START_1): Remove.
2620 (ASM_GLOBALIZE_LABEL): Remove.
2621 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
2622 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
2623 with targetm.asm_out.internal_label.
2624 Update copyright dates.
2625 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
2626 (CPP_PREDEFINES): Remove.
2627 (TARGET_OS_CPP_BUILTINS): Define.
2628 (GLOBAL_ASM_OP): Define.
2629 (ASM_FILE_START): Remove.
2630 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
2631 (TARGET_ASM_FILE_START): Define.
2632 Update copyright dates.
2633
e1567352
JE
26342003-08-22 Jason Eckhardt <jle@rice.edu>
2635
a36b8cb8 2636 * gcc/config.gcc (i860-*-sysv4*): Add target.
e1567352
JE
2637 * config/i860/i860-protos.h: New.
2638 * config/i860/i860.c: New.
2639 * config/i860/i860.h: New.
2640 * config/i860/i860.md: New.
2641 * config/i860/sysv4.h: New.
2642 * config/i860/varargs.asm: New.
2643 * config/i860/x-sysv4: New.
2644
b7849684
JE
26452003-08-22 Jason Eckhardt <jle@rice.edu>
2646
2647 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
2648 Remove all uses of PARAMS macro.
2649 Convert all function definitions to ISO C90 syntax.
2650 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
2651 * config/pa/fptr.c: Likewise.
2652 * config/pa/lib2funcs.asm: Likewise.
2653 * config/pa/long_double.h: Likewise.
2654 * config/pa/milli64.S: Likewise.
2655 * config/pa/pa-64.h: Likewise.
2656 * config/pa/pa-hpux.h: Likewise.
2657 * config/pa/pa-hpux10.h: Likewise.
2658 * config/pa/pa-hpux11.h: Likewise.
2659 * config/pa/pa-linux.h: Likewise.
2660 * config/pa/pa-modes.def: Likewise.
2661 * config/pa/pa-osf.h: Likewise.
2662 * config/pa/pa-pro-end.h: Likewise.
2663 * config/pa/pa.md: Likewise.
2664 * config/pa/pa32-linux.h: Likewise.
2665 * config/pa/pa64-linux.h: Likewise.
2666 * config/pa/pa64-hpux.h: Likewise.
2667 * config/pa/pa64-regs.h: Likewise.
2668 * config/pa/quadlib.c: Likewise.
2669 * config/pa/rtems.h: Likewise.
2670 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
7e2055ec 2671 all uses of the PARAMS macro.
b7849684
JE
2672 * config/pa/pa.h: Likewise.
2673 * config/pa/som.h: Likewise.
2674
7e2055ec
ZW
2675 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
2676 Remove all uses of PARAMS macro.
2677 Convert all function definitions to ISO C90 syntax.
b7849684 2678 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
7e2055ec 2679 Remove all uses of PARAMS macro.
b7849684 2680 * config/iq2000.h: Remove all uses of PARAMS macro.
7e2055ec 2681 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
b7849684 2682
416cf582
UW
26832003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2684
2685 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
2686 * config/s390/s390.c (gen_consttable): Remove.
2687 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
2688 (s390_output_pool_entry): New function.
7e2055ec
ZW
2689 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
2690 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
416cf582
UW
2691 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
2692 (UNSPECV_POOL_ENTRY): ... this new constant.
2693 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2694 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
2695 ("*pool_entry"): ... and replace by this new insn.
2696 ("literal_pool_31"): Do not emit anchor label if pool empty.
2697
2698 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
2699 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
2700 (s390_fixup_clobbered_return_reg): Remove.
2701 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
2702 (s390_return_addr_rtx): Always retrieve return address from save area
2703 slot. Use save_return_addr_p to force slot to be filled.
2704 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
2705
beadc644
CD
27062003-08-22 Chris Demetriou <cgd@broadcom.com>
2707
2708 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
2709 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
2710 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
2711 around SB-1 errata if TARGET_FIX_SB1 is set.
2712 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
2713 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
2714
4ae2e3e9
RS
27152003-08-22 Roger Sayle <roger@eyesopen.com>
2716
2717 * hashtable.c (ht_expand): Avoid calculating rehash for the common
2718 case that the first probe hits an empty hash table slot.
2719
74487c57
MM
27202003-08-22 Mark Mitchell <mark@codesourcery.com>
2721
2722 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
2723
36c216e5
MM
27242003-08-22 Mark Mitchell <mark@codesourcery.com>
2725
2726 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
2727 (ptr_extend_plus_imm): ... this.
2728 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
2729 optimization in C++.
2730 (ia64_output_mi_thunk): Support ILP32 mode.
2731
dfb03c45 27322003-08-22 Bernardo Innocenti <bernie@develer.com>
02ac9ec6
BI
2733
2734 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
2735 function.
2736 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
2737
dac4a0de
KH
27382003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2739
2740 * config/i386/i386.c (const_int_1_operand): Simplify an
2741 integer comparison.
2742
65dbc870
AM
27432003-08-22 Alan Modra <amodra@bigpond.net.au>
2744
2745 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
2746 * config/rs6000/ppc64-fp.c: Likewise.
2747
dcc24678
KH
27482003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2749
2750 * cfgcleanup.c: Fix comment typos.
2751 * emit-rtl.c: Likewise.
2752 * optabs.c: Likewise.
2753 * ra-build.c: Likewise.
2754 * rtlanal.c: Likewise.
2755 * tree.h: Likewise.
2756
beb235f8
KH
27572003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2758
2759 * c-decl.c: Fix comment formatting.
2760 * cfgrtl.c: Likewise.
2761 * combine.c: Likewise.
2762 * convert.c: Likewise.
2763 * dominance.c: Likewise.
2764 * dwarf2out.c: Likewise.
2765 * dwarfout.c: Likewise.
2766 * expmed.c: Likewise.
2767 * fold-const.c: Likewise.
2768 * gcov.c: Likewise.
2769 * genattrtab.c: Likewise.
2770 * ggc-common.c: Likewise.
2771 * mips-tfile.c: Likewise.
2772 * regmove.c: Likewise.
2773
2b72593e
KH
27742003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2775
2776 * builtin-attrs.def: Fix comment formatting.
2777 * c-pretty-print.c: Likewise.
2778 * diagnostic.h: Likewise.
2779 * langhooks.h: Likewise.
2780 * recog.c: Likewise.
2781 * simplify-rtx.c: Likewise.
2782 * tree.def: Likewise.
2783
8a4a2253
BI
27842003-08-22 Bernardo Innocenti <bernie@develer.com>
2785
2786 * config/m68k/m68k-protos.h: Convert to ISO C90.
2787 * config/m68k/m68k.c: Likewise.
2788
eb849993 27892003-08-21 Bernardo Innocenti <bernie@develer.com>
7e2055ec
ZW
2790 Paul Dale <pauli@snapgear.com>
2791 Peter Barada <peter@baradas.org>
eb849993
BI
2792
2793 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
2794 ColdFire cores.
2795
ca11c37c
ZW
27962003-08-21 Zack Weinberg <zack@codesourcery.com>
2797
2798 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
2799 * config.gcc (*-*-openbsd): Don't set tm_file.
2800 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
2801 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
2802 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
2803 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
2804 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
2805 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
2806 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
2807 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
2808 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
2809 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
2810 xscale-*-coff): Use explicit and complete lists of target headers
2811 to include. Move definitions to tm_defines where appropriate.
2812 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
2813 not-yet-contributed configuration.
2814
2815 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
2816 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
2817 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
2818 * config/i386/nto.h, config/iq2000/iq2000.h,
2819 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
2820 * config/m68k/linux.h, config/m68k/m68k-aout.h
2821 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
2822 * config/m68k/netbsd.h, config/m68k/openbsd.h
2823 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
2824 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
2825 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
2826 Remove includes of other target config headers, and
2827 definitions of macros moved to tm_defines lists. Add #undefs
2828 where now necessary to prevent redefinition warnings.
2829
2830 * config/h8300/coff.h: New file split out of...
2831 * config/h8300/elf.h: ...here.
2832 * config/m68k/hp320base.h: New file split out of...
2833 * config/m68k/hp320.h: ...here.
2834 * config/rs6000/lynxbase.h: New file split out of...
2835 * config/rs6000/lynx.h: ...here.
2836
2837 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
2838 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
2839
2840 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
2841 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
2842 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
2843 Remove unnecessary #ifndef.
2844 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
2845 [under IN_LIBGCC2] with config/.
2846
75ee800b 28472003-08-21 Per Bothner <pbothner@apple.com>
ac650a0a
PB
2848
2849 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
2850 to cpp_push_buffer.
2851 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
2852 by return_at_eof check. Always call _cpp_pop_buffer at end.
2853
43c446b8
KH
28542003-08-21 Kazu Hirata <kazu@cs.umass.edu>
2855
2856 PR target/11805
2857 * config/h8300/h8300.md (two anonymous patterns): Remove.
2858
7bc22451
RS
28592003-08-21 Richard Sandiford <rsandifo@redhat.com>
2860
2861 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
2862 * config/mips/mips.c (function_arg_pass_by_reference): Never return
2863 true for n32 & n64.
2864
ed6f90f7
JZ
28652003-08-21 Josef Zlomek <zlomekj@suse.cz>
2866
2867 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
2868 and similarly in (A | C) == D where C & ~D != 0.
2869
e50084fa
GK
28702003-08-20 Geoffrey Keating <geoffk@apple.com>
2871
2872 PR 8180
2873 * configure.in: When testing with_libs and with_headers, treat
2874 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
2875 * configure: Regenerate.
ca11c37c 2876
e50084fa 28772003-08-20 Peter Barada <peter@baradas.org>
bab4470d
PB
2878
2879 * longlong.h (umul_ppmm): Add ColdFire support.
2880
e50084fa 28812003-08-20 Peter Barada <peter@baradas.org>
ca11c37c 2882 Bernardo Innocenti <bernie@develer.com>
9425fb04
PB
2883
2884 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
2885 * config/m68k/m68k.h: Likewise.
2886 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
2887 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
2888 * config/m68k/linux.h: Likewise.
2889 * config/m68k/m68k.c: Likewise.
2890 * config/m68k/m68k.md: Likewise.
2891 * config/m68k/m68kelf.h: Likewise.
2892 * config/m68k/netbsd-elf.h: Likewise.
2893 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
2894
d1b87863
BI
28952003-08-20 Bernardo Innocenti <bernie@develer.com>
2896
2897 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
2898 * config/m68k/m68k.md: Likewise.
2899
b6343a33
MM
29002003-08-20 Mark Mitchell <mark@codesourcery.com>
2901
2902 PR java/11996
2903 Revert this change:
2904 2003-08-19 Mark Mitchell <mark@codesourcery.com>
2905 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2906 types with precisions other than those given by native machine
2907 modes.
2908
bf4563cb
GN
29092003-08-20 Gunther Nikl <gni@gecko.de>
2910
2911 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
2912 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
2913 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
2914 * config/m68k/m68k.md (anonymous define_insn): Likewise
2915 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
2916 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
2917 code selected by NO_ASM_FMOVECR
2918
0fb8241d
GN
29192003-08-20 Gunther Nikl <gni@gecko.de>
2920
2921 * config/m68k/m68k.c (output_move_const_into_data_reg,
2922 output_move_himode): unify MOTOROLA/MIT handling of moveq
2923 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
2924 Likewise
2925
c23b0b90
GN
29262003-08-20 Gunther Nikl <gni@gecko.de>
2927
2928 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
2929 label name
2930 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
2931 HOST_WIDE_INT_PRINT_DEC with %wd
2932
9e68a9dc
LR
29332003-08-20 Loren James Rittle <ljrittle@acm.org>
2934
2935 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
2936 redefine warning.
2937
2cf099a5
RS
29382003-08-20 Roger Sayle <roger@eyesopen.com>
2939
2940 PR middle-end/11984
2941 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
2942 operands before calling tree_int_cst_lt when performing associative
2943 transformations.
2944
68ad9159
JM
29452003-08-20 Jason Merrill <jason@redhat.com>
2946
2947 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
2948 (EXPR_CHECK): Don't check for 'r' or 's' if we're
2949 checking IS_EXPR_CODE_CLASS.
2950 * calls.c (calls_function_1): Likewise.
2951 * fold-const.c (fold): Likewise.
2952 * tree.c (iterative_hash_expr): Likewise.
2953 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
2954
c8e60672
GN
29552003-08-20 Gunther Nikl <gni@gecko.de>
2956
2957 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
2958 depending on MOTOROLA_BSR
2959 * config/m68k/m68k.md (anonymous define_insn): Likewise
2960
3acef2ae
JM
29612003-08-20 Jason Merrill <jason@redhat.com>
2962
2f503025 2963 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
ca11c37c 2964 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
2f503025
JM
2965 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
2966 * dojump.c (do_jump): Likewise.
2967 * fold-const.c (operand_equal_p, fold): Likewise.
2968 (tree_expr_nonnegative_p): Likewise.
2969
3acef2ae
JM
2970 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
2971 TYPE_USER_ALIGN for FIELD_DECLs.
ca11c37c 2972
3acef2ae
JM
2973 * attribs.c (decl_attributes): Rebuild the function pointer type after
2974 changing the target type.
2975 * tree.c (get_qualified_type): Also check that the attributes match.
2976
8f7d850c
MK
29772003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
2978
2979 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
2980 * objc/config-lang.in (stagestuff): ... to here.
2981
4b0d3cbe
MM
29822003-08-19 Mark Mitchell <mark@codesourcery.com>
2983
2984 PR c++/11946
2985 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
2986 NOP_EXPR) when necessary.
2987 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2988 types with precisions other than those given by native machine
2989 modes.
2990
3a7e8b87
GK
29912003-08-19 Geoffrey Keating <geoffk@apple.com>
2992
ccc01444
GK
2993 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
2994 because some macro is defined.
2995
3a7e8b87
GK
2996 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
2997 options.
2998 * config/i386/darwin.h (ASM_SPEC): New.
2999 (SUBTARGET_EXTRA_SPECS): New.
3000 * config/rs6000/darwin.h (ASM_SPEC): New.
3001 (SUBTARGET_EXTRA_SPECS): New.
3002 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
3003 a cross-compiler between two different processors on Darwin.
3004 * configure: Regenerate.
3005
a98ebe2e
KH
30062003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3007
3008 * builtins.c: Fix comment typos.
3009 * c-common.c: Likewise.
3010 * c-decl.c: Likewise.
3011 * c-pretty-print.c: Likewise.
3012 * cfgbuild.c: Likewise.
3013 * cfglayout.c: Likewise.
3014 * cfgloopanal.c: Likewise.
3015 * cgraphunit.c: Likewise.
3016 * cppfiles.c: Likewise.
3017 * dwarfout.c: Likewise.
3018 * expr.c: Likewise.
3019 * fold-const.c: Likewise.
3020 * gcse.c: Likewise.
3021 * ggc-page.c: Likewise.
3022 * haifa-sched.c: Likewise.
3023 * pretty-print.c: Likewise.
3024 * tree.c: Likewise.
3025 * tree.h: Likewise.
3026 * value-prof.c: Likewise.
3027
02fa63cd
KH
30282003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3029
3030 * c-decl.c: Follow spelling conventions.
3031 * cppfiles.c: Likewise.
3032
59e4e217
KH
30332003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3034
3035 * c-common.c: Fix comment formatting.
3036 * c-common.h: Likewise.
3037 * c-decl.c: Likewise.
3038 * cppinit.c: Likewise.
3039 * cpplib.h: Likewise.
3040 * emit-rtl.c: Likewise.
3041 * input.h: Likewise.
3042 * line-map.h: Likewise.
3043 * opts.c: Likewise.
3044 * opts.h: Likewise.
3045 * simplify-rtx.c: Likewise.
3046
1ee93c1b
DJ
30472003-08-19 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * unwind-c.c: Add libgcc-style exception.
3050 * unwind-dw2.c: Likewise.
3051 * unwind-pe.h: Likewise.
3052 * unwind-sjlj.c: Likewise.
3053 * unwind.inc: Likewise.
3054
f5e7af77
AP
30552003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3056
3057 PR c/5582 PR c++/10538
3058 * langhooks-def.h (lhd_decl_uninit): Declare.
3059 (LANG_HOOKS_DECL_UNINIT): New macro.
3060 (LANG_HOOKS_INITIALIZER): Adjust.
3061 * langhooks.h (struct lang_hooks): Add new field
3062 decl_uninit.
3063 * langhooks.c (lhd_decl_uninit): Define.
3064 * c-common.c (c_decl_uninit_1): New function.
3065 (c_decl_uninit): New function.
3066 (warn_init_self): Define.
3067 * c-common.h (c_decl_uninit): Declare.
3068 (warn_init_self): Declare.
3069 * c.opt: Introduce -Winit-self.
3070 * c-opts.c (c_common_handle_options): Set warn_init_self.
3071 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
3072 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
3073 * function.c (uninitialized_vars_warning): Call the language hook.
3074 * doc/invoke.texi: Document -Winit-self.
3075
d68f4cc4
CD
30762003-08-19 Chris Demetriou <cgd@broadcom.com>
3077
3078 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
3079 to use better predicates and constraints. Define new
3080 instruction to handle "trap_if" with DI-mode arguments.
3081 (conditional_trap): FAIL if trap code is not 0.
3082
86ecdfb6
AP
30832003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3084
3085 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
3086 strstr with $pb to a strcompare with "<pic base>"
3087 (ix86_output_addr_diff_elt): Output the real pic base.
3088
fc95cf70
GDR
30892003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3090
3091 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
3092 (LANG_HOOKS_INITIALIZER): Correct.
3093 * c-lang.c: Likewise.
3094
810db579
JH
30952003-08-19 Jan Hubicka <jh@suse.cz>
3096
3097 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
3098 (cgraph_varpool_mark_needed_node): Likewise.
3099 * cgraph.h (notice_global_symbol): Declare
3100 * varasm.c (notice_global_symbol): Break out from ...
3101 (assemble_start_function): ... here; update for variables.
3102 (assemble_variable): Use notice_global_symbol.
3103
fc4fe9e4
RS
31042003-08-19 Richard Sandiford <rsandifo@redhat.com>
3105
3106 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
3107 expect SFmode and DFmode arguments to be passed in FPRs,
3108 regardless of the underlying type.
3109
4b8174ff
RS
31102003-08-19 Richard Sandiford <rsandifo@redhat.com>
3111
3112 PR target/11924
3113 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
3114 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
3115
622adc7e
MK
31162003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
3117
3118 PR c/11207
3119 * c-typeck.c (set_init_index): Check for negative index.
3120
dfccfad9
BW
31212003-08-18 Bob Wilson <bob.wilson@acm.org>
3122
3123 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
3124 call0 ABI.
3125 * config/xtensa/crtn.asm (_init, _fini): Likewise.
3126 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
3127 __umodsi3, __modsi3): Likewise.
3128 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
3129 $(INCLUDES).
3130
fe9c3a97
AH
31312003-08-18 Aldy Hernandez <aldyh@redhat.com>
3132
3133 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
3134
431d5fdd
RS
31352003-08-18 Richard Sandiford <rsandifo@redhat.com>
3136
3137 * config/mips/mips.md: Quote C code in braces. Remove use of
3138 fake const0_rtx operands. Remove double backslashes. Use \;.
3139 Remove workarounds for bogus warnings.
3140
4195786e
RS
31412003-08-18 Richard Sandiford <rsandifo@redhat.com>
3142
3143 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
3144 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
3145 rather than TARGET_MIPS4300.
3146 (mulsf3_internal, mulsf3_r4300): Likewise.
3147
6d4ede5f
RS
31482003-08-18 Richard Sandiford <rsandifo@redhat.com>
3149
3150 * config/mips/mips.md: Renumber unspecs. Clean up comments.
3151
dd61aa98
RS
31522003-08-17 Roger Sayle <roger@eyesopen.com>
3153
3154 * simplify-rtx.c (associative_constant_p): New function to test
3155 whether an RTX expression is an immediate constant.
3156 (simplify_associative_operation): New function to perform some
3157 reassociation optimizations of associative binary expressions.
3158 (simplify_binary_operation): Use simplify_associative_operation
3159 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
3160 Floating point expressions are only reassociated when unsafe
3161 math optimizations are permitted.
3162
9c808aad
AJ
31632003-08-17 Andreas Jaeger <aj@suse.de>
3164
3165 * config/alpha/alpha.md: Remove usage of PARAMS.
3166
3167 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
3168 * config/i386/i386-interix.h: Likewise.
3169 * config/i386/winnt.c: Likewise.
3170 * config/i386/cygming.h: Likewise.
3171 * config/i386/cygwin2.c: Likewise.
3172 * config/darwin.c: Likewise.
3173 * config/darwin-c.c: Likewise.
3174 * config/darwin-protos.h: Likewise.
3175 * config/darwin.h: Likewise.
3176 * config/s390/s390-protos.h: Likewise.
3177 * config/s390/s390.c: Likewise.
3178 * config/ia64/ia64.c: Likewse
3179 * config/ia64/ia64-protos.h: Likewise.
fde46628 3180 * config/ia64/ia64-c.c: Likewise.
9c808aad 3181
e80d5f80
KG
31822003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3183
fc27d102
KG
3184 * config/sparc/sparc.c: Convert to ISO C.
3185
e80d5f80
KG
3186 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
3187 * config/sparc/sparc.c: Likewise.
3188
e895113a
NS
31892003-08-16 Nathan Sidwell <nathan@codesourcery.com>
3190
3191 PR c++/11512
3192 * stmt.c (expand_expr_stmt_value): Don't warn about any void
3193 typed expression.
3194
e767b5be
JH
31952003-08-16 Jan Hubicka <jh@suse.cz>
3196
3197 * i386.c (ix86_fntype_regparm): Rename from ...
3198 (ix86_function_regparm): ... this one; add fastcall and local
3199 functions.
3200 (ix86_function_ok_for_sibcall): Update.
3201 (ix86_return_pops_args): Likewise.
3202 (init_cumulative_args): Likewise.
3203 (x86_can_output_mi_thunk): Likewise.
3204 (function_arg): Fix formating.
3205 (x86_this_parameter): Fix fastcall.
3206 (x86_output_mi_thunk): Likewise.
3207
3208 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
3209 body as reachable; mark nested functions as needed too.
3210 (dump_cgraph): Do not output global.calls.
3211 * cgraph.h (cgraph_global_info): Kill.
3212 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
3213 (record_call_1): Speedup.
3214 (cgraph_analyze_function): Break out from ...; compute inlining
3215 parameters.
3216 (cgraph_finalize_compilation_unit): ... here.
3217 (cgraph_mark_inline): Kill computation of calls.
3218 (cgraph_decide_inlining): Do not compute most of initial values.
3219
8ab49fef
RS
32202003-08-14 Roger Sayle <roger@eyesopen.com>
3221
3222 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
3223 to negate if either operand is easy to negate, if we don't care
3224 about sign-dependent rounding.
3225 (negate_expr): Make the logic to negate a REAL_CST explicit.
3226 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
3227 that's easy to negate, if we don't honor sign-dependent rounding.
3228 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
3229 negate, and the symmetric A * -B as -A * B if A is easy to negate.
3230 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
3231 -C/D if B and C are cheap to negate. Add an explicit rule to
3232 optimize X/-1.0 as -X when we don't care about signaling NaNs.
3233
e22340b0
ZW
32342003-08-14 Zack Weinberg <zack@codesourcery.com>
3235
3236 * Makefile.in (tm_file): Rename tm_include_list.
3237 (tm_p_file): Rename tm_p_include_list.
3238 (build_xm_file): Rename build_xm_include_list.
3239 (host_xm_file): Rename host_xm_include_list.
3240 (xm_file): Rename xm_include_list.
3241 (xm_file_list): Add to be substituted.
3242 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
3243 Update to match.
3244 (bt-load.o): Add missing dependency on $(TM_H).
3245 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
3246 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
3247 build_xm_file, generate both *_file_list and *_include_list
3248 values from it. (xm_file_list was formerly not being generated.)
3249 In *_include_list, prefix the names of all headers found in
3250 $(srcdir)/config with config/. In each loop, consider only
3251 the special case files that can actually appear in that list.
3252 AC_SUBST all *_file_list and all *_include_list variables; do
3253 not AC_SUBST the plain *_file variables.
3254 * configure: Regenerate.
3255
4139675b
ZD
32562003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3257
3258 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
3259
32562302
JDA
32602003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3261
3262 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
3263 direct calls.
3264 (attr_length_call): Include it here. Improve length estimate for
3265 local calls.
3266 (output_call): Use targetm.binds_local_p.
3267
9e46226d
KG
32682003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3269
daa027cc
KG
3270 * builtins.c (CASE_MATHFN): New helper macro.
3271 (mathfn_built_in): Simplify and sort.
3272
9e46226d
KG
3273 * protoize.c (substr): Delete, callers changed to `strstr'.
3274
c5d19037
ZW
32752003-08-13 Zack Weinberg <zack@codesourcery.com>
3276
3277 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
3278 * config/iq2000/xm-iq2000.h: Delete file.
3279
4da6879c
GK
32802003-08-13 Geoffrey Keating <geoffk@apple.com>
3281
3282 * gengtype.c (walk_type): Process a subobject before processing
3283 the pointer that points to the subobject.
3284
28420116
PB
32852003-08-13 Per Bothner <pbothner@apple.com>
3286
3287 * regclass.c (init_reg_modes): Make non-static.
3288 Rename to init_reg_modes_once per new naming convention.
3289 (init_regs): Don't call init_reg_modes here.
3290 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
3291 * rtl.h (init_reg_modes_once): New declaration.
3292 * toplev.c (backend_init): Call init_regs after init_emit_once.
3293
235b4b36
KK
32942003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3295
3296 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
3297 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
3298
dce20bbc
R
32992003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
3300
3301 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
3302 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
3303
5a195cb5
DJ
33042003-08-13 Dale Johannesen <dalej@apple.com>
3305
3306 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
3307 handling of decrement-and-branch farther than 32 bits.
3308
3a000df0
KC
33092003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
3310
3311 * configure.in (make_compare_target): Move test to ...
3312 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
3313 * configure: Regenerate.
3314
b4966b1b
RS
33152003-08-12 Richard Sandiford <rsandifo@redhat.com>
3316
3317 * config/mips/iris6.h: Convert to C90 prototypes.
3318 * config/mips/irix6-libc-compat.c: Likewise.
3319 * config/mips/mips-protos.h: Likewise.
3320 * config/mips/mips.c: Likewise.
3321
825d7d64
NN
33222003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
3323
3324 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
3325 for selected machines. Comment heavily.
3326 fixinc/fixincl.x: Rebuild.
3327 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
3328
dfad12b5
RS
33292003-08-12 Richard Sandiford <rsandifo@redhat.com>
3330
3331 * config/mips/mips.h: Tweak various comments.
3332 * config/mips/mips.c: Likewise.
3333
e3f049a8
JW
33342003-08-11 James E Wilson <wilson@tuliptree.org>
3335
3336 PR optimization/11319
3337 PR target/10021
3338 * alias.c (find_base_value, case REG): Return 0 not src if no base
3339 found.
3340
4ac11022
KG
33412003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3342
3343 * gcse.c (gmalloc): Fix last change.
3344
ae351e1e
RS
33452003-08-11 Roger Sayle <roger@eyesopen.com>
3346
3347 * simplify-rtx.c (simplify_binary_operation): Replace calls to
3348 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
3349 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
3350 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
3351
11017cc7
RS
33522003-08-11 Roger Sayle <roger@eyesopen.com>
3353
3354 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
3355 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
3356 typecode for an ABS_EXPR.
3357
3358 * doc/c-tree.texi: Document ABS_EXPR.
3359
af7b5c1c
RS
33602003-08-11 Roger Sayle <roger@eyesopen.com>
3361
3362 * fold-const.c (fold): Optimize any associative floating point
3363 operator with -funsafe-math-optimizations, not just MULT_EXPR.
3364
e3bf220a
KK
33652003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
3366
3367 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
3368 information in SHmedia case too.
3369 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
3370 Likewise.
3371 (__set_fpscr): Use an access via GOT for PIC case.
3372
0c46c5c7
KC
33732003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
3374
3375 * configure.in (intermodule): Make switch test more portable.
3376 * configure: Regenerate.
3377
727793cb
KC
33782003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
3379
3380 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
3381 (restrap): Likewise.
3382
29da5c92
KG
33832003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3384
9fe15a12
KG
3385 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
3386 (grealloc): Size argument is a size_t.
3387 (gcalloc): New function. Use throughout in lieu of
3388 gmalloc/memset.
3389
29da5c92
KG
3390 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
3391 xmalloc/memset.
3392 * config/ia64/ia64.c (ia64_reorg): Likewise.
3393 * conflict.c (conflict_graph_new): Likewise.
3394 * fixinc/fixincl.c (run_compiles): Likewise.
3395 * genattrtab.c (optimize_attrs): Likewise.
3396 * genrecog.c (new_decision): Likewise.
3397 * haifa-sched.c (schedule_block): Likewise.
3398 * hashtable.c (ht_create): Likewise.
3399
13fb3a61
BW
34002003-08-11 Bob Wilson <bob.wilson@acm.org>
3401
3402 * config/xtensa/lib2funcs.S: Fix whitespace.
3403 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
3404 syntax where appropriate. Remove unnecessary backslash escapes.
3405 Reformat comments and fix some code formatting.
3406 (extendqisi2): Rearrange conditional.
3407 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
3408 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
3409 of fatal_insn.
3410
f1d5187e
RS
34112003-08-11 Richard Sandiford <rsandifo@redhat.com>
3412
3413 * config/mips/mips.c: Various formatting fixes.
3414 (override_options): Resync -mtune handling with gas.
3415 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
3416 * config/mips/mips.h: More formatting fixes.
3417 (mips_abi): Move declaration.
3418 * config/mips/mips.md (exception_receiver): Add mode to
3419 unspec_volatile.
3420
00332c9f
AH
34212003-08-11 Aldy Hernandez <aldyh@redhat.com>
3422
3423 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
3424 evsplatfi here.
3425 (bdesc_1arg): Remove evsplati and evsplatfi.
3426
a5c414e0
R
34272003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
3428
3429 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
3430 into account.
3431
0235f855
KG
34322003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3433
3434 * builtins.c (expand_builtin_strcat): Optimize constant strings.
3435
4b780675
GDR
34362003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
3437
3438 * pretty-print.c (pp_base_indent): Rename from pp_indent.
3439 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
3440 (struct c_pretty_print_info): Add more fields.
3441 (pp_c_left_paren): Move to c-pretty-print.c.
3442 (pp_c_right_paren): Likewise.
3443 (pp_c_left_brace): Likewise.
3444 (pp_c_right_brace): Likewise.
3445 (pp_c_left_bracket): Likewise.
3446 (pp_c_right_bracket): Likewise.
3447 (pp_c_declarator): Declare.
3448 (pp_c_direct_declarator): Likewise.
3449 (pp_c_specifier_qualifier_list): Likewise.
3450 (pp_c_type_id): Likewise.
3451 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
3452 (pp_c_type_qualifier_list): New.
3453 (pp_c_pointer): Likewise.
3454 (pp_c_parameter_type_list): Likewise.
3455 (pp_c_function_definition): Likewise.
3456 (pp_c_id_expression): Likewise.
3457 (pp_c_simple_type_specifier): Tidy.
3458 (pp_c_unary_expression): Likewise.
3459 (pp_c_expression): Likewise.
3460 (pp_c_pretty_printer_init): Likewise.
3461 (pp_c_specifier_qualifier_list): Rework..
3462 (pp_c_abstract_declarator): Likewise.
3463 (pp_c_postfix_expression): Likewise.
3464 (pp_c_primary_expression): Likewise.
3465 (pp_c_cast_expression): Likewise.
3466 (pp_c_direct_abstract_declarator): Likewise.
3467 (pp_c_storage_class_specifier): Likewise.
3468 (pp_c_function_specifier): Likewise.
3469 (pp_c_declaration_specifiers): Likewise.
3470 (pp_c_direct_declarator): Likewise.
3471 (pp_c_declarator): Likewise.
3472 (pp_c_declaration): Likewise.
3473 (pp_c_statement): Likewise.
3474 (pp_c_integer_constant): Rename from pp_c_integer_literal.
3475 (pp_c_character_constant): Rename from pp_c_character_literal.
3476 (pp_c_bool_constant): Rename from pp_c_bool_literal.
3477 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
3478 (pp_c_floating_constant): Rename from pp_c_real_literal.
3479 (pp_c_constant): Rename from pp_c_literal.
3480 * c-lang.c: Include diagnostic.h and c-pretty-print.h
3481 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
3482 (c_initialize_diagnostics): New.
3483 * Makefile.in (c-lang.o): Update dependency.
3484
bae39a73
NS
34852003-08-10 Nathan Sidwell <nathan@codesourcery.com>
3486
3487 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
3488
3372178c
RS
34892003-08-10 Richard Sandiford <rsandifo@redhat.com>
3490
3491 * config/mips/mips.c (mips_no_mips16_string): Remove.
3492 (override_options): Don't handle -mips16 as part of -mipsN.
3493 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
3494 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
3495 (TARGET_OPTIONS): Remove -mno-mips16.
3496
1d5565cd
RS
34972003-08-10 Richard Sandiford <rsandifo@redhat.com>
3498
3499 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
3500 (coprocessor2_operand): Likewise.
3501 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
3502 (lookup_name): Remove declaration.
3503 (abort_with_insn): Remove. Replace all uses with fatal_insn.
3504 (mips16, mips_abicalls): Remove.
3505 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
3506 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
3507 (coprocessor_operand, coprocessor2_operand): Remove.
3508 (override_options): Don't set mips16 or mips_abicalls.
3509 (print_operand): Don't expect SIGN_EXTEND operands.
3510 (mips_secondary_reload_class): Likewise.
3511 (mips_output_conditional_branch): Remove disabled long-branch code.
3512 * config/mips/mips.h (call_used_regs): Remove declaration.
3513 (may_call_alloca): Likewise.
3514 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
3515 (mips_abicalls, mips16): Remove declarations.
3516 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
3517 (CC1_SPEC): Remove outdated comment.
3518 (MIPS_VERSION, MACHINE_TYPE): Remove.
3519 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3520 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
3521 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
3522 (PUSH_ROUNDING): Likewise.
3523 (ASSEMBLER_SCRATCH_REGNUM): Remove.
3524 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
3525 and mips16 with TARGET_MIPS16.
3526
4169c321
PB
35272003-08-09 Per Bothner <pbothner@apple.com>
3528
c5d19037
ZW
3529 * cppinit.c (cpp_read_main_file): Split out source-independent
3530 initialization to separate function ...
3531 (cpp_post_options): New function.
3532 * cppfiles.c (cpp_stack_file): Rename public name to ...
3533 (_cpp_stack_file): New internal function name.
3534 * cpplib.h: Update accordingly.
3535 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
3536 (cpp_read_main_file): Don't initialize line here.
3537 * c-opts.c (c_common_post_options): Call cpp_post_options.
3538 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
3539 * fix-header.c (read_scan_file): Call cpp_post_options.
3540
3d93cdfa
PB
35412003-08-09 Per Bothner <per@bothner.com>
3542
3543 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
3544
dfd8db86
JDA
35452003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3546
3547 * pa.c (pa_asm_output_mi_thunk): Fix typo.
3548
a54c550f
NB
35492003-08-09 Neil Booth <neil@daikokuya.co.uk>
3550
3551 PR preprocessor/11839
3552 * cppfiles.c (open_file): Handle ENOTDIR.
3553
142ee136
RS
35542003-08-09 Richard Sandiford <rsandifo@redhat.com>
3555
3556 PR target/11699
3557 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
3558
561af708
JDA
35592003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3560
3561 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
3562 source/destination is not a register operand.
3563
af1e5518
RH
35642003-08-08 Richard Henderson <rth@redhat.com>
3565
c5d19037
ZW
3566 PR target/11535
3567 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
3568 RETURN_ADDRESS_POINTER_REGNUM.
3569 (ia64_expand_prologue): Don't frob it.
3570 (ia64_output_function_epilogue): Likewise.
3571 (ia64_return_addr_rtx): New.
3572 (ia64_split_return_addr_rtx): New.
3573 * config/ia64/ia64-protos.h: Update.
3574 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
3575 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
3576 (GENERAL_REGNO_P): Don't check it.
3577 (AR_*_REGNUM): Renumber.
3578 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
3579 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
3580 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
3581 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
3582 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
3583 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
3584 (movdi_ret_addr): New.
af1e5518 3585
5dddb920
GK
35862003-08-08 Geoffrey Keating <geoffk@apple.com>
3587
3588 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
3589
7bb3fbbb
RS
35902003-08-08 Roger Sayle <roger@eyesopen.com>
3591
3592 * tree.h (get_identifier) Define a macro form of get_identifier
3593 that calls get_identifier_with_length when the string is constant.
3594 (get_identifier_with_length): Change type of second argument to
3595 size_t in prototype.
3596 * stringpool.c (get_identifier): Undefine the macro before giving
3597 the function definition.
3598 (get_identifier_with_length): Change type of second argument to
3599 size_t in function definition.
3600 * hashtable.c (calc_hash): Change type of second argument to size_t.
27f35b75 3601 (ht_lookup): Change type of third argument to size_t. Reorganize
7bb3fbbb
RS
3602 to speed-up the cases where the hash table slot is empty, or the
3603 first probe matches (i.e. there isn't a collision).
3604 * hashtable.h (ht_lookup): Adjust function prototype.
3605
32247ce9
BI
36062003-08-08 Bernardo Innocenti <bernie@develer.com>
3607
3608 PR target/9697
3609 PR target/11777
3610 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
3611
df38ffef
NB
36122003-08-08 Neil Booth <neil@daikokuya.co.uk>
3613
3614 * common.opt: Add debug switches.
3615 * flags.h (use_gnu_debug_info_extensions): Boolify.
3616 * opts.c (write_symbols, debug_info_level,
3617 use_gnu_debug_info_extensions): Move from toplev.c.
3618 (set_debug_level): New.
3619 (common_handle_options): Handle debug switches.
3620 (print_help): Display target options directly.
3621 * toplev.c (debug_hooks): Don't initialize.
3622 (write_symbols, debug_info_level,
3623 use_gnu_debug_info_extensions): Move to opts.c.
3624 (debug_args, display_help, decode_g_option): Remove.
3625 (process_options): Set no debug if level zero here,
3626 and no-debug-hooks. Error here if impossible debug format selected.
3627 * toplev.h (display_help, decode_g_option): Remove.
3628
679c4092
RS
36292003-08-08 Richard Sandiford <rsandifo@redhat.com>
3630
3631 * tree.c (get_file_function_name_long): Fix size of alloca() area.
3632
c8b5beb8
KC
36332003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
3634
3635 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
c5d19037 3636 and gcc_cv_prog_cmp_skip.
c8b5beb8
KC
3637 * configure: Regenerate.
3638
6b3d1e47
SC
36392003-08-08 Stan Cox <scox@redhat.com>
3640
3641 * config/iq2000: New port.
3642 * config.gcc (iq2000-*-elf): Added.
3643 * doc/install.texi (Specific): Add iq2000 description.
3644
cfa9ee99
AS
36452003-08-08 Andreas Schwab <schwab@suse.de>
3646
7ce27ffb 3647 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
cfa9ee99
AS
3648 and insert missing empty argument.
3649 * configure: Regenerate.
3650
cb99b61a
JDA
36512003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3652
62910663
JDA
3653 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
3654 (attr_length_millicode_call): Likewise.
3655 (attr_length_call): Likewise. Revise some maximum insn lengths.
3656 (attr_length_indirect_call): Likewise.
3657 (output_call): Fix thinko that added extra nop.
3658 * pa.h (IN_NAMED_SECTION_P): Define.
3659
cb99b61a
JDA
3660 PR c++/11712
3661 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
3662 __STDC_EXT__ when using C++ dialect.
3663
97b3d0f0
R
36642003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
3665
7d73a2ba
R
3666 * sh.c (calc_live_regs): If the return address pointer is live,
3667 force pr live.
3668 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
3669 for saves / restores.
3670 (sh_expand_epilogue): If sh_media_register_for_return returns a
3671 register number, flag the instructions that restores PR_MEDIA_REG
3672 as possibly dead.
3673 Remove dead update of offset.
3674 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
3675 we can use the result of get_hard_reg_initial_val.
3676 * sh.md (UNSPEC_RA): New constant.
3677 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
3678 (load_ra). Handle UNSPEC_RA.
3679 (sibcall_media): Use PR_MEDIA_REG.
3680
97b3d0f0
R
3681 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
3682 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
3683 needs saving on SHmedia.
3684
d40c829f
UW
36852003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
3686
3687 * config/s390/s390.md: Replace all occurrences of \\t with \t.
3688
a5342656
RS
36892003-08-07 Richard Sandiford <rsandifo@redhat.com>
3690
3691 * local-alloc.c (combine_regs): Fix comment typo.
3692
fdc49e10
ZW
36932003-08-06 Zack Weinberg <zack@codesourcery.com>
3694
3695 * c-decl.c (builtin_decls): Replace with first_builtin_decl
3696 and last_builtin_decl.
3697 (c_init_decl_processing): Initialize both.
3698 (c_reset_state): Iterate from first_builtin_decl to
3699 last_builtin_decl inclusive to reintroduce builtins.
3700
a32767e4
DM
37012003-08-06 David Mosberger <davidm@hpl.hp.com>
3702
fdc49e10
ZW
3703 * doc/extend.texi (Function Attributes): Document the IA-64 version
3704 of the "model" attribute.
3705
3706 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
3707 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
3708 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
3709
3710 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
3711 (ia64_encode_section_info): Likewise.
3712 (ia64_attribute_table): Add "model" attribute.
3713 (TARGET_ENCODE_SECTION_INFO): Define.
3714 (small_addr_symbolic_operand): New function.
3715 (got_symbolic_operand): Return 0 for a symbolref to an object
3716 in the small address area.
3717 (enum ia64_addr_area): New type.
3718 (small_ident1): New variable.
3719 (small_ident2): Likewise.
3720 (init_idents): New function.
3721 (ia64_get_addr_area): Likewise.
3722 (ia64_encode_addr_area): Likewise.
3723 (ia64_encode_section_info): Likewise.
3724 (ia64_expand_load_address): For symbolic references to objects in
3725 the small-address-area, load the address via gen_rtx_SET() (which,
3726 eventually, will expand into "addl").
a32767e4 3727
8b82c528
PB
37282003-08-06 Per Bothner <pbothner@apple.com>
3729
3730 * line-map.h (fileline): New typedef.
fdc49e10 3731 (struct line_map, linemap_add, linemap_lookup): Use it.
8b82c528
PB
3732 * input.h (struct location_s): Comment notes that long-term we want
3733 to replace it by fileline.
3734
b869f904
R
37352003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
3736
3737 Fix SHcompact exception handling:
3738 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
3739 by the prologue, return a MEM with return_address_pointer_rtx
3740 as address.
3741 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
3742 (RETURN_ADDR_OFFSET): Don't define.
3743 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
3744 registers that are visible in compact mode. Show that SHmedia
3745 registers still exist in compact mode, even if there are not
3746 readily accessible.
3747 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
3748 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
3749 and DW_EH_PE_pcrel for pic data.
3750 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
3751 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
3752 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
3753 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
3754 * sh.md (movsi_media-1): New splitter.
3755
f2feed2c
GP
37562003-08-06 Graeme Peterson <gp@qnx.com>
3757
3758 * config/i386/nto.h: New.
3759 * config/i386/t-nto: New.
3760 * config.gcc (i[34567]86-*-nto-qnx*): New.
3761
1cba0a4e
PE
37622003-08-06 Phil Edwards <pme@gcc.gnu.org>
3763
3764 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
3765
980f6e8e
AM
37662003-08-06 Alan Modra <amodra@bigpond.net.au>
3767
3768 * calls.c (load_register_parameters): Arrange for call_fusage to
3769 report the whole register as used when shifting to the msb.
3770
d25225de
RS
37712003-08-05 Roger Sayle <roger@eyesopen.com>
3772
3773 * builtins.c (expand_builtin): When not optimizing, call the library
3774 function for all builtins that have library functions (except alloca).
3775
b20d9f0c
AO
37762003-08-05 Alexandre Oliva <aoliva@redhat.com>
3777
3778 * c.opt: Introduce -fworking-directory.
3779 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
3780 * c-common.h (flag_working_directory): Declare.
3781 * c-common.c (flag_working_directory): Define.
3782 * c-opts.c (c_common_handle_options): Set it.
3783 (sanitize_cpp_opts): Set...
3784 * cpplib.h (struct cpp_options): ... working_directory option.
3785 (struct cpp_callbacks): Add dir_change.
3786 * cppinit.c (read_original_filename): Call...
3787 (read_original_directory): New. Look for # 1 "directory//"
3788 and process it.
3789 (cpp_read_main_file): Call dir_change callback if working_directory
3790 option is set.
3791 * gcc.c (cpp_unique_options): Pass -g*.
3792 * c-lex.c (cb_dir_change): New.
3793 (init_c_lex): Set dir_change callback.
3794 * toplev.c (src_pwd): New static variable.
3795 (set_src_pwd, get_src_pwd): New functions.
3796 * toplev.h (get_src_pwd, set_src_pwd): Declare.
3797 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
3798 * dwarf2out.c (gen_compile_unit_die): Likewise.
3799 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
3800
e1a4dd13
GDR
38012003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3802
3803 * pretty-print.h (pp_set_line_maximum_length): Make macro.
3804 (pp_set_prefix): Likewise.
3805 (pp_destroy_prefix): Likewise.
3806 (pp_remaining_character_count_for_line): Likewise.
3807 (pp_clear_output_area): Likewise.
3808 (pp_formatted_text): Likewise.
3809 (pp_last_position_in_text): Likewise.
3810 (pp_emit_prefix): Likewise.
3811 (pp_append_text): Likewise.
3812 (pp_flush): Likewise.
3813 (pp_format_text): Likewise.
3814 (pp_format_verbatim): Likewise.
3815 (pp_tree_identifier): Tidy.
3816 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
3817 (pp_base_format_verbatim): Rename from pp_format_verbatim.
3818 (pp_base_flush): Rename from pp_flush.
3819 (pp_base_set_line_maximum_length): Rename from
3820 pp_set_line_maximum_length.
3821 (pp_base_clear_output_area): Rename from pp_clear_output_area.
3822 (pp_base_set_prefix): Rename from pp_set_prefix.
3823 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
3824 (pp_base_emit_prefix): Rename from pp_emit_prefix.
3825 (pp_base_append_text): Rename from pp_append_text.
3826 (pp_base_formatted_text): Rename from pp_formatted_text.
3827 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
3828 (pp_base_remaining_character_count_for_line): Rename from
3829 pp_remaining_character_count_for_line.
3830 * diagnostic.h (diagnostic_format_decoder): Tidy.
3831 (diagnostic_flush_buffer): Likewise.
3832 * c-pretty-print.h: (pp_c_string_literal): Declare.
3833 (pp_c_real_literal): Likewise.
3834 (pp_c_integer_literal): Likewise.
3835 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
fdc49e10 3836 pp_identifier.
e1a4dd13
GDR
3837 (pp_c_character_literal): Tidy.
3838 (pp_c_string_literal): Make public.
3839 (pp_c_bool_literal): Likewise.
3840 (pp_c_integer_literal): Likewise.
3841 (pp_c_real_literal): Likewise.
3842
3843 * Makefile.in (C_PRETTY_PRINT_H): New variable.
3844 (c-pretty-print.o): Update dependence.
3845
8c98b170
CD
38462003-08-05 Chris Demetriou <cgd@broadcom.com>
3847
3848 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
3849 ".set nomacro" state.
3850 (fix_truncsfsi2_macro): Likewise.
3851
b3c3af2f
SB
38522003-08-05 Steven Bosscher <steven@gcc.gnu.org>
3853
3854 * tree.h (DID_INLINE_FUNC): Remove macro.
3855 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
3856 add tree check for FUNCTION_DECL.
3857 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
3858 (struct tree_decl): Rename inlined_function_flag to
3859 declared_inline_flag.
3860 * c-common.h (c_lang_decl): Remove.
3861 (DECL_ESTIMATED_INSNS): Remove.
3862 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
3863 (DECL_DECLARED_INLINE_P): Remove.
3864 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
3865 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
3866 (finish_function): Make uninlinable a bool. Fixup call to
3867 tree_inlinable_function_p() and fix some code style issues.
3868 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
3869 * cgraph.c (dump_cgraph): Likewise.
3870 * cgraphunit.c (cgraph_decide_inlining): Likewise
3871 (cgraph_finalize_compilation_unit): Likewise.
3872 Also update call to tree_inlinable_function_p().
3873 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
3874 look at DECL_DECLARED_INLINE and reverse logic.
3875 * print-tree.c (print_node): Likewise.
3876 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
3877 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
3878 prototype.
3879 * tree-inline.c (inlinable_function_p): Split up in this function to
3880 check for basic inlining inhibiting conditions, and new
3881 limits_allow_inlining() function. Warn if inlining is impossible
3882 because the inline candidate calls alloca or uses sjlj exceptions.
3883 (limits_allow_inlining): this new function to check if the inlining
3884 limits are satisfied. Throttle from currfn_max_inline_insns, not from
3885 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
3886 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
3887 Update prototypes.
3888 (tree_inlinable_function_p): Make a bool. Update call to
3889 inlinable_function_p
3890 (expand_call_inline): Use limits_allow_inlining() when not in
3891 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
3892 instead see if the function was declared `inline'.
3893
ed8395a0
JZ
38942003-08-05 Josef Zlomek <zlomekj@suse.cz>
3895
3896 * gcse.c (try_replace_reg): Fix updating of note.
3897
02a1994c
RS
38982003-08-04 Roger Sayle <roger@eyesopen.com>
3899
3900 PR middle-end/11771
3901 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
3902 logic in negate_expr, i.e. we don't invert (A-B) for floating
3903 point types unless flag_unsafe_math_optimizations.
3904
f2593a66
RS
39052003-08-04 Roger Sayle <roger@eyesopen.com>
3906
3907 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
3908 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
3909 for floating point expressions with -ffast-math.
3910 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
3911 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
3912
03aa99d4
RS
39132003-08-04 Roger Sayle <roger@eyesopen.com>
3914
3915 * c-common.c (flag_noniso_default_format_attributes): Delete.
3916 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
3917 (c_attrs_initialized): Delete.
3918 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
3919 always call c_init_attributes.
3920 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
3921 set c_attrs_initialized when done.
3922 (c_common_insert_default_attributes): Delete.
3923 * c-common.h (flag_noniso_default_format_attributes): Delete.
3924 (c_coomon_insert_default_attributes): Delete prototype.
3925 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
3926 flag_noniso_default_format_attributes.
3927
3928 * c-decl.c (c_insert_default_attributes): Delete.
3929 * c-tree.h (c_insert_default_attributes): Delete prototype.
3930
3931 * attribs.c (decl_attributes): Don't call insert_default_attributes
3932 langhook. Update function description comment.
3933 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
3934 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
3935 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
3936 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
3937
3938 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
3939 define.
3940
38e596df
RS
39412003-08-04 Richard Sandiford <rsandif@redhat.com>
3942
3943 * config/mips/mips.c (override_options): Disable -G on targets that
3944 have no .section support.
3945 (mips_select_section): Use default_select_section for such targets.
3946
76d2e2c5
NN
39472003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
3948
3949 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
3950 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
3951 * fixinc/fixincl.x: Rebuild.
3952 * fixinc/tests/base/regexp.h: New test.
3953
b2734c68
AO
39542003-08-04 Alexandre Oliva <aoliva@redhat.com>
3955
3956 * c-ppoutput.c (cb_line_change): Don't skip line changing while
3957 parsing macro arguments in the top-level context.
3958
4e87a651
NB
39592003-08-04 Neil Booth <neil@daikokuya.co.uk>
3960
3961 * config.in: Remove HAVE_LSTAT.
3962 * configure, configure.in: Don't test for lstat.
3963
21ecc5a7
GDR
39642003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3965
3966 * opts.c (decode_options): Do language-specific initialization for
3967 the global diagnostic context.
3968 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
3969 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
3970 (LANG_HOOKS_INITIALIZER): Adjust.
fdc49e10
ZW
3971 * langhooks.h (struct lang_hooks): Add new field
3972 initialize_diagnostics.
21ecc5a7
GDR
3973 * langhooks.c (lhd_initialize_diagnostics): Define.
3974
39752003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3976
3977 * pretty-print.h: Adjust macro definitions.
3978 * pretty-print.c (pp_newline): Rename to pp_base_newline.
3979 (pp_character): Rename to pp_base_character.
3980 (pp_string): Rename to pp_base_string.
3981 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
3982 (pp_newline): Likewise. Adjust.
3983 (pp_c_char): Adjust.
3984
d82f81dd
KG
39852003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3986
3987 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
3988 BUILT_IN_LLABS): Move to miscellaneous section.
3989
335d03ec
NB
39902003-08-03 Neil Booth <neil@daikokuya.co.uk>
3991
cb6eb88a 3992 PR preprocessor/11534
335d03ec
NB
3993 * cppexp.c (parse_defined): Warn only if -pedantic.
3994
76bf2c97
NB
39952003-08-03 Neil Booth <neil@daikokuya.co.uk>
3996
3997 * cppfiles.c (stack_file): Use file path.
3998
178b2b9f
RS
39992003-08-02 Roger Sayle <roger@eyesopen.com>
4000
4001 * builtin-types.def (BT_SSIZE): New primitive type.
4002 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
4003 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
4004 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
4005 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
4006 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
4007 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
4008 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
4009 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
4010 few functions that define default attributes using it.
4011 * c-common.c (c_common_insert_default_attributes): Do nothing.
4012
4013 * doc/extend.texi: Document these "new" builtins.
4014
469146c1
KK
40152003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
4016
4017 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
4018 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
4019 when -mieee-fp set and -shared not set.
4020 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
4021
49634b3a
NB
40222003-08-02 Neil Booth <neil@daikokuya.co.uk>
4023
4024 * cppfiles.c (struct _cpp_file): Rename once_only_next to
4025 next_file. Remove import and pragma_once, add once_only.
4026 (find_file): Add new file structures to the all_files list.
4027 (should_stack_file): Mark #import-ed files once-only, and
4028 don't stack them if the file has already been stacked.
4029 (_cp_mark_file_once_only): Simplify.
4030 * cpphash.h (struct cpp_reader): Rename once_only_files
4031 to all_files. Rename saw_pragma_once to seen_once_only.
4032 (_cpp_mark_file_once_only): Update prototype.
4033 * cpplib.c (do_pragma_once): Update.
4034
cf1ee30c
NB
40352003-08-02 Neil Booth <neil@daikokuya.co.uk>
4036
4037 * cppfiles.c (ENOTDIR): Remove.
4038 (open_file_in_dir): Rename find_file_in_dir. Handle errors
4039 other than ENOENT here.
4040 (once_only_file_p): Rename should_stack_file.
4041 (find_file, open_file_failed, read_file_guts): Report errors
4042 with full path name.
4043 (read_file): Move pch handling to should_stack_file.
4044 (should_stack_file): Handle PCH and once-only issues, and
4045 reading the file.
4046 (stack_file): Don't do file reads.
4047
50612a04
ZD
40482003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4049
4050 * libgcov.c (gcov_exit): Cleanup and fix.
4051 * profile.c (compute_value_histograms): Don't try to read profiles
4052 that are not present.
4053
f6a46818
KG
40542003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4055
f53b62e1
KG
4056 * builtins.def: Categorize.
4057
f6a46818
KG
4058 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
4059 Mind fp rounding.
4060 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
4061
12550591
AT
40622003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
4063
4064 * config.gcc: Enable posix threads by default on darwin.
4065
5f77fbd4
JJ
40662003-08-01 Jakub Jelinek <jakub@redhat.com>
4067
4068 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
4069 even if nehedges1 is 0.
4070
f4dbf936
NN
40712003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
4072
4073 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
4074 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
4075 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
4076 and defintions.
4077
4078 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
4079 * fixinc/fixincl.x: Regenerate.
4080 * fixinc/tests/base/math.h: Regenerate to match test_text change.
4081
c76becbd
RO
40822003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4083
4084 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
4085
f920765d
RK
40862003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4087
4088 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
4089 for accesses to exc_ptr.
4090
8e5f33ff
GK
40912003-08-01 Geoffrey Keating <geoffk@apple.com>
4092
4093 * doc/sourcebuild.texi (Front End Directory): Don't make references
4094 to libsubdir, it's not part of the interface to frontends.
4095 * doc/install.texi (Configuration): Help users read faster by saying
4096 that GCC's configure options are the standard autoconf ones.
4097 Mention --libdir. Update the default rules for finding the
4098 assembler. Don't use libsubdir since we haven't said what it means.
4099 (Specific): In the Solaris 7 notes, update the place to put the
4100 assembler.
4101 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
4102 * doc/cpp.texi (Search Path): Actually, the search path
4103 depends on libdir, which can relocate with cpp.
4104 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
4105 now a private interface between the Makefile and the driver.
4106
75c20980
RH
41072003-08-01 Richard Henderson <rth@redhat.com>
4108
4109 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
4110
4111 * varasm.c (lookup_constant_def): New function.
4112 * rtl.h (lookup_constant_def): Declare it.
fdc49e10 4113 * dwarf2out.c (loc_descriptor_from_tree): Use it.
75c20980
RH
4114 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
4115
f91f41b2
ZW
41162003-08-01 Zack Weinberg <zack@codesourcery.com>
4117
4118 * c-decl.c (gettags, pushdecl_function_level): Delete.
4119 (last_function_parm_vars): Rename last_function_parm_others.
4120 (current_function_parm_vars): Rename current_function_parm_others.
4121 (struct c_scope): Rewrite comment explaining this data structure.
4122 Add names_last, blocks_last, parms_last fields. Rename
4123 incomplete_list to incomplete.
4124 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
4125 (poplevel): Ignore second argument. No need to nreverse
4126 anything. Restructure such that each list is processed
4127 exactly once. Use 'const location_t *locus' syntactic sugar
4128 variable where useful. Issue unused variable warnings
4129 ourselves, do not rely on function.c.
4130 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
4131 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
4132 (implicitly_declare): decl cannot be error_mark_node.
4133 (undeclared_variable): Manipulate scope structure directly.
4134 (c_make_fname_decl): Likewise.
4135 (getdecls, c_init_decl_processing): Fix comment.
4136 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
4137 for 'last' variable.
4138 (grokparms): No need to nreverse parms list.
4139 (store_parm_decls_newstyle): Set up the parms_last and
4140 names_last fields of the new scope too.
4141 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
4142 on parms to begin with; check this under ENABLE_CHECKING. Set
4143 up parms_last.
4144 (check_for_loop_decls): Refer directly to current_scope->tags.
4145 Use consistent quote style in diagnostics.
4146 (c_write_global_declarations): The names list is not backward.
4147
4148 * c-common.h: Don't prototype gettags.
4149 * c-parse.in: Call poplevel with second argument 0 always.
4150
a8eb1db5
KG
41512003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4152
4153 * builtins.def: Resort builtins.
4154
da7cfe13
KG
41552003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4156
4157 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
4158 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
4159 Prepend "__builtin_" onto NAME with string concatenation. Remove
4160 explicit "__builtin_" from each macro call.
4161
4162 Reformat entire file.
4163
ea8eb0b9
KG
41642003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4165
4166 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
4167 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
4168
61152e48 41692003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3ef093a8
AK
4170
4171 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
4172 CCL1, or CCL2 modes with floating point operations.
4173
4174 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
4175 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
4176 "*subdf3_cconly"): New insns.
4177 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
4178
bf42e45b
NB
41792003-08-01 Neil Booth <neil@daikokuya.co.uk>
4180
4181 * Makefile.in: Refine dependencies.
4182 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
4183 * c.opt: Update help for -Wimport.
4184 * cppfiles.c: Include hashtab.h. Update comments.
4185 (stack_file): Read the file before updating dependencies.
4186 (once_only_file_p): Be smarter about marking once-only files.
4187 (_cpp_mark_file_once_only): Correct the check for existence on
4188 the list.
4189 (open_file_failed): Use name not path, which is NULL.
4190 * cpphash.h: Don't include hashtab.h.
4191 (struct _cpp_file): Remove.
4192 (struct cpp_reader): Update.
4193 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
4194 * cpplib.h (struct cpp_options): Remove warn_import.
4195 (cpp_simplify_path): Remove.
4196
a5bcc582
NS
41972003-08-01 Nathan Sidwell <nathan@codesourcery.com>
4198
4199 PR c++/11295
4200 * doc/extend.texi (Statement Expressions): Document C++ semantics.
4201
2fdd01a0
ST
42022003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4203
4204 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
4205
3c260e1d
KG
42062003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4207
4208 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
4209 throughout.
4210 * builtins.def: Likewise.
4211
40209195
JM
42122003-07-31 Jason Merrill <jason@redhat.com>
4213
4214 * Makefile.in (bubblestrap): Don't require a previous full
4215 bootstrap.
4216
4217 * expr.c (mostly_zeros_p): No longer static.
4218 * tree.h: Declare it.
4219 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
4220 unless we need to do substitutions.
4221
2598550f
RS
42222003-07-31 Roger Sayle <roger@eyesopen.com>
4223
4224 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
4225 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
4226 as pow(x,2.0) when the latter will be expanded back into x*x.
4227 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
4228 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
4229 pow can never set errno when used with an integer exponent.
4230 Always use expand_powi when exponent is -1, 0, 1 or 2.
4231 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
4232 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
4233 the pow forms of these expressions.
4234
a8ee6e2d
GK
42352003-07-31 Geoffrey Keating <geoffk@apple.com>
4236
4237 * Makefile.in (libexecdir): New.
4238 (libsubdir): Use gcc instead of gcc-lib.
4239 (libexecsubdir): New.
4240 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
4241 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
4242 gcc-lib.
4243 (installdirs): Make libexecsubdir.
4244 (install-common): Put executables in libexecsubdir.
4245 (itoolsdir): Use libexecsubdir.
4246 (itoolsdatadir): New.
4247 (install-mkheaders): Separate data files and executables.
4248 (install-collect2): Put executables in libexecsubdir.
4249 (uninstall): Remove libexecsubdir.
4250 * mkheaders.in: Update for new arrangement of files.
4251 (libexecdir): New.
4252 (libexecsubdir): New.
4253 (itoolsdir): Use libexecsubdir.
4254 (itoolsdatadir): New.
4255 * gcc.c (gcc_libexec_prefix): New.
4256 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
4257 (standard_exec_prefix_1): Use libexec.
4258 (standard_exec_prefix_2): New.
4259 (standard_libexec_prefix): New.
4260 (process_command): Update for new arrangement of files. Compute
4261 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
4262
631099c9
NN
42632003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
4264
4265 * inclhack.def (stdio_va_list): Avoid bogus replacement which
4266 triggers on Interix.
4267 * fixincl.x: Regenerate.
4268
a132b6a8
JJ
42692003-07-31 Jakub Jelinek <jakub@redhat.com>
4270
4271 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
4272 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
4273
c67b2a58
RK
42742003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4275
4276 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
4277
40e941af
PB
42782003-07-31 Per Bothner <pbothner@apple.com>
4279
4280 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
4281 (add_input_filename): New function.
4282 (handle_options): Call add_input_filename directly instead of
4283 with a lang hook.
4284 * opts.h (in_fnames, num_in_fnames): Moved here.
4285 (add_input_filename): Declare.
4286 * c-decl.c: Need to #include opts.h.
4287 * Makefile.in (c-decl.o): Also depends on opts.h.
4288 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
4289 (c_common_handle_filename): Replaced by add_input_filename.
4290 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
4291 Remove.
4292 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
4293 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
4294 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
4295 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
4296
9143c6b7
ZD
42972003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4298
4299 * combine.c (try_combine): Set JUMP_LABEL for newly created
4300 unconditional jump.
4301
b7de5864
ZD
43022003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4303
4304 * fold-const.c (fold): Fold some comparisons of bit operations.
4305
602a82f3 43062003-07-31 Jan Hubicka <jh@suse.cz>
fdacb904
JH
4307
4308 * cgraph.c (create_edge): Fix typo.
4309 * i386.c (pic_symbolic_operand): Reorder tests.
4310
8100063e
NS
43112003-07-31 Nathan Sidwell <nathan@codesourcery.com>
4312
4313 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
4314 more fully.
4315 (Gcov Data Files): Update.
4316
2a4e8ebc
RO
43172003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4318
4319 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
4320 default.
4321
4322 * gthr-posix.c: New file.
4323 * gthr-posix.h: Define _REENTRANT if missing.
4324 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
4325
4326 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
4327 by gthr-posix.o.
4328 * config/alpha/t-osf-pthread: New file.
4329
4330 * fixinc/inclhack.def (alpha_pthread): New fix.
4331 * fixinc/fixincl.x: Regenerate.
4332 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
4333
4334 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
4335 warning.
4336 Fixes PR bootstrap/9330.
4337
689a714d
RO
43382003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4339
4340 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
4341 without GNU ld.
4342 Update comment.
4343 * configure: Regenerate.
4344
caf819ae
VM
43452003-07-31 Vladimir Makarov <vmakarov@redhat.com>
4346
f91f41b2
ZW
4347 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
4348 setter.
caf819ae 4349
1aa0a5f6
RS
43502003-07-30 Roger Sayle <roger@eyesopen.com>
4351
4352 * builtins.def: Alphabetize.
4353
4bd0bee9
MK
43542003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
4355
4356 * doc/c-tree.texi: Normalize spellings of "lowercase" and
4357 "uppercase".
4358 * doc/cpp.texi: Likewise.
4359 * doc/md.texi: Likewise.
4360 * doc/rtl.texi: Likewise.
4361 * doc/tm.texi: Likewise.
4362
7f02cb5c
MK
43632003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
4364
4365 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
4366 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
4367 of cc1obj.
4368
498887c8
CD
43692003-07-30 Chris Demetriou <cgd@broadcom.com>
4370
4371 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
4372 macros before defining them.
4373
10bbf137
UW
43742003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4375
f91f41b2 4376 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10bbf137
UW
4377 UNSPECV_BLOCKAGE): New constants.
4378 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
4379 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
4380 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
4381 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
4382
4383 (all insns and expanders): Write output control string as brace block
4384 where appropriate. Remove \-escapes for doublequote characters.
4385
602a82f3 43862003-07-31 Jan Hubicka <jh@suse.cz>
3f2eae23
JH
4387
4388 * gcse.c (insert_store): Fix typo in previous patch.
4389
f0babc9a
NB
43902003-07-30 Neil Booth <neil@daikokuya.co.uk>
4391
4392 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
4393
edeac5de
AK
43942003-07-30 Andi Kleen <ak@muc.de>
4395
4396 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
4397
6e885ee3
ZD
43982003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4399
4400 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
4401 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
4402 GCOV_N_VALUE_COUNTERS): New.
4403 * profile.c (compute_value_histograms): New static function.
4404 (branch_prob): Read back the value histograms.
4405 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
4406 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
4407 * value-prof.c: Add comment on reading the profile.
4408 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
4409 * doc/invoke.texi (-fprofile-values): Document behavior with
4410 -fbranch-probabilities.
4411
0e6cb2cb
DE
44122003-07-30 David Edelsohn <edelsohn@gnu.org>
4413
4414 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
4415
656ec3b1
UW
44162003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
4417
4418 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
4419 symbolically.
4420
602a82f3 44212003-07-30 Jan Hubicka <jh@suse.cz>
a0c8285b
JH
4422
4423 * gcse.c (insert_store): Ignore fake edges.
4424
4425 * c-common.c (flag_vtable_gc): Kill.
4426 * c-common.g (flag_vtable_gc): Kill.
4427 * c-opts (c_common_handle_option): Kill.
4428 * c.opt (fvtable-gc): Kill.
4429 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
4430 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
4431 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
4432
4433 * invoke.texi (-ftable-gc): Kill documentation.
4434
4435 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
4436 just because function body is missing.
4437
4438 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
4439
b2e863b8
RM
44402003-07-30 Ranjit Mathew <rmathew@hotmail.com>
4441
4442 * unwind-sjlj.c: Fix typo in file description.
4443
9206d736
AM
44442003-07-30 Alan Modra <amodra@bigpond.net.au>
4445
4446 * calls.c (load_register_parameters): When shifting reg sized values
4447 to the msb, move the value to a reg first.
4448
9074464c
GK
44492003-07-29 Geoffrey Keating <geoffk@apple.com>
4450
4451 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
4452 * line-map.h (linemap_add): Update comments.
4453 * line-map.c (linemap_add): Update comments, interpret zero-length
4454 filename as "<stdin>".
4455
e55e4f68
NN
44562003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
4457
4458 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
4459
55d54003
ZW
44602003-07-29 Zack Weinberg <zack@codesourcery.com>
4461
4462 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
4463 New static variables.
4464 (struct c_scope): Add parms and warned_forward_parm_decls
4465 fields; remove parm_order.
4466 (storedecls, storetags): Delete.
4467 (poplevel): Also clear bindings on the parms chain.
4468 (pushdecl): Handle forward declarations of parameters, and
4469 chain PARM_DECLs on the parms list, not the names list.
4470 (lookup_name_current_level): Check for PARM_DECLs on the parms
4471 list too.
4472 (push_parm_decl): Don't update parm_order.
4473 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
4474 warning, only once per parameter list, and set TREE_ASM_WRITTEN
4475 on the decls here. Then move the forward decls to the names list.
4476 (grokparms): Set last_function_parm_vars.
4477 (get_parm_info): Don't use gettags or getdecls. No need to
4478 extract non-parms from the parms list, or reorganize the parms
4479 list. Feed nonparms back in the TREE_TYPE of the list node
4480 returned. Issue only one error per parameter list for "void"
4481 appearing more than once in said parameter list. Collapse
4482 parmlist_tags_warning into this function to avoid double scan
4483 of tags list.
4484 (start_function): Set current_function_parm_vars.
4485 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
4486 directly. Get non-parms from current_function_parm_vars; no
4487 need to extract them from the parms chain. Properly bind tags
4488 in the new scope.
4489 (store_parm_decls_oldstyle): No need to extract non-parameters
4490 from the parms chain, nor to store them back afterward. Move
4491 declaration to top of function, restructure code reordering
4492 DECL_ARGUMENTS.
4493 (store_parm_decls): No need to save and restore warn_shadow.
4494 * c-parse.in: Don't call parmlist_tags_warning nor
4495 clear_parm_order. Call mark_forward_parm_decls when forward
4496 parm decls are encountered.
4497 * c-tree.h: Prototype mark_forward_parm_decls; not
4498 clear_parm_order or parmlist_tags_warning.
4499
18c81520
GK
45002003-07-29 Geoffrey Keating <geoffk@apple.com>
4501
4502 * c-common.c (allow_pch): Remove.
4503 * c-common.h (allow_pch): Remove.
4504 (c_common_no_more_pch): Declare.
4505 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
4506 * c-pch.c: Include hosthooks.h.
4507 (c_common_valid_pch): Don't check allow_pch.
4508 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
4509 (c_common_no_more_pch): New.
4510 * ggc-common.c: Include hosthooks.h.
4511 (gt_pch_save): Call gt_pch_get_address.
4512 (gt_pch_restore): Call gt_pch_use_address.
4513 * hooks.c (hook_voidp_size_t_null): New.
4514 (hook_bool_voidp_size_t_false): New.
4515 * hooks.h (hook_voidp_size_t_null): New.
4516 (hook_bool_voidp_size_t_false): New.
4517 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
4518 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
4519 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
4520 HOST_HOOKS_GT_PCH_USE_ADDRESS.
4521 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
4522 gt_pch_use_address.
4523 * doc/hostconfig.texi (Host Common): Document
4524 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
4525 * Makefile.in (c-pch.o): Depend on hosthooks.h.
4526 (ggc-common.o): Likewise.
4527
4528 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
4529 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
4530 (pch_address_space): New.
4531 (darwin_rs6000_gt_pch_get_address): New.
4532 (darwin_rs6000_gt_pch_use_address): New.
4533
8f9b4009
NB
45342003-07-29 Neil Booth <neil@daikokuya.co.uk>
4535
cb6eb88a
NB
4536 PR preprocessor/11569
4537 PR preprocessor/11649
8f9b4009
NB
4538 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
4539 * cppfiles.c: Completely rewritten.
4540 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
4541 struct cpp_path is now struct cpp_dir.
4542 (remove_duplicates): Don't simplify path names.
4543 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
4544 cpp_stack_file.
4545 * cpphash.h: Include hashtab.h.
4546 (_cpp_file): Declare.
4547 (struct cpp_buffer): struct include_file is now struct _cpp_file,
4548 and struct cpp_path is now struct cpp_dir. Rename members.
4549 (struct cpp_reader): Similarly. New members once_only_files,
4550 file_hash, file_hash_entries, quote_ignores_source_dir,
4551 no_search_path, saw_pragma_once. Remove all_include_files and
4552 max_include_len. Make some members bool.
4553 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
4554 (_cpp_stack_file): Renamed from _cpp_read_file.
4555 (_cpp_stack_include): Renamed from _cpp_execute_include.
4556 (_cpp_init_files): Renamed from _cpp_init_includes.
4557 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
4558 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
4559 (cpp_read_next_file): Rename and move to cppfiles.c.
4560 (cpp_read_main_file): Update.
4561 * cpplib.c (run_directive): Update for renamed members.
4562 (do_include_common, _cpp_pop_buffer): Update.
4563 (do_import): Undeprecate #import.
4564 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
4565 * cpplib.h: Remove file_name_map_list.
4566 (cpp_options): Remove map_list.
4567 (cpp_dir): Rename from cpp_path. New datatype for name_map.
4568 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
4569
a6400add
PE
45702003-07-29 Phil Edwards <pme@gcc.gnu.org>
4571
4572 * Makefile.in: Make stamp-objdir safe for parallel builds.
4573
b2790407
PE
45742003-07-29 Phil Edwards <pme@gcc.gnu.org>
4575
4576 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
4577 (info): Depend on stmp-docobjdir.
4578
8e3940b2
RO
45792003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4580
4581 * configure: Regenerate.
4582
602a82f3 45832003-07-29 Jan Hubicka <jh@suse.cz>
987bf56f
JH
4584
4585 PR C++/11131
4586 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
4587 in !unit-at-a-time mode.
4588
5f0eabcc
GK
45892003-07-28 Geoffrey Keating <geoffk@apple.com>
4590
4591 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
4592 main function.
4593
7b6d72fc
MM
45942003-07-28 Mark Mitchell <mark@codesourcery.com>
4595
4596 PR c++/11667
4597 * c-common.c (shorten_compare): Take into account differences
4598 between C and C++ representation for enumeration types.
4599 * tree.h (set_min_and_max_values_for_integral_type): Declare.
4600 * stor-layout.c (set_min_and_max_values_for_integral_type): New
4601 function, broken out from ...
4602 (fixup_signed_type): ... here and ...
4603 (fixup_unsigned_type): ... here.
4604
14077d68
ZW
46052003-07-28 Zack Weinberg <zack@codesourcery.com>
4606
4607 * c-decl.c: Update commentary, adjust blank lines throughout.
4608 (struct c_scope): Fix indentation. Reorder members so
4609 outer-context pointers come first, booleans last.
4610 (duplicate_decls, define_label): Use a 'locus' variable for
4611 diagnostic locations in a few more places.
4612 (warn_if_shadowing): Un-split a conditional that fits on one line.
4613 (c_init_decl_processing): No need to clear current_scope and
4614 current_function_scope.
4615 (start_decl): Merge if/else if statements with same action.
4616 (push_parm_decl): Rename old_immediate_size_expand to use
4617 save_foo convention; save/restore around entire function.
4618 (grokdeclarator): Remove unnecessary braces.
4619
85617eba
HPN
46202003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
4621 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
4622
4623 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
4624 when warn_declaration_after_statement. Call pedwarn_c90, not
4625 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
4626 * c-common.c (warn_declaration_after_statement): Define.
4627 * c-common.h (warn_declaration_after_statement): Declare.
4628 * c.opt (Wdeclaration-after-statement): New.
4629 * c-errors.c (pedwarn_c90): New function.
4630 * c-opts.c (c_common_handle_option) <case
4631 OPT_Wdeclaration_after_statement>: New.
4632 * c-tree.h (pedwarn_c90): Declare.
4633 * doc/invoke.texi (Option Summary): Document
4634 -Wdeclaration-after-statement.
4635 (Warning Options): Ditto.
4636
602a82f3 46372003-07-28 Jan Hubicka <jh@suse.cz>
f527d196
JH
4638
4639 * i386.md (memory attribute) Avoid accessing uninitialized memory
4640 for ishift1 type instructions.
4641
5dfa45d0
JJ
46422003-07-28 Jakub Jelinek <jakub@redhat.com>
4643
4644 * configure.in (--enable-checking): Add fold category.
4645 (ENABLE_FOLD_CHECKING): Define if requested.
4646 * configure: Rebuilt.
4647 * config.in: Rebuilt.
4648 * doc/install.texi: Document it.
4649 * fold-const.c: Include md5.h.
4650 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
4651 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
4652 print_fold_checksum): New functions.
4653
4654 * fold-const.c (fold): Never modify argument passed to fold, instead
4655 change a copy and return it.
4656 * convert.c (convert_to_integer): Likewise.
4657
447673de
NN
46582003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
4659
14077d68 4660 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
4661 cleanup of junk after #else and #endif directives. Collapse repeated
4662 clauses into for statment.
4663
4664 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
4665
66db6b62
ZW
46662003-07-27 Zack Weinberg <zack@codesourcery.com>
4667
a8ccdffe
ZW
4668 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
4669 (keep_next_if_subblocks): Rename next_is_function_body.
4670 (pushlevel): Adjust commentary. Always set ->keep on the
4671 outermost level of a function. Don't set ->keep_if_subblocks.
4672 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
4673 (store_parm_decls): Adjust to match.
4674 (finish_function): Adjust to match.
4675 Call poplevel with all three arguments zero.
4676
66db6b62
ZW
4677 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
4678 New functions split out of store_parm_decls.
4679 Avoid unnecessary work. Use local variables consistently.
4680 (store_parm_decls): Likewise.
4681
4682 (finish_function): No need to set functionbody flag on call to
4683 poplevel.
4684 (struct language_function): Remove scope field.
4685 (c_push_function_context, c_pop_function_context): No need to
4686 save and restore current_scope.
4687
90ea7324
NS
46882003-07-27 Nathan Sidwell <nathan@codesourcery.com>
4689
4690 * doc/extend.texi (Deprecated Features): Implicit typename is
4691 gone. Default args on types is going.
4692
11a004ef
R
46932003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
4694
4695 * Makefile.in (ifcvt.o): Depend on target.h
4696 * ifcvt.c (target.h): Include.
4697 (if_convert): Don't call mark_loop_exit_edges if we can't
4698 modify jumps.
4699
6cbf57c9
GP
47002003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4701
4702 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
4703
a6c14a64
RH
47042003-07-26 Richard Henderson <rth@redhat.com>
4705
4706 PR inline-asm/11676
4707 * cse.c (count_reg_usage): Handle asm_operands properly.
4708
cc42f5f5
RS
47092003-07-26 Roger Sayle <roger@eyesopen.com>
4710
4711 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
4712 (DEF_EXT_FALLBACK_BUILTIN): Delete.
4713 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
4714 the regular DEF_EXT_LIB_BUILTIN macro.
4715 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
4716 the regular DEF_LIB_BUILTIN macro.
4717 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
4718 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
4719 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
4720 DEF_EXT_LIB_BUILTIN macro.
4721
4722 * c-decl.c (duplicate_decls): Remove code to handle builtin
4723 functions prototyped without an argument list.
4724
92e7a6ef
DS
47252003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4726
4727 * config/i386/winnt.c: Revert 2003-07-08 change.
4728 (i386_pe_section_type_flags): Remove error_with_decl here too.
4729
ba9cfcb5
GDR
47302003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4731
4732 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
4733 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
4734 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
4735 (v850_handle_data_area_attribute): Likewise.
4736
0e5da0be
GK
47372003-07-26 Geoffrey Keating <geoffk@apple.com>
4738
66db6b62 4739 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
4740 ASM_DECLARE_CONSTANT_NAME if defined.
4741 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
4742 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
4743 objects get at least one byte to prevent assembler problems.
4744 (ASM_DECLARE_CONSTANT_NAME): New.
4745
d2908a50
GK
4746 * Makefile.in (libbackend.o): Remove options_.h.
4747 (mostlyclean): Likewise.
4748
0e5da0be
GK
4749 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4750 insert a label at the end of an function under Mach-O.
863d3dfb
GK
4751
4752 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
4753
36252949
AH
47542003-07-25 Aldy Hernandez <aldyh@redhat.com>
4755
4756 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
4757 equality.
4758 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
4759
4760 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
4761
0fe37f68
GDR
47622003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4763
4764 * doc/passes.texi (Passes): Mention pretty-printing and
4765 diagnostic files.
4766
50fc59e7
NS
47672003-07-25 Nathan Sidwell <nathan@codesourcery.com>
4768
4769 * doc/extend.texi (Function Attributes): GNU C++ does now allow
4770 unused parameter decls.
4771 (Attribute Syntax): GNU C++ does not allow label attributes to be
4772 after the ':'.
4773
cd475805
GDR
47742003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4775
4776 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
4777 (objc_declare_class): Likewise.
4778 (error_with_ivar): Likewise.
4779 (start_class): Likewise.
4780 (warn_with_method): Likewise.
4781
b6fe0bb8
GDR
47822003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4783
4784 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 4785 from GCC.
b6fe0bb8
GDR
4786 * calls.c (try_to_integrate): Don't use xxx_with_decl.
4787 (expand_call): Likewise.
4788 * dwarfout.c (output_reg_number): Likewise.
4789 * expr.c (expand_expr): Likewise.
4790 * function.c (assign_temp): Likewise.
4791 (uninitialized_vars_warning): Likewise.
4792 (setjmp_args_warning): Likewise.
4793 (expand_function_end): Likewise.
4794 * stmt.c (fixup_gotos): Likewise.
4795 (warn_about_unused_variables): Likewise.
4796 (expand_end_bindings): Likewise.
4797 * stor-layout.c (layout_decl): Likewise.
4798 (place_field): Likewise.
4799 * toplev.c (check_global_declarations): Likewise.
4800 (rest_of_handle_inlining): Likewise.
4801 (default_tree_printer): New function.
4802 (general_init): Initialize diagnostic machinery before routing
4803 signals to the ICE machinery. Set default tree printer.
4804 * toplev.h (pedwarn_with_decl): Remove declaration.
4805 (warning_with_decl): Likewise.
4806 (error_with_decl): Likewise.
66db6b62 4807 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
4808 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
4809 * varasm.c (named_section): Likewise.
4810 (make_decl_rtl): Likewise.
4811 (assemble_variable): Likewise.
4812 (merge_weak): Likewise.
4813 (declare_weak): Likewise.
4814
4815 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
4816 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
4817 (format_with_decl): Remove.
4818 (diagnostic_for_decl): Likewise.
4819 (pedwarn_with_decl): Likewise.
4820 (warning_with_decl): Likewise.
4821 (error_with_decl): Likewise.
4822 (diagnostic_initialize): Adjust.
4823 (diagnostic_count_diagnostic): Likewise.
4824 (announce_function): Likewise.
4825 (lhd_print_error_function): Likewise.
4826 (diagnostic_report_current_module): Likewise.
4827 (default_diagnostic_starter): Likewise.
4828 (diagnostic_report_diagnostic): Likewise.
4829 (default_diagnostic_finalizer): Likewise.
4830 (verbatim): Likewise.
4831 (error): Likewise.
4832 (warning): Likewise.
4833 * opts.c (common_handle_option): Likewise.
4834 * pretty-print.c: New file.
4835 * c-pretty-print.h (pp_base): Override.
4836 * c-pretty-print.c: Adjust use of macros throughout.
4837 (pp_buffer): New macro.
4838 (pp_newline): Likewise.
4839 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
4840 * Makefile.in (DIAGNOSTIC_H): New variable.
4841 (c-errors.o): Use it.
4842 (c-objc-common.o): Likewise.
4843 (c-common.o): Likewise.
4844 (c-opts.o): Likewise.
4845 (c-format.o): Likewise.
4846 (diagnostic.o): Likewise.
4847 (opts.o): Likewise.
4848 (toplev.o): Likewise.
4849 (rtl-error.o): Likewise.
4850 (dwarf2out.o): Likewise.
4851 (jump.o): Likewise.
4852 (pretty-print.o): New rule.
4853
868b8cda
RS
48542003-07-24 Roger Sayle <roger@eyesopen.com>
4855
4856 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
4857 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
4858 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
4859 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
4860 (DEF_FRONT_END_LIB_BUILTIN): Delete.
4861 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
4862 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
4863
4864 * builtins.c (build_string_literal): New function to construct
4865 a char* pointer to a string literal.
4866 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
4867 "rtx target" to be consistent with other expand_builtin_* functions.
4868 Change 3rd argument from "int unlocked" to "bool unlocked".
4869 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
4870 c-common.c to avoid front-end dependencies. Optimize printf("")
4871 as a no-op when the result isn't required. Handle embedded NULs
4872 in format string.
4873 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
4874 from c-common.c to avoid front-end dependencies. Likewise, optimize
4875 fprintf(fp,"") as a no-op when the result isn't required, evaluating
4876 fp for side-effects. Handle embedded NULs in format string.
4877 (expand_builtin_sprintf): Fix typo.
4878 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
4879 optimizing. Adjust calls of expand_builtin_fputs to match the API
4880 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
4881 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
4882 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
4883
4884 * c-common.c (is_valid_printf_arglist): Delete.
4885 (c_expand_builtin): Delete.
4886 (c_expand_builtin_printf): Moved to builtins.c. Delete.
4887 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
4888 (c_expand_expr): No longer treat CALL_EXPRs specially.
4889 (CALLED_AS_BUILT_IN): Delete.
4890
2a868ea4
ZD
48912003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4892
4893 PR optimization/11631
4894 * gcse.c (store_motion): Connect infinite loops to exit.
4895
de7df9eb
JM
48962003-07-24 Jason Merrill <jason@redhat.com>
4897
4898 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
4899 (boolean_true_node, boolean_false_node): Likewise.
4900 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
4901 * tree.c (build_common_tree_nodes): Init boolean_type_node.
4902 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
4903 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
4904 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
4905 (truthvalue_true_node): Renamed from boolean_true_node.
4906 (truthvalue_false_node): Renamed from boolean_false_node.
4907 * c-decl.c: Just set truthvalue_* to integer_*.
4908 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
4909
6907ddd3
RS
49102003-07-24 Roger Sayle <roger@eyesopen.com>
4911
4912 * c-decl.c (match_builtin_function_types): New subroutine of
4913 duplicate_decls to test whether a redeclaration of a builtin
4914 function is suitably close, i.e. the return type and all of
4915 the argument types have the same modes as the builtin expects.
4916 (duplicate_decls): Fuzzy type matching for builtin functions
4917 moved to match_builtin_function_types.
4918
84d45ad1
ZD
49192003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4920
4921 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
4922 flag correctly.
4923
f8521984
ZW
49242003-07-24 Zack Weinberg <zack@codesourcery.com>
4925
4926 * c-decl.c: Search-and-replace change 'binding level' to
4927 'scope' in commentary.
4928 (struct binding_level): Now struct c_scope.
4929 (current_binding_level): Now current_scope.
4930 (free_binding_level): Now scope_freelist.
4931 (current_function_level): Now current_function_scope.
4932 (global_binding_level): Now global_scope.
4933 (make_binding_level): Now make_scope.
4934 (pop_binding_level): Now pop_scope.
4935
0f31374d
RO
49362003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4937
4938 * configure.in (libgcc_visibility): Add missing whitespace.
4939
270606ac
RH
49402003-07-24 Richard Henderson <rth@redhat.com>
4941
4942 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
4943 __gcc_personality_v0.
f8521984 4944
5f08e44f
RO
49452003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4946
4947 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
4948
a4878735
NS
49492003-07-24 Nathan Sidwell <nathan@codesourcery.com>
4950
4951 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
4952 documentation missed from my 2003-07-09 patch.
4953
5aaaf0e8
NN
49542003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
4955
4956 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
4957 it's not provided.
4958 * configure: Rebuild.
4959
8f5b6d29
SB
49602003-07-24 Steven Bosscher <steven@gcc.gnu.org>
4961
4962 PR c/10602
4963 * c-typeck.c (type_lists_compatible_p): Do not compare
4964 arguments if one of them is an error_mark_node
4965
acd0b319
AM
49662003-07-24 Alan Modra <amodra@bigpond.net.au>
4967
4968 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
4969 if current_function_calls_eh_return.
4970
28b619b2
MM
49712003-07-23 Mark Mitchell <mark@codesourcery.com>
4972
4973 * doc/c-tree.texi (OFFSET_TYPE): Update description.
4974
07154156
BW
49752003-07-23 Bob Wilson <bob.wilson@acm.org>
4976
4977 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
4978 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
4979 __umodsi3, __modsi3): Increase frame size to 32.
4980
5f5bfdd0
GK
49812003-07-23 Geoffrey Keating <geoffk@apple.com>
4982
4983 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
4984 prototype.
4985
11b8e71c
MM
49862003-07-23 Mark Mitchell <mark@codesourcery.com>
4987
28b619b2
MM
4988 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
4989
11b8e71c
MM
4990 PR optimization/10679
4991 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
4992
9d6b7c09
JDA
49932003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4994
4995 PR target/11607 and PR target/11516
4996 * pa.md (extzv, extv, insv): Revert latter half of last patch.
4997
a5ac359a
MM
49982003-07-22 Mark Mitchell <mark@codesourcery.com>
4999
5000 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
5001 * varasam.c (output_constant): Likewise.
5002
938d968e
KH
50032003-07-22 Kazu Hirata <kazu@cs.umass.edu>
5004
5005 * alias.c: Fix comment formatting.
5006 * c-common.c: Likewise.
5007 * c-decl.c: Likewise.
5008 * c-opts.c: Likewise.
5009 * combine.c: Likewise.
5010 * cpplib.c: Likewise.
5011 * diagnostic.c: Likewise.
5012 * dojump.c: Likewise.
5013 * final.c: Likewise.
5014 * fold-const.c: Likewise.
5015 * gcc.c: Likewise.
5016 * gcse.c: Likewise.
5017 * ggc-page.c: Likewise.
5018 * jump.c: Likewise.
5019 * loop.c: Likewise.
5020 * mips-tfile.c: Likewise.
5021 * recog.c: Likewise.
5022 * regclass.c: Likewise.
5023 * regmove.c: Likewise.
5024 * tree.c: Likewise.
5025 * tree.h: Likewise.
5026
b3147029
PB
50272003-07-22 Per Bothner <pbothner@apple.com>
5028
5029 * line-map.c (add_line_map): Handle invalid LEAVE request.
5030 Fixes PR preprocessor/11361.
5031
53f72d60
PB
50322003-07-22 Per Bothner <pbothner@apple.com>
5033
5034 * diagnostic.c.(diagnostic_report_current_module): Update to match
5035 2003-06-05 changes to push_srcloc and pop_srcloc.
5036
5cf0212f
WB
50372003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
5038
5039 * doc/trouble.texi: Better document two-stage name lookup.
5040
c7453384
EC
50412003-07-22 Eric Christopher <echristo@redhat.com>
5042
5043 * config/s390.c (s390_valid_pointer_mode): New.
5044 (TARGET_VALID_POINTER_MODE): Use.
5045 (s390_emit_prologue): Add tpf profiling hooks.
5046 (s390_emit_epilogue): Ditto.
5047 * config/s390.h (MASK_TPF): New.
5048 (TARGET_TPF): Use.
5049 (POINTERS_EXTEND_UNSIGNED): Define.
5050 * config/s390.md (ptr_extend): New pattern.
5051
a2f7be91
ZW
50522003-07-22 Zack Weinberg <zack@codesourcery.com>
5053
5054 * hashtable.c (approx_sqrt): Make static.
5055 * hashtable.h: Don't prototype approx_sqrt.
5056 * line-map.c (init_line_maps): Rename linemap_init.
5057 (free_line_maps): Rename linemap_free.
5058 (add_line_map): Rename linemap_add.
5059 (lookup_line): Rename linemap_lookup.
5060 (print_containing_files): Rename linemap_print_containing_files.
5061 * linemap.h: Update to match.
5062
5063 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
5064 linemap routines to use new names.
5065
c6e4cc53
NS
50662003-07-16 Nathan Sidwell <nathan@codesourcery.com>
5067
5068 * c-common.c (handle_packed_attribute): Don't pack a struct via a
5069 typedef. Propagate packedness from a main variant.
5070
55de4f08
NN
50712003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
5072
5073 * Makefile.in (install-common): Add dependency on installdirs.
5074
fb5d2a87
AO
50752003-07-21 Alexandre Oliva <aoliva@redhat.com>
5076
5077 * c-common.c (c_common_type_for_mode): Return integer types for
5078 pointer modes.
5079
905bd7b5
GK
50802003-07-22 Geoffrey Keating <geoffk@apple.com>
5081
d05cc98e
GK
5082 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
5083 (finish_decl): Call maybe_apply_pragma_weak here.
5084 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
5085 TREE_PUBLIC and TREE_STATIC are decided.
5086 (start_function): Move call to maybe_apply_pragma_weak. Check that
5087 DECL_ASSEMBLER_NAME isn't set too early.
5088
905bd7b5
GK
5089 * cpplex.c (_cpp_process_line_notes): Mention option name in
5090 trigraphs warning.
5091
87d9741e
KH
50922003-07-22 Kazu Hirata <kazu@cs.umass.edu>
5093
5094 * combine.c (if_then_else_cond): Simplify the comparison of
5095 rtx against -1, 0, and 1.
5096 * loop.c (check_dbra_loop): Likewise.
5097 * optabs.c (emit_conditional_move): Likewise.
5098 (emit_conditional_add): Likewise.
5099 * config/i386/i386.md (*movsi_or): Likewise.
5100 (*movdi_or_rex6): Likewise.
5101
602a82f3 51022003-07-22 Jan Hubicka <jh@suse.cz>
b67d7f4a
JH
5103
5104 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
5105
8d973a83
NB
51062003-07-21 Neil Booth <neil@daikokuya.co.uk>
5107
5108 * cppfiles.c (open_file_pch): Don't put unused entries in the
5109 splay tree. Remove dead code.
5110
49a64b24
GK
51112003-07-21 Geoffrey Keating <geoffk@apple.com>
5112
48873ed2
GK
5113 * c-common.h (num_in_fnames): Declare.
5114 (c_static_assembler_name): Move from here...
5115 * c-tree.h (c_static_assembler_name): ... to here.
5116 * c-opts.c: Don't include langhooks-def.h.
5117 (c_static_assembler_name): Move to c-decl.c.
5118 (num_in_fnames): Make externally visible.
5119 * c-decl.c: Include langhooks-def.h.
5120 (c_static_assembler_name): Move from c-opts.c.
5121 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
5122 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
5123
49a64b24
GK
5124 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
5125 when it's not needed.
5126
8c29550d
JJ
51272003-07-21 Jakub Jelinek <jakub@redhat.com>
5128
5129 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
5130 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
5131 (rs6000_emit_prologue): Save FPRs inline if set.
5132
92cbea22
L
51332003-07-21 H.J. Lu <hongjiu.lu@intel.com>
5134
5135 * config/ia64/ia64.md (prefetch): Support predicate.
5136
ee735eef
JZ
51372003-07-21 Josef Zlomek <zlomekj@suse.cz>
5138
5139 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
5140 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
5141 table.
5142
bbda30a4
EB
51432003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5144
a2f7be91 5145 PR optimization/11536
bbda30a4
EB
5146 * unroll.c (loop_iterations): Do not replace a register holding
5147 the final value by its equivalent before the loop if it is not
5148 invariant.
5149
64c18e57
DF
51502003-07-21 Dave Fluri <dave.fluri@onlink.net>
5151
5152 * doc/extend.texi: Fixes to spelling, grammar, and diction.
5153
b222f49a
BE
51542003-07-21 Ben Elliston <bje@wasabisystems.com>
5155
5156 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
5157 (V850 Options): Spelling fixes.
5158
9eff22bc
LG
51592003-07-20 Lisa M. Goldstein <opus@gnu.org>
5160
a2f7be91 5161 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 5162
6a6c0154
RS
51632003-07-20 Roger Sayle <roger@eyesopen.com>
5164
5165 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
5166 * system.h (SMALL_STACK): Poison obsolete target macro.
5167 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
5168
d38b3a8d
PE
51692003-07-20 Phil Edwards <pme@gcc.gnu.org>
5170
5171 * configure.in: Cache the results of testing for cmp's capabilities.
5172 * configure: Regenerate.
5173
35dc2bd8
MM
51742003-07-20 Mark Mitchell <mark@codesourcery.com>
5175
5176 PR debug/11279
5177 * dwarf2out.c (gen_enumeration_type_die): Remember that
5178 enumerators can be unsigned.
5179
14e33ee8
ZW
51802003-07-19 Zack Weinberg <zack@codesourcery.com>
5181
5182 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
5183 (push_label_level, pop_label_level): Kill.
5184 (struct binding_level): Rename level_chain to outer.
5185 Add outer_function field. Change parm_flag, function_body,
5186 keep, keep_if_subblocks to 1-bit bitfields of type bool.
5187 (current_function_level): New variable.
5188 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
5189 (keep_next_level, declare_parm_level, warn_if_shadowing):
5190 Update to match.
5191 (struct language_function): Kill named_labels, shadowed_labels fields.
5192 (c_init_decl_processing, start_function, c_push__function_context)
5193 (c_pop_function_context): No need to muck with named_labels nor
5194 shadowed_labels.
5195
5196 (make_binding_level): No need to clear the structure here.
5197 (pop_binding_level): Always operate on current_binding_level.
5198 Update current_function_level if necessary.
5199 (pushlevel): Don't clear named_labels. Update current_function_level
5200 if necessary. Use "true" and "false" where appropriate.
5201 (poplevel): Diagnose labels defined but not used, or vice
5202 versa, and clear out label-meanings leaving scope, while
5203 walking down the decls list, for all binding levels.
5204 Handle LABEL_DECLs appearing in the shadowed list.
5205 pop_binding_level takes no arguments.
5206 (pushdecl_function_level): Use current_function_level.
5207
5208 (make_label, bind_label): New static functions.
5209 (declare_label): New exported function.
5210 (lookup_label, define_label): Rewritten for new data structure.
5211 (shadow_label): Kill.
5212
5213 * c-tree.h: Prototype declare_label; don't prototype
5214 push_label_level, pop_label_level, nor shadow_label.
5215 * c-parse.in: Remove all calls to push_label_level and
5216 pop_label_level. Use declare_label for __label__ decls.
5217
5218 * doc/extend.texi: Clarify that __label__ can be used to
5219 declare labels with local scope in any nested block, not
5220 just statement expressions. Cross-reference nested functions
5221 section from local labels section.
5222
8a6b9b7f
ZD
52232003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5224
5225 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
5226
026fe6c8
PE
52272003-07-19 Phil Edwards <pme@gcc.gnu.org>
5228
5229 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
5230
c68b0a84
KG
52312003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5232
5233 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
5234 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
5235
fd7643fb
UW
52362003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
5237
14e33ee8 5238 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
5239 relative to the GOT instead of relative to the literal pool base.
5240 (s390_output_symbolic_const): Handle new GOT-relative accesses.
5241 * config/s390/s390.md ("call"): Access local functions and PLT stubs
5242 relative to the GOT instead of relative to the literal pool base.
5243 ("call_value"): Likewise.
5244 ("call_value_tls"): Likewise.
5245
14e33ee8 5246 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
5247 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
5248 (s390_chunkify_finish): Likewise.
5249 (s390_chunkify_cancel): Likewise.
5250 (s390_reorg): Adapt caller.
5251 (find_base_register_in_addr,
5252 find_base_register_ref, replace_base_register_ref): Delete.
5253 (find_ltrel_base, replace_ltrel_base): New functions.
5254 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
5255 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
5256 base vs. index register usage.
5257 (struct constant_pool): Remove 'anchor'.
5258 (s390_add_anchor): Delete.
5259 (s390_dump_pool): Remove anchor handling.
5260 * config/s390/s390.md ("reload_anchor"): Remove.
5261
5262 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
5263 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
5264 (s390_emit_prologue): Use it.
14e33ee8
ZW
5265 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
5266 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
5267 hard-code register 14.
5268 * config/s390/s390-protos.h (s390_load_got): Declare.
5269
14e33ee8 5270 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
5271 Support TImode constants.
5272 * config/s390/s390.md ("consttable_ti"): New.
5273 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
5274
5275 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
5276 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
5277 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
5278 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
5279 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
5280 New symbolic constants.
5281 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5282 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
5283 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
5284 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
5285 symbolic UNSPEC values.
14e33ee8 5286 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
5287 bras_sym_operand, s390_cannot_force_const_mem,
5288 s390_delegitimize_address, s390_decompose_address,
5289 legitimize_pic_address, s390_output_symbolic_const,
5290 s390_function_profiler): Use symbolic UNSPEC values.
5291
703ad42b
KG
52922003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5293
5294 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
5295 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
5296 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
5297 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
5298 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
5299 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
5300 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
5301 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
5302 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
5303 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
5304 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
5305 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
5306 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
5307 postreload.c prefix.c print-tree.c protoize.c ra-build.c
5308 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
5309 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
5310 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
5311 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
5312 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
5313 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
5314 casts.
5315
308ca868
GDR
53162003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5317
5318 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
5319 * toplev.h (warning): Remove attribute.
5320
435ab236
GDR
53212003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5322
5323 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
5324 (pop_label_level): Likewise.
5325 (duplicate_decls): Likewise.
5326 (implicitly_declare): Likewise.
5327 (shadow_label): Likewise.
5328 (start_decl): Likewise.
5329 (finish_decl): Likewise.
5330 (grokdeclarator): Likewise.
5331 (get_parm_info): Likewise.
5332 (detect_field_duplicates): Likewise.
5333 (finish_struct): Likewise.
5334 (start_function): Likewise.
5335 (store_parm_decls): Likewise.
5336 (finish_function): Likewise.
5337 (c_expand_body_1): Likewise.
5338 (check_for_loop_decls): Likewise.
5339 (merge_translation_unit_decls): Likewise.
5340
2cc98056
NB
53412003-07-19 Neil Booth <neil@daikokuya.co.uk>
5342
5343 * common.opt: Document --param.
5344 * opts.c (columns, undocumented_msg): New.
5345 (print_help): Get number of columns from environment. Print
5346 --param help. Tweak newline handling.
5347 (print_param_help): New.
5348 (print_filtered_help): Better handling of duplicates. Complain
5349 about undocumented switches.
5350 (print_switch): New.
5351 (wrap_help): Improve wrapping, use COLUMNS.
5352 * opts.sh: Ignore comments in records.
5353 * params.def: Fix typos and remove trailing periods.
5354 * toplev.c (display_help): Don't dump --param help.
5355 * doc/sourcebuild.texi: Update.
5356
d893ccde
RH
53572003-07-18 Richard Henderson <rth@redhat.com>
5358
0e38b30b 5359 PR target/11556
d893ccde
RH
5360 * optabs.c (prepare_operand): Fail gracefully instead of abort
5361 if the predicate doesn't satisfy.
5362 (gen_cond_trap): Allow prepare_operand to fail.
5363
eb8221ea
GDR
53642003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5365
5366 * c-common.c: Don't undefine GCC_DIAG_STYLE.
5367 (fname_decl): Don't use xxx_with_decl.
5368 (c_add_case_label): Likewise.
5369 (handle_section_attribute): Likewise.
5370 (handle_alias_attribute): Likewise.
5371 (handle_no_instrument_function_attribute): Likewise.
5372 (handle_no_limit_stack_attribute): Likewise.
5373 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
5374 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
5375
65f43cdf
ZD
53762003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5377
5378 * Makefile.in (ifcvt.o): Add cfgloop.h.
5379 * basic-block.h (EDGE_LOOP_EXIT): New flag.
5380 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
5381 * ifcvt.c: Include cfgloop.h.
5382 (mark_loop_exit_edges): New static function.
5383 (if_convert): Call it.
5384 (find_if_header): Ignore branches out of loops.
5385
e5686da7
KH
53862003-07-18 Kazu Hirata <kazu@cs.umass.edu>
5387
14e33ee8 5388 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
5389 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
5390
8d05ebaa
DE
53912003-07-18 David Edelsohn <edelsohn@gnu.org>
5392
5393 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
5394 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
5395 (MUST_PASS_IN_STACK): Define.
5396 (BLOCK_REG_PADDING): Define.
5397
79019985
RH
53982003-07-18 Richard Henderson <rth@redhat.com>
5399
5400 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
5401 to skip the addr_vec.
5402
602a82f3 54032003-07-18 Alexandre Oliva <aoliva@redhat.com>
0595d388
AO
5404
5405 * combine.c (combinable_i3pat): Don't forbid occurrences of
5406 i2dest or i1dest in inner_dest if inner_dest is a mem.
5407
602a82f3 54082003-07-18 Jan Hubicka <jh@suse.cz>
2ee1067b
JH
5409
5410 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
5411
16f6812f
JJ
54122003-07-17 Jakub Jelinek <jakub@redhat.com>
5413
5414 PR target/11087
5415 * loop.c (basic_induction_var): Check if convert_modes emitted any
5416 instructions. Remove them and return 0 if so.
5417
f129791c
EB
54182003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5419
5420 PR optimization/11083
5421 * toplev.c (rest_of_handle_addresof): Rename into
5422 rest_of_handle_addressof. Delete unreachable blocks
5423 if dead edges were purged after the addressof pass.
5424
b2e608ca
NB
54252003-07-18 Neil Booth <neil@daikokuya.co.uk>
5426
5427 * Makefile.in, configure, configure.in: Remove handling of
5428 lang-options.h and options_.h.
5429 * toplev.c (struct lang_opt, documented_lang_options): Remove.
5430 (display_help): Don't use documented_lang_options.
5431
9cd51ef6
ZW
54322003-07-17 Zack Weinberg <zack@codesourcery.com>
5433
5434 * c-decl.c (pushdecl_function_level): Make static, return nothing.
5435 (kept_level_p): Fold into poplevel.
5436 (undeclared_variable): Moved here from c-typeck.c. Export.
5437 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
5438 (undeclared_variable): Prototype here. Don't prototype
5439 kept_level_p nor pushdecl_function_level.
5440 * c-parse.in: Change first argument to poplevel from
5441 "kept_level_p()" to "KEEP_MAYBE".
5442 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
5443
cf6bcbd0
RS
54442003-07-17 Roger Sayle <roger@eyesopen.com>
5445
5446 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
5447 commutative operands instead of modifying the RTL in-place.
5448
2b187c63
MM
54492003-07-17 Mark Mitchell <mark@codesourcery.com>
5450
5451 PR optimization/11557
5452 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
5453 unless we know which function is being called.
5454
c715abdd
RS
54552003-07-17 Roger Sayle <roger@eyesopen.com>
5456
5457 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
5458 whether to reorder the operands of a commutative binary operator.
5459
3e4093b6
RS
54602003-07-17 Roger Sayle <roger@eyesopen.com>
5461
5462 * fold-const.c (const_binop): Avoid performing the FP operation at
5463 compile-time, if either operand is NaN and we honor signaling NaNs,
5464 or if we're dividing by zero and either flag_trapping_math is set
5465 or the desired mode doesn't support infinities.
5466 (fold_initializer): New function to fold an expression ignoring any
5467 potential run-time exceptions or traps.
5468 * tree.h (fold_initializer): Prototype here.
5469 * c-typeck.c (build_binary_op): Move to the end of the file so
5470 that intializer_stack is in scope. If constructing an initializer,
5471 i.e. when initializer_stack is not NULL, use fold_initializer to
5472 fold expressions.
5473 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
5474 performing FP operations at compile-time, if they would raise an
5475 exception at run-time.
5476
89e9faee
GK
54772003-07-17 Geoffrey Keating <geoffk@apple.com>
5478
26e0dcb3
GK
5479 PR 11498
5480 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
5481 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
5482 (GTFILES): Add langhooks.c.
5483 (gt-langhooks.h): New.
5484 * c-common.h (c_static_assembler_name): Prototype.
5485 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
5486 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
5487 * c-opts.c: Include langhooks-def.h.
5488 (c_static_assembler_name): New.
5489 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
5490 (var_labelno): New.
5491 (lhd_set_decl_assembler_name): Give static objects with context
5492 unique names.
5493 * varasm.c (var_labelno): Delete.
5494 (make_decl_rtl): Don't change the assembler name once it's set.
5495
89e9faee
GK
5496 * c-opts.c (this_input_filename): New.
5497 (finish_options): Take new parameter, name of file being compiled.
5498 Update callers. Set this_input_filename.
5499 (push_command_line_include): Use this_input_filename not
5500 main_input_filename.
5501
6ec3f553
NB
55022003-07-17 Neil Booth <neil@daikokuya.co.uk>
5503
5504 * Makefile.in: Depend .pot generation on options.c.
5505 * po/exgettext: Add an extra_files variable containing additional
5506 files to scan.
5507
78ff95dc
ZW
55082003-07-17 Zack Weinberg <zack@codesourcery.com>
5509
36c6d174
ZW
5510 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
5511 c_write_global_declarations.
5512
eb1dfbb2
ZW
5513 * c-decl.c: Fix typos in several comments. Remove all
5514 #if 0 blocks; reindent as needed. Remove unused argument
5515 to declare_parm_level; all callers changed.
5516 * c-parse.in: Update calls to declare_parm_level. Avoid
5517 issuing a double warning in some circumstances.
5518 * c-typeck.c: Update calls to declare_parm_level.
5519 * c-tree.h: Update prototype of declare_parm_level.
5520
5521 * c-pragma.c (apply_pragma_weak): Don't complain about a
5522 redundant #pragma weak.
5523
5524 * objc/objc-act.c (forward_declare_categories,
5525 build_selector_reference_decl, build_class_reference_decl,
5526 build_objc_string_decl, synth_forward_declarations,
5527 build_protocol_reference): Set TREE_PUBLIC on synthetic
5528 forward decl to 0, consistent with eventual definition.
5529 Correct comments to match.
5530
78ff95dc
ZW
5531 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
5532 in regexp that don't form a range expression.
5533 * fixinc/fixincl.def: Regenerate.
5534
b23ba0b8
RH
55352003-07-17 Richard Henderson <rth@redhat.com>
5536
78ff95dc
ZW
5537 PR target/10907
5538 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
5539 even with !TARGET_CONST_GP.
5540 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 5541
d944c82d
SB
55422003-07-17 Steven Bosscher <steven@gcc.gnu.org>
5543
5544 * c-common.c (c_estimate_num_insns_1): Don't handle
5545 METHOD_CALL_EXPR.
5546 * expr.c (safe_from_p): Likewise.
5547 * gengtype.c (adjust_field_tree_exp): Likewise.
5548 * stmt.c (warn_if_unused_value): Likewise
5549 * tree.c (first_rtl_op): Likewise.
5550 * tree.def: Don't define METHOD_CALL_EXPR.
5551 * java/lang.c (java_estimate_num_insns_1): Don't handle
5552 METHOD_CALL_EXPR.
5553
54284728
EB
55542003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5555
5556 PR other/11466
5557 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
5558 and its restrictions for the SPARC64 port.
5559 Move the entry of "-mimpure-text" before that of "-mv8".
5560
bc890961 55612003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 5562 Phil Edwards <phil@jaj.com>
bc890961
EB
5563
5564 * doc/install.texi (*-*-solaris2*): Document the step-by-step
5565 procedure to bootstrap and install.
5566 Document the preference for the legacy Sun tools in /usr/bin
5567 over the POSIX tools in /usr/xpg4/bin for the build process.
5568
f2ac9964
NB
55692003-07-17 Neil Booth <neil@daikokuya.co.uk>
5570
5571 * c.opt: Document Uncodumented; use it. Document ObjC options.
5572 * opts.c (print_filtered_help): Skip undocumented switches.
5573 * opts.h (CL_UNDOCUMENTED): New.
5574 * opts.sh: Handle Undocumented.
5575 * toplev.c (documented_lang_options): Prevent its becoming empty.
5576objc:
5577 * lang-options.h: Remove.
5578
03988cac
UW
55792003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
5580
5581 * loop.c (check_ext_dependent_givs): Pass const struct loop *
5582 instead of struct loop_info * as argument. Accept BIVs with
5583 increment +/- 1 provided there is a friendly exit test against
5584 a loop-invariant value.
5585 (strength_reduce): Adapt call to check_ext_dependent_givs.
5586
fada1961
R
55872003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
5588 Con Bradley <con.bradley@superh.com>
5589
5590 * sh-protos.h (sh_get_pr_initial_val): Declare.
5591 * sh.c (regno_reg_class): Make its elements type enum reg_class.
5592 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
5593 and live_regs_mask arguments. Changed all callers.
5594 (save_schedule_s): New structure.
5595 (save_schedule): New typedef.
5596 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
5597 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
5598 In interrupts handlers, also save registers that are usually
5599 partially saved, and make sure there is at least one general purpose
5600 register saved if a target register needs saving.
5601 Add casts in comparisons to avoid warnings.
5602 (sh_media_register_for_return): return -1 for interrupt handlers.
5603 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
5604 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
5605 registers used are available.
5606 Set RTX_FRAME_RELATED_P where appropriate.
5607 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
5608 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
5609 (initial_elimination_offset): Likewise.
5610 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
5611 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
5612 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
5613 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
5614 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
5615 and for target registers.
5616 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
5617 (regno_reg_class): Make its elements type enum reg_class.
5618 (CONSTRAINT_LEN): Don't use isdigit.
5619 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
5620 (FUNCTION_ARG): Add parentheses to avoid warnings.
5621 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
5622 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
5623 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
5624 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
5625 * sh.md (xordi3+1): Remove unused variable regno.
5626 (return_media): Check that tr0 is available before using it.
5627
bae92bf3
NB
56282003-07-16 Neil Booth <neil@daikokuya.co.uk>
5629
5630 * c.opt: Document more options.
5631
cc8c96fd
RS
56322003-07-16 Roger Sayle <roger@eyesopen.com>
5633
5634 * combine.c (subst): Also handle (subreg (const_double ...)) case
5635 if created by a substitution, by using the original inner mode.
5636
d41ba56f
RS
56372003-07-16 Roger Sayle <roger@eyesopen.com>
5638
5639 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
5640 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
5641 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
5642
264d65c1 56432003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 5644
264d65c1 5645 * doc/install.texi (--without-headers): New.
1622229c
AP
5646
5647 Partial Fix PR/10129
5648 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
5649 (machopic_output_function_base_name): New; print the true pic label.
5650 (machopic_classify_ident): Pic Base is always a defined data.
5651 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
5652 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
5653
db2f435b
AP
5654 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
5655 if they are not floating point registers.
5656
d07605f5
AP
5657 PR c/10962
5658 * ggc.h: Add header guards.
5659 * c-decl.c (finish_struct): Sort fields if
5660 number greater than 15 and there are no
5661 anonymous structs/unions.
5662 * c-common.h: Include ggc.h.
5663 (sorted_fields_type): New struct.
5664 (field_decl_cmp): New prototype.
5665 (resort_sorted_fields): New prototype.
5666 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
5667 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
5668 as s, removing other fields.
5669 * c-typeck.c (lookup_field): Use s in lang_type.
5670 These were mostly moved from cp/class.c:
5671 * c-common.c (field_decl_cmp): New static function.
5672 (field_decl_cmp): New function.
5673 (resort_sorted_fields): New function.
5674
3d7964d5
GK
56752003-07-16 Geoffrey Keating <geoffk@apple.com>
5676
5677 * config/darwin.c (machopic_select_section): Use decl_readonly_section
5678 to do most of the work.
5679
4e58524e
HPN
56802003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
5681
5682 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
5683 * config/mmix/mmix.c: Convert functions to ISO C90.
27f35b75 5684 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4e58524e
HPN
5685 formatting.
5686 (mmix_get_hard_reg_initial_val): Tweak section head comment.
5687
1e0343dd
R
56882003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
5689
5690 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
5691
fc4767bb
JJ
56922003-07-16 Jakub Jelinek <jakub@redhat.com>
5693
5694 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
5695 (uw_update_context_1): Use it.
5696 * config/rs6000/rs6000.c (insn_after_throw): Remove.
5697 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
5698 in parent frame if _Unwind_* called directly instead of through
5699 .plt.
5700 (rs6000_emit_eh_toc_restore): Remove.
5701 (rs6000_emit_prologue): Update stack pointer before doing any saving
5702 if current_function_calls_eh_return. Generate unwind info for $r2.
5703 (rs6000_emit_epilogue): Restore stack pointer after doing all
5704 restoring if current_function_calls_eh_return. Restore $r2.
5705 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
5706 * config/rs6000/rs6000.md (eh_return): Remove call to
5707 rs6000_emit_eh_toc_restore.
5708 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
5709 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
5710
6972c506
JJ
57112003-07-15 Jakub Jelinek <jakub@redhat.com>
5712
5713 * expr.c (emit_block_move): Don't move anything if size is const 0.
5714 (clear_storage): Test against const0_rtx instead of comparing INTVAL
5715 against 0.
5716
ac59ed37
DM
57172003-07-15 David S. Miller <davem@redhat.com>
5718
5719 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
5720 emit nop if the last real insn is CALL_INSN.
5721
b828d124
DS
57222003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
5723
5724 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
5725 as "nul".
5726 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
5727
d5648e12
DS
57282003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
5729
5730 * config/i386/winnt.c (associated_type): Artificial methods are not
5731 affected by the import/export status of their class unless they are
5732 COMDAT.
5733 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
5734
5735 * config/i386/winnt.c: Fix GCC copyright comment.
5736
b0e3f7ec
GDR
57372003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
5738
5739 PR c++/11531
5740 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
5741 not recursing on hard error.
5742 (diagnostic_for_decl): Likewise.
5743 * diagnostic.def: Rearrange.
5744
71628aa0
R
57452003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
5746
5747 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5748 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
5749
57502003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
5751 Richard Henderson <rth@redhat.com>
5752
5753 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
5754 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
5755 (_Unwind_SetGR): Likewise.
5756 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
5757 (Unwind_SpTmp): New typedef.
5758 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
5759 (uw_update_context): Use _Unwind_GetPtr.
5760 (init_dwarf_reg_size_table): Move above uw_init_context_1.
5761 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
5762 Use _Unwind_SetSpColumn.
5763 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
5764 Use _Unwind_GetPtr.
5765
5a170a05
NB
57662003-07-15 Neil Booth <neil@daikokuya.co.uk>
5767
5768 * c.opt: Document more options.
5769 * toplev.c (documented_lang_options): Remove all local help strings.
5770
b0afa2fc
MM
57712003-07-15 Mark Mitchell <mark@codesourcery.com>
5772
5773 PR debug/11473
5774 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
5775 base classes.
5776
5df90541
KH
57772003-07-15 Kazu Hirata <kazu@cs.umass.edu>
5778
5779 PR target/10795
5780 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
5781 swap comparison operands if doing so would generate an
5782 unrecognizable insn.
5783
5a257872
EB
57842003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
5785
5786 PR optimization/11320
5787 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5788 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5789 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5790 current_sched_info->compute_jump_reg_dependencies. Record which
5791 registers are used and which registers are set by the jump.
5792 Clear deps->reg_conditional_sets after a barrier.
5793 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5794 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5795 (init_deps): Initialize reg_conditional_sets.
5796 (free_deps): Clear reg_conditional_sets.
5797 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5798 Mark registers live on entry of the fallthrough block and conditionally
5799 set as set by the jump. Mark registers live on entry of non-fallthrough
5800 blocks as used by the jump.
5801 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5802 Mark new parameters as unused.
5803
3cec3f83
RS
58042003-07-15 Richard Sandiford <rsandifo@redhat.com>
5805
5806 * doc/invoke.texi: Resync MIPS -march documentation.
5807
98450f0d
RS
58082003-07-15 Richard Sandiford <rsandifo@redhat.com>
5809
5810 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
5811 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
5812 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
5813 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
5814 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
5815 (mips_issue_rate): Handle PROCESSOR_R9000.
5816 (mips_use_dfa_pipeline_interface): Likewise.
5817 * config/mips/9000.md: New file.
5818 * config/mips/mips.md: Include it.
5819 (define_attr cpu): Add r9000.
5820 (mulsi3_mult3): Use "mul" for rm9000 code.
5821
5fe25f47
SC
58222003-07-15 Stan Cox <scox@redhat.com>
5823
5824 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
5825 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
5826 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
5827 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
5828 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
5829 (mips_issue_rate): Handle PROCESSOR_R7000.
5830 (mips_use_dfa_pipeline_interface): Likewise.
5831 * config/mips/7000.md: New file.
5832 * config/mips/mips.md: Include it.
5833 (define_attr cpu): Add r7000.
5834 (mulsi3_mult3): Use "mul" for rm7000 code.
5835
5a2515e6
RS
58362003-07-15 Richard Sandiford <rsandifo@redhat.com>
5837
5838 * config/mips/mips.md (define_attr type): Add condmove. Use it for
5839 the conditional move patterns.
5840 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
5841 Check for condmove type.
5842 (ir_vr54_arith): Add move type.
5843 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
5844 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
5845
72de27ea
NB
58462003-07-15 Neil Booth <neil@daikokuya.co.uk>
5847
5848 * c-opts.c (print_help): Remove.
5849 (c_common_handle_option): Don't handle --help.
5850 * c.opt: Document some options.
5851 (--help): Remove.
5852 * opts.c (print_filtered_help): New.
5853 (print_help): Use it.
5854
e6ebd07b
GK
58552003-07-14 Geoffrey Keating <geoffk@apple.com>
5856
2d799c09
GK
5857 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
5858 * tree.c: (build_common_tree_nodes_2): Likewise.
5859 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
5860 (V4DF_type_node): New.
5861
e6ebd07b
GK
5862 * c-opts.c (push_command_line_include): Don't free deferred_opts,
5863 we'll need it.
5864 (finish_options): Reset init_cursor.
5865
b90f141a
KH
58662003-07-15 Kazu Hirata <kazu@cs.umass.edu>
5867
5868 * expr.c (expand_assignment): Remove an unused argument
5869 SUGGEST_REG.
5870 * expr.h: Update the prototype.
5871 * function.c: Update the callers.
5872 * stmt.c: Likewise.
5873
1e7ee6ad
MM
58742003-07-14 Mark Mitchell <mark@codesourcery.com>
5875
5876 PR debug/11098
5877 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
5878 as DECL_ABSTRACT.
5879
bf66f7b0
NN
58802003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
5881
5882 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
5883 with __cplusplus, not "we must use the C++ compiler's type"
5884 * fixinc/inclhack.def (void_null): Note that Interix needs this.
5885 * fixinc/fixincl.x: Regenerate.
5886
18009d03
GK
58872003-07-14 Geoffrey Keating <geoffk@apple.com>
5888
ea00486e
GK
5889 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
5890 and unseen_objects from the global data before calling
5891 __deregister_frame_info_bases.
5892 (examine_objects): Insert objects into the seen_objects list,
5893 not unseen_objects.
5894 (_Unwind_Find_FDE): Always unlock the global object lists, even if
5895 we couldn't allocate a data structure to put in it.
5896
18009d03
GK
5897 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
5898 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
5899 (SET_TYPE_PROTOCOL_LIST): New.
5900 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
5901 (get_object_reference): Likewise.
5902
602a82f3 59032003-07-14 Jan Hubicka <jh@suse.cz>
9ae130f8
JH
5904
5905 * cfglayout.c (locator_file): Break out from ....
5906 (insn_file): ... here.
5907 (locator_line): Break out from ....
5908 (insn_line): ... here.
5909 * rtl.h (locator_file, locator_line): Declare.
5910 (final_start_function): Set proper line/file info.
5911
e07d4821
GDR
59122003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
5913
5914 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
5915 handled by pp_c_cast_expression.
5916
121d69e6
RS
59172003-07-14 Richard Sandiford <rsandifo@redhat.com>
5918
5919 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
5920 allocate 32768 bytes of stack. Use addition rather than subtraction
5921 when a single insn is enough.
5922 * config/mips/mips.md: Remove insns and splitters for subtracting
5923 constants.
5924 (subsi3): Only accept register operands.
5925 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
5926 (subdi3_internal_3, subsi3_internal_2): Likewise.
5927 (casesi): Use expand_binop to subtract the lower bound.
5928
3485245e
RS
59292003-07-14 Richard Sandiford <rsandifo@redhat.com>
5930
5931 * config/mips/mips.c (mips_in_small_data_p): Don't handle
5932 TARGET_MIPS16 specially.
5933
6627b7f9
RS
59342003-07-14 Richard Sandiford <rsandifo@redhat.com>
5935
6d0b50a4
RS
5936 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
5937 mips_output_aligned_bss.
5938 * config/mips/linux.h: Likewise.
5939 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
5940 * config/mips/mips.c (mips_output_aligned_bss): New function.
5941
8d50bd19
RS
5942 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
5943 * config/mips/elf64.h: Likewise.
5944
c1115ccd
RS
5945 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
5946 mips_declare_object_name.
5947 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
5948 * config/mips/elf64.h: As for elf.h.
5949 * config/mips/iris6.h: Likewise.
5950 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
5951 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
5952 do...while (0) block.
5953 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
5954 (mips_finish_declare_object): Declare.
5955 * config/mips/mips.c (mips_declare_object_name): New function.
5956 (mips_finish_declare_object): New function.
5957
060ff934
RS
5958 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
5959 * config/mips/linux.h: Likewise.
5960
d82783b6
RS
5961 * config/mips/mips.c (inside_function): Delete.
5962 (file_in_function_warning, ignore_line_number): Delete.
5963 (mips_output_filename): Don't warn about changing filenames within
5964 a function.
5965 (mips_output_lineno): Update accordingly.
5966 (mips_output_function_prologue): Don't reset the deleted variables.
5967 * config/mips/mips.h (inside_function): Delete.
5968 (file_in_function_warning, ignore_line_number): Delete.
5969
373f8df7
RS
5970 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
5971 * config/mips/elf64.h: Likewise.
5972 * config/mips/openbsd.h: Likewise.
5973 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
5974 * config/mips/linux.h: Likewise.
5975 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
5976 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
5977
6627b7f9
RS
5978 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
5979 to the list of include files when using gas.
5980 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
5981 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
5982 * config/mips/elf64.h: Likewise.
5983 * config/mips/iris5.h: Likewise.
5984 * config/mips/linux.h: Likewise.
5985 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
5986 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5987 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
5988 * config/mips/sdb.h: ...this new file.
5989
c18b00c0
NN
59902003-07-14 Douglas Rupp <rupp@gnat.com>
5991
5992 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
5993 argument to getcwd; use fixed buffer instead.
5994
59952003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
5996
5997 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
5998 * fixinc/fixinc.wrap: Delete.
5999
adc4adcd
GP
60002003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
6001
6002 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
6003 don't have 2.
6004
60052003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
6006
6007 * ggc-page.c (struct globals): Add new fields to keep track of the
6008 total allocated memory and overhead.
6009 (ggc_print_statistics): Print them.
6010 (ggc_alloc): Keep track of the total allocated memory and the
6011 overhead.
6012
6013 * tree.c (dump_tree_statistics): Increase spacing.
6014 (enum tree_node_kind): Move to ...
6015 * tree.h (enum tree_node_kind): ... here.
6016 (tree_node_counts, tree_node_sizes): Declare.
6017
60182003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
6019
6020 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
6021
bbd288a4
FS
60222003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6023
6024 PR optimization/11440
6025 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
6026 SIGN_EXTRACT SETs.
6027
6e985040
AM
60282003-07-14 Alan Modra <amodra@bigpond.net.au>
6029
6030 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
6031 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
6032 (emit_group_load, emit_group_store): Adjust declarations.
6033 Remove most occurrences of #ifdef TREE_CODE.
6034 * expr.c (emit_group_load): Add "type" param, and use
6035 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
6036 aligned accesses if !SLOW_UNALIGNED_ACCESS.
6037 (emit_group_store): Likewise.
6038 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
6039 emit_group_load and emit_group_store calls.
6040 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
6041 BLOCK_REG_PADDING to determine whether we need endian_correction.
6042 (load_register_parameters): Localize vars. Handle shifting of
6043 small values to the correct end of regs. Adjust emit_group_load
6044 call.
6045 (expand_call, emit_library_call_value_1): Adjust emit_group_load
6046 and emit_group_store calls.
6047 * function.c (assign_parms): Set mem alignment for stack slots.
6048 Adjust emit_group_store call. Store values at the "wrong" end
6049 of regs to the stack. Use BLOCK_REG_PADDING.
6050 (locate_and_pad_parm): Save where_pad.
6051 (expand_function_end): Adjust emit_group_load call.
6052 * stmt.c (expand_value_return): Adjust emit_group_load call.
6053 * Makefile.in (calls.o): Depend on $(OPTABS_H).
6054 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
6055 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
6056 (MUST_PASS_IN_STACK): Define.
6057 (BLOCK_REG_PADDING): Define.
6058 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
6059 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
6060 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
6061 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
6062 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
6063
4fab535e
AL
60642003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
6065
6066 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
6067
8d2e5f72
RK
60682003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6069
6070 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
6071 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
6072
7eaab492
NN
60732003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
6074
6075 PR other/11123
6076 * toplev.c: Don't cut off option names.
6077
9d4a30f2
AJ
60782003-07-13 Andreas Jaeger <aj@suse.de>
6079
6080 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
6081 to integer of different size.
6082
34ed3bb0
KH
60832003-07-13 Kazu Hirata <kazu@cs.umass.edu>
6084
6085 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
6086 to (eq (and X 1) 0).
6087
1a7d0840
AJ
60882003-07-13 Andreas Jaeger <aj@suse.de>
6089
6090 * config.gcc: Add pmmintrin.h for x86_64-*-*.
6091
43839642
ZW
60922003-07-13 Zack Weinberg <zack@codesourcery.com>
6093
6094 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
6095 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
6096 list. Move these all together down by cpplib.
6097
6098 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
6099 definition of CPPCHAR_SIGNED_T.
6100
6101 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
6102 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
6103 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
6104
6105 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
6106 * cppinit.c (cpp_create_reader): Likewise.
6107
6108 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
6109 * cpptrad.c: Likewise. All callers changed.
6110 * cpplib.c: All callers changed.
6111 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
6112 * hashtable.h: Define GTY(x) to nothing here too.
6113
0acf4f88
RK
61142003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6115
6116 * stor-layout.c (compute_record_mode): Remove very obsolete test
6117 that forces BLKmode for records with fields crossing word boundary.
6118
46db61e7
ZW
61192003-07-13 Zack Weinberg <zack@codesourcery.com>
6120
6121 * Makefile.in: Remove orphan reference to acconfig.h.
6122
db0e878d
AJ
61232003-07-13 Andreas Jaeger <aj@suse.de>
6124
6125 * cgraphunit.c: Convert prototypes to ISO C90.
6126
4146d8d0
NN
61272003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
6128
6129 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
6130 (for OpenBSD).
6131 * fixinc/fixincl.x: Rebuild.
6132
6f3ca281
ZW
61332003-07-12 Zack Weinberg <zack@codesourcery.com>
6134
6135 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
6136 i?86-*-*. Use correct name of cache variable.
6137 * configure: Regenerate.
6138
9a9f7594
KH
61392003-07-12 Kazu Hirata <kazu@cs.umass.edu>
6140
6141 * config/alpha/alpha.c: Fix comment typos.
6142 * config/alpha/alpha.md: Likewise.
6143 * config/arm/arm.c: Likewise.
6144 * config/arm/arm.md: Likewise.
6145 * config/arm/lib1funcs.asm: Likewise.
6146 * config/avr/avr.md: Likewise.
6147 * config/arm/README-interworking: Fix typos.
6148
4ed43216
KH
61492003-07-12 Kazu Hirata <kazu@cs.umass.edu>
6150
6151 * c-format.c: Fix comment formatting.
6152 * c-typeck.c: Likewise.
6153 * coverage.c: Likewise.
6154 * cppcharset.c: Likewise.
6155 * cpplib.c: Likewise.
6156 * dbxout.c: Likewise.
6157 * gcov-io.h: Likewise.
6158 * toplev.c: Likewise.
6159
c3a5b1e9
NN
61602003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
6161
6f3ca281 6162 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
6163 fix.
6164
8ada417f
ZW
61652003-07-12 Zack Weinberg <zack@codesourcery.com>
6166
6167 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
6168 uses three-argument AC_DEFINE so no acconfig.h entries are
6169 needed.
6170 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
6171 which contains the GAS version number as a scaled integer.
6172 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
6173 ability to check for ELF assembler.
6174 (gcc_GAS_CHECK_FEATURE): New macro.
6175 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
6176 assembler feature checks using gcc_GAS_CHECK_FEATURE.
6177 Use three-argument AC_DEFINE everywhere.
6178 * acconfig.h: Deleted.
6179 * config.in, configure: Regenerate.
6180
d5d16b5f
NN
61812003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
6182
3b57c563
NN
6183 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
6184 (on OpenBSD).
d33fb69b 6185 * fixinc/fixincl.x: Regenerate.
3b57c563 6186
d5d16b5f
NN
6187 * fixinc/inclhack.def (gnu_types): Improve comment.
6188
439f7bc3
AJ
61892003-07-12 Andreas Jaeger <aj@suse.de>
6190
6191 * fp-test.c (main): Use ISO C90 prototype.
6192
6193 * version.c: Remove unneded include of ansidecl.h.
6194
6195 * cgraph.h: Convert prototypes to ISO C90.
6196 * cgraph.c: Likewise.
6197 * fix-header.c: Likewise.
6198 * ra.h: Likewise.
6199 * protoize.c: Likewise.
6200
602a82f3 62012003-07-12 Jan Hubicka <jh@suse.cz>
1a5c5701
JH
6202
6203 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
6204 warning.
6205
602a82f3 62062003-07-12 Jan Hubicka <jh@suse.cz>
b58b1157
JH
6207 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6208
6209 * cgraph.c (cgraph_max_uid): New global variable.
6210 (cgraph_node): Set uid field.
6211 (create_edge): Keep inline flags consistent.
6212 (dump_cgraph): Dump more info.
6213 * cgraph.h (struct cgraph_local_info): Remove inline_many and
6214 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
6215 (struct cgraph_global_info): Add insns, calls, cloned_times,
6216 will_be_output.
6217 (struct cgraph_node): Add uid.
6218 (struct cgraph_edge): Add inline_call.
6219 (cgraph_max_uid, cgraph_inline_p): Declare.
6220 * cgraph.c: Include params.h and fibheap.h
6221 (cgraph_mark_functions_to_inline_once): Kill.
6222 (INSNS_PER_CALL): New constant.
6223 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
6224 static variables.
6225 (cgraph_finalize_function): Do not analyze inlining.
6226 (cgraph_finalize_compilation_unit): Set inlining attributes.
6227 (cgraph_mark_functions_to_output): More consistency checks.
6228 (cgraph_optimize_function): Set current_function_decl to NULL.
6229 (cgraph_expand_function): Use new inline flags.
6230 (cgraph_postorder): Expand from cgraph_expand_functions.
6231 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
6232 (cgraph_inlined_into, cgraph_inlined_callees,
6233 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
6234 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 6235 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
6236 cgraph_decide_inlining, cgraph_inline_p): New functions.
6237 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
6238 PARAM_INLINE_UNIT_GROWTH): New parameters.
6239 * tree-inline.c (struct inline_data): New field current_decl.
6240 (expand_call_inline): Avoid forward declarations; use
6241 inlinable_function_p.
6242 (optimize_inline_calls): Set id.current_decl.
6243
27b8e366
AP
62442003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
6245
6246 * configure.in: Remove wrongly added definition of
6247 local_prefix.
6248 * configure: Regenerate.
6249
80fa0b4c
DN
62502003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6251
6252 * rtl.def (NOTE): Do not use padding.
6253
1ea6f4c8
DH
62542003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
6255
6256 * doc/install.tex: Update required binutils for i?86-*-linux*
6257
ed2d8944
RH
62582003-07-11 Richard Henderson <rth@redhat.com>
6259
6260 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
6261
a44cea75
MM
62622003-07-11 Mark Mitchell <mark@codesourcery.com>
6263
6264 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
6265 TRANSLATION_UNIT_DECL as top_level.
6266
358b8f01
JJ
62672003-07-11 Jakub Jelinek <jakub@redhat.com>
6268
6269 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
6270 then fall back to cmpstrM.
6271 * builtins.c (expand_builtin_memcmp): Likewise.
6272 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
6273 (s390_expand_cmpmem): ... this.
6274 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
6275 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
6276 from cmpstr* patterns. Rename call to s390_expand_cmpstr
6277 to s390_expand_cmpmem.
6278 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
6279 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
6280 to cmpmem*.
6281 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
6282 cmpstr* patterns.
6283 * doc/md.texi (cmpstrM): Describe as String compare insn, not
6284 Block compare insn.
6285 (cmpmemM): Add.
6286
8634e925
LR
62872003-07-11 Loren James Rittle <ljrittle@acm.org>
6288
6289 * config/i386/freebsd.h (SET_ASM_OP): Remove.
6290 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
6291 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
6292 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
6293
48144cd4
RH
62942003-07-11 Richard Henderson <rth@redhat.com>
6295
6296 * function.c (assign_parms): Don't recombine complex args if
6297 fnargs is unchanged from orig_fnargs.
6298 (split_complex_args): Return args without complex before copying.
6299 Re-layout the modified parameters.
6300
fee226d2
R
63012003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
6302
6303 * regclass.c (choose_hard_reg_mode): Add third argument.
6304 Changed all callers.
6305 * rtl.h (choose_hard_reg_mode): Update declaration.
6306 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
6307 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
6308
d1bd0ded
GK
63092003-07-11 Geoffrey Keating <geoffk@apple.com>
6310
6311 * c-decl.c (finish_decl): Handle 'used' here...
6312 * cgraphunit.c (cgraph_finalize_function): ... and here ...
6313 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 6314
d1bd0ded
GK
6315 * configure.in (onstep): Support --enable-intermodule.
6316 * Makefile.in (OBJS-common): New.
6317 (OBJS-md): New.
6318 (OBJS-archive): New.
6319 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
6320 (OBJS-onestep): New.
6321 (libbackend.a): Support @onestep@.
6322 (libbackend.o): New.
6323 * configure: Regenerate.
439f7bc3 6324
d1bd0ded
GK
6325 * c-common.h (c_reset_state): New prototype.
6326 (c_parse_file): New prototype.
6327 (finish_file): Move prototype from c-tree.h.
6328 * c-decl.c: Include <hashtab.h>.
6329 (builtin_decls): New.
6330 (current_file_decl): New.
6331 (duplicate_decls): Add extra parameter. Change all callers. Don't
6332 output duplicate common symbols.
6333 (link_hash_hash): New.
6334 (link_hash_eq): New.
6335 (poplevel): Handle popping of the top level.
6336 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
6337 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
6338 (pushdecl_top_level): Likewise.
6339 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
6340 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
6341 (finish_decl): Handle TRANSLATION_UNIT_DECL.
6342 (merge_translation_unit_decls): New.
6343 (c_write_global_declarations): New.
6344 (c_reset_state): New.
6345 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
6346 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
6347 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
6348 TRANSLATION_UNIT_DECL.
6349 (c_objc_common_finish_file): Call merge_translation_unit_decls.
6350 * c-opts.c (in_fnames): Rename from in_fname.
6351 (c_common_decode_option): Handle multiple input filenames.
6352 (c_common_post_options): Likewise.
6353 (c_common_parse_file): Likewise; also, call c_parse_file rather than
6354 yyparse.
6355 * c-parse.in: Move cleanup code to c_parse_file.
6356 (free_parser_stacks): Move contents to c_parse_file.
6357 (c_parse_file): New.
6358 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
6359 for integer types.
6360 (C_DECL_FILE_SCOPE): New.
6361 (finish_file): Move prototype to c-common.h.
6362 (merge_translation_unit_decls): New prototype.
6363 (comptypes): Add extra parameter to prototype.
6364 (c_write_global_declarations): New prototype.
6365 * c-typeck.c (tagged_types_tu_compatible_p): New.
6366 (function_types_compatible_p): Add extra parameter, change all callers.
6367 (type_lists_compatible_p): Likewise.
6368 (comptypes): Likewise.
6369 (struct tagged_tu_seen): New.
6370 (tagged_tu_seen_base): New.
6371 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
6372 (c_mark_addressable): Remove #if 0 code.
6373 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
6374 comment explaining why it shouldn't have to.
6375 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
6376 options.
6377 * cppinit.c (cpp_read_next_file): New.
6378 (cpp_read_main_file): Use it.
6379 * cpplib.c (undefine_macros): New.
6380 (cpp_undef_all): New.
6381 * cpplib.h (cpp_read_next_file): Prototype.
6382 (cpp_undef_all): Prototype.
6383 * langhooks-def.h (write_global_declarations): Remove prototype.
6384 * toplev.h (write_global_declarations): Add prototype.
6385 * tree.c (decl_type_context): Use switch statement, handle
6386 TRANSLATION_UNIT_DECL.
6387 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
6388 (TRANSLATION_UNIT_DECL): New kind of tree.
6389 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
6390 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
6391 * doc/invoke.texi: Make attempt to document new functionality.
6392
6393 2003-05-19 Per Bothner <bothner@apple.com>
6394
6395 * gcc.c (combine_inputs): New.
6396 (process_command): Set combine_inputs.
6397 (do_spec_1): Handle combine_inputs.
6398 (main): Likewise.
6399
ac8354b1
JW
64002003-07-10 James E Wilson <wilson@tuliptree.org>
6401
6402 PR optimization/9745
6403 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
6404 loop_insn_emit_before.
6405 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 6406
dea55da5
ZW
64072003-07-10 Zack Weinberg <zack@codesourcery.com>
6408
6409 * cppcharset.c: Fix comment.
6410 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
6411 (EILSEQ): #define to EINVAL if not already defined.
6412 (convert_using_iconv): #if out when !HAVE_ICONV.
6413 (init_iconv_desc): Handle !HAVE_ICONV here...
6414 (cpp_init_iconv): ...not here.
6415
f3fdaec4
NB
64162003-07-11 Neil Booth <neil@daikokuya.co.uk>
6417
6418 * common.opt: More --help messages.
6419 * opts.c (print_help): Use puts().
6420 * toplev.c (f_options): Remove help text.
6421 (display_help): Don't dump f_options.
6422
7ebbf1ea
NN
64232003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
6424
6425 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
6426 Move i?86-*-interix* to the don't-fix list.
6427 * fixinc/fixinc.interix: Delete with extreme prejudice.
6428
959a73a4
DH
64292003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
6430
6431 PR bootstrap/10758
6432 * doc/install.texi: Document requirements for ia64-*-hpux* target.
6433
9959901c
RS
64342003-07-10 Roger Sayle <roger@eyesopen.com>
6435
6436 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
6437
6b88314c
ZW
64382003-07-10 Zack Weinberg <zack@codesourcery.com>
6439
6440 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
6441 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
6442 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
6443 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
6444 convert_no_conversion, convert_using_iconv): New functions.
6445 (APPLY_CONVERSION): New macro.
6446 (struct conversion, conversion_tab): New data structure.
6447 (init_iconv_desc): Check conversion_tab for a custom conversion
6448 primitive before trying to use iconv.
6449 (convert_cset): Deleted.
6450 (cpp_init_iconv): Use UTF- terminology, not UCS-.
6451 (_cpp_destroy_iconv): Update to match.
6452 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
6453 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
6454 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
6455 (_cpp_interpret_string_notranslate): New function, moved here
6456 from cpplib.c.
6457
6458 * cpphash.h (convert_f, struct cset_converter): New types.
6459 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
6460 are now struct cset_converter, not bare iconv_t.
6461 Update prototypes.
6462 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
6463 all callers changed.
6464
38f4680f 64652003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 6466
38f4680f
KC
6467 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
6468 to opts.sh command line.
6469 * opts.sh: Write to temporary files with a move-if-change at the end.
6470
2a868fac 64712003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 6472 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
6473
6474 * combine.c (gen_binary): Handle the CLOBBER rtx and
6475 don't build a binary operation with it.
6476
3b14e3af
ZD
64772003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6478
6479 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
6480 store_killed_after, store_killed_before): Keep track of the correct
6481 dependency function to use.
6482
a9189cc0
SB
64832003-07-10 Steven Bosscher <steven@gcc.gnu.org>
6484 * toplev.c (do_compile): Don't try to open dump files before
6485 lang_dependent_init initializes dump_base_name.
6486
e97a46ce
KG
64872003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6488
6489 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
6490 Use ARRAY_SIZE.
6491 * config/frv/frv.c (frv_expand_builtin): Likewise.
6492 * config/sh/sh.c (sh_media_init_builtins): Likewise.
6493
4a386498
MM
64942003-07-09 Mark Mitchell <mark@codesourcery.com>
6495
6496 PR c++/10032
6497 * doc/invoke.texi (C++ Dialect Options): Change documentation of
6498 -fpermissive.
6499
1e60c057
R
65002003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
6501
6502 * tm.texi (RETURN_ADDR_OFFSET): Document.
6503
330d2e2a
NS
65042003-07-10 Nathan Sidwell <nathan@codesourcery.com>
6505
6506 * gcov-io.h: Update documentation.
6507 (GCOV_UNSIGNED2STRING): New.
6508 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
6509 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
6510 GCOV_TAG_SUMMARY_LENGTH): Adjust.
6511 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
6512 GCOV_TAG_COUNTER_NUM): New.
6513 (GCOV_BLOCK_SIZE): Number of words.
6514 (gcov_var): Adjust buffer type.
6515 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
6516 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
6517 count, not byte count.
6518 (gcov_open): Adjust overread init.
6519 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
6520 gcov_write_string, gcov_write_tag, gcov_write_length,
6521 gcov_write_tag_length): Adjust.
6522 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
6523 (gcov_sync, gcov_seek): Adjust.
6524 * gcov-dump.c (print_usage): Show gcc version only.
6525 (dump_file): Use GCOV_UNSIGNED2STRING.
6526 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
6527 * gcov.c (print_version): Show gcc version only.
6528 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
6529 GCOV_TAG_*_NUM macros.
6530 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
6531 GCOV_TAG_COUNTER_LENGTH.
6532 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
6533 Use GCOV_TAG_COUNTER_NUM.
6534 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
6535 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
6536
3dbb446e
AS
65372003-07-10 Andreas Schwab <schwab@suse.de>
6538
6539 * gcov-dump.c (dump_file): Fix missing address operator.
6540
11791dbc
KH
65412003-07-10 Kazu Hirata <kazu@cs.umass.edu>
6542
6543 PR c/11449
6544 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
6545 of HOST_WIDE_INT.
6546 (fold_single_bit_test): If sign_bit_p() fails, assume that the
6547 bit being tested is not a sign bit.
6548
ae12c666
KH
65492003-07-10 Kazu Hirata <kazu@cs.umass.edu>
6550
6551 * config/h8300/h8300.md (a peephole2): New.
6552
2beef00e
AO
65532003-07-10 Alexandre Oliva <aoliva@redhat.com>
6554
6555 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
6556 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
6557 from ld-linux.so.2 to ld.so.1.
6558 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
6559 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
6560 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
6561 nor -Wl,-rpath-link.
6562 (LIB_SPEC): Add -rpath-link if !static.
6563 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
6564 * config/mn10300/mn10300.c (mn10300_protect_label): New
6565 variable.
6566 * config/mn10300/linux.h (PRINT_OPERAND,
6567 PRINT_OPERAND_ADDRESS): Set it during their execution.
6568 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
6569 mn10300_protect_label is set.
6570 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
6571 -Wl,-rpath-link.
6572 (LIB_SPEC, STARTFILE_SPEC): Define.
6573 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
6574 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
6575 FLOAT_BIT_ORDER_MISMATCH.
6576 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
6577 * config.gcc (am33_2.0-*-linux*): Added.
6578 * config/mn10300/linux.h: New.
6579 * config/mn10300/t-linux: New.
6580
75040a04
AJ
65812003-07-10 Andreas Jaeger <aj@suse.de>
6582
6583 * fold-const.c: Properly wrap prototypes.
6584
d1776069
AO
65852003-07-09 Alexandre Oliva <aoliva@redhat.com>
6586
6587 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
6588 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
6589 Moved from...
6590 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
6591 * config/mn10300/mn10300.h: GTY-declare it.
6592 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
6593 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
6594 prototype. Use incoming RTL argument.
6595 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
6596 * config/mn10300/mn10300.md (int_label): Move C statements...
6597 (GOTaddr2picreg): ... here.
6598 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
6599 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
6600 * config/mn10300/mn10300.c (mn10300_encode_section_info):
6601 ... here. New function.
6602 (TARGET_ENCODE_SECTION_INFO): Define to it.
6603 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
6604 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
6605 pattern name.
6606 (mn10300_loadPC): Define as insn splittable after reload.
6607 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
6608 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
6609 be defined in .rodata even in PIC, now that the assembler
6610 supports that.
6611 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
6612 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
6613 symbol take an underscore prefix.
6614 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6615 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
6616 legitimize_pic_address): Declare.
6617 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
6618 the PIC register as fixed.
6619 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
6620 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
6621 PIC.
6622 (LEGITIMATE_PIC_OPERAND_P): Define.
6623 (PIC_OFFSET_TABLE_REGNUM): Define.
6624 (GOT_SYMBOL_NAME): Define.
6625 (SYMBOLIC_CONST_P): Define.
6626 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
6627 symbols.
6628 (MN10300_GLOBAL_P): Test it.
6629 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
6630 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
6631 * config/mn10300/mn10300.c (print_operand): Handle unspec.
6632 (expand_prologue): Set PIC register.
6633 (call_address_operand): Don't match SYMBOL_REFs in PIC.
6634 (legitimize_address): Call legitimize_pic_address.
6635 (legitimize_pic_address): New fn.
6636 (legitimate_pic_operand_p): New fn.
6637 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
6638 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
6639 UNSPEC_PLT): New constants.
6640 (pop_pic_reg): New insn.
6641 (movsi): Adjust non-PIC addresses.
6642 (builtin_setjmp_receiver): Restore the PIC register.
6643 (casesi): New insn.
6644 (call): Adjust non-PIC addresses.
6645 (int_label, GOTaddr2picreg): New expands.
6646 (am33_loadPC): New insn.
6647 (mn10300_loadPC): New expand.
6648 (call_next_insn): New insn.
6649 (add_GOT_to_pic_reg): New expand.
6650 (symGOT2reg, symGOT2reg_i): New expands.
6651 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
6652 (sym2PIC, sym2PLT): New expands.
6653
18e9d2f9
AO
66542003-07-09 Alexandre Oliva <aoliva@redhat.com>
6655
6656 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
6657 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
6658 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
6659 to flag_unsafe_math_optimizations.
6660 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6661 * config/mn10300/mn10300.c (expand_prologue): Mark
6662 FP-register-saving insns as frame-related.
6663 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
6664 * config/mn10300/mn10300.c
6665 (mn10300_get_live_callee_saved_regs): Don't search past
6666 LAST_EXTENDED_REGNUM.
6667 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
6668 * config/mn10300/mn10300.md: Remove excessive line breaks from
6669 `@' output patterns that were accounted as additional
6670 alternatives.
6671 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
6672 Re-introduce changes accidentally removed in Richard Sandiford's
6673 2000-12-05's patch.
6674 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
6675 Re-instate am33-2 lost in merge from net GCC.
6676 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
6677 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
6678 floating-point registers.
6679 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
6680 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
6681 pessimizations that had gone in on 2000-05-08.
6682 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
6683 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
6684 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
6685 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
6686 operand 0.
6687 * (movhi): Likewise.
6688 * (movsi): Likewise.
6689 * (movsf): Likewise.
6690 * (movdi): Likewise.
6691 * (movdf): Likewise.
602a82f3 6692 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
18e9d2f9
AO
6693 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
6694 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
6695 (expand_prologue, expand_epilogue): Save and restore FP regs.
6696 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
6697 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
6698 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
6699 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
6700 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
6701 Do not clobber cc0.
6702 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6703 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
6704 Discourage the two-argument, longer opcodes.
6705 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
6706 ones.
6707 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
6708 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
6709 * config/mn10300/mn10300.md (cmpsf): New pattern.
6710 (branch): Test mdep.fpCC and output fbCC.
6711 * config/mn10300/mn10300.c (print_operand): Output conditions.
6712 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
6713 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
6714 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
6715 mulsf3, divsf3): Use the `F' constraint for FP values.
6716 * config/mn10300/mn10300.c (const_1f_operand): New function.
6717 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
6718 * config/mn10300/mn10300.md (sqrtsf2): New expand.
6719 (rsqrtsf2): New insn.
6720 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
6721 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
6722 previous check-in.
6723 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
6724 * config/mn10300/mn10300.md (abssf2, negdf2): On
6725 TARGET_AM33_2, expand to...
6726 (abssf2_am33_2, negdf2_am33_2): New insns.
6727 (addsf3, subsf3, mulsf3, divsf3): Likewise.
6728 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
6729 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
6730 movdi, movdf): Added FP regs.
6731 * invoke.texi (-mam33-2, -mno-am33-2): Document.
6732 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
6733 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
6734 New macros.
6735 (REGNO_AM33_2_FP_P): Renamed to...
6736 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
6737 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
6738 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
6739 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
6740 regs from GENERAL_REGS.
6741 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
6742 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
6743 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
6744 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
6745 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
6746 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
6747 as FP_REGS.
6748 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
6749 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
6750 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
6751 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
6752 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
6753 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
6754 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
6755 AM33/2.0 floating-point registers.
6756 (CONDITIONAL_REGISTER_USAGE): Adjust.
6757 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
6758 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
6759 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
6760 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
6761 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
6762 (MULTILIB_DIRNAMES): Likewise.
6763 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
6764 `__AM33_2__' when `-mam33-2' is given.
6765 (TARGET_AM33_2): Define.
6766 (TARGET_SWITCHES): Adjust.
6767 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
6768 when appropriate.
6769
2ff16718
MK
67702003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
6771
6772 * doc/install.texi: Add missing @.
6773
a7bda3d5
BW
67742003-07-09 Bob Wilson <bob.wilson@acm.org>
6775
6776 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
6777
bb498ea3
AH
67782003-07-09 Aldy Hernandez <aldyh@redhat.com>
6779
6780 PR/11144
6781 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
6782
a401fd60
NN
67832003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
6784
21f3dbfc 6785 PR bootstrap/11043
6b88314c 6786 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
6787 "x-crtfini.o" with "crtinit.o", "crtfini.o".
6788
15e4ea18
NN
6789 * fixinc/inclhack.def (limits_ifndefs): Add select test.
6790 * fixinc/fixincl.x: Rebuild.
6791
a401fd60
NN
6792 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
6793 * fixinc/fixincl.x: Rebuild.
6794
c2f82a84
HPN
67952003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
6796
6797 * doc/install.texi (Configuration): Document the valgrind option
6798 to --enable-checking.
6799
602a82f3 68002003-07-09 Jan Hubicka <jh@suse.cz>
1f66e2a0
JH
6801
6802 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6803
d0974745
RO
68042003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6805
6806 * c-lex.c (cb_ident): Cast cstr.text to const char *.
6807
160e2e4f
NS
68082003-07-09 Nathan Sidwell <nathan@codesourcery.com>
6809
6810 * gcov-io.h: Update documentation.
6811 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
6812 GCOV_NOTE_MAGIC.
6813 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
6814 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
6815 (struct gcov_var): Change buffer's type. Add endian flag.
6816 (gcov_open): Remove mode in libgcov.
6817 (gcov_magic): Prototype.
6818 * gcov-io.c (from_file): New.
6819 (gcov_open): Clear endian flag.
6820 (gcov_magic): New.
6821 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
6822 pointers.
6823 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
6824 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
6825 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
6826 * gcov-iov.c (main): Correct cast.
6827 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
6828 conversion.
6829 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
6830 (coverage_init): Use GCOV_NOTE_SUFFIX.
6831 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
6832 Rename to gcov_version, and return flag.
6833 (gcov_exit): Use gcov_version.
6834 (__gcov_init): Use gcov_version.
6835 * Makefile.in (coverageexts): Update.
6836 * gcov.c (print_version): Remove endianness conversion.
6837 (create_file_names): Use GCOV_NOTE_SUFFIX.
6838 (read_graph_file): Use gcov_magic.
6839 (read_count_file): Likewise.
6840 * gcov-dump.c (dump_file): Remove endianness conversion, use
6841 gcov_magic.
6842
83599948
NS
68432003-07-09 Nathan Sidwell <nathan@codesourcery.com>
6844
6845 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
6846 coverage is on.
6847 * configure: Regenerated.
6848 * Makefile.in (ALL_CFLAGS): Correct its comment.
6849
d17811fd
MM
68502003-07-08 Mark Mitchell <mark@codesourcery.com>
6851
6852 * fold-const.c (make_range): Do not access operand 1 for a
6853 zero-operand operator.
6854
28786366
NB
68552003-07-09 Neil Booth <neil@daikokuya.co.uk>
6856
6857 * toplev.c (warn_dummy, W_options): Die.
6858 (display_help): Don't print W_options.
6859 * common.opt: Add W_options help from toplev.c.
6860
fbdb0453
AJ
68612003-07-09 Andreas Jaeger <aj@suse.de>
6862
6863 * opts.c (wrap_help): Only pass int arguments as arguments to
6864 printf's '*' modifier. Change argument of function.
6865
c80e4c17
MK
68662003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
6867
6868 * doc/invoke.texi: Fix misspelling of "@item".
6869
2c5a64c6
KH
68702003-07-08 Kazu Hirata <kazu@cs.umass.edu>
6871
6872 * config/i386/i386.md: Remove an old comment about
6873 NOTICE_UPDATE_CC.
6874
602a82f3 68752003-07-09 Jan Hubicka <jh@suse.cz>
a194aa56
JH
6876
6877 * cgraph.c (cgraph_node_name): New function.
6878 (dump_cgraph): Use it.
6879 * cgraph.h (cgraph_dump_file): Declare.
6880 (cgraph_node_name): Declare.
6881 * cgraphunit.c: Include timevar.h
6882 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
6883 (cgraph_optimize_function): Use TV_INTEGRATION.
6884 (cgraph_mark_local_functions): reorganize dumps.
6885 (cgraph_mark_functions_to_inline_once): Likewise.
6886 (cgraph_optimize): Likewise; use timevar.
6887 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
6888 * toplev.c (dump_file_index): Add DFI_cgraph.
6889 (dump_file_info): Likewise.
6890 (cgraph_dump_file): New global variable.
6891 (do_compile): Open and close cgraph dump.
6892 * invoke.texi (-d): Document new flag; renumber.
6893
8af61113
RS
68942003-07-08 Roger Sayle <roger@eyesopen.com>
6895
6896 PR c/11370
6897 * calls.c (emit_call_1): Don't bother popping the arguments off of
6898 the stack after a noreturn function call; The adjustment is dead.
6899 (expand_call): Likewise.
6900
436bcda1
GK
69012003-07-08 Geoffrey Keating <geoffk@apple.com>
6902
6903 * expr.c (MOVE_MAX_PIECES): Move from here...
6904 * defaults.h (MOVE_MAX_PIECES): ... to here.
6905
6f3fcc0b
MK
69062003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
6907
6908 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
6909
ec049fdb
KG
69102003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6911
6912 * genattr.c (internal_dfa_insn_code): Don't prototype.
6913 * genattrtab.c (attr_desc): Add `static_p' field.
6914 (expand_units): Make blockage range and ready cost functions
6915 static.
6916 (write_attr_get): Don't add extern prototypes in C file. Mark
6917 static functions as appropriate.
6918 (find_attr, make_internal_attr): Initialize static_p.
6919 * genattrtab.h (ATTR_STATIC): New macro.
6920 * genautomata.c (output_internal_reset_func): Mark output function
6921 as inline.
6922 (make_internal_dfa_insn_code_attr): Mark output function as static.
6923
11597bc9
KG
69242003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6925
6926 * genattrtab.h: Add new macros for attr `special' flags.
6927 * genattrtab.c (attr_desc): Reorder/resize fields better.
6928 Use attr `special' macros in all calls to make_internal_attr.
6929 * genautomata.c: Likewise.
6930
602a82f3 69312003-07-09 Jan Hubicka <jh@suse.cz>
084c1779
JH
6932
6933 * c-common.c (c_estimate_num_insns_1): New static function.
6934 (c_estimate_num_insns): New global function.
6935 * c-common.h (DECL_NUM_STMTS): Rename to...
6936 (DECL_ESTIMATED_INSNS): ... this.
6937 (c_estimate_num_insns): Declare.
6938 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
6939 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6940 * c-semantics.c (add_stmt): Do not account statements.
6941 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
6942 New.
6943 * langhooks.h (lang_hooks_for_tree_inlining): Add
6944 estimate_num_insns
6945 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
6946 to 100.
6947 (max-inline-insns): set to 300.
6948 (min-inline-insns): set to 10.
6949 * tree-inline.c (struct inline_data): Rename inlined_stmts to
6950 inlined-insns.
6951 (INSNS_PER_STMT): Kill.
6952 (inlinable_function_p): Compute and store body size.
6953 (expand_call_inline): Likewise.
6954 (optimize_inline_calls): Likewise.
6955
1b1838b6
JW
69562003-07-08 James E Wilson <wilson@tuliptree.org>
6957
6958 PR target/10021
6959 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
6960 loop over new variable t2 instead of t.
6961
81a6341d
DS
69622003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
6963
6964 PR bootstrap/11455
6965 * config/i386/winnt.c: Replace use of error(), warning() with
6966 error_with_decl(), warning_with_decl(), throughout.
6967
21789816
NB
69682003-07-08 Neil Booth <neil@daikokuya.co.uk>
6969
6970 * opts.c (wrap_help): Use unsigned int, not size_t.
6971
f6423302
SC
69722003-07-08 Stephane Carrez <stcarrez@nerim.fr>
6973
6974 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
6975 as .file/.loc directives are incompatible with linker relaxation.
6976
ab747408
ZW
69772003-07-08 Zack Weinberg <zack@codesourcery.com>
6978
6979 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
6980 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
6981 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
6982 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
6983 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
6984 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
6985 Escape { and } characters which are not part of range expressions.
6986 * fixinc/fixincl.x: Regenerate.
a27531fb 6987 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 6988
51657442
SB
69892003-07-08 Steven Bosscher <steven@gcc.gnu.org>
6990
6991 PR c/1687
6992 * tree-inline.c (find_alloca_call): Use
6993 walk_tree_without_duplicates, instead of walk_tree.
6994 (find_builtin_longjmp_call): Likewise.
6995 * c-objc-common.c (c_cannot_inline_fn): Likewise.
6996 * c-semantics.c (find_reachable_label): Likewise.
6997
7e6dc358
JJ
69982003-07-08 Jakub Jelinek <jakub@redhat.com>
6999
7000 PR c/11420
7001 * config/i386/i386.c (ix86_check_movabs): New function.
7002 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
7003 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
7004 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
7005
318b7749
CD
70062003-07-08 Chris Demetriou <cgd@broadcom.com>
7007
7008 * Makefile.in (install-po): Cope with empty CATALOGS.
7009
b8898790
RS
70102003-07-08 Richard Sandiford <rsandifo@redhat.com>
7011
7012 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7013 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
7014 (SECTION_FUNCTION_TEMPLATE): Delete.
7015 * config/mips/elf.h: As for elf64.h.
7016 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
7017 * config/mips/linux.h: As for elf.h
7018 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7019 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
7020 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
7021 of in_sdata from current_section_name and current_section_flags.
7022 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7023 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
7024 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
7025 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
7026 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
7027 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7028 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
7029 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
7030 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
7031 (override_options): Remove setting of MASK_GPOPT.
7032 (mips_output_external): Use mips_in_small_data_p to check whether a
7033 symbol needs an .extern directive. Don't emit such directives for
7034 TARGET_EXPLICIT_RELOCS.
7035 (mips_declare_object): Update accordingly.
7036 (mips_select_rtx_section): Call named_section rather than
7037 SMALL_DATA_SECTION.
7038 (mips_select_section): Use default_elf_section_section for everything
7039 except .text string constants.
7040 (mips_in_small_data_p): New function.
7041 (mips_encode_section_info): Remove small data handling.
7042 (mips_unique_section): Delete.
7043 (iris6_section_type_flags): New function.
7044 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
7045
f5d1c3de
JDA
70462003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7047
7048 PR Target/11453
7049 * pa.md: Disparage all mtsar constraints.
7050 (extzv, extv, insv): Don't fail on length of {32|64}.
7051
ce1bb65b
ZW
70522003-07-08 Zack Weinberg <zack@codesourcery.com>
7053
7054 * system.h: Poison MAP_CHARACTER.
7055 * config/i370/i370-protos.h (mvs_map_char): Delete.
7056 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
7057 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
7058 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
7059
c163ddca
DS
70602003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
7061
7062 * toplev.c (randomize): Correct call to time().
7063
8df63efa
JJ
70642003-07-08 Jakub Jelinek <jakub@redhat.com>
7065
7066 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
7067 REG_EQUIV notes as well.
7068
4b5cc2b3
KH
70692003-07-08 Kazu Hirata <kazu@cs.umass.edu>
7070
7071 * doc/md.texi: Fix the description of addmodecc.
7072
56694dd9
ZW
70732003-07-07 Zack Weinberg <zack@codesourcery.com>
7074
7075 * Makefile.in (top_builddir): Set to "..", not ".".
7076 (INTLLIBS, INTLDEPS): Delete.
7077 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
7078 (LIBDEPS): Add $(LIBICONV_DEP).
7079 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
7080 (INCLUDES): Replace -I../intl with @INCINTL@.
7081 ($(top_builddir)/intl/libintl.a): Delete rule.
7082 (stage2-start, stage3-start, stage4-start, stageprofile-start,
7083 stagefeedback-start): Use $$ for variable to be evaluated by
7084 shell, not make.
7085 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
7086 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
7087 * aclocal.m4: sinclude ../config/progtest.m4. Add
7088 contents of lcmessage.m4 from gettext distro.
7089 * configure.in: Check for wchar.h and setlocale. Set
7090 LIBICONV_DEP to the empty string and substitute it.
7091 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
7092 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
7093 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
7094 in $LIBINTL, to avoid linking it twice.
7095 * configure, config.in: Regenerate.
7096
a294c4cf
NN
70972003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
7098
7099 * fixinc/mkfixinc.sh: Remove winnt support.
7100 * fixinc/fixinc.winnt: Delete with extreme prejudice.
7101
979312a4
NB
71022003-07-08 Neil Booth <neil@daikokuya.co.uk>
7103
7104 * Makefile.in: Update.
7105 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
7106 * c.opt: Update documentation.
7107 * common.opt: Add some help text.
7108 * opts.c: Include intl.h.
7109 (wrap_help, print_help): New.
7110 (find_opt, handle_option, common_handle_option): opt_text now
7111 contains the '-'. Use print_help to output help.
7112 * opts.h (struct cl_option): New member "help".
7113 * opts.sh: Update to handle help text output and to prepend
7114 options with '-'.
7115 * toplev.c (display_help): Remove some help text.
7116
2c4a9cff
DE
71172003-07-07 David Edelsohn <edelsohn@gnu.org>
7118 Fariborz Jahanian <fjahanian@apple.com>
7119
7120 * configure.in: Test for PowerPC mfcr field support in assembler.
7121 * config.in, configure: Regenderated.
7122
7123 * config/rs6000/power4.md: Add mfcrf reservation.
7124 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
7125 * config/rs6000/rs6000.c (mfcr_operation): Define.
7126 (print_operand): Add 'Q' case for mfcrf.
7127 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
7128 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
7129 (movcc_internal1): Emit optional field operand for mfcr and set
7130 "type" attribute appropriately.
7131 (mfcr SCC): Likewise.
7132 (movesi_from_cr_one): New.
7133
923c4cf2
RS
71342003-07-07 Roger Sayle <roger@eyesopen.com>
7135
7136 * config/i386/i386.md: Correct check-in of incorrect version.
7137
75b6f3fd
KG
71382003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7139
7140 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
7141 adjacent stdio calls.
7142 * c-decl.c (c_print_identifier): Likewise.
7143 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
7144 * print-rtl.c (print_rtx): Likewise.
7145 * print-tree.c (print_node_brief, print_node): Likewise.
7146 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 7147
75b6f3fd
KG
7148 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
7149 * config.in, configure: Regenerated.
7150
afeeac3f
RS
71512003-07-07 Roger Sayle <roger@eyesopen.com>
7152
7153 PR target/10979
7154 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7155 Changed to define_expand patterns that copy operand[1] to prevent
7156 it from being clobbered before emitting an atan2?f3_1 insn.
7157 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
7158 patterns that actually specify the behaviour of x87's FPATAN.
7159
eeff9307
JJ
71602003-07-07 Jakub Jelinek <jakub@redhat.com>
7161
7162 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
7163 clearing of SYMBOL_FLAG_LOCAL bit.
7164 If vcall_offset fits into signed 16-bit immediate, use
7165 one instruction for both addition and load.
7166
0fcd5dda
NB
71672003-07-07 Neil Booth <neil@daikokuya.co.uk>
7168
7169 * opts.c (common_handle_option): Correct handling of the
7170 -falign- switches that do and don't take an argument.
7171
b275810a
KH
71722003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7173
7174 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
7175 today.
7176 (pushhi1_h8300hs): Likewise.
7177
5671bf27
AJ
71782003-07-07 Andreas Jaeger <aj@suse.de>
7179
7180 * genextract.c: Convert remaining prototypes to ISO C90.
7181
7182 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
7183 * fold-const.c (fold_single_bit_test): Likewise.
7184 * diagnostic.c (default_diagnostic_finalizer): Likewise.
7185 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
7186
7187 * gengtype.c (write_array): Generate ISO C90 prototypes.
7188
7189 * genflags.c (gen_proto): Generate ISO C90 prototypes.
7190
2c430630
RS
71912003-07-07 Roger Sayle <roger@eyesopen.com>
7192
7193 PR optimization/11059
7194 * expr.c (can_store_by_pieces): Return true if length is zero.
7195 (store_by_pieces): If length is zero and endp is two, abort,
7196 othwerise, if length is zero and endp is not two, return "to".
7197 (clear_by_pieces): Do nothing if length is zero.
7198 (clear_storage): Do nothing if length is zero.
7199 (store_constructor): Simplify code when size is zero, or the
7200 target has already been cleared. This avoids emitting a
7201 blockage instruction when initializing empty structures.
7202
cf633f5b
AJ
72032003-07-07 Andreas Jaeger <aj@suse.de>
7204
7205 * mips-tfile.c: Convert prototypes to ISO C90.
7206 * mips-tdump.c: Convert prototypes to ISO C90.
7207
0cea056b
NS
72082003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7209
7210 * rtl.h (emit_line_note): Take a location_t.
7211 (emit_line_note_force): Remove.
7212 (set_file_and_line_for_statement): Take a location_t.
7213 * tree.g (emit_line_note): Take a location_t.
7214 * emit-rtl.c (emit_line_note): Take a location_t.
7215 (emit_line_note_force): Remove.
7216 * function.c (init_function_start): Adjust emit_line_note call.
7217 (expand_function_end): Use force_next_line_note, not
7218 emit_line_note_force.
7219 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
7220 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
7221 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
7222 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
7223 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
7224 genrtl_continue_stmt, genrtl_switch_stmt,
7225 genrtl_asm_stmt): Likewise.
7226 * expr.c (expand_expr): Likewise.
7227 * integrate.c (expand_inline_function): Likewise.
7228 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
7229 (expand_decl_init): Adjust emit_line_note call.
7230
8eb910fc
DJ
72312003-07-07 Dale Johannesen <dalej@apple.com>
7232
56694dd9 7233 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 7234
b96a374d
AJ
72352003-07-07 Andreas Jaeger <aj@suse.de>
7236
7237 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
7238 * config/i386/i386.c: Likewise.
7239
273fc01e
KH
72402003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7241
7242 * config/h8300/h8300.md: Use gen_int_mode instead of
7243 GEN_INT (trunc_int_for_mode (...)).
7244
fb7d7712
KH
72452003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7246
7247 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
7248 2 bytes and then subtract 2 from the stack pointer.
7249 (pushhi1_h8300hs): Likewise.
7250
e61a2eb7
NS
72512003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7252
7253 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
7254 -frandom-seed.
7255 * configure: Regenerated.
7256 * Makefile.in: Remove extraneous comment.
7257 * toplev.c (randomize): Protect against potential multiple calls.
7258 * doc/invoke.texi (-frandom-seed): Document use for in coverage
7259 files.
7260
82d610ec 72612003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 7262 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
7263
7264 PR optimization/11198
7265 * alias.c (objects_must_conflict_p): Return 1 if the types have
7266 the same alias set, not if the alias sets only conflict.
7267
5beadb33
AP
72682003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
7269
7270 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
7271 (convert_cset): Change inbuf to type ICONV_CONST char.
7272 * Makefile.in (LIBS): Add LIBICONV.
7273
9bb34f3c
AJ
7274 * doc/invoke.texi (-falign-functions): Document that
7275 when n is zero then a machine-dependent default is used.
7276 (-falign-labels): Document that when n is zero then a
7277 machine-dependent default is used and that -falign-labels =1
7278 is equivalent to -fno-align-labels.
7279 (-falign-loops): Likewise.
7280 (-falign-jumps): Likewise.
7281
1dbb6ce8
AH
72822003-07-06 Art Haas <ahaas@airmail.net>
7283
7284 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
7285 initializer syntax.
7286
8338d44d
JW
72872003-07-06 James E Wilson <wilson@tuliptree.org>
7288
7289 PR optimization/9812
7290 * rtl.h (mem_for_const_double): Delete prototype.
7291 * varasm.c (mem_for_const_double): Delete function.
7292 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
7293 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
7294 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
7295 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
7296 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
7297 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
7298 comment about confused support for XFmode constants.
7299
602a82f3 73002003-07-07 Jan Hubicka <jh@suse.cz>
9efd34a5
JH
7301
7302 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
7303
2a43945f
KH
73042003-07-06 Kazu Hirata <kazu@cs.umass.edu>
7305
7306 * config/h8300/h8300.c: Fix comment typos.
7307 * config/h8300/h8300.md: Likewise.
7308 * config/i386/athlon.md: Likewise.
7309 * config/i386/i386.c: Likewise.
7310 * config/i386/pentium.md: Likewise.
7311 * config/ia64/ia64.c: Likewise.
7312 * config/ia64/itanium1.md: Likewise.
7313 * config/ia64/itanium2.md: Likewise.
7314 * config/m32r/m32r.md: Likewise.
7315 * config/m68hc11/m68hc11.c: Likewise.
7316 * config/mcore/mcore.c: Likewise.
7317 * config/mips/sr71k.md: Likewise.
7318 * config/mips/t-iris5-as: Likewise.
7319 * config/mmix/mmix.h: Likewise.
7320 * config/ns32k/ns32k.h: Likewise.
7321 * config/ns32k/NOTES: Fix a typo.
7322
ceee09f7
AJ
73232003-07-06 Andreas Jaeger <aj@suse.de>
7324
7e51717c
AJ
7325 * stmt.c: Convert remaining prototypes to ISO C90.
7326 * cfglayout.c: Likewise.
7327 * dbxout.c: Likewise.
7328 * gcc.c: Likewise.
7329 * genemit.c: Likewise.
7330
ceee09f7
AJ
7331 * basic-block.h: Convert prototypes to ISO C90.
7332 * c-parse.in: Likewise.
7333 * c-pragma.h: Likewise.
7334 * c-typeck.c: Likewise.
7335 * cfghooks.h: Likewise.
7336 * cfgloopanal.c: Likewise.
7337 * dbxout.h: Likewise.
7338 * debug.h: Likewise.
7339 * dwarf2asm.h: Likewise.
7340 * gcov.c: Likewise.
7341 * gengtype-lex.l: Likewise.
7342 * sched-int.h: Likewise.
7343 * timevar.c: Likewise.
7344
cb66e385
NB
73452003-07-06 Neil Booth <neil@daikokuya.co.uk>
7346
7347 * c-common.h (c_comon_handle_filename,
7348 c_common_missing_arguement): New.
7349 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
7350 LANG_HOOKS_MISSING_ARGUMENT): New.
7351 * c-opts.c (missing_arg): Rename c_common_missing_argument,
7352 update to be an appropriate langhook.
7353 (c_common_handle_option): Don't handle filenames.
7354 (c_common_handle_filename): New.
7355 * hooks.c (hook_void_constcharptr,
7356 hook_bool_constcharptr_size_t_false): New.
7357 * hooks.h (hook_void_constcharptr,
7358 hook_bool_constcharptr_size_t_false): New.
7359 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
7360 LANG_HOOKS_MISSING_ARGUMENT): New.
7361 (LANG_HOOKS_INITIALIZER): Update.
7362 * langhooks.h (struct lang_hooks): Add handle_filename and
7363 missing_argument.
7364 * opts.c (handle_option): Don't handle filenames here, but ...
7365 (handle_options): ... here.
7366 (common_handle_option): Don't handle missing arguments here.
7367 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
7368 LANG_HOOKS_MISSING_ARGUMENT): New.
7369
ade4289c
NB
73702003-07-06 Neil Booth <neil@daikokuya.co.uk>
7371
7372 * Makfile.in: Remove traces of mbchar.
7373 * c-parse.in (MULTIBYTE_CHARS): Remove.
7374 * config.in (MULTIBYTE_CHARS): Remove.
7375 * configure: Remove --enable-mbchar.
7376 * configure.in: Remove --enable-mbchar.
7377 * mbchar.c, mbchar.h: Remove.
7378 * system.h: Poison MULTIBYTE_CHARS.
7379 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
7380 * config/linux.h (MULTIBYTE_CHARS): Remove.
7381 * config/svr4.h (MULTIBYTE_CHARS): Remove.
7382 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
7383
2e1eedd6
AJ
73842003-07-06 Andreas Jaeger <aj@suse.de>
7385
11dc5cc6
AJ
7386 * varray.c (varray_check_failed): Fix typo.
7387
7388 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
7389 * varasm.c: Likewise.
7390 * varray.c: Likewise.
7391 * varray.h: Likewise.
7392 * vmsdbgout.c: Likewise.
7393 * xcoffout.c: Likewise.
7394 * xcoffout.h: Likewise.
7395
dd486eb2
NS
73962003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7397
7398 * gcov-io.h: Add a local time stamp.
7399 (struct gcov_info): Add stamp field.
7400 (gcov_truncate): New.
7401 * coverage.c (read_counts_file): Skip the stamp.
7402 (coverage_begin_output): Write the stamp.
7403 (build_gcov_info): Declare and init the stamp.
7404 (coverage_finish): Only unlink data file, if stamp is zero.
7405 * gcov-dump.c (dump_file): Dump the stamp.
7406 * gcov.c (bbg_stamp): New.
7407 (release_structures): Clear bbg_stamp.
7408 (read_graph_file): Read stamp.
7409 (read_count_file): Check stamp.
7410 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
7411
c07e5477
NS
74122003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7413
7414 * tree.h (default_flag_random_seed): Remove.
7415 * toplev.h (local_tick): Declare.
7416 * tree.c (flag_random_seed, default_flag_random_seed): Move to
7417 toplev.c.
7418 (append_random_chars): Don't call default_flag_random_seed.
7419 * toplev.c (flag_random_seed): Define here. Set local_tick.
7420 (local_tick): Define.
7421 (randomize): New, moved from tree.c.
7422 (print_switch_values): Adjust.
7423 (toplev_main): Call randomize.
7424
2aab7ceb
NS
74252003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7426
7427 * tree.h (crc32_string): Declare.
7428 * tree.c (append_random_chars): Remove.
7429 (crc32_string): New.
7430 (get_file_function_name_long): Use crc32_string here.
7431
1d088dee
AJ
74322003-07-06 Andreas Jaeger <aj@suse.de>
7433
7434 * gcc.c: Convert prototypes to ISO C90.
7435 * gcc.h: Likewise.
7436 * gcov-dump.c: Likewise.
7437 * gcov-iov.c: Likewise.
7438 * gcse.c: Likewise.
7439 * genattrtab.h: Likewise.
7440 * ggc.h: Likewise.
7441 * global.c: Likewise.
7442 * graph.c: Likewise.
7443 * graph.h: Likewise.
7444 * hosthooks.h: Likewise.
7445 * hooks.h: Likewise.
7446 * hooks.c: Likewise.
7447 * hashtable.h: Likewise.
7448 * hashtable.c: Likewise.
7449 * haifa-sched.c: Likewise.
7450 * integrate.h: Likewise.
7451 * integrate.c: Likewise.
7452 * input.h: Likewise.
7453 * ifcvt.c: Likewise.
f8ec47c7 7454 * jump.c: Likewise.
0c20a65f
AJ
7455 * langhooks-def.h: Likewise. Add extern to prototypes.
7456 * langhooks.c: Likewise.
7457 * langhooks.h: Likewise.
7458 * lcm.c: Likewise.
7459 * local-alloc.c: Likewise.
7460 * loop-init.c: Likewise.
7461 * loop-unroll.c: Likewise.
7462 * loop-unswitch.c: Likewise.
7463 * loop.c: Likewise.
7464 * loop.h: Likewise. Add extern to prototypes.
7465 * machmode.h: Likewise.
7466 * main.c: Likewise.
7467 * mbchar.c: Likewise.
7468 * mbchar.h: Likewise.
7469 * mkdeps.c: Likewise.
7470 * mkdeps.h: Likewise.
7471 * optabs.c: Likewise.
7472 * optabs.h: Likewise.
7473 * output.h: Likewise.
7474 * gccspec.c: Likwise.
7475 * postreload.c: Likewise.
7476 * prefix.c: Likewise.
7477 * prefix.h: Likewise.
7478 * print-rtl.c: Likewise.
7479 * print-tree.c: Likewise.
7480 * profile.c: Likewise.
7481 * read-rtl.c: Likewise.
7482 * real.c: Likewise.
7483 * real.h: Likewise.
7484 * recog.c: Likewise.
7485 * recog.h: Likewise.
7486 * reg-stack.c: Likewise.
7487 * regclass.c: Likewise.
7488 * regmove.c: Likewise.
7489 * regrename.c: Likewise.
7490 * regs.h: Likewise.
7491 * reload.c: Likewise.
7492 * reload.h: Likewise.
7493 * reload1.c: Likewise.
7494 * reorg.c: Likewise.
7495 * resource.c: Likewise.
7496 * resource.h: Likewise.
7497 * rtl-error.c: Likewise.
7498 * rtl.c: Likewise.
7499 * rtl.h: Likewise.
7500 * rtlanal.c: Likewise.
46c5ad27
AJ
7501 * sbitmap.c: Likewise.
7502 * sbitmap.h: Likewise.
7503 * scan-decls.c: Likewise.
7504 * scan.c: Likewise.
7505 * sched-deps.c: Likewise.
7506 * sched-ebb.c: Likewise.
7507 * sched-int.h: Likewise.
7508 * sched-rgn.c: Likewise.
7509 * sched-vis.c: Likewise.
7510 * sibcall.c: Likewise.
7511 * simplify-rtx.c: Likewise.
7512 * sreal.c: Likewise.
7513 * sreal.h: Likewise.
7514 * ssa-ccp.c: Likewise.
7515 * ssa-dce.c: Likewise.
7516 * ssa.c: Likewise.
7517 * ssa.h: Likewise.
7518 * stack.h: Likewise.
7519 * stmt.c: Likewise.
7520 * stor-layout.c: Likewise.
7521 * stringpool.c: Likewise.
7522 * target.h: Likewise.
7523 * timevar.c: Likewise.
7524 * timevar.h: Likewise.
7525 * tlink.c: Likewise.
7526 * tracer.c: Likewise.
7527 * tree-inline.c: Likewise.
7528 * tree-inline.h: Likewise.
7529 * tree.c: Likewise.
7530 * tree.h: Likewise.
1d088dee 7531
4f649bc1
KH
75322003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7533
7534 * combine.c (nonzero_bits1): Fix a warning.
7535
75362003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
7537
7538 * config/h8300/h8300.c (compute_mov_length): Correct the
7539 length of loading CONST0_RTX (SFmode).
7540
f5924ac1
NS
75412003-07-05 Nathan Sidwell <nathan@codesourcery.com>
7542
7543 * toplev.c (output_clean_symbol_name): Remove.
7544 * toplev.h (output_clean_symbol_name): Remove.
7545 * config/alpha/alpha.c (unicosmk_output_module_name): Use
7546 lbasename & clean_symbol_name.
7547
39e3f58c
KH
75482003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7549
7550 * ggc.h: Follow spelling conventions.
7551 * config/i386/i386.c: Likewise.
7552 * config/i386/winnt.c: Likewise.
7553 * config/rs6000/rs6000.c: Likewise.
7554
4d6922ee
KH
75552003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7556
7557 * bt-load.c: Fix comment typos.
7558 * c-incpath.c: Likewise.
7559 * cfg.c: Likewise.
7560 * cfgcleanup.c: Likewise.
7561 * cfgloop.h: Likewise.
7562 * cfgloopmanip.c: Likewise.
7563 * cfgrtl.c: Likewise.
7564 * diagnostic.h: Likewise.
7565 * dwarfout.c: Likewise.
7566 * emit-rtl.c: Likewise.
7567 * et-forest.c: Likewise.
7568 * et-forest.h: Likewise.
7569 * expr.c: Likewise.
7570 * gcse.c: Likewise.
7571 * genattr.c: Likewise.
7572 * jump.c: Likewise.
7573 * langhooks.h: Likewise.
7574 * local-alloc.c: Likewise.
7575 * loop-unroll.c: Likewise.
7576 * loop-unswitch.c: Likewise.
7577 * ra-build.c: Likewise.
7578 * regclass.c: Likewise.
7579 * regmove.c: Likewise.
7580 * rtl.def: Likewise.
7581 * rtlanal.c: Likewise.
7582 * sched-ebb.c: Likewise.
7583 * sched-rgn.c: Likewise.
7584 * simplify-rtx.c: Likewise.
7585 * ssa.c: Likewise.
7586 * tracer.c: Likewise.
7587 * tree.c: Likewise.
7588
f1c4bc4f
ZW
75892003-07-05 Zack Weinberg <zack@codesourcery.com>
7590
7591 * cppcharset.c: Use the correct return type for the fallback iconv
7592 macro.
7593
602a82f3 75942003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
65c6f1b4
ZD
7595
7596 Blame to Jan Hubicka <jh@suse.cz>
7597 * cfglayout.c (record_effective_endpoints): Split insns before
7598 first basic block correctly.
7599
a8f3bf52
RK
76002003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7601
f1c4bc4f 7602 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
7603 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
7604 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
7605
0641776c
AJ
76062003-07-05 Andreas Jaeger <aj@suse.de>
7607
7608 * genattrtab.c (write_attr_get): Revert part of last patch to
7609 always write out a prototype.
7610
7611 * genemit.c (gen_split): Readd lost unused attributes in last
7612 patch.
7613
977129f6
ZD
76142003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7615
7616 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
7617 different from header.
7618
5ee084df
AS
76192003-07-05 Andreas Schwab <schwab@suse.de>
7620
7621 * config/m68k/m68k.c: Remove code protected by CRDS.
7622 * config/m68k/m68k.md: Likewise.
7623
33de9573
NB
76242003-07-05 Neil Booth <neil@daikokuya.co.uk>
7625
7626 PR driver/11417
7627 * c-opts.c (permit_fortran_options): New.
7628 (c_common_init_options): Accept fortran front end options if
7629 it looks like we might be preprocessing Fortran.
7630 (c_common_handle_option): Don't reject switch if permit_fotran_options.
7631
6906ba40
KG
76322003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7633
7634 * genattr.c (internal_dfa_insn_code): Output prototype.
7635 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
7636 * genautomata.c: Likewise.
7637 * genconditions.c: Likewise.
7638 * genemit.c: Likewise.
7639 * genextract.c: Likewise.
7640 * gengenrtl.c: Likewise.
7641 * gengtype.c: Likewise.
7642 * genopinit.c: Likewise.
7643 * genoutput.c: Likewise.
7644 * genpeep.c: Likewise.
7645 * genrecog.c: Likewise.
7646
e6cc3a24
ZW
76472003-07-04 Zack Weinberg <zack@codesourcery.com>
7648
7649 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
7650 (struct cpp_options): Add narrow_charset, wide_charset,
7651 bytes_big_endian fields. Remove EBCDIC field.
7652 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
7653
7654 * cpphash.h: Include <iconv.h> if we have it, otherwise
7655 provide a dummy definition of iconv_t.
7656 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
7657 (_cpp_valid_ucn): Update prototype.
7658 (_cpp_destroy_iconv): New prototype.
7659
7660 * doc/cpp.texi: Document character set handling.
7661 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
7662 * doc/extend.texi: Delete entire section on multiline strings.
7663 Rewrite section on __FUNCTION__ etc now that these are
7664 variables in C.
7665
7666 * cppucnid.tab, cppucnid.pl: New files.
7667 * cppucnid.h: New generated file.
7668 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
7669 (iconv_open, iconv, iconv_close): Provide dummy definitions
7670 if !HAVE_ICONV.
7671 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
7672 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
7673 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
7674 cpp_interpret_string, narrow_str_to_charconst,
7675 wide_str_to_charconst): New.
7676 (ucn_valid_in_identifier): Use a binary search through the
7677 ucnranges table defined in cppucnid.h, not a long chain of if
7678 statements.
7679 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
7680 character names are only valid in C++ and C99" to a warning.
7681 Issue the "meaning of \[uU] is different in traditional C"
7682 warning here. Take care not to let iconv see an invalid UCS
7683 value if we get a malformed UCN. Issue an error if we don't
7684 have iconv.
7685 (cpp_interpret_charconst): Moved here from cpplex.c. Use
7686 cpp_interpret_string to do the heavy lifting.
7687
7688 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
7689 narrow_charset, wide_charset fields of options structure.
7690 (cpp_destroy): Call _cpp_destroy_iconv.
7691 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
7692 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
7693 (cpp_interpret_charconst): Moved to cppcharset.c.
7694 * cpplib.c (dequote_string): Delete.
7695 (interpret_string_notranslate): New.
7696 (do_line, do_linemarker): Use interpret_string_notranslate.
7697
7698 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
7699
7700 * c-common.c (fname_string, combine_strings): Delete.
7701 * c-common.h (fname_string, combine_strings): Delete prototypes.
7702 * c-lex.c (ignore_escape_flag): Delete.
7703 (cb_ident): Use cpp_interpret_string, not lex_string.
7704 (get_nonpadding_token): New function.
7705 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
7706 Adjust calls to lex_string. Don't write *value twice.
7707 (lex_string): Now handles string constant concatenation.
7708 Most of the work handed off to cpp_interpret_string.
7709 Call fix_string_type here.
7710 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
7711 FUNC_NAME, throughout.
7712 (OBJC_STRING): New token type.
7713 (primary:STRING): No need to call fix_string_type here.
7714 (primary:objc_string): Make that OBJC_STRING.
7715 (objc_string nonterminal): Delete.
7716 (yylexname): Delete code to handle fake string constants.
7717 (yylexstring): Delete entirely.
7718 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
7719 to handle CPP_ATSIGN.
7720
7721 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
7722 * c-opts.c (missing_arg, c_common_handle_option): Handle
7723 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
7724 (c_common_init): Set cpp_opts->bytes_big_endian, not
7725 cpp_opts->EBCDIC. Call cpp_init_iconv.
7726 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
7727 (TARGET_EBCDIC): Delete default definition.
7728
7729 * objc/objc-act.c (build_objc_string_object): No need to
7730 handle string constant concatenation.
7731
61aeb06f
KH
77322003-07-04 Kazu Hirata <kazu@cs.umass.edu>
7733
7734 * doc/install.texi: Fix typos.
7735 * doc/invoke.texi: Likewise.
7736 * doc/tm.texi: Likewise.
7737
c1207243
KH
77382003-07-04 Kazu Hirata <kazu@cs.umass.edu>
7739
7740 * config/pa/fptr.c: Fix comment typos.
7741 * config/pa/pa-64.h: Likewise.
7742 * config/pa/pa.c: Likewise.
7743 * config/pa/pa.h: Likewise.
7744 * config/rs6000/603.md: Likewise.
7745 * config/rs6000/7xx.md: Likewise.
7746 * config/rs6000/darwin.h: Likewise.
7747 * config/rs6000/freebsd.h: Likewise.
7748 * config/rs6000/rs6000.c: Likewise.
7749 * config/rs6000/rs6000.md: Likewise.
7750 * config/rs6000/spe.h: Likewise.
7751
58add37a
UW
77522003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
7753
7754 * config/s390/2064.md: Change GNU CC to GCC.
7755 * config/s390/2084.md: Likewise.
7756 * config/s390/fixdfdi.h: Likewise.
7757 * config/s390/linux.h: Likewise.
7758 * config/s390/s390-modes.def: Likewise.
7759 * config/s390/s390-protos.h: Likewise.
7760 * config/s390/s390.c: Likewise.
7761 * config/s390/s390.h: Likewise.
7762 * config/s390/s390.md: Likewise.
7763 * config/s390/s390x.h: Likewise.
7764
60cd4dae
JL
77652003-07-04 Jeff Law <law@redhat.com>
7766
a38825d2 7767 PR c/11428
60cd4dae
JL
7768 * expr.c (do_store_flag): Pass in the correct result type
7769 when calling fold_single_bit_test.
7770 * fold-const.c (fold_single_bit_test): Use result_type for the
7771 result when folding a sign bit test.
7772
5e14ae7e
NB
77732003-07-04 Neil Booth <neil@daikokuya.co.uk>
7774
7775 * opts.c (common_handle_options): Negate sense of -falign- switches.
7776
8c90b13a
L
77772003-07-04 H.J. Lu <hongjiu.lu@intel.com>
7778
c3b3975a 7779 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 7780
72d4a2ad
ZD
77812003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7782
7783 * cfgloopanal.c (count_strange_loop_iterations): New static function.
7784 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
7785 Handle strange loops.
7786
8e9a4a45
TM
77872003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
7788
7789 * install.texi: Even the g77 manpage is derived from
7790 the full g77 manual.
7791
6eb95e99
ZW
77922003-07-04 Zack Weinberg <zack@codesourcery.com>
7793
7794 * ABOUT-NLS: Delete.
7795 * intl: Delete entire directory.
7796 * aclocal.m4: Include ../config/gettext.m4. Delete
7797 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
7798 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
7799 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
7800 Remove intl/Makefile from all_outputs.
7801 * configure, config.in: Regenerate.
7802 * Makefile.in: Expunge all references to intl subdirectory.
7803 Add -I../intl to INCLUDES.
7804 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
7805
bcd5d841
RS
78062003-07-04 Roger Sayle <roger@eyesopen.com>
7807
7808 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
7809 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
7810
6b6cb52e
DS
78112003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
7812
7813 PR c++/5287, PR c++/7910, PR c++/11021
7814 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
7815 dllimport attribute if function is defined at declaration, but
7816 report error instead. Likewise for dllimport'd variable
7817 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
7818 declared within functions, Report error if dllimport or dllexport
7819 symbol is not global.
7820 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
7821 if defined after declaration or if inlined. Don't allow definition
7822 of static data members of C++ classes. Don't dllimport virtual
7823 methods.
7824 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
7825 (i386_pe_mark_dllimport): Remove unnecessary checks.
7826 (i386_pe_encode_section_info): Warn if the dllimport attribute
7827 and symbol prefix have been instantiated and then overridden.
7828
7829 * doc/extend.texi: Document dllimport and dllexport attributes.
7830
7831 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
7832
cc2f5d34
US
78332003-07-03 Uwe Stieber <uwe@kaos-group.de>
7834
7835 * config/kaos.h (CPP_PREDEFINES): Delete.
7836 (TARGET_OS_CPP_BUILTINS): New.
7837
5f1989e6
KG
78382003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7839
7840 * c-aux-info.c: Include toplev.h after c-tree.h.
7841 * c-common.c: Likewise.
7842 (GCC_DIAG_STYLE): Undef.
7843 * c-semantics.c (GCC_DIAG_STYLE): Define.
7844 * c-tree.h (GCC_DIAG_STYLE): Likewise.
7845 * diagnostic.h (inform): Move prototype to toplev.h.
7846 * jump.c: Include diagnostic.h before toplev.h.
7847 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
7848 (warning, error, fatal_error, pedwarn, sorry, inform,
7849 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
7850
8d28e87d
ZD
78512003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7852
7853 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
7854 at all if edge is not specified.
7855 (can_copy_bbs_p, copy_bbs): New.
7856 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
7857 * cfgloop.c (get_loop_body): Comment more precisely.
7858 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
7859 (scale_bbs_frequencies): Fix comment typo.
7860 (can_duplicate_loop_p): Use can_copy_bbs_p.
7861 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
7862
694abeb6
DP
78632003-07-03 Devang Patel <dpatel@apple.com>
7864
7865 * c-opts.c (c_common_parse_file): Remove extra
7866 debug_hooks->start_source_file call.
6eb95e99 7867
0a9530a9
RS
78682003-07-03 Roger Sayle <roger@eyesopen.com>
7869
7870 * real.c (real_trunc, real_floor, real_ceil): New functions
7871 to implement trunc, floor and ceil respectively.
7872 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
7873 * builtins.c (integer_valued_real_p): New function to test if
7874 a floating point expression has an integer valued result.
7875 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
7876 foo(x) where foo is an integer rounding function. Similarly,
7877 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
7878 (double)(int)x when both foo and bar are integer rounding
7879 functions and we don't need to honor errno.
7880 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
7881 New functions to fold trunc, floor and ceil.
7882 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
7883 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
7884 to fold BUILT_IN_CEIL*.
7885 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
7886 the remaining integer rounding functions.
7887
c3427c7d
EB
78882003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7889
7890 * config/sparc/sparc.c (function_arg_partial_nregs): Use
7891 SPARC_INT_ARG_MAX to determine where to split unnamed
7892 complex FP arguments.
7893
602a82f3 78942003-07-03 Jan Hubicka <jh@suse.cz>
bc35512f
JH
7895
7896 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
7897 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
7898 (merge_blocks_move_predecessor_nojumps,
7899 merge_blocks_move_successor_nojumps): Use merge_blocks.
7900 (try_optimize_cfg): Use merge_blocks_move.
7901 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
7902 (merge_blocks_nomove): Rename to rtl_merge_blocks.
7903 (cfg_layout_create_basic_block): New.
7904 (rtl_can_merge_blocks): New.
7905 (cfg_layout_split_block): Do not alloc aux by hand.
7906 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
7907 merge_blocks.
7908 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
7909 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
7910 * cfgloopmanip.c (loop_split_edge_with): Likewise.
7911 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
7912
7913 * basic-block.h (basic_block_def): Add field 'rbi'.
7914 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
7915 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
7916 * cfg.c (entry_exit_blocks): Add new field.
7917 * cfglayout.c: Include alloc-pool.h;
7918 (cfg_layout_pool): New.
7919 (record_effective_endpoints, fixup_reorder_chain,
7920 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
7921 of rbi.
7922 (cfg_layout_initialize_rbi): New function.
7923 (cfg_layout_initialize): Use it.
7924 (cfg_layout_finalize): Clear rbi fields.
7925 * cfglayout.h (RBI): Kill.
7926 (cfg_layout_initialize_rbi): Declare.
7927 * cfgloopmanip.c (copy_bbs): Use rbi.
7928 (record_exit_edges): Likewise.
7929 (duplicate_loop_to_header_edge): Likewise.
7930 * cfgrtl.c (cfg_layout_create_basic_block): Use
7931 cfg_layout_initialize_rbi.
7932 (cfg_layout_split_block): Use rbi.
7933 (cfg_layout_delete_block): Likewise.
7934 * loop-init.c (loop_optimizer_finalize): Likewise.
7935 * loop-unswitch.c (unswitch_loop): Likewise.
7936 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
7937
7938 * cfgrtl.c: Update comments.
7939 (try_redirect_by_replacing_jump): New argument.
7940 (redirect_branch_edge): Break out from ...
7941 (rtl_redirect_edge_and_branch): ... this one.
7942 (update_cfg_after_block_merging): Break out from ...
7943 (rtl_merge_blocks): ... this one.
7944 (cfg_layout_split_edge): New.
7945 (cfg_layout_merge_blocks): New.
7946 (cfg_layout_can_merge_blocks_p): New.
7947 (cfg_layout_redirect_edge_and_branch): Reorganize.
7948 (cfg_layout_rtl_cfg_hooks): Fill in.
7949 (cfg_layout_delete_block): Kill barriers.
7950 * cfganal.c (can_fallthru): Deal with exit blocks
7951 * cfglayout.c (cfg_layout_function_header): New function
7952 (record_effective_endpoints): Record function header.
7953 (fixup_reorder_chain): Fixup dead jumptables; place header
7954
7955 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
7956 * bb-reorder.c (cfg_layout_initialize): Update call.
7957 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
7958 edges in cfglayout mode.
7959 * cfglayout.c (cleanup_unconditional_jumps): Kill.
7960 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
7961 * cfglayout.h (cfg_layout_initialize): Update prototype.
7962 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
7963 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
7964 * flow.c (propagate_block): Do not crash when basic block ends
7965 by first insn in the chain.
7966 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
7967 do loop discovery.
7968 * tracer.c (tracer): Update call of cfg_layout_initialize.
7969
dd220c49
KG
79702003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7971
7972 * Makefile.in: Use dependency variables in lieu of explicit
7973 files throughout.
7974
fa5b060f
SB
79752003-07-03 Steven Bosscher <steven@gcc.gnu.org>
7976
7977 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
7978 * tree.h: ...to here.
7979
fae778eb
KH
79802003-07-03 Kazu Hirata <kazu@cs.umass.edu>
7981
7982 * config/s390/2064.md: Fix comment typos.
7983 * config/s390/2084.md: Likewise.
7984 * config/s390/s390.c: Likewise.
7985 * config/s390/s390.md: Likewise.
7986 * config/sh/sh.c: Likewise.
7987 * config/sh/sh.h: Likewise.
7988 * config/sh/sh.md: Likewise.
7989 * config/sparc/sparc.c: Likewise.
7990 * config/sparc/sparc.h: Likewise.
7991 * config/sparc/sparc.md: Likewise.
7992 * config/stormy16/stormy16.c: Likewise.
7993 * config/stormy16/stormy16.h: Likewise.
7994 * config/stormy16/stormy-abi: Fix a typo.
7995
58eabcb1
KC
79962003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
7997
7998 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
7999
af261903
KG
80002003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8001
8002 * config/mips/mips.h (save_argv): Delete.
8003
a11c61d2
RS
80042003-07-03 Roger Sayle <roger@eyesopen.com>
8005
8006 PR target/10700
8007 * fold-const.c (extract_muldiv_1): There's nothing that can be done
8008 if the expression is a SAVE_EXPR.
8009
dab66575
KH
80102003-07-03 Kazu Hirata <kazu@cs.umass.edu>
8011
8012 * config/m32r/m32r.c: Fix comment typos.
8013 * config/m68hc11/m68hc11.c: Likewise.
8014 * config/m68hc11/m68hc11.h: Likewise.
8015 * config/m68k/m68k.c: Likewise.
8016 * config/mcore/mcore.c: Likewise.
8017 * config/mcore/mcore.h: Likewise.
8018 * config/mcore/mcore.md: Likewise.
8019 * config/mips/mips.c: Likewise.
8020 * config/mips/mips.h: Likewise.
8021 * config/mips/mips.md: Likewise.
8022 * config/mips/netbsd.h: Likewise.
8023 * config/mn10300/mn10300.c: Likewise.
8024
8837d828
AS
80252003-07-03 Andreas Schwab <schwab@suse.de>
8026
8027 * dbxout.c (pending_bincls): Move decl down inside
8028 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
8029
dd107e66
NS
80302003-07-02 Nathan Sidwell <nathan@codesourcery.com>
8031
8032 * rtl.h (NOTE_DATA): Refer to whole union.
8033 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
8034
8821d091
EB
80352003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8036
8037 PR optimization/11381
8038 * simplify-rtx.c (simplify_relational_operation): Check that
8039 two equal operands have no side-effects before simplifying
8040 the comparison.
8041
7960bf22
JL
80422003-07-02 Jeff Law <law@redhat.com>
8043
8044 * expr.c (do_store_flag): Remove special case folding for
8045 single bit tests. Instead call back into the commonized folder
8046 routine.
8047 * fold-const.c (fold_single_bit_test): New function, mostly
8048 extracted from do_store_flag, with an additional case extracted
8049 from fold.
8050 (fold): Call fold_single_bit_test appropriately.
8051 * tree.h (fold_single_bit_test): Prototype.
8052
3dce1408
ZW
80532003-07-02 Zack Weinberg <zack@codesourcery.com>
8054
8055 * system.h: Include filenames.h.
8056 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
8057 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
8058 define based on HAVE_DOS_BASED_FILE_SYSTEM.
8059 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
8060 * config/i386/xm-mingw32.h: Don't define
8061 HAVE_DOS_BASED_FILE_SYSTEM,
8062 DIR_SEPARATOR, or DIR_SEPARATOR_2.
8063 * doc/hostconfig.texi: Update to match.
8064
8065 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
8066 config/i386/cygwin.h:
8067 Use IS_ABSOLUTE_PATH throughout.
8068 * gcc.c (DIR_UP): Delete, unused.
8069 * protoize.c (IS_SAME_PATH): Define in terms of
8070 FILENAME_CMP.
8071 (is_abspath): Delete.
8072
c51e6d85
KH
80732003-07-02 Kazu Hirata <kazu@cs.umass.edu>
8074
8075 * config/i386/emmintrin.h: Fix comment typos.
8076 * config/i386/i386.c: Likewise.
8077 * config/i386/i386.h: Likewise.
8078 * config/i386/sco5.h: Likewise.
8079 * config/ia64/ia64.c: Likewise.
8080 * config/ia64/itanium2.md: Likewise.
8081
5ec3a5a7
L
80822003-07-02 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
8085 DBX_USE_BINCL.
8086 (emit_bincl_stab): Same.
8087 (emit_pending_bincls): Same.
8088
fad37371
KH
80892003-07-02 Kazu Hirata <kazu@cs.umass.edu>
8090
8091 * config/h8300/h8300.c (compute_mov_length): Fix the length of
8092 loading CONST0_RTX (SFmode).
8093 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
8094 'G' to CONST0_RTX (SFmode).
8095 * config/h8300/h8300.md (movsf_h8300): Change the first
8096 constraint to 'G'.
8097 (movsf_h8300h): Likewise.
8098
b86f6cd9
NB
80992003-07-02 Neil Booth <neil@daikokuya.co.uk>
8100
8101 * c-common.h (c_common_init_options): New prototype.
8102 * c-opts.c (deferred_size): Remove.
8103 (defer_opt): Array is now pre-allocated.
8104 (c_common_init_options): Pre-allocate deferred_opts. Make
8105 lang_flags unsigned.
8106 (push_command_line_options): Free deferred_opts.
8107 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
8108 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
8109 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
8110 * langhooks.h (struct lang_hooks): New prototype for init_options.
8111 * main.c (main): Cast argv.
8112 * opts.c (handle_option, handle_options): Update prototypes.
8113 (decode_options): save_argc, save_argv are not global. Constify.
8114 * opts.h (decode_options): New prototype.
8115 * toplev.c (general_init): New protoype.
8116 (save_argv): Make static.
8117 (save_argc): Remove.
8118 (print_switch_values, general_init): Constify.
8119 (toplev_main): Save argv.
8120 * toplev.h (toplev_main): Update prototype.
8121 (save_argc, save_argv): Remove.
8122
f23b9d52
DE
81232003-07-02 David Edelsohn <edelsohn@gnu.org>
8124
8125 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
8126 (emit_bincl_stab): Same.
8127 (emit_pending_bincls): Same.
8128
300e89a2
NS
81292003-07-02 Nathan Sidwell <nathan@codesourcery.com>
8130
8131 PR c++/11072
8132 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
8133
eaac6968
AS
81342003-07-02 Andreas Schwab <schwab@suse.de>
8135
8136 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
8137
1a8c4ca6
EB
81382003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8139
8140 PR optimization/11210
8141 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
8142 about the behaviour with regard to bitfields.
8143 * fold-const (decode_field_reference): Record outermost type in
8144 case the expression is a NOP. Strip all NOPs. Set the signedness
8145 to that of the outermost type (if any) when the bitsize is equal
8146 to the size of the type.
8147
23cdfcf7
RS
81482003-07-02 Richard Sandiford <rsandifo@redhat.com>
8149
8150 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
8151 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
8152 (adddi3_internal_3, addsi3_internal_2): Likewise.
8153
6f2993e5
RS
81542003-07-02 Richard Sandiford <rsandifo@redhat.com>
8155
8156 * config/mips/mips.c (machine_function): Add new fields:
8157 ignore_hazard_length_p and all_noreorder_p.
8158 (mips_flag_delayed_branch): New variable.
8159 (override_options): Treat '/' as an operand punctuation character.
8160 Set up mips_flag_delayed_branch.
8161 (print_operand): Handle '/'.
8162 (mips_output_function_prologue): Put the whole function in
8163 .set noreorder and .set nomacro if all_noreorder_p is true.
8164 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
8165 (mips16_optimize_gp): Remove "first insn" parameter.
8166 (mips16_lay_out_constants): New function, split out from mips_reorg.
8167 (mips_avoid_hazard, mips_avoid_hazards): New functions.
8168 (mips_reorg): For mips16 code, call mips16_lay_out_constant
8169 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
8170 do delayed-branch scheduling followed by hazard detection.
8171 (mips_adjust_insn_length): Only account for hazards if
8172 !ignore_hazard_length_p.
8173 (mips_output_load_label): Add a nop to the o32 sequence if
8174 the target suffers from load delays.
8175 (mips_output_conditional_branch): Add %/ to the end of branches.
8176 (mips_output_division): Fill the branch delay slot with %#.
8177 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
8178 instructions. End all other %* branches with %/.
8179 (ffssi2, ffsdi2): Fix lengths.
8180 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
8181 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
8182 (fix_truncsfsi2_macro): Likewise.
8183 (mov_lwl): Set hazard to "none".
8184 (ashldi3_internal): Fill the branch delay slot with %#.
8185 (ashrdi3_internal, lshrdi3_internal): Likewise.
8186 (exception_receiver): Explicitly set $28.
8187 (hazard_nop): New pattern.
8188
602a82f3 81892003-07-02 Jan Hubicka <jh@suse.cz>
0184bd46
JH
8190
8191 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
8192 before calling tree_inlinable_function_p.
8193
1a78e5a7
RO
81942003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8195
8196 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
8197 <internal/stdio_core.h> too.
8198 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
8199 <internal/wchar_core.h> too.
8200 Substitute va_list uses in inline definition.
8201 * fixinc/fixincl.x: Regenerate.
8202
4c82f12b
RO
82032003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8204
8205 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
8206 Undef before redefinition.
8207 (LABEL_AFTER_LOC): Likewise.
8208 (DEFAULT_SIGNED_CHAR): Likewise.
8209 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
8210 Fix IRIX spelling.
3dce1408 8211
4c82f12b
RO
8212 * config/mips/iris3.h: Remove, unused.
8213 * config/mips/iris4.h: Likewise.
8214
8215 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
8216
8217 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
8218 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
8219 target_cpu_default.
8220
8221 * config/mips/iris5.h: Move explicit includes ...
8222 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 8223
4c82f12b
RO
8224 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
8225 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
8226 tm_defines.
8227
8228 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
8229 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
8230 target_cpu_default.
8231
8232 * config/mips/iris6.h: Fix IRIX spelling.
8233 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 8234
4c82f12b
RO
8235 * config/mips/iris6.h: Move explicit includes ...
8236 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
8237
602a82f3 82382003-07-02 Jan Hubicka <jh@suse.cz>
8bd87c4e
JH
8239
8240 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
8241 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
8242 Use next_needed field instead of aux to maintain the queue.
8243 * cgraph.h (cgraph_node): Add next_needed.
8244 (cgraph_varpool_node): Add next_needed; remove aux.
8245 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
8246
602a82f3 82472003-07-02 Jan Hubicka <jh@suse.cz>
f6981e16
JH
8248
8249 * cgraphunit.c (cgraph_finalize_function): Set finalized.
8250 (cgraph_finalize_function): Do not examine inlinablility.
8251 (cgraph_finalize_compilation_unit): Do it here.
8252 * cgraph.h (cgraph_local_info): Add finalized field.
8253
d1c60855
RO
82542003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8255
8256 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
8257 (gt_pch_restore): Likewise.
8258
093354e0
KH
82592003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8260
8261 * config/alpha/alpha.c: Fix comment typos.
8262 * config/alpha/elf.h: Likewise.
8263 * config/arm/arm.c: Likewise.
8264 * config/arm/arm.h: Likewise.
8265 * config/arm/arm.md: Likewise.
8266 * config/arm/t-arm-coff: Likewise.
8267 * config/arm/t-strongarm-pe: Likewise.
8268 * config/arm/xscale-elf.h: Likewise.
8269 * config/avr/avr.h: Likewise.
8270
ce47ca44
JL
82712003-07-01 Jeff Law <law@redhat.com>
8272
8273 * stmt.c (any_pending_cleanups): Remove another redundant test.
8274
43b68ce5
DE
82752003-07-01 David Edelsohn <edelsohn@gnu.org>
8276 J"orn Rennecke <joern.rennecke@superh.com>
8277
8278 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
8279 for MEM case.
8280
33e9d2aa
DP
82812003-07-01 Devang Patel <dpatel@apple.com>
8282
8283 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
8284 (binclstatus): New.
3dce1408 8285 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
8286 prev.
8287 (pending_bincls): New.
8288 (dbxout_init): Initialize new dbx_file members.
8289 (dbxout_start_source_file): Same.
8290 (emit_bincl_stab): New function.
8291 (emit_pending_bincls): Same.
8292 (emit_pending_bincls_if_required): Same.
3dce1408 8293 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
8294 processed.
8295 (dbxout_begin_block): Emit pending BINCL stabs.
8296 (dbxout_end_block): Same.
8297 (dbxout_function_decl): Same.
8298 (dbxout_continue): Same.
8299 (dbxout_type): Same.
8300 (dbxout_class_name_qualifiers): Same.
8301 (dbxout_symbol): Same.
8302 (dbxout_symbol_location): Same.
8303 (dbxout_parms): Same.
3dce1408 8304
0108ae51
KG
83052003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8306
8307 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
8308 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
8309
54ced33d
AJ
83102003-07-01 Andreas Jaeger <aj@suse.de>
8311
8312 * fold-const.c: Convert prototypes to ISO C90.
8313 * function.c: Likewise.
8314 * function.h: Likewise.
8315
c0cbdbd9
KH
83162003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8317
8318 * doc/contrib.texi: Fix typos.
8319 * doc/invoke.texi: Likewise.
8320 * doc/passes.texi: Likewise.
8321 * doc/sourcebuild.texi: Likewise.
8322 * doc/tm.texi: Likewise.
8323
e0bb17a8
KH
83242003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8325
8326 * basic-block.h: Fix comment typos.
8327 * bb-reorder.c: Likewise.
8328 * c-format.c: Likewise.
8329 * cfgcleanup.c: Likewise.
8330 * cfghooks.h: Likewise.
8331 * cfgloop.c: Likewise.
8332 * cfgloopmanip.c: Likewise.
8333 * cfgrtl.c: Likewise.
8334 * cgraph.h: Likewise.
8335 * cgraphunit.c: Likewise.
8336 * combine.c: Likewise.
8337 * convert.c: Likewise.
8338 * dbxout.c: Likewise.
8339 * df.c: Likewise.
8340 * df.h: Likewise.
8341 * diagnostic.c: Likewise.
8342 * dwarf2out.c: Likewise.
8343 * et-forest.h: Likewise.
8344 * flow.c: Likewise.
8345 * fold-const.c: Likewise.
8346 * function.h: Likewise.
8347 * gcov-io.h: Likewise.
8348 * gcov.c: Likewise.
8349 * gcse.c: Likewise.
8350 * genautomata.c: Likewise.
8351 * ggc-common.c: Likewise.
8352 * ggc-page.c: Likewise.
8353 * loop-unroll.c: Likewise.
8354 * loop-unswitch.c: Likewise.
8355 * loop.c: Likewise.
8356 * mips-tfile.c: Likewise.
8357 * optabs.c: Likewise.
8358 * ra-build.c: Likewise.
8359 * ra-colorize.c: Likewise.
8360 * ra-rewrite.c: Likewise.
8361 * ra.h: Likewise.
8362 * regmove.c: Likewise.
8363 * reload.c: Likewise.
8364 * rtlanal.c: Likewise.
8365 * sched-ebb.c: Likewise.
8366 * sched-int.h: Likewise.
8367 * sched-vis.c: Likewise.
8368 * sreal.c: Likewise.
8369 * ssa-ccp.c: Likewise.
8370 * ssa.c: Likewise.
8371 * toplev.c: Likewise.
8372 * tree-inline.c: Likewise.
8373 * value-prof.c: Likewise.
8374 * value-prof.h: Likewise.
8375
5f2fc772
NS
83762003-07-01 Nathan Sidwell <nathan@codesourcery.com>
8377
8378 * rtl.h (emit_line_note_after): Remove.
8379 (emit_note_copy_after, emit_note_copy): New.
8380 * emit-rtl.c (reorder_insns_with_line_notes): Replace
8381 emit_line_note_after with emit_note_copy_after.
8382 (emit_insn_after_with_line_notes): Likewise.
8383 (emit_line_note_after): Kill.
8384 (emit_note_copy_after): New.
8385 (emit_note_copy): New.
8386 * function.c (emit_return_into_block): Use emit_note_copy_after.
8387 (thread_prologue_and_epilogue_insns): Likewise.
8388 * integrate.c (expand_inline_function): Use emit_note_copy.
8389 (copy_insn_list): Likewise.
8390 * unroll.c (copy_loop_body): Likewise.
8391 * cfglayout.c (duplicate_insn_chain): Likewise.
8392
5b030314
NS
83932003-07-01 Nathan Sidwell <nathan@codesourcery.com>
8394
8395 * c-tree.h (define_label): Replace filename and lineno arguments
8396 with a location_t.
8397 * c-decl.c (poplevel): Adjust define_label call.
8398 (pop_label_level): Likewise.
8399 (define_label): Replace filename and lineno arguments with a
8400 location_t.
8401 (store_parm_decls): Use DECL_SOURCE_LOCATION.
8402 * c-parse.in (label): Adjust define_label call.
8403
04df6730
NB
84042003-07-01 Neil Booth <neil@daikokuya.co.uk>
8405
8406 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
8407 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
8408 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
8409 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
8410 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
8411
6cf9ac28
AJ
84122003-07-01 Andreas Jaeger <aj@suse.de>
8413
8414 * final.c: Convert prototypes to ISO C90.
8415 * flow.c: Likewise.
8416 * flags.h: Likewise.
8417 * gcov-io.c: Likewise.
8418 * gcov-io.h: Likewise.
8419
2a868fac 8420See ChangeLog.9 for earlier changes.
This page took 1.225014 seconds and 5 git commands to generate.