gcc.git
16 years ago[multiple changes]apple/tags/gcc-5325
Stuart Hastings [Tue, 28 Feb 2006 01:47:16 +0000 (28 01:47 +0000)]
[multiple changes]

2006-02-17  Stuart Hastings  <stuart@apple.com>

* Radar 4356747
(marked APPLE LOCAL "4356747 stack realign")
doc/extend.texi (force_align_arg_pointer): Document.
doc/invoke.texi (-mstackrealign): Document.
config/i386/i386.h (TARGET_OPTIONS): Add -mstackrealgin.
config/i386/i386.c (ix86_force_align_arg_pointer): New.
(ix86_force_align_arg_pointer_string): New.
(ix86_attribute_table): Add "force_align_arg_pointer" attribute.
(ix86_function_regparm): Compensate for new attribute.
(ix86_internal_arg_pointer): Check for new attribute.

2005-11-02  Richard Henderson  <rth@redhat.com>

(marked APPLE LOCAL "mainline 2006-02-17 4356747 stack realign")
PR target/9350
PR target/24374
* dwarf2out.c (dwarf2out_reg_save_reg): New.
(dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
* function.c (assign_parms): Use calls.internal_arg_pointer.
(expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
code.
* target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
(TARGET_CALLS): Add it.
* target.h (struct gcc_target): Add calls.internal_arg_pointer.
* targhooks.c (default_internal_arg_pointer): New.
* targhooks.h (default_internal_arg_pointer): Declare.
* tree.h (dwarf2out_reg_save_reg): Declare.
* doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
* config/i386/i386.c (dbx_register_map): Add return column.
(dbx64_register_map, svr4_dbx_register_map): Likewise.
(TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
(TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
(ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
(ix86_save_reg): Save force_align_arg_pointer.
(ix86_emit_save_regs): Make regno unsigned.
(ix86_emit_save_regs_using_mov): Likewise.
(ix86_expand_prologue): Handle force_align_arg_pointer.
(ix86_expand_epilogue): Likewise.
* config/i386/i386.h: (dbx_register_map): Update.
(dbx64_register_map, svr4_dbx_register_map): Update.
(struct machine_function): Add force_align_arg_pointer.
* config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
(UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
(TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.

2006-02-27  Stuart Hastings  <stuart@apple.com>

Radar 4448096
* testsuite/gcc.target/i386/4448096-1.c: New.
* testsuite/g++.dg/4448096-2.C: New.

From-SVN: r111503

16 years agoRadar 4448096
Stuart Hastings [Tue, 28 Feb 2006 01:17:32 +0000 (28 01:17 +0000)]
Radar 4448096

2006-02-27  Stuart Hastings  <stuart@apple.com>

Radar 4448096
* gcc/config/i386/i386.md (fixuns_truncdfsi2,
fixuns_truncsfsi2, floatunsdidf2): Disable for 4-byte aligned stack.
* gcc/config/i386/i386.c (override_options): Set 4-byte
aligned stack for -fapple-kext.
(ix86_expand_convert_DF2SI_sse, ix86_expand_convert_SF2SI_sse,
ix86_expand_convert_DI2DF_sse): assert a 16-byte aligned stack.
* gcc/doc/invoke.texi (-fapple-kext): Document new
-fapple-kext behavior.

2006-02-27  Stuart Hastings  <stuart@apple.com>

Radar 4448096
* testsuite/gcc.target/i386/4448096-1.c: New.
* testsuite/g++.dg/4448096-2.C: New.

From-SVN: r111502

16 years agoIndex: gcc/ChangeLog
Geoffrey Keating [Mon, 27 Feb 2006 23:18:42 +0000 (27 23:18 +0000)]
Index: gcc/ChangeLog
2006-02-24  Geoffrey Keating  <geoffk@apple.com>

Radar 4086777
* doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
* doc/invoke.texi (C++ Dialect Options): Document
-fno-use-cxa-get-exception-ptr.
* configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
* configure: Regenerate.
* c.opt (fuse-cxa-get-exception-ptr): New.
* c-opts.c (c_common_handle_option): Handle
OPT_fuse_cxa_get_exception_ptr.
* c-common.c (flag_use_cxa_atexit): Update documentation.
(flag_use_cxa_get_exception_ptr): New.
* c-common.h (flag_use_cxa_get_exception_ptr): New.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
documentation.
(C_COMMON_OVERRIDE_OPTIONS): New.

Index: gcc/testsuite/ChangeLog
2006-02-24  Geoffrey Keating  <geoffk@apple.com>

Radar 4086777
* g++.dg/eh/uncaught1.C: Add dg-options for ppc-darwin.
* g++.dg/eh/uncaught2.C: New.
* g++.dg/eh/uncaught3.C: New.

Index: gcc/cp/ChangeLog
2006-02-24  Geoffrey Keating  <geoffk@apple.com>

Radar 4086777
* except.c (expand_start_catch_block): Handle
flag_use_cxa_get_exception_ptr.

From-SVN: r111492

16 years agoFix whitespace changes.
Eric Christopher [Sun, 26 Feb 2006 18:32:42 +0000 (26 18:32 +0000)]
Fix whitespace changes.

From-SVN: r111455

16 years agoFix APPLE LOCAL marker.
Mike Stump [Sat, 25 Feb 2006 18:47:24 +0000 (25 18:47 +0000)]
Fix APPLE LOCAL marker.

From-SVN: r111439

16 years agoRadar 4456673
Mike Stump [Fri, 24 Feb 2006 20:26:24 +0000 (24 20:26 +0000)]
Radar 4456673

Radar 4456673
* c-common.c (print_cw_asm_operand): Revert change from
Radar 4399388 as it breaks C++ ppc.

* gcc.apple/asm-block-48.c: Add.
* g++.dg/asm-block-48.C: Add.

From-SVN: r111426

16 years agoRadar 4298040
Mike Stump [Fri, 24 Feb 2006 18:35:28 +0000 (24 18:35 +0000)]
Radar 4298040

Radar 4298040
* config/i386/i386.h (TARGET_CW_OP_CONSTRAINT): Improve fdivr,
fiadd, ficom, ficomp, fidiv, fidivr fild, fimul, fist, fistp,
fisttp, fisub, fisubr, fmul, idiv, inc, lds, les, lfs, lgs, lss.
Remove fildl, fildll, fistpll, fisttpll.
* config/i386/i386.c (x86_canonicalize_operands): Add DImode
support.  Allow mov to be used on floats.
* c-common.c (m1, m2, m4, m2m4): Remove.
(m64, m16m32, m16m32m64, r16r32, r16r32r64): Add.
(rm64, rm8rm16rm32rm64): Add.
(print_cw_asm_operand, case INDIRECT_REF): Handle all
INDIRECT_REFs uniformly.

* g++.dg/asm-block-47.C: Add.
* g++.dg/asm-block-13.C: Update.
* gcc.apple/asm-block-13.c: Update.

From-SVN: r111422

16 years agoRadar 4081414
Eric Christopher [Fri, 24 Feb 2006 01:29:43 +0000 (24 01:29 +0000)]
Radar 4081414

2006-02-23  Eric Christopher  <echristo@apple.com>

        Radar 4081414
        * global.c (local_reg_weight): Make HOST_WIDE_INT.
        (global_alloc): Remove casts to double for local_reg_weight.
        (find_reg): Use integer temporary for weight computation.

From-SVN: r111410

16 years agoBump version to gcc-5325.
Jon Ziegler [Wed, 22 Feb 2006 03:13:56 +0000 (22 03:13 +0000)]
Bump version to gcc-5325.

From-SVN: r111359

16 years agoRadar 4444941apple/tags/gcc-5324
Geoffrey Keating [Tue, 21 Feb 2006 22:27:02 +0000 (21 22:27 +0000)]
Radar 4444941

Radar 4444941
* dwarf2out.c (gen_subprogram_die): Add DW_AT_MIPS_linkage_name
when it might not have been added previously.

From-SVN: r111347

16 years agoIndex: ChangeLog
Geoffrey Keating [Tue, 21 Feb 2006 22:14:23 +0000 (21 22:14 +0000)]
Index: ChangeLog
2006-02-21  Geoffrey Keating  <geoffk@apple.com>

Radar 4439051
* config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.

Index: testsuite/ChangeLog
2006-02-21  Geoffrey Keating  <geoffk@apple.com>

Radar 4439051
* g++.dg/eh/spbp.C: New.

From-SVN: r111346

16 years agogcc.dg/4176531.c: Fix target.
Stuart Hastings [Fri, 17 Feb 2006 20:30:06 +0000 (17 20:30 +0000)]
gcc.dg/4176531.c: Fix target.

From-SVN: r111207

16 years agoRadar 4419735
Mike Stump [Fri, 17 Feb 2006 01:09:50 +0000 (17 01:09 +0000)]
Radar 4419735

Radar 4419735
* c-common.c (cw_build_bracket): Add support for [word ptr esi].
(cw_ptr_conv): Likewise.
* config/i386/i386.c (cw_canonicalize_bracket): Likewise.
(cw_canonicalize_bracket_1): Likewise.
(cw_combine_type): Add.

(x86_canonicalize_operands): Don't add a modifier for
fstcw/fnstcw.

* gcc.apple/asm-block-45.c: Add.
* gcc.apple/asm-block-46.c: Add.
* g++.dg/asm-block-45.C: Add.
* g++.dg/asm-block-46.C: Add.

From-SVN: r111171

16 years agoBump version to gcc-5324.
Jon Ziegler [Wed, 15 Feb 2006 02:35:18 +0000 (15 02:35 +0000)]
Bump version to gcc-5324.

From-SVN: r111013

16 years agoFormatting fixes for the ChangeLog.apple-ppc file.apple/tags/gcc-5323
Mike Stump [Wed, 15 Feb 2006 01:33:20 +0000 (15 01:33 +0000)]
Formatting fixes for the ChangeLog.apple-ppc file.

From-SVN: r111010

16 years agoRadar 4443942
Mike Stump [Wed, 15 Feb 2006 01:16:18 +0000 (15 01:16 +0000)]
Radar 4443942

Radar 4443942
* config/i386/i386.c (x86_canonicalize_operands): Don't add a
modifier for movq/movntq.

* gcc.apple/asm-block-44.c: Add.
* g++.dg/asm-block-44.C: Add.

From-SVN: r111008

16 years ago==> gcc/ChangeLog.apple-ppc <==
Eric Christopher [Wed, 15 Feb 2006 01:08:53 +0000 (15 01:08 +0000)]
==> gcc/ChangeLog.apple-ppc <==
2006-02-14  Eric Christopher  <echristo@apple.com>

        Radar 4331439
        * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute):
        Disable for 64-bit Mach-O.
        * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Disable longcall
        only for Mach-O.

==> gcc/testsuite/ChangeLog.apple-ppc <==
2006-02-14  Eric Christopher  <echristo@apple.com>

        Radar 4385016 4331438
        * gcc.apple/altivec-maltivec-1.c: xfail for 64bit.
        * gcc.apple/altivec-faltivec-1.c: Ditto.
        * gcc.apple/altivec-faltivec-2.c: Ditto.
        * gcc.apple/default-cpu-1.c: Skip for 64bit.
        * gcc.apple/default-cpu-2.c: Ditto.
        * gcc.apple/align-test-5c: Ditto.
        * gcc.apple/asm-test-nofralloc.c: Ditto.

From-SVN: r111007

16 years agoRadar 4415216
Mike Stump [Tue, 14 Feb 2006 20:29:18 +0000 (14 20:29 +0000)]
Radar 4415216

Radar 4415216
* config/i386/i386.c: (additional_names): Add.
(cw_reg_comp): Add.
(i386_cw_asm_register_name): Add support for upper case register
names.

* gcc.apple/asm-block-43.c: Add.
* g++.dg/asm-block-43.C: Add.

From-SVN: r110996

16 years agoRadar 4373419 PR target/25376
Josh Conner [Tue, 14 Feb 2006 17:23:00 +0000 (14 17:23 +0000)]
Radar 4373419 PR target/25376

Radar 4373419
PR target/25376
* gcc/varasm.c (function_section): Don't call select_section if a
section name is present.
* testsuite/gcc.dg/pr25376: New test.
* testsuite/lib/target-supports.exp (check_named_sections_available):
Only compile named-sections test -- don't assemble.

From-SVN: r110987

16 years agoRadar 4433453r111967/tags/apple/trunk-last-merge
Geoffrey Keating [Tue, 14 Feb 2006 00:39:12 +0000 (14 00:39 +0000)]
Radar 4433453

Radar 4433453
* dwarf2out.c (base_type_die): Don't add AT_name here.
(subrange_type_die): Don't add AT_name here.
(modified_type_die): Rearrange code flow.  Do add AT_name here.

From-SVN: r110951

16 years agoRadar 4408439
Geoffrey Keating [Tue, 14 Feb 2006 00:38:02 +0000 (14 00:38 +0000)]
Radar 4408439

Radar 4408439
* opts.c (set_debug_level): DWARF is now best for GDB.

From-SVN: r110950

16 years agofix apple local markers
Dale Johannesen [Sat, 11 Feb 2006 19:32:15 +0000 (11 19:32 +0000)]
fix apple local markers

From-SVN: r110878

16 years agoBump version to gcc-5323.
Jon Ziegler [Sat, 11 Feb 2006 02:16:25 +0000 (11 02:16 +0000)]
Bump version to gcc-5323.

From-SVN: r110871

16 years agoUpdate xfail files for gcc-5321.apple/tags/gcc-5322
Jon Ziegler [Sat, 11 Feb 2006 02:14:52 +0000 (11 02:14 +0000)]
Update xfail files for gcc-5321.

From-SVN: r110869

16 years agoRadar 4420531
Dale Johannesen [Sat, 11 Feb 2006 02:09:45 +0000 (11 02:09 +0000)]
Radar 4420531

2006-02-10  Dale Johannesen  <dalej@apple.com>

        Radar 4420531
* doc/invoke.texi:  Warn that -ftree-loop-linear is buggy.

From-SVN: r110868

16 years agoRadar 4439051
Geoffrey Keating [Sat, 11 Feb 2006 00:50:59 +0000 (11 00:50 +0000)]
Radar 4439051

Radar 4439051
* config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.

From-SVN: r110867

16 years agoshould have been part of previous commit ?
Dale Johannesen [Fri, 10 Feb 2006 18:59:24 +0000 (10 18:59 +0000)]
should have been part of previous commit ?

From-SVN: r110844

16 years agoRadar 4430139 4431496
Dale Johannesen [Fri, 10 Feb 2006 18:57:58 +0000 (10 18:57 +0000)]
Radar 4430139 4431496

2006-02-10  Dale Johannesen  <dalej@apple.com>

Radar 4430139 4431496
* tree.h: Remove reversed_flag.
(record_layout_info_s):  Add among_reversed_bitfields,
reversed_bitfield_type_size, reversed_bitfield_bitpos.
* stor-layout.c (place_field):  Rewrite
reversed-bitfield logic to use them.
2006-02-10  Dale Johannesen  <dalej@apple.com>

Radar 4430139 4431496
* gcc.apple/bitreverse-10.c:  Return from main.
* gcc.apple/bitreverse-18.c:  New.
* gcc.apple/bitreverse-19.c:  New.
* gcc.apple/bitreverse-20.c:  New.
* gcc.apple/bitreverse-21.c:  New.
* gcc.apple/bitreverse-22.c:  New.
* gcc.apple/bitreverse-24.c:  New.
* gcc.apple/bitreverse-25.c:  New.
* gcc.apple/bitreverse-26.c:  New.
* gcc.apple/bitreverse-27.c:  New.
* g++.dg/bitreverse-10.C:  Return from main.
* g++.dg/bitreverse-23.C:  New.

From-SVN: r110843

16 years agoRadar 4435472
Devang Patel [Fri, 10 Feb 2006 18:41:03 +0000 (10 10:41 -0800)]
Radar 4435472

       Radar 4435472
       * config/darwin-driver.c (main.c): Check --save-temps.

From-SVN: r110842

16 years agordar 4416452 GCC 4.0.1 wrong compilation
Mark Mitchell [Fri, 10 Feb 2006 17:51:13 +0000 (10 17:51 +0000)]
rdar 4416452 GCC 4.0.1 wrong compilation

From-SVN: r110839

16 years agoBump version to gcc-5322.
Jon Ziegler [Fri, 10 Feb 2006 01:48:40 +0000 (10 01:48 +0000)]
Bump version to gcc-5322.

From-SVN: r110830

16 years agoRadar 4399388apple/tags/gcc-5321
Mike Stump [Fri, 10 Feb 2006 00:40:27 +0000 (10 00:40 +0000)]
Radar 4399388

Radar 4399388
* config/i386/i386.c (cw_canonicalize_bracket_1): Add.
(cw_canonicalize_bracket): Improve.
(cw_is_offset): Add NEGATE_EXPR support.
(cw_print_op): Improve BRACKET_EXPR handling.
* c-common.c (print_cw_asm_operand): Add parens around
NEGATE_EXPR.

From-SVN: r110828

16 years agoRadar 4429851
Mike Stump [Wed, 8 Feb 2006 20:58:45 +0000 (8 20:58 +0000)]
Radar 4429851

Radar 4429851
* gcc.apple/asm-block-41.c: Add.
* g++.dg/asm-block-41.C: Add.

From-SVN: r110770

16 years agoRadar 4176531 (revised version of 27jan06 patch)
Stuart Hastings [Wed, 8 Feb 2006 20:50:32 +0000 (8 20:50 +0000)]
Radar 4176531 (revised version of 27jan06 patch)

Radar 4176531 (revised version of 27jan06 patch)
* gcc/config/i386/i386.md (fixuns_trunc<mode>si2,
fixuns_truncdfhi2, fixuns_truncsfhi2): New.
(floatunsdidf2): Allow for 32-bit when optimize_size is off.
* gcc/config/i386/i386-protos.h
(ix86_expand_convert_DF2SI_sse, ix86_expand_convert_SF2SI_sse,
ix86_expand_convert_DI2DF_sse): New.
* gcc/config/i386/i386.c (ix86_expand_vector_move2,
gen_2_4_rtvec, ix86_expand_convert_DF2SI_sse,
ix86_expand_convert_SF2SI_sse, ix86_expand_convert_DI2DF_sse): New.
(x86_emit_floatuns): Call ix86_expand_convert_DI2DF_sse.

From-SVN: r110768

16 years agoFixed a checklocals (mis)diagnosis.
Fariborz Jahanian [Wed, 8 Feb 2006 20:24:00 +0000 (8 20:24 +0000)]
Fixed a checklocals (mis)diagnosis.

From-SVN: r110765

16 years agoRadar 4407059
Mike Stump [Wed, 8 Feb 2006 19:13:15 +0000 (8 19:13 +0000)]
Radar 4407059

Radar 4407059
* c-lex.c (c_lex_with_flags): Only recognize "offset" when doing
x86 assembly.

* parser.c (cp_parser_unary_operator): Only recognize "offset"
when doing x86 assembly.

From-SVN: r110762

16 years agoRadar 4430041
Geoffrey Keating [Wed, 8 Feb 2006 01:07:48 +0000 (8 01:07 +0000)]
Radar 4430041

Radar 4430041
* config/i386/i386.c (ix86_delegitimize_address): Support Darwin
PIC addresses.

From-SVN: r110737

16 years agoradar 4219590
Fariborz Jahanian [Tue, 7 Feb 2006 22:34:01 +0000 (7 22:34 +0000)]
radar 4219590
Oked by Mike.

From-SVN: r110726

16 years agordar 4431091 template<> int A<0> accepted
Mark Mitchell [Tue, 7 Feb 2006 00:21:03 +0000 (7 00:21 +0000)]
rdar 4431091 template<> int A<0> accepted

From-SVN: r110680

16 years agoRadar 4385002
Devang Patel [Mon, 6 Feb 2006 18:43:49 +0000 (6 10:43 -0800)]
Radar 4385002

       Radar 4385002
       * gcc.dg/vect/vect-align-1.c: Update.

From-SVN: r110658

16 years agoUpdate radar markers from 4399388 to 4433955.
Mike Stump [Sun, 5 Feb 2006 20:44:40 +0000 (5 20:44 +0000)]
Update radar markers from 4399388 to 4433955.

From-SVN: r110622

16 years agoBump version to gcc-5321.
Jon Ziegler [Sat, 4 Feb 2006 05:39:16 +0000 (4 05:39 +0000)]
Bump version to gcc-5321.

From-SVN: r110584

16 years agoRadar 4433955apple/tags/gcc-5320
Mike Stump [Fri, 3 Feb 2006 22:30:13 +0000 (3 22:30 +0000)]
Radar 4433955

Radar 4433955
* c-common.c (pointer_int_sum): Strip NOPs for C++.

* g++.dg/asm-block-38.C: Add.

From-SVN: r110566

16 years agoRadar 4433955
Mike Stump [Fri, 3 Feb 2006 20:34:00 +0000 (3 20:34 +0000)]
Radar 4433955

Radar 4433955
        * gcc.apple/asm-block-38.c: Add.

From-SVN: r110559

16 years agoRadar 4432782
Mike Stump [Fri, 3 Feb 2006 20:15:28 +0000 (3 20:15 +0000)]
Radar 4432782

Radar 4432782
* config/i386/i386.c (x86_canonicalize_operands): A movz with 2
operands of the same size is converted to a normal mov.

Radar 4432782
* gcc.apple/asm-block-39.c: Add.
* g++.dg/asm-block-39.C: Add.

From-SVN: r110558

16 years agordar 4407995 test case
Howard Hinnant [Fri, 3 Feb 2006 16:11:43 +0000 (3 16:11 +0000)]
rdar 4407995 test case

From-SVN: r110545

16 years agoBump version to gcc-5320.
Jon Ziegler [Fri, 3 Feb 2006 03:05:47 +0000 (3 03:05 +0000)]
Bump version to gcc-5320.

From-SVN: r110535

16 years agoUpdate xfail files for gcc-5318.apple/tags/gcc-5319
Jon Ziegler [Fri, 3 Feb 2006 03:04:05 +0000 (3 03:04 +0000)]
Update xfail files for gcc-5318.

From-SVN: r110533

16 years agoRadar 4433955
Mike Stump [Fri, 3 Feb 2006 02:56:58 +0000 (3 02:56 +0000)]
Radar 4433955

2006-02-02  Mike Stump  <mrs@apple.com>

Radar 4433955
* c-common.c (cw_asm_get_register_var): Remove static.
(pointer_int_sum): Build up ARRAY_REFs when possible.
* config/i386/i386.c (cw_canonicalize_bracket): Let forms with
pointer types through to optimizer and print_operand.
(cw_print_op): Likewise.
* config/asm.h (cw_asm_get_register_var): Add.

2006-02-02  Mike Stump  <mrs@apple.com>

Radar 4433955
* gcc.apple/asm-block-37.c: Add.
* g++.dg/asm-block-37.C: Add.

From-SVN: r110532

16 years agoAdd missing ChangeLog entry for Radar 4383509.
Geoffrey Keating [Fri, 3 Feb 2006 01:57:02 +0000 (3 01:57 +0000)]
Add missing ChangeLog entry for Radar 4383509.

From-SVN: r110531

16 years agordar 4407995 added APPLE LOCAL markers
Howard Hinnant [Thu, 2 Feb 2006 22:16:11 +0000 (2 22:16 +0000)]
rdar 4407995 added APPLE LOCAL markers

From-SVN: r110521

16 years agoBump version to gcc-5319.
Jon Ziegler [Thu, 2 Feb 2006 03:11:13 +0000 (2 03:11 +0000)]
Bump version to gcc-5319.

From-SVN: r110501

16 years agoRadar 4429317 (SWB regressions; back out patch for Radar 4176531.)apple/tags/gcc-5318
Stuart Hastings [Thu, 2 Feb 2006 02:39:19 +0000 (2 02:39 +0000)]
Radar 4429317 (SWB regressions; back out patch for Radar 4176531.)

 Radar 4429317
 (SWB regressions; back out patch for Radar 4176531.)
 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2,
 fixuns_truncdfhi2, fixuns_truncsfhi2): Remove.
 (floatunsdidf2): Restore to previous.
 * gcc/config/i386/i386-protos.h
 (ix86_expand_convert_DF2SI_sse, ix86_expand_convert_SF2SI_sse,
 ix86_expand_convert_DI2DF_sse): Remove.
 * gcc/config/i386/i386.c (ix86_expand_vector_move2,
 gen_2_4_rtvec, ix86_expand_convert_DF2SI_sse,
 ix86_expand_convert_SF2SI_sse, ix86_expand_convert_DI2DF_sse): Remove.
(x86_emit_floatuns): Remove call to ix86_expand_convert_DI2DF_sse.

From-SVN: r110499

16 years agordar 4407995 enable_if
Mark Mitchell [Thu, 2 Feb 2006 00:08:48 +0000 (2 00:08 +0000)]
rdar 4407995 enable_if

From-SVN: r110486

16 years agoRadar 4208007
Devang Patel [Wed, 1 Feb 2006 20:58:46 +0000 (1 12:58 -0800)]
Radar 4208007

        Radar 4208007
        * tree-vectorizer.c (vect_print_dump_info): Add vect_dump check.
        * gcc.dg/R4208007.c: New.

From-SVN: r110480

16 years agoFix APPLE LOCAL marker.
Devang Patel [Wed, 1 Feb 2006 18:20:55 +0000 (1 10:20 -0800)]
Fix APPLE LOCAL marker.

s/APPLE LOCAL FILE/APPLE LOCAL file/

From-SVN: r110475

16 years agoRadar 4382844
Devang Patel [Tue, 31 Jan 2006 23:08:05 +0000 (31 15:08 -0800)]
Radar 4382844

Radar 4382844
        * tree-data-ref.c (analyze_array, init_data_ref,
        find_data_references_in_loop): Set DR_TYPE.
        * tree-data-ref.h (data_ref_type): New.
        (struct data_reference): New member, data reference type.
        (DR_TYPE): New.
        * tree-vect-analyze.c (record_ptr_differ_p,
        vect_base_object_differ_p): New.
        (vect_base_addr_differ_p): Check base objects.

        * g++.dg/vect/R4382844.cc: New.

From-SVN: r110454

16 years agoBump version to gcc-5317.
Jon Ziegler [Tue, 31 Jan 2006 06:10:48 +0000 (31 06:10 +0000)]
Bump version to gcc-5317.

From-SVN: r110431

16 years agoRadar 4176531apple/tags/gcc-5317
Stuart Hastings [Tue, 31 Jan 2006 05:45:51 +0000 (31 05:45 +0000)]
Radar 4176531

Radar 4176531
* gcc/config/i386/i386.c (ix86_expand_convert_DF2SI_sse):
Fixes for -Werror.

From-SVN: r110429

16 years agoBump version to gcc-5317.
Jon Ziegler [Tue, 31 Jan 2006 01:21:25 +0000 (31 01:21 +0000)]
Bump version to gcc-5317.

From-SVN: r110425

16 years agoRadar 4420068apple/tags/gcc-5316
Dale Johannesen [Sat, 28 Jan 2006 17:37:24 +0000 (28 17:37 +0000)]
Radar 4420068

2006-01-28  Dale Johannesen  <dalej@apple.com>

        Radar 4420068
        * gcc.apple/bitreverse-17.c:  New.

2006-01-28  Dale Johannesen  <dalej@apple.com>

        Radar 4420068
        * stor-layout.c (place_field): don't adjust
        rli->bitpos and rli->offset after a non-bitfield
        whose type is zero-sized.

From-SVN: r110328

16 years agoRadar 4176531
Stuart Hastings [Fri, 27 Jan 2006 20:54:24 +0000 (27 20:54 +0000)]
Radar 4176531

Radar 4176531
* gcc/config/i386/i386.md (fixuns_trunc<mode>si2,
fixuns_truncdfhi2, fixuns_truncsfhi2): New.
(floatunsdidf2): Allow for 32-bit when optimize_size is off.
* gcc/config/i386/i386-protos.h
(ix86_expand_convert_DF2SI_sse, ix86_expand_convert_SF2SI_sse,
ix86_expand_convert_DI2DF_sse): New.
* gcc/config/i386/i386.c (ix86_expand_vector_move2,
gen_2_4_rtvec, ix86_expand_convert_DF2SI_sse,
ix86_expand_convert_SF2SI_sse, ix86_expand_convert_DI2DF_sse): New.
(x86_emit_floatuns): Call ix86_expand_convert_DI2DF_sse.
* testsuite/gcc.dg/4176531.c: New.

From-SVN: r110306

16 years agoBump version to gcc-5316.
Jon Ziegler [Thu, 26 Jan 2006 21:32:46 +0000 (26 21:32 +0000)]
Bump version to gcc-5316.

From-SVN: r110277

16 years agoFix APPLE LOCAL marker.apple/tags/gcc-5315
Devang Patel [Thu, 26 Jan 2006 17:04:23 +0000 (26 09:04 -0800)]
Fix APPLE LOCAL marker.

From-SVN: r110260

16 years agoRadar 4334498
Devang Patel [Wed, 25 Jan 2006 20:54:53 +0000 (25 12:54 -0800)]
Radar 4334498

        Radar 4334498
        * dbxout.c (dbxout_init): Queue void type.

        * g++.dg/stab-4334498.C: New.

From-SVN: r110226

16 years agoRadar 4332100
Geoffrey Keating [Tue, 24 Jan 2006 02:24:24 +0000 (24 02:24 +0000)]
Radar 4332100

Radar 4332100
* build_gcc (CONFIGFLAGS): Add --with-slibdir.

From-SVN: r110162

16 years agoRadar 4390273
Dale Johannesen [Mon, 23 Jan 2006 22:06:40 +0000 (23 22:06 +0000)]
Radar 4390273

2006-01-23  Dale Johannesen  <dalej@apple.com>

        Radar 4390273
        * cfgloopmanip.c (create_loop_notes):  Handle case
        where we move a block outside the loop into the loop,
        but the preceding block (the latch) was not moved.

From-SVN: r110146

16 years agoFixed APPLE LOCAL markers
Mike Stump [Sun, 22 Jan 2006 17:58:35 +0000 (22 17:58 +0000)]
Fixed APPLE LOCAL markers

From-SVN: r110093

16 years agowarn4.C: Compile with -Wconversion.
Eric Christopher [Sat, 21 Jan 2006 03:02:09 +0000 (21 03:02 +0000)]
warn4.C: Compile with -Wconversion.

2006-01-20  Eric Christopher  <echristo@apple.com>

        * g++.old-deja/g++.other/warn4.C: Compile
        with -Wconversion.

From-SVN: r110060

16 years agoRadar 4381918
Mike Stump [Fri, 20 Jan 2006 22:31:20 +0000 (20 22:31 +0000)]
Radar 4381918

Radar 4381918
* c-decl.c (start_function): Avoid warnings about lack of return
in asm functions.
* config/i386/i386.c (ix86_save_reg): Don't save any registers for
asm functions.
(ix86_expand_prologue): Don't adjust the stack for asm functions.
(ix86_expand_epilogue): Don't generate most of the epilogue for an
asm function, but do generate a ret.
* function.c (assign_parms): Don't avoid doing work for asm
functions.
(expand_function_start): We don't need DECL_RTL for asm functions.
(expand_function_end): Use a naked return for asm functions.
(expand_function_end):
* gimple-low.c (lower_function_body): Don't generate a return; for
asm functions.
* tree-inline.c (inline_forbidden_p): Don't inline asm functions on ppc.

cp:
Radar 4381918
* decl.c (start_preparsed_function): Avoid warnings about lack of return
in asm functions.

testsuite:
Radar 4381918
* gcc.apple/asm-function-19.c: Add.
* gcc.apple/asm-function-20.c: Add.
* g++.dg/asm-function-19.C: Add.
* g++.dg/asm-function-20.C: Add.

From-SVN: r110046

16 years agoFix whitespace errors from last checkin.
Eric Christopher [Thu, 19 Jan 2006 23:36:59 +0000 (19 23:36 +0000)]
Fix whitespace errors from last checkin.

From-SVN: r109989

16 years agoBump version to gcc-5315.
Jon Ziegler [Thu, 19 Jan 2006 15:19:34 +0000 (19 15:19 +0000)]
Bump version to gcc-5315.

From-SVN: r109965

16 years agotable.C: New.apple/tags/gcc-5314
Eric Christopher [Thu, 19 Jan 2006 00:31:25 +0000 (19 00:31 +0000)]
table.C: New.

2006-01-18  Eric Christopher  <echristo@apple.com>

        * g++.dg/eh/table.C: New.

From-SVN: r109933

16 years agoRadar 4405429
Stuart Hastings [Wed, 18 Jan 2006 19:58:05 +0000 (18 19:58 +0000)]
Radar 4405429

Radar 4405429
* gcc/global.c (find_tied_stack_pseudo): Insist on a valid
memory address (no pseudos).

From-SVN: r109906

16 years agoimpint.C: Add -Wconversion.
Eric Christopher [Wed, 18 Jan 2006 02:03:23 +0000 (18 02:03 +0000)]
impint.C: Add -Wconversion.

2006-01-17  Eric Christopher  <echristo@apple.com>

        * g++.old-deja/g++.warn/impint.C: Add -Wconversion.
        * g++.old-deja/g++.warn/impint2.C: Ditto.
        * g++.old-deja/g++.other/null1.C: Ditto.
        * g++.dg/warn/conv2.C: Ditto.
        * g++.dg/warn/conv4.C: New file.

2006-01-17  Eric Christopher  <echristo@apple.com>

        * call.c (convert_like_real): When issuing conversion
        warnings, depend on warn_conversion.
        * cvt.c (build_expr_type_conversion): Ditto.

From-SVN: r109865

16 years agoRadar 4383509
Geoffrey Keating [Wed, 18 Jan 2006 01:49:02 +0000 (18 01:49 +0000)]
Radar 4383509

Radar 4383509
* dwarf2out.c (debug_frame_section): New.
(output_call_frame_info): Use debug_frame_section.  Pass it to
dw2_asm_output_offset.
(output_die): Pass appropriate section to dw2_asm_output_offset.
(output_compilation_unit_header): Likewise.
(output_pubnames): Likewise.
(output_aranges): Likewise.
* dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
* dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
Pass to ASM_OUTPUT_DWARF_OFFSET.
* doc/tm.texi (SDB and DWARF): Add extra parameter to
ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.

From-SVN: r109861

16 years agoRadar 4396225
Geoffrey Keating [Wed, 18 Jan 2006 00:32:19 +0000 (18 00:32 +0000)]
Radar 4396225

Radar 4396225
* build_gcc: Copy dylibs before stripping.

From-SVN: r109855

16 years agoFix tests for 64-bit.
Dale Johannesen [Tue, 17 Jan 2006 02:19:50 +0000 (17 02:19 +0000)]
Fix tests for 64-bit.

From-SVN: r109798

16 years agoUpdate APPLE LOCAL markers.
Geoffrey Keating [Mon, 16 Jan 2006 18:58:46 +0000 (16 18:58 +0000)]
Update APPLE LOCAL markers.

From-SVN: r109760

16 years agoBump version to gcc-5314.
Jon Ziegler [Sat, 14 Jan 2006 01:52:46 +0000 (14 01:52 +0000)]
Bump version to gcc-5314.

From-SVN: r109696

16 years agoUpdate xfail files for gcc-5312.apple/tags/gcc-5313
Jon Ziegler [Sat, 14 Jan 2006 01:31:34 +0000 (14 01:31 +0000)]
Update xfail files for gcc-5312.

From-SVN: r109694

16 years agoRadar 4386531
Geoffrey Keating [Sat, 14 Jan 2006 00:16:33 +0000 (14 00:16 +0000)]
Radar 4386531

Radar 4386531
* stab.def (N_OSO): New.
* dbxout.c (dbxout_init): Output N_OSO stab always.

From-SVN: r109687

16 years agoRadar 4386991
Stuart Hastings [Sat, 14 Jan 2006 00:01:20 +0000 (14 00:01 +0000)]
Radar 4386991

Radar 4386991
* gcc/cp/typeck2.c (split_nonconstant_init): Remove APPLE LOCAL 4285232.
* gcc/testsuite/g++.dg/4386991.C: New.
* gcc/testsuite/g++.dg/4285232.C: XFAIL.
* gcc/testsuite/bugs/powerpc/g++.xfail: Ditto.

From-SVN: r109683

16 years agoRadar 4401223 4401224
Dale Johannesen [Fri, 13 Jan 2006 23:49:56 +0000 (13 23:49 +0000)]
Radar 4401223 4401224

2006-01-13  Dale Johannesen  <dalej@apple.com>

Radar 4401223 4401224
* tree.h (record_layout_info_s):  Add bitfield_seen.
* stor-layout.c (start_record_layout):  Initialize it.
(place_field):  When reversing bitfields: consider
rli->offset when computing current alignment;
maintain rli->bitfield_seen; adjust rli->bitpos and
rli_offset after a non-bitfield, but not if we saw
a bitfield earlier.

From-SVN: r109682

16 years agoRadar 4401223 4401224
Dale Johannesen [Fri, 13 Jan 2006 23:47:21 +0000 (13 23:47 +0000)]
Radar 4401223 4401224

2006-01-13  Dale Johannesen  <dalej@apple.com>

Radar 4401223 4401224
* tree.h (record_layout_info_s):  Add bitfield_seen.
* stor-layout.c (start_record_layout):  Initialize it.
(place_field):  When reversing bitfields: consider
rli->offset when computing current alignment;
maintain rli->bitfield_seen; adjust rli->bitpos and
rli_offset after a non-bitfield, but not if we saw
a bitfield earlier.
2006-01-13  Dale Johannesen  <dalej@apple.com>

Radar 4401223 4401224
* gcc.apple/bitreverse-15.c:  New.
* gcc.apple/bitreverse-16.c:  New.

From-SVN: r109681

16 years agoRadar 4360072
Eric Christopher [Fri, 6 Jan 2006 23:37:27 +0000 (6 23:37 +0000)]
Radar 4360072

2006-01-06  Eric Christopher  <echristo@apple.com>

Radar 4360072
        * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
        (TARGET_UNWIND_EMIT): Fix spelling.
        * target.h (gcc_target): Add except_table_label.
        * except.c (output_function_exception_table): Use.
        * varasm.c (default_emit_except_table_label): New.
        * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
        define.
        (asm_out): Add here.
        * output.h (default_emit_except_table_label): Prototype.
        * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
        * config/darwin.c (darwin_emit_except_table_label): Define.
        * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.

From-SVN: r109436

16 years agoBump version to gcc-5313.
Jon Ziegler [Wed, 4 Jan 2006 04:38:55 +0000 (4 04:38 +0000)]
Bump version to gcc-5313.

From-SVN: r109313

16 years agoUpdate xfail files for gcc-5311.apple/tags/gcc-5312
Jon Ziegler [Wed, 4 Jan 2006 04:37:39 +0000 (4 04:37 +0000)]
Update xfail files for gcc-5311.

From-SVN: r109311

16 years agoRadar 4392520
Geoffrey Keating [Tue, 3 Jan 2006 22:18:38 +0000 (3 22:18 +0000)]
Radar 4392520

Radar 4392520
* config/darwin.h (FRAME_BEGIN_LABEL): Use Lname if not for EH.

From-SVN: r109291

16 years agoRadar 4392520
Geoffrey Keating [Tue, 3 Jan 2006 22:18:31 +0000 (3 22:18 +0000)]
Radar 4392520

Radar 4392520
* config/darwin.h (FRAME_BEGIN_LABEL): Use Lname if not for EH.

From-SVN: r109290

16 years agoBug #: 4386366
Geoffrey Keating [Tue, 3 Jan 2006 16:57:22 +0000 (3 16:57 +0000)]
Bug #: 4386366
Index: gcc/ChangeLog
2006-01-02  Geoffrey Keating  <geoffk@apple.com>

* dwarf2out.c (have_switched_text_section): Delete.
(have_multiple_function_sections): New.
(have_location_lists): Make 'bool'.
(add_AT_loc_list): Use 'true' not '1'.
(dwarf2out_switch_text_section): Set have_multiple_function_sections.
(output_loc_list): Use have_multiple_function_sections.
(output_ranges): Likewise.
(dwarf2out_begin_function): Set have_multiple_function_sections if
necessary.
(dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
Check function_section rather than DECL_SECTION_NAME.
(dwarf2out_finish): Use have_multiple_function_sections.
Don't clear have_location_lists.

Index: gcc/testsuite/ChangeLog
2006-01-02  Geoffrey Keating  <geoffk@apple.com>

* g++.dg/debug/debug9.C: New.

From-SVN: r109283

16 years agoBump version to gcc-5311.
Jon Ziegler [Fri, 23 Dec 2005 02:59:49 +0000 (23 02:59 +0000)]
Bump version to gcc-5311.

From-SVN: r109006

16 years agoRadar 4387676 4388773apple/tags/gcc-5311
Dale Johannesen [Thu, 22 Dec 2005 22:04:45 +0000 (22 22:04 +0000)]
Radar 4387676 4388773

2005-12-22  Dale Johannesen  <dalej@apple.com>

Radar 4387676 4388773
* tree.h (TREE_FIELDS_REVERSED):  Remove.
* varasm.c (output_constructor):  Remove reference to it.
* stor-layout.c (place_field): Ditto.

2005-12-22  Dale Johannesen  <dalej@apple.com>

Radar 4387676 4388773
* gcc.apple/bitreverse-14.c:  New.

From-SVN: r108980

16 years agodarwin.c (machopic_force_indirect_call_target): Remove extra APPLE LOCAL marker.
Stuart Hastings [Thu, 22 Dec 2005 17:16:21 +0000 (22 17:16 +0000)]
darwin.c (machopic_force_indirect_call_target): Remove extra APPLE LOCAL marker.

* gcc/config/darwin.c (machopic_force_indirect_call_target):
Remove extra APPLE LOCAL marker.
* gcc/config/rs6000/rs6000.c (output_call): Remove blank line.

From-SVN: r108955

16 years agoRadar 4380289, 4299630
Stuart Hastings [Thu, 22 Dec 2005 04:16:31 +0000 (22 04:16 +0000)]
Radar 43802894299630

2005-12-21  Stuart Hastings  <stuart@apple.com>

Radar 43802894299630
* gcc/config/rs6000/rs6000.c (add_compiler_branch_island):
Remove one parameter.  (rs6000_output_mi_thunk): Update call
to add_compiler_branch_island.  (macho_branch_islands):
Rewrite.  (output_call): Rewrite.
* gcc/config/darwin-protos.h
(machopic_force_indirect_call_target): New.
* gcc/config/darwin.c (machopic_force_stub): New.
(machopic_force_indirect_call_target): Use it.
(machopic_indirect_call_target): Ditto.

2005-12-21  Stuart Hastings  <stuart@apple.com>

Radar 43802984299630
* g++.dg/apple-longcall-3.C: New.

From-SVN: r108941

16 years agoadded radar number for previous change
Dale Johannesen [Wed, 21 Dec 2005 04:21:33 +0000 (21 04:21 +0000)]
added radar number for previous change

From-SVN: r108895

16 years agoRadar 4385068
Dale Johannesen [Wed, 21 Dec 2005 04:17:43 +0000 (21 04:17 +0000)]
Radar 4385068

2005-12-20  Dale Johannesen  <dalej@apple.com>

Radar 4385068
* global.c (expand_preferences): Reduce aggressiveness
of previous preference enhancement on x86, and disable
altogether on ppc.

From-SVN: r108894

16 years agoFixup APPLE LOCAL markers.
Mike Stump [Tue, 20 Dec 2005 23:52:52 +0000 (20 23:52 +0000)]
Fixup APPLE LOCAL markers.

From-SVN: r108877

16 years agochanging instances of 4271961 to 4271691
Dale Johannesen [Mon, 19 Dec 2005 18:43:13 +0000 (19 18:43 +0000)]
changing instances of 4271961 to 4271691

From-SVN: r108803

16 years agoBump version to gcc-5311.
Jon Ziegler [Sun, 18 Dec 2005 07:24:57 +0000 (18 07:24 +0000)]
Bump version to gcc-5311.

From-SVN: r108740