OSDN Git Service

pf3gnuchains/gcc-fork.git
15 years ago * lib/obj-c++.exp (obj-c++_target_compile): Declare global variable,
janis [Thu, 26 May 2005 21:25:27 +0000 (21:25 +0000)]
* lib/obj-c++.exp (obj-c++_target_compile): Declare global variable,
remove extraneous semicolons.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100229 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago[gcc/testsuite/ChangeLog]
zlaski [Thu, 26 May 2005 21:24:29 +0000 (21:24 +0000)]
[gcc/testsuite/ChangeLog]
2005-05-26  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/comp-types-12.mm: New.
        * objc.dg/comp-types-11.m: New.
        * objc.dg/selector-4.m: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100226 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR testsuite/20772
aj [Thu, 26 May 2005 21:22:01 +0000 (21:22 +0000)]
PR testsuite/20772
* g++.old-deja/g++.ext/attrib1.C, g++.old-deja/g++.ext/attrib2.C,
g++.old-deja/g++.ext/attrib3.C,
g++.old-deja/g++.other/store-expr1.C,
g++.old-deja/g++.other/store-expr2.C, g++.dg/opt/longbranch2.C,
gcc.dg/20000609-1.c, gcc.dg/20000720-1.c, gcc.dg/20011107-1.c,
gcc.dg/20011119-1.c, gcc.dg/20020108-1.c, gcc.dg/20020122-2.c,
gcc.dg/20020122-3.c, gcc.dg/20020201-3.c, gcc.dg/20020206-1.c,
gcc.dg/20020218-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c,
gcc.dg/20020418-2.c, gcc.dg/20020426-1.c, gcc.dg/20020426-2.c,
gcc.dg/20020517-1.c, gcc.dg/20020523-1.c, gcc.dg/20020523-2.c,
gcc.dg/20020729-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c,
gcc.dg/20030926-1.c, gcc.dg/20031202-1.c, gcc.dg/980312-1.c,
gcc.dg/980313-1.c, gcc.dg/990424-1.c, gcc.dg/990524-1.c,
gcc.dg/991230-1.c, gcc.dg/i386-387-1.c, gcc.dg/i386-387-2.c,
gcc.dg/i386-387-3.c, gcc.dg/i386-387-4.c, gcc.dg/i386-387-5.c,
gcc.dg/i386-387-6.c, gcc.dg/i386-bitfield1.c,
gcc.dg/i386-bitfield2.c, gcc.dg/i386-loop-1.c,
gcc.dg/i386-loop-2.c, gcc.dg/i386-loop-3.c, gcc.dg/i386-pic-1.c,
gcc.dg/i386-regparm.c, gcc.dg/i386-signbit-1.c,
gcc.dg/i386-signbit-2.c, gcc.dg/i386-sse-5.c, gcc.dg/i386-sse-8.c,
gcc.dg/i386-unroll-1.c, gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c,
gcc.dg/unroll-1.c: Handle 32-bit x86-64 compilation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100225 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.c-torture/execute/ieee/ieee.exp: Set float-store for 32-bit
aj [Thu, 26 May 2005 21:12:11 +0000 (21:12 +0000)]
* gcc.c-torture/execute/ieee/ieee.exp: Set float-store for 32-bit
x86-64 compilation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100224 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-ssa-forwprop.c (forward_propagate_addr_expr):
law [Thu, 26 May 2005 21:07:38 +0000 (21:07 +0000)]
    * tree-ssa-forwprop.c (forward_propagate_addr_expr):
        See through ADDR_EXPR in finding place to propagate into.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100223 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Bryce McKinlay <mckinlay@redhat.com>
bryce [Thu, 26 May 2005 21:07:04 +0000 (21:07 +0000)]
2005-05-26  Bryce McKinlay  <mckinlay@redhat.com>

* decl.c (GCJ_BINARYCOMPAT_ADDITION,
GCJ_BOOTSTRAP_LOADER_ADDITION): Removed.
(FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER,
MINOR_BINARYCOMPAT_ABI_VERSION): New.
(GCJ_CURRENT_BC_ABI_VERSION): Use new method to calculate version ID.
(parse_version): Calculate version ID using new method. Use
bit-flags for flag_indirect_dispatch and flag_bootstrap_classes.

2005-05-26  Bryce McKinlay  <mckinlay@redhat.com>

* include/jvm.h (FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER): New.
(GCJ_BINARYCOMPAT_ADDITION, GCJ_BOOTSTRAP_LOADER_ADDITION): Removed.
(OLD_GCJ_40_BC_ABI_VERSION): Renamed. Old-style version ID for
BC-ABI classes.
(GCJ_CXX_ABI_VERSION): Renamed from GCJ_ABI_VERSION.
(GCJ_40_BC_ABI_VERSION): New. Calculate version IDs using new
method.
(_Jv_CheckABIVersion): Check for both old and new style version IDs.
(_Jv_ClassForBootstrapLoader): Use FLAG_BOOTSTRAP_LOADER.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100222 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR testsuite/20772
aj [Thu, 26 May 2005 19:10:52 +0000 (19:10 +0000)]
    PR testsuite/20772
* gfortran.dg/promotion.f90, gcc.misc-tests/i386-pf-3dnow-1.c,
gcc.misc-tests/i386-pf-athlon-1.c,
gcc.misc-tests/i386-pf-none-1.c, gcc.misc-tests/i386-pf-sse-1.c,
g++.dg/opt/mmx1.C, g++.dg/other/big-struct.C,
g++.dg/abi/bitfield3.C, g++.dg/abi/bitfield8.C,
g++.dg/abi/bitfield9.C, g++.dg/abi/empty7.C, g++.dg/abi/empty9.C,
g++.dg/abi/layout4.C, g++.dg/abi/thunk1.C, g++.dg/abi/thunk2.C,
g++.dg/abi/vbase11.C, g++.dg/abi/vthunk2.C, g++.dg/abi/vthunk3.C,
g++.dg/ext/attrib8.C: Run also on x86_64 compiling 32-bit x86
programs.

* g++.dg/opt/reg-stack4.C, g++.dg/eh/simd-1.C, g++.dg/eh/simd-1.C,
gcc.dg/setjmp-2.c, gcc.dg/short-compare-1.c,
gcc.dg/short-compare-2.c, gcc.target/i386/asm-1.c: Handle 32-bit
x86-64 compilation.

* g++.dg/warn/register-var-1.C, g++.dg/charset/asm2.c: Run also on
x86_64.

* gcc.dg/i386-pentium4-not-mull.c: Change option handling to use
effective-target ilp32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100220 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * data.c, parse.c, trans-array.c, trans-decl.c,
kazu [Thu, 26 May 2005 18:36:11 +0000 (18:36 +0000)]
* data.c, parse.c, trans-array.c, trans-decl.c,
trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.c,
trans.h: Fix comment typos.  Follow spelling conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100219 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
kazu [Thu, 26 May 2005 18:15:27 +0000 (18:15 +0000)]
* c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
tree-ssa-operands.c, tree-vect-analyze.c,
tree-vect-transform.c, tree-vectorizer.c, tree.c,
config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
config/sh/ushmedia.h, config/sparc/sparc.c,
config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
typos.  Follow spelling conventions.
* doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
Follow spelling conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100218 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago* gcc.target/mips/ext_ins.c: New test for testing the generation
davidu [Thu, 26 May 2005 17:23:35 +0000 (17:23 +0000)]
* gcc.target/mips/ext_ins.c: New test for testing the generation
of MIPS32/64 rev 2 ext/ins instructions.

* config/mips/mips.c (mips_use_ins_ext_p): New helper function
that determines whether the MIPS32/64 R2 ext/ins should be used.
* config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
* config/mips/mips.md (extzv): Changed predicate for operand to
nonimmediate_operand. Add code to generate insn patterns for
extzvsi and extzvdi.
(extzv<mode>): New pattern to match mips32/64 r2 ext insn.
(insv): Similarly for insertion.
(insv<mode>): Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100212 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * treelang/compile/unsigned.tree: Use gimple instead of
aj [Thu, 26 May 2005 16:12:30 +0000 (16:12 +0000)]
* treelang/compile/unsigned.tree: Use gimple instead of
nonexisting generic dump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100208 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR c++/21768
reichelt [Thu, 26 May 2005 16:04:37 +0000 (16:04 +0000)]
PR c++/21768
* pt.c (redeclare_class_template): Change error message according
to coding conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100206 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Paolo Carlini <pcarlini@suse.de>
paolo [Thu, 26 May 2005 15:46:48 +0000 (15:46 +0000)]
2005-05-26  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/13943
* include/c_std/std_cstdlib.h: Do not open code llabs and lldiv,
available when _GLIBCXX_USE_C99 is defined.
* testsuite/26_numerics/cstdlib/13943.cc: New.

* acinclude.m4 ([GLIBCXX_ENABLE_C99]): For completeness, check
also strtoll and strtoull for ac_c99_stdlib.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100205 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * call.c (build_op_delete_call): Fix quoting in error message.
reichelt [Thu, 26 May 2005 13:33:02 +0000 (13:33 +0000)]
* call.c (build_op_delete_call): Fix quoting in error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100201 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Paolo Bonzini <bonzini@gnu.org>
bonzini [Thu, 26 May 2005 08:15:31 +0000 (08:15 +0000)]
2005-05-26  Paolo Bonzini  <bonzini@gnu.org>

* simplify-rtx.c (avoid_constant_pool_reference): Support
offsetted addresses in the constant pool.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100198 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Paolo Bonzini <bonzini@gnu.org>
bonzini [Thu, 26 May 2005 08:12:35 +0000 (08:12 +0000)]
2005-05-26  Paolo Bonzini  <bonzini@gnu.org>

* df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
* df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100197 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR target/21716
jakub [Thu, 26 May 2005 08:07:30 +0000 (08:07 +0000)]
PR target/21716
* reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
found in the basic block and last insn in the basic block is not
INSN_P.  Remove explicit unspec numbers that are no longer valid
from comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100196 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Paolo Bonzini <bonzini@gnu.org>
bonzini [Thu, 26 May 2005 07:58:47 +0000 (07:58 +0000)]
2005-05-26  Paolo Bonzini  <bonzini@gnu.org>

* tree-vect-transform.c (vectorizable_operation): Try word_mode
vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
if a vector mode is available.

testsuite/ChangeLog:
2005-05-26  Paolo Bonzini  <bonzini@gnu.org>

* gcc.dg/vect/vect-7.c: Remove xfail for alpha.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100195 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/tree-ssa/ssa-pre-14.c (foo): Use correct type for strlen.
aj [Thu, 26 May 2005 07:27:21 +0000 (07:27 +0000)]
* gcc.dg/tree-ssa/ssa-pre-14.c (foo): Use correct type for strlen.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100194 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 26 May 2005 07:10:21 +0000 (07:10 +0000)]
2005-05-25  Benjamin Kosnik  <bkoz@redhat.com>

* config/linker-map.gnu: Add linkage support for no extern templates.
(std::ios_base::_M_call_callbacks): Add.
(std::ios_base::_M_dispose_callbacks): Add.
(std::locale::facet::_S_get_c_name): Add.
(std::__copy_streambufs): Add.
* configure.ac (libtool_VERSION): To 6:5:0.
* configure: Regenerate.
* testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.5.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100193 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-26 Thomas Koenig <Thomas.Koenig@online.de>
tkoenig [Thu, 26 May 2005 06:26:17 +0000 (06:26 +0000)]
2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/17283
        * gfortran.fortran-torture/execute/intrinsic_unpack.f90:
        Test callee-allocated memory with write statements.

2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/17283
        * intrinsics/unpack_generic.c:  Fix name of routine
        on top.  Update copyright years.
        (unpack1):  Remove const from return array descriptor.
        rs:  New variable, for calculating return sizes.
        Populate return array descriptor if ret->data is NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100189 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR middle-end/21709
sayle [Thu, 26 May 2005 05:51:22 +0000 (05:51 +0000)]
PR middle-end/21709
* fold-const.c (const_binop): Check for division by zero during
complex division.

* gcc.dg/pr21709-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100188 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * reload1.c (verify_initial_elim_offsets): Add braces to avoid
ian [Thu, 26 May 2005 05:44:38 +0000 (05:44 +0000)]
* reload1.c (verify_initial_elim_offsets): Add braces to avoid
having a declaration after a statement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100187 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * opt-functions.awk (var_type): New function.
rsandifo [Thu, 26 May 2005 05:28:04 +0000 (05:28 +0000)]
* opt-functions.awk (var_type): New function.
(var_set): Use CLVC_STRING if var_type returns "const char *".
* opth-gen.awk: Use var_type to find out the types of variables.
Don't print comments above each "extern" definition.
* optc-gen.awk: Use var_type in the same way.
* opts.h (cl_var_cond): Rename to...
(cl_var_type): ...this.  Add CLVC_STRING.
(cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
with "var_type".
* opts.c (handle_option, option_enabled): Update after above name
change.  Cast flag_var before using it.  Handle CLVC_STRING.

* config/alpha/alpha.h (alpha_tls_size): Delete.
* config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
(alpha_tune_string, alpha_tp_string, alpha_fprm_string)
(alpha_fptm_string, alpha_mlat_string): Delete.
(alpha_handle_option): Don't set the above variables here.  Use the
integer argument to check the validity of -mtls-size=.
* config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
(mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
(mtls-size=): Likewise.  Convert to a UInteger and initialize the
variable to 32.

* config/arc/arc.c (arc_cpu_string, arc_text_string)
(arc_data_string, arc_rodata_string): Delete.
(arc_handle_option): Don't set the above variables here.
* config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
and initialize them.

* config/arm/arm.c (target_fpu_name, target_fpe_name)
(target_float_abi_name, target_abi_name, structure_size_string)
(arm_pic_register_string): Delete.
(arm_handle_option): Don't set the above variables here, except
in the handling of -mhard-float and -msoft-float.
* config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
(mpic-register=, mstructure-size-boundary=): Add Var()s.

* config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
(avr_handle_option): Delete.
* config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
them.

* config/bfin/bfin.c (bfin_library_id): Delete.
(bfin_handle_option): Don't set it.
* config/bfin/bfin.opt (mshared-library-id=): Add Var().

* config/c4x/c4x.h (c4x_rpts_cycles): Delete.
* config/c4x/c4x.c (c4x_rpts_cycles): Delete.
(c4x_handle_option): Don't set c4x_rpts_cycles here.
* config/c4x/c4x.opt (mrpts=): Add Var().

* config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
cris_elinux_stacksize_str here.
* config/cris/aout.opt (melinux-stacksize=): Add Var().
* config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
(cris_tune_str, cris_elinux_stacksize_str): Delete.
* config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
(cris_tune_str, cris_elinux_stacksize_str): Delete.
(cris_handle_option): Don't set the above variables here.
* config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
(max-stackframe=): Add Var()s.

* config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
* config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
(ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
(ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
(ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
(ix86_branch_cost_string, ix86_align_funcs_string): Delete.
(ix86_handle_option): Don't set the above variables here.
* config/i386/i386.opt (malign-functions=, malign-jumps=)
(malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
(mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
Var()s.

* config/ia64/ia64.h (ia64_tls_size): Delete.
* config/ia64/ia64.c (ia64_tls_size): Delete.
(ia64_handle_option): Treat -mtls-size= as a UInteger option,
reading the integer argument from the "value" parameter.  Don't
set ia64_tls_size here.
* config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
Add Var() and Init().

* config/m32r/m32r.h (m32r_cache_flush_func): Delete.
(m32r_cache_flush_trap): Delete.
* config/m32r/m32r.c (m32r_cache_flush_func): Delete.
(m32r_cache_flush_trap): Delete.
(m32r_handle_option): Don't set the above variables when handling
-mflush-func= and -mflush-trap=.
* config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
and Init()s.

* config/mips/mips.h (mips_cache_flush_func): Delete.
* config/mips/mips.c (mips_arch_string, mips_tune_string)
(mips_cache_flush_func): Delete.
(mips_handle_option): Don't set the above variables when handling
-march=, -mtune= and -mflush-func=.
* config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.

* config/s390/s390.c (s390_arch_string): Delete.
(s390_handle_option): Don't set it here.
* config/s390/s390.opt (march=): Add Var().

* config/sparc/sparc.h (sparc_cmodel_string): Delete.
* config/sparc/sparc.c (sparc_cmodel_string): Delete.
(sparc_handle_option): Don't set it here.
* config/sparc/sparc.opt (mcmodel=): Add Var().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100185 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
sayle [Thu, 26 May 2005 04:38:51 +0000 (04:38 +0000)]
* convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
call to convert_to_integer by building the NOP_EXPR directly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100184 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoMinor reformatting twaeks.
mrs [Thu, 26 May 2005 02:27:50 +0000 (02:27 +0000)]
Minor reformatting twaeks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100183 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * obj-c++.dg/basic.mm: New.
mrs [Thu, 26 May 2005 02:00:19 +0000 (02:00 +0000)]
    * obj-c++.dg/basic.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100182 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * objc/execute/next_mapping.h: Update for C++.
mrs [Thu, 26 May 2005 01:53:56 +0000 (01:53 +0000)]
    * objc/execute/next_mapping.h: Update for C++.

        * obj-c++.dg/selector-1.mm: Move to...
        * obj-c++.dg/selector-4.mm: here...

        * obj-c++.dg/comp-types-1.mm: New.
        * obj-c++.dg/cxx-class-1.mm: New.
        * obj-c++.dg/cxx-ivars-1.mm: New.
        * obj-c++.dg/cxx-ivars-2.mm: New.
        * obj-c++.dg/cxx-ivars-3.mm: New.
        * obj-c++.dg/cxx-scope-1.mm: New.
        * obj-c++.dg/cxx-scope-2.mm: New.
        * obj-c++.dg/defs.mm: New.
        * obj-c++.dg/empty-private-1.mm: New.
        * obj-c++.dg/encode-1.mm: New.
        * obj-c++.dg/encode-2.mm: New.
        * obj-c++.dg/encode-3.mm: New.
        * obj-c++.dg/extern-c-1.mm: New.
        * obj-c++.dg/extra-semi.mm: New.
        * obj-c++.dg/fix-and-continue-2.mm: New.
        * obj-c++.dg/isa-field-1.mm: New.
        * obj-c++.dg/ivar-list-semi.mm: New.
        * obj-c++.dg/local-decl-1.mm: New.
        * obj-c++.dg/lookup-1.mm: New.
        * obj-c++.dg/lookup-2.mm: New.
        * obj-c++.dg/method-1.mm: New.
        * obj-c++.dg/method-2.mm: New.
        * obj-c++.dg/method-3.mm: New.
        * obj-c++.dg/method-4.mm: New.
        * obj-c++.dg/method-5.mm: New.
        * obj-c++.dg/method-6.mm: New.
        * obj-c++.dg/method-7.mm: New.
        * obj-c++.dg/no-extra-load.mm: New.
        * obj-c++.dg/overload-1.mm: New.
        * obj-c++.dg/pragma-1.mm: New.
        * obj-c++.dg/pragma-2.mm: New.
        * obj-c++.dg/private-1.mm: New.
        * obj-c++.dg/private-2.mm: New.
        * obj-c++.dg/proto-qual-1.mm: New.
        * obj-c++.dg/qual-types-1.mm: New.
        * obj-c++.dg/stubify-1.mm: New.
        * obj-c++.dg/stubify-2.mm: New.
        * obj-c++.dg/super-class-1.mm: New.
        * obj-c++.dg/super-class-2.mm: New.
        * obj-c++.dg/super-dealloc-1.mm: New.
        * obj-c++.dg/super-dealloc-2.mm: New.
        * obj-c++.dg/template-1.mm: New.
        * obj-c++.dg/template-2.mm: New.
        * obj-c++.dg/template-3.mm: New.
        * obj-c++.dg/template-4.mm: New.
        * obj-c++.dg/template-5.mm: New.
        * obj-c++.dg/template-6.mm: New.
        * obj-c++.dg/try-catch-1.mm: New.
        * obj-c++.dg/try-catch-2.mm: New.
        * obj-c++.dg/try-catch-3.mm: New.
        * obj-c++.dg/try-catch-4.mm: New.
        * obj-c++.dg/try-catch-5.mm: New.
        * obj-c++.dg/try-catch-6.mm: New.
        * obj-c++.dg/try-catch-7.mm: New.
        * obj-c++.dg/try-catch-8.mm: New.
        * obj-c++.dg/try-catch-9.mm: New.
        * obj-c++.dg/va-meth-1.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100181 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * obj-c++.dg/selector-1.mm: Move to...
mrs [Thu, 26 May 2005 01:08:04 +0000 (01:08 +0000)]
    * obj-c++.dg/selector-1.mm: Move to...
        * obj-c++.dg/selector-4.mm: here...

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100180 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago[gcc/testsuite/ChangeLog]
zlaski [Thu, 26 May 2005 00:51:53 +0000 (00:51 +0000)]
[gcc/testsuite/ChangeLog]
2005-05-25  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/selector-1.mm: New.
        * obj-c++.dg/selector-2.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100179 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Thu, 26 May 2005 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100177 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago[gcc/testsuite/ChangeLog]
zlaski [Thu, 26 May 2005 00:01:02 +0000 (00:01 +0000)]
[gcc/testsuite/ChangeLog]
2005-05-25  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/selector-3.mm: New.
        * objc.dg/selector-3.m: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100175 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoinclude/
rth [Wed, 25 May 2005 23:29:54 +0000 (23:29 +0000)]
include/
* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
libiberty/
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate one.
* testsuite/demangle-expected: Add a hidden alias test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100174 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR libgcj/21692
rth [Wed, 25 May 2005 23:24:07 +0000 (23:24 +0000)]
    PR libgcj/21692
        * sysdep/descriptor-n.h: New file.
        * sysdep/descriptor-y.h: New file.
        * sysdep/powerpc/descriptor.h: New file.
        * configure.host: Set $descriptor_h appropriate for the host.
        * configure.ac: Link it.
        * configure: Regenerate.
        * stacktrace.cc: Include sysdep/descriptor.h.
        (_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100173 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
rsandifo [Wed, 25 May 2005 22:19:22 +0000 (22:19 +0000)]
* config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100172 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR libgcj/21692
rth [Wed, 25 May 2005 22:08:31 +0000 (22:08 +0000)]
PR libgcj/21692
cp/
        * cp-tree.h (make_alias_for): Declare.
        * decl2.c (build_java_method_aliases): New.
        (cp_finish_file): Call it.
        * method.c (make_alias_for): Split out from ...
        (make_alias_for_thunk): ... here.

java/
        * Make-lang.in (java/mangle.o): Depend on LANGHOOKS_DEF_H.
        * class.c (build_class_ref): Set DECL_CLASS_FIELD_P and
        DECL_CONTEXT; avoid pushdecl_top_level.
        (build_dtable_decl): Set DECL_VTABLE_P and DECL_CONTEXT.
        (layout_class): Don't SET_DECL_ASSEMBLER_NAME.
        (layout_class_method): Likewise.
        * decl.c (java_mark_cni_decl_local): New.
        (java_mark_class_local): Use it.
        * java-tree.h (DECL_LOCAL_CNI_METHOD_P): New.
        (DECL_CLASS_FIELD_P, DECL_VTABLE_P): New.
        (struct lang_decl_func): Add local_cni;
        (struct lang_decl_var): Add class_field, vtable.
        (java_mangle_decl): Declare.
        * lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
        * mangle.c: Remove dup obstack.h; include langhooks-def.h.
        (mangle_obstack_1): New.
        (java_mangle_decl): Remove obstack argument.  Call mangle_class_field,
        mangle_vtable, and mangle_local_cni_method_decl.  Fall back to
        lhd_set_decl_assembler_name for things that don't need mangling.
        (mangle_class_field): Rename from java_mangle_class_field, make
        static, don't call init_mangling or finish_mangling.
        (mangle_vtable): Similarly.
        (mangle_local_cni_method_decl): New.
        (init_mangling): Remove obstack argument.  Use &mangle_obstack_1,
        gcc_assert, and MANGLE_RAW_STRING.
        (finish_mangling): Use gcc_assert, remove if 0 debugging code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100171 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
law [Wed, 25 May 2005 21:36:24 +0000 (21:36 +0000)]
    * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
        constant and side_effects of the ADDR_EXPR are consistent.

        * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
        appropriately around calls to recompute_tree_invarant_for_addr_expr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100168 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago[gcc/testsuite/ChangeLog]
zlaski [Wed, 25 May 2005 21:18:43 +0000 (21:18 +0000)]
[gcc/testsuite/ChangeLog]
2005-05-25  Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/selector-2.m: Remove "-fgnu-runtime"; be flexible
        about where warning appears.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100167 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoChangeLog:
uweigand [Wed, 25 May 2005 20:39:31 +0000 (20:39 +0000)]
ChangeLog:

* config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
(s390_function_arg, s390_gimplify_va_arg): Use them.
(s390_register_info): Save only required subset of argument
registers into save area for va_list.
(s390_va_start): Initialize only required elements of va_list struct.
(s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.

testsuite/ChangeLog:

* gcc.dg/tree-ssa/stdarg-2.c: Add tests for s390*-*-linux* targets.
* gcc.dg/tree-ssa/stdarg-3.c: Likewise.
* gcc.dg/tree-ssa/stdarg-4.c: Likewise.
* gcc.dg/tree-ssa/stdarg-5.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100164 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Chris Burdess <dog@gnu.org>
tromey [Wed, 25 May 2005 20:23:01 +0000 (20:23 +0000)]
2005-05-25  Chris Burdess  <dog@gnu.org>

* gnu/xml/dom/ls/SAXEventSink.java: Ignore XML entities in start/
end entity callbacks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100163 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoChangeLog:
uweigand [Wed, 25 May 2005 20:19:26 +0000 (20:19 +0000)]
ChangeLog:

* reload1.c (verify_initial_elim_offsets): Return boolean status
instead of aborting.
(reload): Adapt verify_initial_elim_offsets call site.  Restart
main loop if some initial elimination offsets changed.

testsuite/ChangeLog:

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100159 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
nemet [Wed, 25 May 2005 20:06:33 +0000 (20:06 +0000)]
* config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
of -mno-svr4-struct-return.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100158 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 25 May 2005 19:33:35 +0000 (19:33 +0000)]
2005-05-25  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/21726
* configure.host (abi_baseline_pair switch): Add an entry
for powerpc64-linux.
* config/abi/powerpc64-linux-gnu/baseline_symbols.txt: New.
* config/abi/powerpc64-linux-gnu/32/baseline_symbols.txt: New.
* config/abi/powerpc64-linux-gnu/32/nof/baseline_symbols.txt: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100157 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Daniel Berlin <dberlin@dberlin.org>
dberlin [Wed, 25 May 2005 18:53:25 +0000 (18:53 +0000)]
2005-05-25  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/21705

* tree-ssa-pre.c (in_fre): New static variable.
(create_value_expr_from): Recursively value number reference ops
in argument lists.
(can_value_number_call): Temporary restrict only exists for
PRE, not FRE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100156 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
mrs [Wed, 25 May 2005 15:48:44 +0000 (15:48 +0000)]
    * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
        machines.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100155 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Gary Benson <gbenson@redhat.com>
tromey [Wed, 25 May 2005 15:25:38 +0000 (15:25 +0000)]
2005-05-24  Gary Benson  <gbenson@redhat.com>

PR libgcj/21736:
* java/text/MessageFormat.java (MessageFormatElement.setLocale):
Handle DateFormat.DEFAULT case correctly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100154 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR libgcj/21703:
tromey [Wed, 25 May 2005 15:23:56 +0000 (15:23 +0000)]
PR libgcj/21703:
* java/lang/ref/natReference.cc (find_slot): Handle case where
table has no NULL entries.
* java/lang/natString.cc (_Jv_StringFindSlot): Handle case where
table has no NULL entries.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100153 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
kazu [Wed, 25 May 2005 15:17:12 +0000 (15:17 +0000)]
* tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
sizeof (bitmap *) with sizeof (bitmap).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100152 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Paolo Bonzini <bonzini@gnu.org>
bonzini [Wed, 25 May 2005 14:18:54 +0000 (14:18 +0000)]
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (stage[+id+]-start): Iterate over target module as well.
(Dependencies): Consider target modules for bootstrap dependencies.
Make target bootstrap modules depend on each stage's gcc.
* Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100151 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Daniel Berlin <dberlin@dberlin.org>
dberlin [Wed, 25 May 2005 14:05:22 +0000 (14:05 +0000)]
2005-05-25  Daniel Berlin <dberlin@dberlin.org>

* lambda-code.c (perfect_nestify): Call update_stmt on the exit
condition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100150 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoCorrect use of year 999 to 1999.
ian [Wed, 25 May 2005 13:22:27 +0000 (13:22 +0000)]
Correct use of year 999 to 1999.

This change does not itself get a ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100149 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Adrian Straetling <straetling@de.ibm.com>
uweigand [Wed, 25 May 2005 13:12:05 +0000 (13:12 +0000)]
2005-05-25  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
hook_bool_rtx_true.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100146 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Andrew Haley <aph@redhat.com>
jakub [Wed, 25 May 2005 13:10:00 +0000 (13:10 +0000)]
2005-05-25  Andrew Haley  <aph@redhat.com>

* include/private/gcconfig.h (HBLKSIZE): Define to 4096 on
powerpc64-linux.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100145 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
hubicka [Wed, 25 May 2005 12:34:01 +0000 (12:34 +0000)]
* Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
* cgraph.c (cgraph_create_node): Reset estimated_growth.
* cgraph.h (cgraph_global_info): Add estimated_growth.
* ipa-inline.c: Include coverage.h
(max_insns, max_count): New static variables.
(cgraph_estimate_size_after_inlining): Cache the result.
(cgraph_estimate_growth):
* passes.c (rest_of_clean_state): Kill coverage_end_function.
* timevar.def (TV_INLINE_HEURISTICS): New timevar.
* tree-optimize.c (init_tree_optimization_passes): Move profiling before
inlining.
(ipa_passes): Initialize bitmaps.

* gcc.dg/tree-prof/inliner-1.c: New.

2005-05-25  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/tree-prof: New directory.
* gcc.dg/tree-prof/tree-prof.exp: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100144 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Adrian Straetling <straetling@de.ibm.com>
uweigand [Wed, 25 May 2005 11:52:13 +0000 (11:52 +0000)]
2005-05-25  Adrian Straetling  <straetling@de.ibm.com>

* loop-doloop.c: Include "target.h".
  (doloop_valid_p): Move tests to function in targhooks.c.
* target.h (struct gcc_target): New target hook
  "insn_valid_within_doloop".
* target-def.h: Define default value for "insn_valid_within_doloop".
  (TARGET_INITIALIZER): Insert new target hook into initializer.
* targhooks.c (default_insn_valid_within_doloop): New function.
* targhooks.h (default_insn_valid_within_doloop): Declare.
* hooks.c (hook_bool_rtx_true): New function.
* hooks.h (hook_bool_rtx_true): Declare.
* doc/tm.texi: Add documentation for new target hook.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100143 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 25 May 2005 11:33:43 +0000 (11:33 +0000)]
2005-05-25  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
Use, consistently, traits_type::assign.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100142 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR c++/21686
reichelt [Wed, 25 May 2005 09:47:18 +0000 (09:47 +0000)]
PR c++/21686
* semantics.c (finish_id_expression): Fix quoting in error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100140 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-25 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 25 May 2005 09:25:25 +0000 (09:25 +0000)]
2005-05-25  Paolo Carlini  <pcarlini@suse.de>

* config/cpu/alpha/atomicity.h: Use the builtins for
atomic memory operations.
* config/cpu/powerpc/atomicity.h: Likewise.
* config/cpu/ia64/atomicity.h: Do not include ia64intrin.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100139 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR target/21412
ebotcazou [Wed, 25 May 2005 07:04:04 +0000 (07:04 +0000)]
PR target/21412
* config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
* config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
(sparc_tls_referenced_p): New prototype.
* config/sparc/sparc.c (tls_symbolic_operand): Delete.
(sparc_expand_move): Look for TLS addresses with constant offsets.
(legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
tls_symbolic_operand.
(legitimate_pic_operand_p): Likewise.
(legitimate_address_p): Likewise.
(legitimize_address): Likewise.
(sparc_tls_symbol_ref_1): New function.
(sparc_tls_referenced_p): New function.
* config/sparc/predicates.md (tgd_symbolic_operand): Use
SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
(tld_symbolic_operand): Likewise.
(tie_symbolic_operand): Likewise.
(tle_symbolic_operand): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100137 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago* common.opt (-Wattributes): New. Default true.
dj [Wed, 25 May 2005 04:18:19 +0000 (04:18 +0000)]
* common.opt (-Wattributes): New.  Default true.
* doc/invoke.texi (-Wno-attributes): Document.

* attribs.c (decl_attributes): Move warning control from if() to
warning(OPT_*).
* c-common.c (handle_packed_attribute): Likewise.
(handle_nocommon_attribute): Likewise.
(handle_common_attribute): Likewise.
(handle_noreturn_attribute): Likewise.
(handle_noinline_attribute): Likewise.
(handle_always_inline_attribute): Likewise.
(handle_used_attribute): Likewise.
(handle_unused_attribute): Likewise.
(handle_const_attribute): Likewise.
(handle_transparent_union_attribute): Likewise.
(handle_constructor_attribute): Likewise.
(handle_destructor_attribute): Likewise.
(handle_mode_attribute): Likewise.
(handle_alias_attribute): Likewise.
(handle_visibility_attribute): Likewise.
(handle_tls_model_attribute): Likewise.
(handle_malloc_attribute): Likewise.
(handle_returns_twice_attribute): Likewise.
(handle_pure_attribute): Likewise.
(handle_deprecated_attribute): Likewise.
(handle_vector_size_attribute): Likewise.
(handle_nothrow_attribute): Likewise.
(handle_cleanup_attribute): Likewise.
(handle_warn_unused_result_attribute): Likewise.
(handle_sentinel_attribute): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(start_decl): Likewise.
(grokdeclarator): Likewise.
(start_function): Likewise.
* c-format.c (check_function_format): Likewise.
* stor-layout.c (place_field): Likewise.
(finalize_record_size): Likewise.
* tree.c (handle_dll_attribute)): Likewise.
* varasm.c (default_assemble_visibility): Likewise.
* config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
(darwin_assemble_visibility): Likewise.
* config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
* config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
(arm_handle_isr_attribute): Likewise.
* config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
(avr_handle_fndecl_attribute): Likewise.
* config/bfin/bfin.c (handle_int_attribute): Likewise.
* config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
* config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
(h8300_handle_eightbit_data_attribute): Likewise.
(h8300_handle_tiny_data_attribute): Likewise.
* config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
(ix86_handle_regparm_attribute): Likewise.
(ix86_handle_struct_attribute): Likewise.
* config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
(i386_pe_encode_section_info): Likewise.
* config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
* config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
(ip2k_handle_fndecl_attribute): Likewise.
* config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
* config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
(m68hc11_handle_fntype_attribute): Likewise.
(m68hc11_encode_section_info): Likewise.
* config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
* config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
* config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
* config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
* config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
(sh_handle_sp_switch_attribute): Likewise.
(sh_handle_trap_exit_attribute): Likewise.
* config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
(sh_symbian_handle_dll_attribute): Likewise.
* config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
(xstormy16_handle_below100_attribute): Likewise.
* config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.

[testsuite]

* gcc.dg/Wattributes-1.c: New.
* gcc.dg/Wattributes-2.c: New.
* gcc.dg/Wattributes-3.c: New.

[cp]

* decl.c (duplicate_decls): Move warning control from if() to
warning(OPT_*).
* name-lookup.c (parse_using_directive): Likewise.
* parser.c (cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_init_declarator): Likewise.
* tree.c (handle_com_interface_attribute): Likewise.

[java]

* class.c (set_constant_value): Move warning control from if() to
warning(OPT_*).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100136 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago* c-common.c (unsigned_conversion_warning): Move warning control
dj [Wed, 25 May 2005 03:59:00 +0000 (03:59 +0000)]
* c-common.c (unsigned_conversion_warning): Move warning control
from if() to warning(OPT_*).
(c_common_truthvalue_conversion): Likewise.
(c_do_switch_warnings): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(diagnose_mismatched_decls): Likewise.
(define_label): Likewise.
(grokdeclarator): Likewise.
* c-format.c (check_format_info): Likewise.
* c-lex.c (interpret_integer): Likwise.
(lex_string): Likewise.
* c-opts.c (c_common_post_options): Likewise.
* c-parser.c (c_parser_unary_expression): Likewise.
* c-pragma.c (handle_pragma_redefine_extname): Likewise.
(handle_pragma_extern_prefix): Likewise.
* c-typeck.c (build_binary_op): Likewise.
* gcse.c (is_too_expensive): Likewise.
* opts.c (decode_options): Likewise.
* stor-layout.c (place_field): Likewise.
* tree-cfg.c (remove_bb): Likewise.

* c.opt (-Wreturn-type): Add Var(warn_return_type).
* flags.h (warn_return_type): Remove.
* toplev.c (warn_return_type): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100135 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Wed, 25 May 2005 00:16:28 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100133 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
kcook [Wed, 25 May 2005 00:15:21 +0000 (00:15 +0000)]
2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>

* configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
existence of long long and __int64 before determining their size.
* aclocal.m4: Delete gcc_AC_C_LONG_LONG.
* configure, config.h.in:  Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100131 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago20005-05-24 Janis Johnson <janis187@us.ibm.com>
janis [Tue, 24 May 2005 23:41:44 +0000 (23:41 +0000)]
20005-05-24  Janis Johnson  <janis187@us.ibm.com>

PR tree-optimization/19833
gcc.dg/uninit-4.c: Remove xfail.
gcc.dg/uninit-9.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100130 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoMove entries for 1998 and 1999 out of ChangeLog-2000 and into new
ian [Tue, 24 May 2005 23:20:39 +0000 (23:20 +0000)]
Move entries for 1998 and 1999 out of ChangeLog-2000 and into new
files ChangeLog-1998 and ChangeLog-1999.

This change does not itself get a ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100129 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
kcook [Tue, 24 May 2005 23:18:46 +0000 (23:18 +0000)]
2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>

* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100128 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Paolo Carlini <pcarlini@suse.de>
paolo [Tue, 24 May 2005 22:53:43 +0000 (22:53 +0000)]
2005-05-24  Paolo Carlini  <pcarlini@suse.de>

* testsuite/25_algorithms/equal.cc: Move to...
* testsuite/25_algorithms/equal: ... here.
* testsuite/25_algorithms/lower_bound.cc: Move to...
* testsuite/25_algorithms/lower_bound: ... here.

2005-05-24  Paolo Carlini  <pcarlini@suse.de>

        Port from libstdcxx_so_7-branch:
2005-20-05  Chris Jefferson  <chris@bubblescope.net>

* testsuite/25_algorithms/heap.cc: Move to...
* testsuite/25_algorithms/heap/heap.cc: ...here.
* testsuite/25_algorithms/partition.cc: Move to...
* testsuite/25_algorithms/partition/partition.cc: ...here.

2005-03-29  Christopher Jefferson  <chris@bubblescope.net>

* testsuite/25_algorithms/includes/1.cc: Add tests.
* testsuite/25_algorithms/search/1.cc: Likewise.
* testsuite/25_algorithms/unique_copy/1.cc: Likewise.
* testsuite/25_algorithms/swap_ranges/1.cc: New.
* testsuite/25_algorithms/swap_ranges/check_type.cc: New.
* testsuite/25_algorithms/rotate.cc: Move to...
* testsuite/25_algorithms/rotate/rotate.cc: ... here.
* testsuite/25_algorithms/rotate/1.cc: New.
* testsuite/25_algorithms/rotate/check_type.cc: New.
* testsuite/25_algorithms/search_n/iterator.cc: Fix typo.

2005-03-14  Christopher Jefferson  <chris@bubblescope.net>

* include/bits/stl_algo.h (replace_copy, replace_copy_if):
Don't assume that __new_value and *__first are convertible to
each other.

* testsuite/25_algorithms/find/1.cc: New.
* testsuite/25_algorithms/find/check_type.cc: New.
* testsuite/25_algorithms/find_if/1.cc: New.
* testsuite/25_algorithms/find_if/check_type.cc: New.
* testsuite/25_algorithms/replace/1.cc: New.
* testsuite/25_algorithms/replace/check_type.cc: New.
* testsuite/25_algorithms/replace_if/1.cc: New.
* testsuite/25_algorithms/replace_if/check_type.cc: New.
* testsuite/25_algorithms/replace_copy/1.cc: New.
* testsuite/25_algorithms/replace_copy/check_type.cc: New.
* testsuite/25_algorithms/replace_copy_if/1.cc: New.
* testsuite/25_algorithms/replace_copy_if/check_type.cc: New.
* testsuite/25_algorithms/remove/1.cc: New.
* testsuite/25_algorithms/remove/check_type.cc: New.
* testsuite/25_algorithms/remove_if/1.cc: New.
* testsuite/25_algorithms/remove_if/check_type.cc: New.
* testsuite/25_algorithms/count/1.cc: New.
* testsuite/25_algorithms/count/check_type.cc: New.
* testsuite/25_algorithms/count_if/1.cc: New.
* testsuite/25_algorithms/count_if/check_type.cc: New.

2005-02-27  Christopher Jefferson  <chris@bubblescope.net>
             Paolo Carlini  <pcarlini@suse.de>

* testsuite/ext/is_heap/check_type.cc: New.

2005-02-27  Paolo Carlini  <pcarlini@suse.de>

* testsuite/ext/is_heap/1.cc: New.

2005-02-01  Christopher Jefferson  <chris@bubblescope.net>

* testsuite/ext/median.cc: New.
* testsuite/25_algorithms/adjacent_find/1.cc: New.
* testsuite/25_algorithms/adjacent_find/check_type.cc: New.
* testsuite/25_algorithms/search/1.cc: New.
* testsuite/25_algorithms/search/check_type.cc: New.
* testsuite/25_algorithms/unique_copy/1.cc: New.
* testsuite/25_algorithms/unique_copy/check_type.cc: New.
* testsuite/25_algorithms/partial_sort/1.cc: New.
* testsuite/25_algorithms/partial_sort/check_type.cc: New.
* testsuite/25_algorithms/partial_sort_copy/1.cc: New.
* testsuite/25_algorithms/partial_sort_copy/check_type.cc: New.
* testsuite/25_algorithms/lower_bound/1.cc: New.
* testsuite/25_algorithms/lower_bound/check_type.cc: New.
* testsuite/25_algorithms/upper_bound/1.cc: New.
* testsuite/25_algorithms/upper_bound/check_type.cc: New.
* testsuite/25_algorithms/merge/1.cc: New.
* testsuite/25_algorithms/merge/check_type.cc: New.
* testsuite/25_algorithms/inplace_merge/1.cc: New.
* testsuite/25_algorithms/inplace_merge/check_type.cc: New.
* testsuite/25_algorithms/stable_sort/1.cc: New.
* testsuite/25_algorithms/stable_sort/check_type.cc: New.
* testsuite/25_algorithms/nth_element/1.cc: New.
* testsuite/25_algorithms/nth_element/check_type.cc: New.
* testsuite/25_algorithms/equal_range/1.cc: New.
* testsuite/25_algorithms/equal_range/check_type.cc: New.
* testsuite/25_algorithms/binary_search/1.cc: New.
* testsuite/25_algorithms/binary_search/check_type.cc: New.
* testsuite/25_algorithms/includes/1.cc: New.
* testsuite/25_algorithms/includes/check_type.cc: New.
* testsuite/25_algorithms/set_union/1.cc: New.
* testsuite/25_algorithms/set_union/check_type.cc: New.
* testsuite/25_algorithms/set_intersection/1.cc: New.
* testsuite/25_algorithms/set_intersection/check_type.cc: New.
* testsuite/25_algorithms/set_difference/1.cc: New.
* testsuite/25_algorithms/set_difference/check_type.cc: New.
* testsuite/25_algorithms/set_symmetric_difference/1.cc: New.
* testsuite/25_algorithms/set_symmetric_difference/check_type.cc: New.
* testsuite/25_algorithms/min_element/1.cc: New.
* testsuite/25_algorithms/min_element/check_type.cc: New.
* testsuite/25_algorithms/max_element/1.cc: New.
* testsuite/25_algorithms/max_element/check_type.cc: New.
* testsuite/25_algorithms/prev_permutation/1.cc: New.
* testsuite/25_algorithms/prev_permutation/check_type.cc: New.
* testsuite/25_algorithms/next_permutation/1.cc: New.
* testsuite/25_algorithms/next_permutation/check_type.cc: New.
* testsuite/25_algorithms/find_first_of/1.cc: New.
* testsuite/25_algorithms/find_first_of/check_type.cc: New.
* testsuite/25_algorithms/find_end/1.cc: New.
* testsuite/25_algorithms/find_end/check_type.cc: New.
* testsuite/25_algorithms/equal/check_type.cc: Insert iterator type.
* testsuite/25_algorithms/lexicographical_compare/check_type.cc:
Likewise.

2005-01-10  Christopher Jefferson <chris@bubblescope.net>

* testsuite/25_algorithms/lexicographical_compare/check_type.cc: New.
* testsuite/25_algorithms/lexicographical_compare/1.cc: Likewise.
* testsuite/25_algorithms/mismatch/check_type.cc: Likewise.
* testsuite/25_algorithms/mismatch/1.cc: Likewise.
* testsuite/25_algorithms/equal/check_type.cc: New.
* testsuite/25_algorithms/equal/1.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100127 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * c-common.h (objc_comptypes): Remove prototype.
mrs [Tue, 24 May 2005 22:24:38 +0000 (22:24 +0000)]
    * c-common.h (objc_comptypes): Remove prototype.
        (objc_compare_types): New prototype.
        (objc_volatilized_decl): Likewise.
        (objc_type_quals_match): Likewise.
        * c-decl.c (objc_mark_locals_volatile): Streamline by calling
        objc_volatilize_decl().
        * c-typeck.c (comp_target_types): Remove third parameter; do
        not call objc_comptypes().
        (comptypes): Remove calls to objc_comptypes().
        (build_function_call): Extend compatible prototype check to ObjC.
        (build_conditional_expr): Adjust call to comp_target_types().
        (convert_for_assignment): Call objc_compare_types() instead of
        objc_comptypes(); adjust calls to comp_target_types(); call
        objc_type_quals_match() before issuing qualifier mismatch
        warnings.
        (build_binary_op): Call objc_compare_types() before issuing
        pointer mismatch warnings; adjust calls to
        comp_target_types().
        * stub-objc.c (objc_comptypes): Remove stub.
        (objc_compare_types): New stub.
        (objc_volatilized_decl): Likewise.
        (objc_type_quals_match): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100126 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * class.c (layout_class_type): Do not issue C++ ABI warnings
mrs [Tue, 24 May 2005 22:22:33 +0000 (22:22 +0000)]
    * class.c (layout_class_type): Do not issue C++ ABI warnings
        for ObjC structs.
        * decl.c (objc_mark_locals_volatile): Streamline by calling
        objc_volatilize_decl().
        * parser.c (cp_parser_objc_message_expression): Allow simple
        type specifiers (instead of merely type names) as message
        receivers.
        * pt.c (template_args_equal): Do not call objc_comptypes().
        * typeck.c (composite_pointer_type): If both pointers are
        ObjC-esque, arbitrarily choose the first; do not call
        objc_comptypes().
        (comptypes): Do not call objc_comptypes().
        (convert_for_assignment): Call objc_compare_types().
        (comp_ptr_ttypes_real): Call objc_type_quals_match() before
        concluding that types do not match.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100125 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * objc-act.c (objc_build_struct): New function.
mrs [Tue, 24 May 2005 22:21:01 +0000 (22:21 +0000)]
    * objc-act.c (objc_build_struct): New function.
        (objc_derived_from_p): Likewise.
        (objc_build_component_ref): Likewise.
        (objc_copy_binfo): Likewise.
        (objc_xref_basetypes): Likewise.
        (objc_lookup_protocol): Likewise.
        (objc_compare_protocols): Likewise.
        (objc_volatilize_decl): Likewise.
        (encode_aggregate_fields): Likewise.
        (volatilized_hash): Likewise.
        (volatilized_eq): Likewise.
        (objc_compare_types): Likewise.
        (objc_type_quals_match): Likewise.
        (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
        of same name.
        (get_class_ivars): Add second parameter indicating if entire
        hierarchy is desired.
        (struct volatilized_type): New type.
        (volatilized_htab): New hash table.
        (objc_types_compatible_p, objc_comptypes): Remove functions.
        (synth_module_prologue): Do not initialize 'unused_list'.
        (objc_get_class_reference): Fix ObjC++ impedance mismatches.
        (objc_declare_alias): Implement as a typedef.
        (objc_substitute_decl, objc_gimplify_expr): Reformat.
        (objc_get_class_ivars): Adjust call to get_class_ivars().
        (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
        build_ivar_reference, get_super_receiver): Call
        objc_build_component_ref() instead of build_component_ref().
        (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
        objc_comptypes().
        (build_private_template): Call objc_build_struct() instead of
        start_struct() and finish_struct().
        (hash_init): Initialize volatilized_htab.
        (objc_is_public): Adjust calls to objc_get_ivars(); adjust
        ObjC++ impedance mismatches.
        (encode_aggregate_within): Streamline by calling
        encode_aggregate_fields().
        * objc-act.h (objc_types_compatible_p): Remove prototype.
        (OCTI_UNUSED_LIST, unused_list): Remove slot.
        * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100123 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * objcp-decl.c (objcp_start_struct, objcp_xref_tag): Adjust
mrs [Tue, 24 May 2005 22:20:10 +0000 (22:20 +0000)]
    * objcp-decl.c (objcp_start_struct, objcp_xref_tag): Adjust
        call to xref_tag().
        (objcp_build_component_ref): Remove function.
        * objcp-decl.h (objcp_build_component_ref): Remove prototype.
        (build_component_ref): Remove macro.
        * objcp-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100122 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * obj-c++.dg/bitfield-[1-5].mm: New.
mrs [Tue, 24 May 2005 22:18:43 +0000 (22:18 +0000)]
    * obj-c++.dg/bitfield-[1-5].mm: New.
        * obj-c++.dg/class-protocol-1.mm: New.
        * obj-c++.dg/comp-types-1[0-1].mm: New.
        * obj-c++.dg/comp-types-[2-9].mm: New.
        * obj-c++.dg/encode-[4-8].mm: New.
        * obj-c++.dg/layout-1.mm: New.
        * obj-c++.dg/method-1[0-9].mm: New.
        * obj-c++.dg/method-2[0-1].mm: New.
        * obj-c++.dg/method-[8-9].mm: New.
        * obj-c++.dg/objc-gc-3.mm: New.
        * obj-c++.dg/try-catch-10.mm: New.
        * objc.dg/bitfield-5.m: New.
        * objc.dg/comp-types-10.m: New.
        * objc.dg/comp-types-9.m: New.
        * objc.dg/layout-1.m: New.
        * objc.dg/objc-gc-4.m: New.
        * objc.dg/try-catch-9.m: New.
        * objc.dg/class-protocol-1.m: Tweak diagnostics.
        * objc.dg/comp-types-1.m: Likewise.
        * objc.dg/comp-types-[5-6].m: Likewise.
        * objc.dg/method-9.m: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100121 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/altivec-vec-merge.c: Make test usable on GNU/Linux targets
janis [Tue, 24 May 2005 21:50:00 +0000 (21:50 +0000)]
* gcc.dg/altivec-vec-merge.c: Make test usable on GNU/Linux targets
and on hardware without VMX support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100120 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/altivec-vec-merge.c: Renamed from ppc-vec-merge.c.
janis [Tue, 24 May 2005 21:48:15 +0000 (21:48 +0000)]
* gcc.dg/altivec-vec-merge.c: Renamed from ppc-vec-merge.c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100119 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/ppc64-abi-2.c: Remove code that is now invalid.
janis [Tue, 24 May 2005 21:40:35 +0000 (21:40 +0000)]
* gcc.dg/ppc64-abi-2.c: Remove code that is now invalid.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100118 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * lib/profopt.exp (dg-final-generate, dg-final-use,
janis [Tue, 24 May 2005 21:28:54 +0000 (21:28 +0000)]
* lib/profopt.exp (dg-final-generate, dg-final-use,
profopt-final-code, profopt-get-options): New.
(profopt-execute): Process test directives.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100117 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * lib/gcc-dg.exp (cleanup-ipa-dump): New.
janis [Tue, 24 May 2005 21:27:38 +0000 (21:27 +0000)]
* lib/gcc-dg.exp (cleanup-ipa-dump): New.
(cleanup-coverage-files, cleanup-repo-files, cleanup-rtl-dump,
cleanup-tree-dump, cleanup-saved-temps): Update comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100116 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoinclude/
gdr [Tue, 24 May 2005 20:48:25 +0000 (20:48 +0000)]
include/
2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>

* libiberty.h (ACONCAT): Properly cast value of alloca().

* ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Don't define if
__cplusplus.

libiberty/
2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>

* configure.ac: Check declarations for calloc(), getenv(),
malloc(), realloc() and sbrk().
* config.in: Regenerate.
* configure: Likewise.

* alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
instead of xmalloc.
* choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
* concat.c (liiberty_concat_ptr): Surround definition with an
extern "C" block, if __cplusplus.
(concat): Use XNEWVEC instead of xmalloc.
(reconcat): Likewise.
* cp-demangle.c (struct d_print_template): Rename member
"template" to "template_decl".  Adjust use throughout the file.
(d_print_resize): Properly cast return value of realloc().
(cplus_demangle_print): Same for malloc().
(d_demangle): Likewise.
* cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
"typename" to "type_name".
* cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
(work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
(demangle_template_value_parm): Likewise.
(demangle_template): Likewise.
(recursively_demangle): Likewise.
(do_hpacc_template_literal): Likewise.
(do_arg): Likewise.
(remember_type): Likewise.
(remember_Ktype): Likewise.
(register_Btype): Likewise.
(string_need): Use XRESIZEVEC instead of xrealloc().
* dyn-string.c (dyn_string_init): Use XNEWVEC.
(dyn_string_new): Use XNEW.
(dyn_string_resize): Use XRESIZEVEC.
* fnmatch.c (fnmatch): Rename local variable "not" to "negate".
* getopt.c (getenv): Declare only if !__cplusplus and !getenv.
Otherwise include <stdlib.h>.
(exchange): Cast return value of malloc().
* hashtab.c (htab_size): Define as both macro and non-inline
function.
(htab_elements): Likewise.
* getpwd.c (getpwd): Use XNEWVEC.
(htab_create_alloc_ex): Use C90 prototype-style.
* lrealpath.c (lrealpath): Appropriately cast return value of
malloc().
* make-relative-prefix.c (save_string): Likewise.
* make-temp-file.c (try_dir): Rename from "try".  Adjust use in
the file.
(choose_tmpdir): Use XNEWVEC.
* mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
* pex-common.c (pex_init_common): Use XNEW.
(pex_add_remove): Use XRESIZEVEC.
(pex_run): Likewise.
(pex_get_status_and_time): Likewise.
* pex-djgpp.c (pex_djgpp_exec_child): Likewise.
* pex-msdos.c (pex_init): Use XNEW.
(pex_msdos_exec_child): Likewise.
(pex_msdos_exec_child): Use XRESIZEVEC.
* pex-unix.c (pex_wait): Use XNEW.
* pex-win32.c (fix_argv): Use XNEWVEC.
* pexecute.c (pwait): Likewise.
* setenv.c (setenv): Properly cast return value of malloc().
* sigsetmask.c (sigsetmask): Rename local variables "old" and
"new" to "old_sig" and "new_sig".
* sort.c (main): Use XNEWVEC.
* spaces.c (spaces): Cast return value of malloc().
* strndup.c (strndup): Likewise.
* ternary.c (ternary_insert): Use XNEW.
* xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
with an extern "C" block if __cplusplus.
* xstrdup.c (xstrdup): Cast return value of memcpy().
* xstrerror.c (strerror): Enclose declaration in an extern "C"
block if __cplusplus.
* xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100115 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * libgfortran/ChangeLog: Corrected author name.
fxcoudert [Tue, 24 May 2005 20:46:54 +0000 (20:46 +0000)]
* libgfortran/ChangeLog: Corrected author name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100114 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Paolo Carlini <pcarlini@suse.de>
paolo [Tue, 24 May 2005 20:38:40 +0000 (20:38 +0000)]
2005-05-24  Paolo Carlini  <pcarlini@suse.de>

* config/ia64/ia64intrin.h: Define nothing for C++:
overloaded builtins have been ported to C++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100112 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 24 May 2005 20:28:55 +0000 (20:28 +0000)]
2005-05-24  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/allocator.h: Change ___glibcxx_base_allocator to
__glibcxx_base_allocator.
* config/allocator/bitmap_allocator_base.h: Same.
* config/allocator/malloc_allocator_base.h: Same.
* config/allocator/mt_allocator_base.h: Same.
* config/allocator/new_allocator_base.h: Same.
* config/allocator/pool_allocator_base.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100111 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-nested.c (build_addr): New "context" argument. Temporarily
law [Tue, 24 May 2005 20:19:13 +0000 (20:19 +0000)]
    * tree-nested.c (build_addr): New "context" argument.  Temporarily
        set current_function_decl around the call to build the ADDR_EXPR.
        (get_static_chain): Pass proper context to build_addr.
        (convert_nl_goto_reference): Likewise.
        (convert_tramp_reference): Likewise.
        (final_nesting_tree_1): Likewise.
        * tree-profile.c (tree_gen_interval_profiler): Likewise.
        (tree_gen_pow2_profiler): Likewise.
        (tree_gen_one_value_profiler): Likewise.
        * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
        * tree.h (build_addr): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100110 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-flow.h (bb_ann_d): Remove has_escape_site.
kazu [Tue, 24 May 2005 19:57:52 +0000 (19:57 +0000)]
* tree-flow.h (bb_ann_d): Remove has_escape_site.
* tree-ssa-alias.c (compute_points_to_addr_escape): Don't
write to has_escape_site.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100109 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * builtins.c (define_builtin): Don't call make_decl_rtl.
rth [Tue, 24 May 2005 19:22:03 +0000 (19:22 +0000)]
    * builtins.c (define_builtin): Don't call make_decl_rtl.
        * constants.c (build_constant_data_ref): Likewise.
        * class.c (build_utf8_ref): Likewise.
        (build_fieldref_cache_entry, build_static_field_ref): Likewise.
        (get_dispatch_table, layout_class_method): Likewise.
        (build_class_ref): Likewise. Don't set DECL_SIZE or DECL_SIZE_UNIT
        by hand.
        (make_local_function_alias): Don't SET_DECL_ASSEMBLER_NAME.
        (make_method_value): Use METHOD_ABSTRACT instead of DECL_RTL_SET_P
        to determine if we need a non-zero address.
        * decl.c (builtin_function): Don't call make_decl_rtl.
        (give_name_to_locals): Don't SET_DECL_ASSEMBLER_NAME.
        * expr.c (build_known_method_ref): Don't call make_decl_rtl.
        * resource.c (compile_resource_data): Likewise.
        * parse.y (resolve_field_access): Re-word comment to avoid
        building DECL_RTL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100108 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * class.c (registered_class): Take it out of class_roots; turn into
rth [Tue, 24 May 2005 19:18:51 +0000 (19:18 +0000)]
    * class.c (registered_class): Take it out of class_roots; turn into
        a vec of trees.
        (register_class): Make static.  Don't duplicate decl node.  Use
        VEC_safe_push.
        (emit_register_classes): Use VEC_iterate.  Use output_constant
        instead of assemble_integer.  Don't call mark_decl_referenced
        directly.
        * java-tree.h (register_class): Remove decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100107 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Tue, 24 May 2005 19:06:20 +0000 (19:06 +0000)]
2005-05-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/21645
        * g++.dg/init/ctor5.C: New test.

2005-05-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/21645
        * optimize.c (update_cloned_parm): Copy the TYPE also from the
        original one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100106 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
law [Tue, 24 May 2005 14:06:04 +0000 (14:06 +0000)]
    * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
        * tree-cfg.c: Include tree-ssa-propagate.h.
        (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
        needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100103 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/vect/vect-none.c: Split into vect-106.c, vect-107.c,
irar [Tue, 24 May 2005 11:56:58 +0000 (11:56 +0000)]
* gcc.dg/vect/vect-none.c: Split into vect-106.c, vect-107.c,
        vect-108.c, vect-109.c, vect-110.c, vect-111.c, vect-112.c,
        vect-113.c, vect-114.c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100102 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-24 Jonathan Wakely <redi@gcc.gnu.org>
paolo [Tue, 24 May 2005 10:58:22 +0000 (10:58 +0000)]
2005-05-24  Jonathan Wakely  <redi@gcc.gnu.org>

* include/debug/string (class basic_string): Add missing
default template arguments; provide typedefs for char
and wchar_t.
(operator[]): Allow s[s.size()] in debug mode, but not
pedantic mode.

2005-05-24  Paolo Carlini  <pcarlini@suse.de>

Port from libstdcxx_so_7-branch:
2005-04-25  Christopher Jefferson  <chris@bubblescope.net>

* include/bits/stl_algo.h (count): Correct concept checks.
(search_n) : Likewise.
* testsuite/25_algorithms/search_n/check_type.cc: New.

* testsuite/testsuite_iterators.h
(random_access_iterator_wrapper::operator+): Move out of
class to external function, and add symmetric version.

2005-03-14  Christopher Jefferson  <chris@bubblescope.net>

* testsuite/testsuite_iterators.h (WritableObject::WritableObject):
Add const.

2005-02-01  Christopher Jefferson  <chris@bubblescope.net>

* testsuite/testsuite_iterators.h (random_access_iterator_wrapper::
operator--): Fix typo.
(OutputContainer::OutputContainer): Correct zeroing array.
(WritableObject::operator==): Fix typo.
        (WritableObject::operator=): make operator= templated
to allow differing types to be assigned.
(WritableObject::operator++): Fix checking if iterator is
written to multiple times.
(random_access_iterator_wrapper::operator+): Add const.
(random_access_iterator_wrapper::operator-): Likewise.
(random_access_iterator_wrapper::operator[]): Add dereference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100101 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago(rs6000_cpu_cpp_builtins): Define __NO_FPRS__ when 'f' class registers will
nickc [Tue, 24 May 2005 09:09:07 +0000 (09:09 +0000)]
(rs6000_cpu_cpp_builtins): Define __NO_FPRS__ when 'f' class registers will
not be available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100097 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago* config/m32r/m32r.c (m32r_expand_block_move): Return 0 if nothing was done.
nickc [Tue, 24 May 2005 07:45:24 +0000 (07:45 +0000)]
* config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if nothing was done.
* config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did nothing then FAIL.
* config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100095 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/const-elim-1.c: Remove xfails.
nemet [Tue, 24 May 2005 05:57:46 +0000 (05:57 +0000)]
* gcc.dg/const-elim-1.c: Remove xfails.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100093 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-ssa-dom.c (cprop_into_stmt): Do not call
law [Tue, 24 May 2005 02:54:06 +0000 (02:54 +0000)]
* tree-ssa-dom.c (cprop_into_stmt): Do not call
recompute_tree_invariant_for_addr_expr here.
(optimize_stmt): Call it here instead and do so if anything
at all has changed in the statement and the RHS is an ADDR_EXPR.
* tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
needed, call recompute_tree_invariant_for_addr_expr.
* tree-ssa-propagate.c (substitute_and_fold): Call
recompute_tree_invariant_for_addr_expr as needed.

* gcc.c-torture/compile/pr21638.c: New test.
* gcc.c-torture/compile/20050520-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100092 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Tue, 24 May 2005 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100090 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agotweak comment
jason [Mon, 23 May 2005 23:02:53 +0000 (23:02 +0000)]
tweak comment

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100088 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * docs/html/debug.html: Explain that _GLIBXX_DEBUG_PEDANTIC
redi [Mon, 23 May 2005 21:53:46 +0000 (21:53 +0000)]
* docs/html/debug.html: Explain that _GLIBXX_DEBUG_PEDANTIC
had to be defined for pedantic mode in 3.4 and 4.0.0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100087 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2005-05-23 Andreas Krebbel <krebbel1@de.ibm.com>
uweigand [Mon, 23 May 2005 16:43:06 +0000 (16:43 +0000)]
2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
saving less registers than the replacement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100081 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
hubicka [Mon, 23 May 2005 12:37:47 +0000 (12:37 +0000)]
* tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100080 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago* gcc.c-torture/execute/20020720-1.x: Fix m32r target selector to be a proper
nickc [Mon, 23 May 2005 08:41:57 +0000 (08:41 +0000)]
* gcc.c-torture/execute/20020720-1.x: Fix m32r target selector to be a proper
    triple, ie: m32r*-*-*.
* g++.old-deja/g++.jason/thunk3.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100078 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
ebotcazou [Mon, 23 May 2005 07:09:03 +0000 (07:09 +0000)]
* config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
* config/sparc/sparc.c (sparc_expand_move): New function.
(sparc_emit_set_const64): Rewrite assert condition on entry.
(legitimate_constant_p) <CONST_VECTOR>: New case.
(legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
* config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
movV64, movtf): Use nonimmediate_operand for the first operand.
Rewrite.  Only invoke sparc_expand_move.
* config/sparc/predicates.md (input_operand): Reorder tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100077 138bc75d-0d04-0410-961f-82ee72b054a4