Commit Graph

56594 Commits

Author SHA1 Message Date
Alan Modra
196c42cd7c function.c (assign_parms): When building decl_rtl for SPLIT_COMPLEX_ARGS...
* function.c (assign_parms): When building decl_rtl for
	SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.

From-SVN: r78079
2004-02-19 18:30:47 +10:30
Hans-Peter Nilsson
9188db2d00 re PR target/14209 (Bug in cris.md, shrinking access size of postincrement.)
PR target/14209
	* gcc.c-torture/execute/20040218-1.c: New test.

From-SVN: r78078
2004-02-19 07:58:05 +00:00
Olivier Hainque
c0cfc6913e expr.c (is_aligning_offset): Check if we are aligning the expressions's address over BIGGEST_ALIGNMENT in...
* expr.c (is_aligning_offset): Check if we are aligning the
	expressions's address over BIGGEST_ALIGNMENT in bytes, not
	in bits.

From-SVN: r78076
2004-02-19 07:52:51 +00:00
Matt Austern
328163dc0a gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined...
* gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
	LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
	(init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
	defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
	spec string.
	* doc/tm.texi (REAL_LIBGCC_SPEC): Document.

From-SVN: r78072
2004-02-19 05:52:38 +00:00
Giovanni Bajo
23aa7aba4a re PR c++/14181 (Cryptic error message for code that compiled without warnings in 3.3.x)
PR c++/14181
	* g++.dg/parse/new2.C: New test.

From-SVN: r78068
2004-02-19 03:09:59 +00:00
Giovanni Bajo
063e900f40 re PR c++/14181 (Cryptic error message for code that compiled without warnings in 3.3.x)
PR c++/14181
	* parser.c (cp_parser_new_expression): Parse an ill-formed
	direct-new-declarator after a parenthesized type-id to emit good
	diagnostic.

From-SVN: r78067
2004-02-19 03:06:09 +00:00
GCC Administrator
d63d3c7c2e Daily bump.
From-SVN: r78064
2004-02-19 00:16:11 +00:00
Zack Weinberg
57d4f65c73 dwarf2out.c (loclabel_num): Move outside #ifdef DWARF2_DEBUGGING_INFO and mark with GTY(()).
* dwarf2out.c (loclabel_num): Move outside #ifdef
	DWARF2_DEBUGGING_INFO and mark with GTY(()).
	* config/ia64/ia64.c (struct extern_func_list,extern_func_head):
	Mark with GTY(()).
	(ia64_hpux_add_extern_decl): Save the decl, not the name string.
	Allocate memory with ggc_alloc.  No need to copy anything.
	(ia64_hpux_file_end): Update to match.

From-SVN: r78061
2004-02-18 23:58:00 +00:00
Jakub Jelinek
3fec9fa9b7 i386.c (override_options): Don't imply 3DNow!
* config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
	by default.

From-SVN: r78059
2004-02-19 00:22:49 +01:00
Ulrich Weigand
5665e39850 s390.md ("divmodtidi3"): Use canonical RTL.
* config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
	("divmodtisi3"): Likewise.
	("udivmoddi4", "udivmodtidi3"): Likewise.
	("divmodsi4", "divmoddisi3"): Likewise.
	("udivmodsi4", "udivmoddisi3"): Likewise.
	("udivsi3", "umodsi3"): Likewise.

From-SVN: r78057
2004-02-18 23:00:24 +00:00
Ulrich Weigand
d76e8439b6 s390.c (s390_mainpool_start): Delete the main pool placeholder insn when chunkifying the pool.
* config/s390/s390.c (s390_mainpool_start): Delete the main pool
	placeholder insn when chunkifying the pool.

From-SVN: r78054
2004-02-18 22:37:04 +00:00
John David Anglin
3cf7104e3e pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC code.
* pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
	generating PIC code.

From-SVN: r78053
2004-02-18 22:18:54 +00:00
Kazu Hirata
8981ecd360 h8300-protos.h: Add a prototype for h8300_expand_branch.
* config/h8300/h8300-protos.h: Add a prototype for
	h8300_expand_branch.
	* config/h8300/h8300.c (h8300_expand_branch): New.
	* config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
	bgtu, beq, bne): Call h8300_expand_branch().

From-SVN: r78052
2004-02-18 22:12:59 +00:00
Kazu Hirata
07ee3b586d h8300-protos.h: Add prototypes for h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
* config/h8300/h8300-protos.h: Add prototypes for
	h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
	* config/h8300/h8300.c (h8300_hard_regno_nregs): New.
	(h8300_hard_regno_mode_ok): Likewise.
	* config/h8300/h8300.h (HARD_REGNO_NREGS): Call
	h8300_hard_regno_nregs().
	(HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().

From-SVN: r78050
2004-02-18 22:05:47 +00:00
Per Bothner
22234f56d2 re PR preprocessor/14103 (ICEs on "gcc -E -imacros foo.h baz.c")
* cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
	partly reverts my 2003-10-01 change, because we're back to logically
	including <command line> inside the main line.
	* cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
	* cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
	Fixes PR preprocessor/14103.

	* cppfiles.c (_cpp_stack_include):  When appropriate decrement
	line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
	(cpp_push_include):  Don't need to increment pfile's line field.
	* line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.

	* c-ppoutput.c (print struct):  New first_time field.
	(init_pp_output):  Set print.first_time.
	(pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
	which is set also for (say) <command line>.  Clear print.first_time.

	* cppfiles.c (struct _cpp_file):  Comment and type for pch field
	does not match the code, so fix both.
	(should_stack_file):  Inline include_pch_p function.
	(include_pch_p):  Remove pointless function.

	* cpphash.h (struct cpp_buffer):  Remove unused search_cached field.

From-SVN: r78049
2004-02-18 14:02:39 -08:00
Kazu Hirata
5a6d9a81c7 h8300.md (four define_peephole2's): Use h8300_regs_ok_for_stm().
* config/h8300/h8300.md (four define_peephole2's): Use
	h8300_regs_ok_for_stm().

From-SVN: r78048
2004-02-18 21:55:02 +00:00
Kazu Hirata
3d2e90d632 h8300-protos.h: Update the prototype for expand_a_rotate().
* config/h8300/h8300-protos.h: Update the prototype for
	expand_a_rotate().
	* config/h8300/h8300.c (expand_a_rotate): Remove the first
	argument.
	* config/h8300/h8300.md: Update all callers.

From-SVN: r78047
2004-02-18 21:50:25 +00:00
Jan Hubicka
79ae63b183 simplify-rtx.c (simplify_unary_operation): Deal with logicals on floats.
* simplify-rtx.c (simplify_unary_operation): Deal with logicals on
	floats.
	(simplify_binary_operation): Deal with logicals on floats.

	* i386.md (SSE fabs splitters): Emit new patterns.
	(SSE cmov splitters): Likewise.
	(sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
	(sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
	subregs.
	(sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
	(sse_anddf3, sse_nanddf3, sse_xordf3): Kill.

From-SVN: r78045
2004-02-18 20:55:29 +00:00
Kazu Hirata
01ab55749f h8300.c (expand_a_rotate): Don't generate insns by hand.
* config/h8300/h8300.c (expand_a_rotate): Don't generate insns
	by hand.
	(output_a_rotate): Tweak a comment.
	* config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
	(*rotlhi3_1): Change to rotlhi3_1.
	(*rotlsi3_1): Change to rotlsi3_1.

From-SVN: r78043
2004-02-18 19:42:22 +00:00
Richard Earnshaw
d5f7d2d041 re PR target/13866 (ICE in extract_insn, at recog.c:2083)
PR target/13866
* arm.c (load_multiple_operation): Don't insist that the source reg
of a post-increment component is the same as the destination.
(store_multiple_operation): Likewise.

From-SVN: r78041
2004-02-18 18:44:23 +00:00
Paolo Carlini
2ddf25f217 locale_facets.h (money_get<>::_M_extract): New, helper for do_get.
2004-02-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.h (money_get<>::_M_extract):
	New, helper for do_get.
	(money_put<>::_M_insert): Likewise, for do_put.
	* include/bits/locale_facets.tcc (money_get<>::_M_extract,
	money_put<>::_M_insert): Define.
	(money_get<>::do_get(long double&), money_get<>::do_get(
	string_type&), money_put::do_put(long double),
	money_put::do_put(const string_type&)): Use the helpers.

From-SVN: r78037
2004-02-18 16:39:13 +00:00
Joseph Myers
99cc786a17 * fr.po: Update.
From-SVN: r78034
2004-02-18 15:53:24 +00:00
Kazu Hirata
b0c8a821ff h8300.md: Move movsf patterns into one section of the file.
* config/h8300/h8300.md: Move movsf patterns into one section
	of the file.

From-SVN: r78033
2004-02-18 15:51:07 +00:00
Kazu Hirata
aa335b7641 cfgloop.h, [...]: Update copyright.
gcc/
	* cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
	loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
	xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
	config/mips/linux64.h, config/pa/pa-64.h,
	config/rs6000/aix51.h, config/rs6000/aix52.h,
	config/rs6000/spe.md, config/sparc/linux.h,
	config/sparc/linux64.h: Update copyright.

gcc/cp/
	* cp-tree.def, cvt.c: Update copyright.

From-SVN: r78032
2004-02-18 15:05:17 +00:00
Kazu Hirata
5a64541a22 h8300.md: Move push patterns into one section of the file.
* config/h8300/h8300.md: Move push patterns into one
	section of the file.

From-SVN: r78030
2004-02-18 14:25:33 +00:00
Mark Mitchell
8d04e6db1f re PR c++/11326 (C++ IA64 ABI: 3.1.4: sometimes pointer to temporary return value is implicit first parameter preceding "this")
PR c++/11326
	* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
	fntype.

From-SVN: r78028
2004-02-18 14:21:13 +00:00
Paul Brook
e978d62ee6 rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
* rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
testsuite/
	* gcc.c-torture/compile/libcall-1.c: New test.

From-SVN: r78027
2004-02-18 12:33:18 +00:00
Arnaud Charlet
5c1c8a03a6 [multiple changes]
2004-02-18  Emmanuel Briot  <briot@act-europe.fr>

	* ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
	Scan_ALI can be used for multiple ALI files without reinitializing
	between calls.

2004-02-18  Robert Dewar  <dewar@gnat.com>

	* debug.adb: Minor reformatting.

2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
	to zero if there is an address clause.

2004-02-18  Thomas Quinot  <quinot@act-europe.fr>

	* exp_util.adb (Side_Effect_Free): Any literal is side effects free.

2004-02-18  Gary Dismukes  <dismukes@gnat.com>

	* layout.adb (Layout_Component_List): Revise generation of call to
	discriminant-checking function to pass selections of all of the type's
	discriminants rather than just the variant-controlling discriminant.

2004-02-18  Olivier Hainque  <hainque@act-europe.fr>

	* 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
	fail in the current setup and triggers spurious system error messages.
	Pretend it occurred and failed instead.

2004-02-18  Vincent Celier  <celier@gnat.com>

	* bld.adb: Mark FLDFLAGS as saved
	(Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
	it is not the root project.  Put each directory to be
	extended between double quotes to prevent it to be expanded on Windows.
	(Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
	the project file. Set them back to their initial values if they have not
	been set in the project file.

	* gprcmd.adb: (Gprdebug, Debug): New global variables
	(Display_Command): New procedure
	(Usage): Document new command "linkopts"
	Call Display_Command when env var GPRDEBUG has the value "TRUE"
	Implement new command "linkopts"
	Remove quotes that may be around arguments for "extend"
	Always call Normalize_Pathname with arguments formatted for the platform

	* Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
	Change @echo to @$(display) in target clean to be able to clean silently

	* Makefile.prolog: Save FLDFLAGS and give it an initial empty value

	* prj-part.adb (Project_Path_Name_Of): Do not put final result in
	canonical case.

	* prj-part.adb (Parse_Single_Project): Always call with From_Extended
	= Extending_All when current project is an extending all project.

	* vms_conv.adb (Output_File_Expected): New Boolean global variable,
	set to True only for LINK command, after Unix switch -o.
	(Process_Arguments): Set Output_File_Expected to True for LINK command
	after Unix switch -o. When Output_File_Expected is True, never add an
	extension to a file name.

	* 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
	option file name, only to the --for-linker= switch.
	(Option_File_Name): If option file name do not end with ".opt", append
	"/OPTIONS".

2004-02-18  GNAT Script  <nobody@gnat.com>

	* Make-lang.in: Makefile automatically updated

From-SVN: r78024
2004-02-18 12:52:55 +01:00
Paul Brook
c5fe50362f Fix previous checkin.
PR debug/12934
	* dwarf2out.c (loc_descriptor_from_tree): Handle
	EXPR_WITH_FILE_LOCATION.
testsuite/
	* gcc.dg/debug/debug-7.c: New test.

From-SVN: r78018
2004-02-18 11:11:24 +00:00
Paul Brook
cdbafce136 dwarf2out.c (loc_descriptor_from_tree): Handle EXPR_WITH_FILE_LOCATION.
* dwarf2out.c (loc_descriptor_from_tree): Handle
	EXPR_WITH_FILE_LOCATION.
testsuite/
	* gcc.dg/debug/debug-7.c: New test.

From-SVN: r78017
2004-02-18 11:02:23 +00:00
Jakub Jelinek
5a0855a091 i386.md (zero_extendqidi2, [...]): Remove trailing whitespace from instructions.
* config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
	testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
	trailing whitespace from instructions.

From-SVN: r78016
2004-02-18 10:43:23 +01:00
Paolo Carlini
94b8de97c4 basic_file_stdio.cc (__gnu_internal::xwritev): Rewrite, avoiding recursion.
2004-02-18  Paolo Carlini  <pcarlini@suse.de>

	* config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
	Rewrite, avoiding recursion.
	(__gnu_internal::xwrite): Minor tweaks.

From-SVN: r78015
2004-02-18 08:36:27 +00:00
Geoffrey Keating
9c56033feb configure.ac: When generating auto-build.h, pass --enable-languages to the sub-configure.
* configure.ac: When generating auto-build.h, pass
	--enable-languages to the sub-configure.
	Put quotes around ${program_transform_name} when generating
	name of as, ld, nm, objdump.
	* configure: Regenerate.

From-SVN: r78012
2004-02-18 07:11:24 +00:00
Matt Kraai
80bcb4d263 * Makefile.in (s-check, s-config, s-conditions, s-flags)
(s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
	(s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
	(s-preds, s-iov): Do not depend on move-if-change.

(gcc/ada)

	* Make-lang.in (stamp-sdefault): Do not depend on
	move-if-change.

From-SVN: r78011
2004-02-18 07:01:01 +00:00
James E Wilson
ce7b36a482 Fix rtl sharing problem reported by Daniel Bayer on gcc list.
* caller-save.c (insert_restore): Pass mem through copy_rtx.
	(insert_save): Likewise.

From-SVN: r78010
2004-02-17 22:49:58 -08:00
Stefan Olsson
4d0bdcd6e1 mt_allocator.h: Removed the last pointer.
2004-02-17  Stefan Olsson  <stefan@xapa.se>

	* include/ext/mt_allocator.h: Removed the last
	pointer. Deallocated blocks are now added to the front of
	freelists as proposed by Felix Yen.  This gives roughly 10%
	performance boost and saves some memory.
	* docs/html/ext/mt_allocator.html: Change due to that deallocated
	blocks now are added to the front of freelists. The reason to this
	approach is also explained.

From-SVN: r78009
2004-02-18 01:21:10 +00:00
Kazu Hirata
f8b58e56c5 h8300.c (h8300_emit_stack_adjustment): Fix a warning.
* config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
	warning.

From-SVN: r78008
2004-02-18 01:18:29 +00:00
Kazu Hirata
8d82e1d811 h8300.md (*one_complsi2_h8300): Change to *one_cmplsi2_h8300.
* config/h8300/h8300.md (*one_complsi2_h8300): Change to
	*one_cmplsi2_h8300.
	(*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.

From-SVN: r78007
2004-02-18 00:54:34 +00:00
Kazu Hirata
4093985cee h8300-protos.h: Update the prototype of fix_bit_operand().
* config/h8300/h8300-protos.h: Update the prototype of
	fix_bit_operand().
	* config/h8300/h8300.c (fix_bit_operand): Remove the second
	argument "what".
	* config/h8300/h8300.md: Update all callers.

From-SVN: r78006
2004-02-18 00:42:39 +00:00
GCC Administrator
6cf291df7d Daily bump.
From-SVN: r78003
2004-02-18 00:16:11 +00:00
Kazu Hirata
fd57a6e43f h8300.c (fix_bit_operand): Change the name of the last argument to "code" from "type".
* config/h8300/h8300.c (fix_bit_operand): Change the name of
	the last argument to "code" from "type".

From-SVN: r78000
2004-02-18 00:11:25 +00:00
Kazu Hirata
6a41586762 h8300.c: Remove an extern declaration of rtx_equal_function_value_matters.
* config/h8300/h8300.c: Remove an extern declaration of
	rtx_equal_function_value_matters.

From-SVN: r77998
2004-02-18 00:06:45 +00:00
Kazu Hirata
a357957511 h8300.c (fix_bit_operand): Don't generate insns by hand.
* config/h8300/h8300.c (fix_bit_operand): Don't generate insns
	by hand.
	* config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
	(*iorqi3_1): Change to iorqi3_1.
	(*xorqi3_1): Change to xorqi3_1.

From-SVN: r77997
2004-02-17 23:44:14 +00:00
Kazu Hirata
321440fd61 c-common.c, [...]: Fix comment typos.
* c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
	typos.

From-SVN: r77995
2004-02-17 23:03:37 +00:00
Jan Hubicka
7b50a809ec * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
From-SVN: r77994
2004-02-17 22:44:07 +00:00
Alan Modra
8051c2eb7a re PR rtl-optimization/14119 (libjava Array_3 test fails at -O1)
PR optimization/14119
	* combine.c (try_combine): When attemting to fix unrecognized insns,
	don't delete SETs marked with REG_EH_REGION notes.

From-SVN: r77991
2004-02-18 08:51:00 +10:30
Ulrich Weigand
db33236e40 combine.c (simplify_if_then_else): Do not replace (if_then_else (ne reg 0) (0) (const_int)) by (reg) if...
ChangeLog:

	* combine.c (simplify_if_then_else): Do not replace
	(if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
	modes differ.

testsuite/ChangeLog:

	* gcc.dg/20040217-1.c: New test.

From-SVN: r77988
2004-02-17 22:07:51 +00:00
Zack Weinberg
e4c6167fec * gcc.c-torture/execute/990208-1.x: Delete.
From-SVN: r77986
2004-02-17 21:44:49 +00:00
Steven Bosscher
1da326c335 (c-decl.c, [...]): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
* (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
        function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
        tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
        * ada/utils.c: Likewise.
        * cp/decl.c: Likewise.
        * f/com.c: Likewise.
        * java/class.c: Likewise.

From-SVN: r77985
2004-02-17 21:33:43 +00:00
Kazu Hirata
65c0764148 * config/h8300/h8300.md: Fix comment typos.
From-SVN: r77983
2004-02-17 21:14:27 +00:00