Commit Graph

47099 Commits

Author SHA1 Message Date
Kazuhiro Inaoka
900a35c82b (call26_operand): Allow in PIC mode.
From-SVN: r75589
2004-01-09 17:04:47 +00:00
Kazuhiro Inaoka
df68f43bb2 Define __m32r__
From-SVN: r75588
2004-01-09 17:03:54 +00:00
Kazu Hirata
a9f99e78e4 re PR target/13380 (An unrecognized insn.)
PR target/13380.
	* gcc.c-torture/compile/20040109-1.c: New.

From-SVN: r75587
2004-01-09 15:49:29 +00:00
Kazu Hirata
58ebda9c2a re PR target/13380 (An unrecognized insn.)
PR target/13380.
	* config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
	or (ne:SI (reg:CC 17) (const_int 0)).
	Be specific about modes wherever possible.

From-SVN: r75586
2004-01-09 15:47:03 +00:00
Kazu Hirata
81ad38a60d m32r.c (m32r_expand_block_move): Call gen_movestrsi_internal with two more arguments.
* config/m32r/m32r.c (m32r_expand_block_move): Call
	gen_movestrsi_internal with two more arguments.
	(m32r_output_block_move): Adjust operand numbers.
	Properly update the source and destination pointers.
	* config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
	'r+'.  Change the set detinations to match_operand.

From-SVN: r75585
2004-01-09 15:42:07 +00:00
Kazu Hirata
b816f339f4 final.c (FIRST_INSN_ADDRESS): Remove.
* final.c (FIRST_INSN_ADDRESS): Remove.
	(shorten_branches): Don't use FIRST_INSN_ADDRESS.
	* system.h (FIRST_INSN_ADDRESS): Poison.
	* config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
	* config/m32r/m32r-protos.h: Remove the prototype for
	m32r_first_insn_address.
	* config/m32r/m32r.c (m32r_first_insn_address): Remove.
	* config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
	* doc/md.texi (FIRST_INSN_ADDRESS): Likewise.

From-SVN: r75584
2004-01-09 15:33:47 +00:00
J. Brobecker
de99511b75 dwarf2out.c (gen_enumeration_type_die): Return the DIE that we just created.
* dwarf2out.c (gen_enumeration_type_die): Return the DIE that
        we just created.
        (is_ada_subrange_type): DIEs for enumeration subtypes should be
        emitted as subrange types too.
        (subrange_type_die): Add handling of enumeration subtypes.

From-SVN: r75582
2004-01-09 14:08:21 +00:00
Richard Henderson
90e4e4c58d re PR rtl-optimization/12441 (Can't spill register bug)
PR opt/12441
        Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
        * i386.c (aligned_operand): Be prepared for SUBREGed registers.
        (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
        (ix86_address_cost): Be prepared for SUBREGed registers.
        (legitimate_address_p): Accept SUBREGed registers.

From-SVN: r75568
2004-01-08 18:31:40 -08:00
Kelley Cook
a6a5e4c91b Makefile.in: Rename configure.in to configure.ac
2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in: Rename configure.in to configure.ac
	* doc/sourcebuild.texi: Likewise.
	* configure: Regenerate.
	* config.in: Regenerate.

From-SVN: r75567
2004-01-09 01:18:35 +00:00
Stuart Hastings
588f75d040 i386.md: Typos in MMX/SSE immediate shifts.
2004-01-08  Stuart Hastings  <stuart@apple.com>

	* config/i386/i386.md: Typos in MMX/SSE immediate shifts.
	* testsuite/gcc.dg/20020523-2.c (bail_if_no_sse): Moved cpu-ID code...
	testsuite/gcc.dg/i386-cpuid.h (i386_cpuid): ...to here, to share with...
	* testsuite/gcc.dg/i386-sse-6.c: ...this new testcase.

From-SVN: r75566
2004-01-09 01:01:50 +00:00
Alan Modra
3b458e6fa9 * gcc.dg/array-quals-1.c: Accept .data.rel.ro.
From-SVN: r75565
2004-01-09 10:58:29 +10:30
GCC Administrator
dd0dddc663 Daily bump.
From-SVN: r75562
2004-01-09 00:16:06 +00:00
Jan Hubicka
6242fcd8e4 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
From-SVN: r75560
2004-01-08 22:57:49 +00:00
Geoffrey Keating
ecb62ae79b rs6000.md (cmptf_internal1): Correct branch offset.
* config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
	(UNSPEC_FIX_TRUNC_TF): New constant.
	(movtf_internal): Make splitter active only when insn is active.
	(extenddftf2): Rewrite to properly load zero into low part.
	(extenddftf2_internal): New.
	(extendsftf2): Rewrite.
	(truncdftf2): Correct length.
	(floatditf2): Delete.
	(fix_trunc_helper): New.
	(fix_trunctfdi2): Use fix_trunc_helper.
	(fix_trunctfsi2): Likewise.fix_trunc
	(fix_trunctfsi2_internal): New.

From-SVN: r75559
2004-01-08 22:50:54 +00:00
Geoffrey Keating
a29077daa7 rs6000.c (legitimate_lo_sum_address_p): lo_sum addresses are legitimate on Darwin even when flag_pic.
* config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
	addresses are legitimate on Darwin even when flag_pic.
	(rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
	non-offsettable addresses for loads of TFmode constants.

From-SVN: r75558
2004-01-08 21:51:56 +00:00
Kazuhiro Inaoka
cb1f9d03d5 (ASM_OUTPUT_ALIGNED_BSS): Actually emit variables in the appropriate bss section.
From-SVN: r75552
2004-01-08 16:19:00 +00:00
Eric Botcazou
53b8fe3ef6 run_acats: Treat 'gnatchop' the same way as 'gnatmake'.
* ada/acats/run_acats: Treat 'gnatchop' the same way
	as 'gnatmake'.  Export GCC_DRIVER.
	* ada/acats/run_all.sh: Add target_gnatchop.  Use
	'host_gnatchop' and 'target_gnatchop' instead of 'gnatshop'.

From-SVN: r75551
2004-01-08 15:19:36 +00:00
Alan Modra
7ddb6568e3 linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure target_flags has MASK_POWERPC64 when -m64.
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
	target_flags has MASK_POWERPC64 when -m64.
	* config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
	to 620, 630, power3, power4 and rs64a entries.
	* config/rs6000/rs6000.h (MASK_64BIT): Expand comment.

From-SVN: r75550
2004-01-09 01:43:23 +10:30
Giovanni Bajo
663cea5dc0 re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* g++.dg/template/dependent-expr4.C: New test.

From-SVN: r75547
2004-01-08 11:57:53 +00:00
Giovanni Bajo
3d5ddced56 re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
	looking into them recursively. They can be there because of the
	new __offsetof__ extension.

From-SVN: r75546
2004-01-08 11:52:41 +00:00
Richard Sandiford
effdb4934f simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants.
* simplify-rtx.c (simplify_immed_subreg): Fix construction of
	floating-point constants.

From-SVN: r75540
2004-01-08 08:21:15 +00:00
Joel Brobecker
fbfd77b814 dwarf2out.c (subrange_type_die): Add context_die parameter.
* dwarf2out.c (subrange_type_die): Add context_die parameter.
        Create the subrange_type DIE using the given context DIE.
        (modified_type_die): Update call to subrange_type_die.

From-SVN: r75537
2004-01-08 07:54:13 +00:00
Zack Weinberg
7ce2710348 dwarf2.h, [...]: Add multiple-include guard.
* dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
	Add multiple-include guard.
cp:
	* parser.c (cp_parser_save_member_function_body): Mark the
	definition static.
treelang:
	* parse.y (yyerror): Mark the definition static.

From-SVN: r75536
2004-01-08 07:50:46 +00:00
Hartmut Penner
417b11de06 * gcc.dg/altivec-11.c: New test.
From-SVN: r75535
2004-01-08 07:27:09 +00:00
Hartmut Penner
ce1f50b212 rs6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*.
* gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
      all vector constant loadable by vsplt*.
      (output_vec_const_move): Likewise.

From-SVN: r75534
2004-01-08 07:25:56 +00:00
Mark Mitchell
72827ed7fc * g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
From-SVN: r75529
2004-01-08 03:32:11 +00:00
GCC Administrator
146cfc5d2a Daily bump.
From-SVN: r75525
2004-01-08 00:16:10 +00:00
Joseph Myers
bca6332881 re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)
PR c/6024
	* c-typeck.c (comptypes): Only treat enumerated types in the same
	translation unit as compatible with each other when they are the
	same type.
	* doc/extend.texi: Update.

f:
	* com.h (ffecom_gfrt_basictype): Correct return type.

testsuite:
	* gcc.dg/enum-compat-1.c: New test.
	* gcc.c-torture/execute/builtin-types-compatible-p.c: Update.

From-SVN: r75521
2004-01-07 22:24:44 +00:00
Rainer Orth
4752762407 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
From-SVN: r75516
2004-01-07 20:58:20 +00:00
Joseph Myers
85b58ca564 re PR c/12165 (Typedef'ed variables ignore typedef's const qualifier)
PR c/12165
	* c-decl.c (grokdeclarator): Take type qualifiers of typedefed
	array type from the array element type.

testsuite:
	* gcc.dg/array-quals-1.c, gcc.dg/c90-idem-qual-3.c,
	gcc.dg/c99-idem-qual-3.c: New tests.

From-SVN: r75514
2004-01-07 19:40:03 +00:00
Alan Modra
b48a0c1869 * gcc.dg/winline-7.c: Don't cast void * to int.
From-SVN: r75503
2004-01-07 23:10:42 +10:30
Alan Modra
93c9d1bae6 rs6000.c (rs6000_dbx_register_number): New function.
* config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
	* config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
	* config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
	(DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
	* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.

From-SVN: r75497
2004-01-07 11:51:28 +10:30
Eric Christopher
deae8de664 mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
2004-01-06  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
	(DWARF2_DEBUGGING_INFO): Define.
	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
	* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
	* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
	for irix as.
	(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
	* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
	* config/mips/iris5gas.h: Ditto.
	(DBX_DEBUGGING_INFO): Remove.
	(DWARF2_DEBUGGING_INFO): Ditto.
	(MIPS_DEBUGGING_INFO): Ditto.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
	* config/mips/elf64.h: Ditto.

From-SVN: r75496
2004-01-07 00:52:32 +00:00
GCC Administrator
470ea489e3 Daily bump.
From-SVN: r75493
2004-01-07 00:16:06 +00:00
Geoffrey Keating
084f5a3539 t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
	(TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
	* config/rs6000/darwin-ldouble.c: New.

From-SVN: r75490
2004-01-06 23:49:39 +00:00
Geoffrey Keating
550d138775 emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for constants.
* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
	for constants.
	(constant_subword): Delete.
	* rtl.h (constant_subword): Delete prototype.
	(immed_double_const): Is not in varasm.c.
	* simplify-rtx.c (simplify_immed_subreg): New.
	(simplify_subreg): Use simplify_immed_subreg.

From-SVN: r75487
2004-01-06 22:51:00 +00:00
Jan Hubicka
fed2b31685 makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
* makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
	(stagefeedback_flags_to_pass): use -fprofile-use.

From-SVN: r75486
2004-01-06 22:49:44 +00:00
Geoffrey Keating
0c90aa3c5c rs6000.md (floatsitf2): Use expand_float rather than trying to generate RTL directly.
* config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
	than trying to generate RTL directly.
	(fix_trunctfsi2): Use expand_fix rather than trying to generate
	RTL directly.

From-SVN: r75485
2004-01-06 21:03:06 +00:00
Geoffrey Keating
64d961b859 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
From-SVN: r75483
2004-01-06 20:06:12 +00:00
David Edelsohn
72b385617a xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each function into a separate macro.
* config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
	function into a separate macro.
	(read_only_data_section): Add void argument.
	(private_data_section): Same.
	(read_only_private_data_section): Same.
	(toc_section): Same.

From-SVN: r75482
2004-01-06 14:49:26 -05:00
Jan Hubicka
0aaae060e1 * invoke.texi: Remove typo in last change.
From-SVN: r75479
2004-01-06 18:26:12 +00:00
Jan Hubicka
9a60938822 re PR target/10301 (Side effects of architecture specific flags are not documented.)
PR target/10301
	* config.gcc: Accept opteron and athlon-64 as variants
	of k8.
	* i386.c (override_options): Likewise.
	* invoke.texi (i386 -mtune): Expand documentation.

From-SVN: r75476
2004-01-06 17:31:10 +00:00
Kazu Hirata
5d3cc25206 alias.c: Fix comment typos.
* alias.c: Fix comment typos.
	* builtins.c: Likewise.
	* cfg.c: Likewise.
	* df.c: Likewise.
	* dominance.c: Likewise.
	* dwarf2out.c: Likewise.
	* emit-rtl.c: Likewise.
	* expr.c: Likewise.
	* final.c: Likewise.
	* fold-const.c: Likewise.
	* gcse.c: Likewise.
	* genattrtab.c: Likewise.
	* genrecog.c: Likewise.
	* gensupport.c: Likewise.
	* ggc-zone.c: Likewise.
	* integrate.c: Likewise.
	* local-alloc.c: Likewise.
	* loop.c: Likewise.
	* recog.c: Likewise.
	* regmove.c: Likewise.
	* reg-stack.c: Likewise.
	* reorg.c: Likewise.
	* rtlanal.c: Likewise.
	* rtl.h: Likewise.
	* sched-ebb.c: Likewise.
	* simplify-rtx.c: Likewise.
	* toplev.c: Likewise.
	* varasm.c: Likewise.

From-SVN: r75475
2004-01-06 16:51:21 +00:00
Kazu Hirata
95ea367d2d install.texi: Fix typos.
* doc/install.texi: Fix typos.
	* doc/invoke.texi: Likewise.
	* doc/md.texi: Likewise.

From-SVN: r75474
2004-01-06 16:21:17 +00:00
Kazuhiro Inaoka
f26ef71360 Fix defintion of TRAMPOLINE_SIZE
From-SVN: r75468
2004-01-06 11:00:28 +00:00
Jan Hubicka
bcf1755434 i386-sse-5.c: New test
* gcc.dg/i386-sse-5.c: New test
	* g++.dg/eh/simd-1.c: Add -w argument for i386.

	* i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
	(function_arg_advance):  Do not pass aggregates in SSE; deal handling
	of MMX_REGPARM.
	(function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
	add MMX_REGPARM.
	* i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
	(SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
	(MMX_REGPARM_MAX): Similarly for -mmmx.

From-SVN: r75467
2004-01-06 10:49:58 +00:00
Kazu Hirata
24746a428d linux.h: Fix comment formatting.
* config/sh/linux.h: Fix comment formatting.
	* config/sh/netbsd-elf.h: Likewise.
	* config/sh/sh.c: Likewise.
	* config/sh/sh.h: Likewise.
	* config/sh/vxworks.h: Likewise.

From-SVN: r75462
2004-01-06 04:21:52 +00:00
Kelley Cook
dedebde10a gcc_update (files_generated): Revert 2003-12-18 change.
contrib/
2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
	* gcc_update (files_generated): Revert 2003-12-18 change.

gcc/ada/
2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
	Update comment and copyright date.
	* stamp-xgnatug: Delete.

From-SVN: r75461
2004-01-06 02:39:27 +00:00
Mark Mitchell
221bfb0334 re PR c++/13057 (regparm attribute not applied to destructor)
PR c++/13057
	* class.c (build_clone): Copy type attributes from the original
	function to the clone.

From-SVN: r75460
2004-01-06 02:26:13 +00:00
Mark Mitchell
856363c883 re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
PR c++/12815
	* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
	references as constant.

From-SVN: r75458
2004-01-06 00:52:36 +00:00