1. 07 Jun, 2009 2 commits
    • extend.texi (Attribute Syntax): Document that C++ labels on empty statements can… · 5bca4e80
      extend.texi (Attribute Syntax): Document that C++ labels on empty statements can now have attributes.
      
      ./:	* doc/extend.texi (Attribute Syntax): Document that C++ labels on
      	empty statements can now have attributes.
      cp/:
      	* parser.c (cp_parser_label_for_labeled_statement): Support
      	attribute on labels if immediately followed by semicolon.
      	* semantics.c (finish_label_stmt): Return new label.
      	* pt.c (tsubst_expr): Handle attributes for LABEL_EXPR.
      testsuite/:
      	* gcc.dg/Wunused-label-1.c: New test case.
      	* g++.dg/warn/Wunused-label-1.C: New test case.
      	* g++.dg/warn/Wunused-label-2.C: New test case.
      	* g++.dg/warn/Wunused-label-3.C: New test case.
      
      From-SVN: r148242
      Ian Lance Taylor committed
    • Daily bump. · 712b30cf
      From-SVN: r148241
      GCC Administrator committed
  2. 06 Jun, 2009 3 commits
    • re PR fortran/37203 (Check ORDER= of RESHAPE) · f7cfd28c
      2009-06-06  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/37203
              * simplify.c (gfc_simplify_reshape): Fixed reshaping of empty
              * arrays
              without padding.
      
      2009-06-06  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/37203
              * reshape_zerosize_2.f90: New.
      
      From-SVN: r148238
      Daniel Franke committed
    • re PR fortran/32890 (Compile-time detect of LHS/RHS missmatch for PACK) · 7ba8c18c
      fortran/
      2009-06-06  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/32890
              * intrinsic.h (gfc_simplify_pack): New prototype.
              * intrinsic.c (add_functions): Added simplifier-callback to PACK.
              * simplify.c (is_constant_array_expr): Moved to beginning of file.
              (gfc_simplify_pack): New.
              * check.c (gfc_check_pack): Check that VECTOR has enough elements.
              Added safeguards for empty arrays.
      
      testsuite/
      2009-06-06  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/32890
              * gfortran.dg/pack_assign_1.f90: New.
              * gfortran.dg/pack_vector_1.f90: New.
      
      From-SVN: r148237
      Daniel Franke committed
    • Daily bump. · dbb0ce04
      From-SVN: r148233
      GCC Administrator committed
  3. 05 Jun, 2009 19 commits
  4. 04 Jun, 2009 16 commits
    • basic-block.h (struct basic_block_def): Add discriminator field. · 6c52e687
      	* basic-block.h (struct basic_block_def): Add discriminator field.
      	* dbxout.c (dbxout_source_line): Add new parameter.  Change all
      	callers.
      	* debug.c (do_nothing_debug_hooks): Add additional entry.
      	(debug_nothing_int_charstar_int): New function.
      	* debug.h (struct gcc_debug_hooks): Add parameter to source_line
      	hook.
      	(debug_nothing_int_charstar_int): New declaration.
      	* dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
      	discriminator value in .loc directive.
      	* final.c (last_discriminator): New variable.
      	(discriminator): New variable.
      	(final_start_function): Initialize above variables, pass current
      	discriminator to debug hook.
      	(notice_source_line): Check for discriminator change.
      	* gimple-pretty-print.c (dump_bb_header): Print discriminator value.
      	* sdbout.c (sdbout_source_line): New parameter.
      	* tree-cfg.c (struct locus_discrim_map): New structure type.
      	(discriminator_per_locus): New hash table.
      	(build_gimple_cfg): Allocate and free discriminator hash table.
      	(make_edges): Call assign_discriminator.
      	(locus_map_hash): New function.
      	(locus_map_eq): New function.
      	(next_discriminator_for_locus): New function.
      	(same_line_p): New function.
      	(assign_discriminator): New function.
      	(make_cond_expr_edges): Call assign_discriminator.
      	(make_gimple_switch_edges): Likewise.
      	(first_non_label_stmt): New function.
      	* vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
      	all callers.
      	* xcoffout.c (xcoffout_source_line): Add new parameter.
      
      	* configure.ac (gcc_cv_as_discriminator): New configury check for
      	gas support for discriminator.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      
      From-SVN: r148191
      Cary Coutant committed
    • re PR fortran/37203 (Check ORDER= of RESHAPE) · 535ff342
      gcc/fortran/
      2009-06-04  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/37203
              * check.c (gfc_check_reshape): Additional checks for the
              SHAPE and ORDER arguments.
              * simplify.c (gfc_simplify_reshape): Converted argument checks
              to asserts.
      
      gcc/testsuite/
      2009-06-04  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/37203
              * gfortran.dg/reshape_order_5.f90: New.
              * gfortran.dg/reshape_shape_1.f90: New.
      
      From-SVN: r148190
      Daniel Franke committed
    • pt.c (dependent_type_p_push): New fn. · efd76709
              * pt.c (dependent_type_p_push): New fn.
              * cp-tree.h: Declare it.
              * tree.c (canonical_type_variant): Use TYPE_CANONICAL.
      
      From-SVN: r148189
      Jason Merrill committed
    • ffitarget.h, [...]: Back out stdcall changes. · 90409e4c
      2009-06-04  Andrew Haley  <aph@redhat.com>
      
      	* src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
      	stdcall changes.
      
      From-SVN: r148178
      Andrew Haley committed
    • vect-42.c: Modify vect_no_align case. · d46c937c
      2009-06-04  Steve Ellcey  <sje@cup.hp.com>
      
      	* gcc.dg/vect/vect-42.c: Modify vect_no_align case.
      	* gcc.dg/vect/no-vfa-vect-43.c: Ditto.
      
      From-SVN: r148177
      Steve Ellcey committed
    • [multiple changes] · b1393750
      2008-02-26  Anthony Green  <green@redhat.com>
                  Thomas Heller  <theller@ctypes.org>
      
              * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
              comment.
      
      2008-02-03  Timothy Wall  <twall@users.sf.net>
      
              * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
                offset based on code pointer, not data pointer.
      
      2008-01-31  Timothy Wall <twall@users.sf.net>
      
              * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
              closures.
              * src/x86/ffitarget.h: Increase size of trampoline for stdcall
              closures.
              * src/x86/win32.S: Add assembly for stdcall closure.
              * src/x86/ffi.c: Initialize stdcall closure trampoline.
      
      From-SVN: r148174
      Andrew Haley committed
    • ffi.h.in: Change void (*)() to void (*)(void). · 96baa251
      2009-06-04  Andrew Haley  <aph@redhat.com>
      
      	* include/ffi.h.in: Change void (*)() to void (*)(void).
      	* src/x86/ffi.c: Likewise.
      
      From-SVN: r148173
      Andrew Haley committed
    • [multiple changes] · 7446546a
      2009-06-04  Andrew Haley  <aph@redhat.com>
      
      	* src/powerpc/ppc_closure.S: Insert licence header.
      	* src/powerpc/linux64_closure.S: Likewise.
      	* src/m68k/sysv.S: Likewise.
      
      	* src/sh64/ffi.c: Change void (*)() to void (*)(void).
      	* src/powerpc/ffi.c: Likewise.
      	* src/powerpc/ffi_darwin.c: Likewise.
      	* src/m32r/ffi.c: Likewise.
      	* src/sh64/ffi.c: Likewise.
      	* src/x86/ffi64.c: Likewise.
      	* src/alpha/ffi.c: Likewise.
      	* src/alpha/osf.S: Likewise.
      	* src/frv/ffi.c: Likewise.
      	* src/s390/ffi.c: Likewise.
      	* src/pa/ffi.c: Likewise.
      	* src/pa/hpux32.S: Likewise.
      	* src/ia64/unix.S: Likewise.
      	* src/ia64/ffi.c: Likewise.
      	* src/sparc/ffi.c: Likewise.
      	* src/mips/ffi.c: Likewise.
      	* src/sh/ffi.c: Likewise.
      
      2008-02-15  David Daney  <ddaney@avtrex.com>
      
              * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
              Define (conditionally), and use it to include cachectl.h.
              (ffi_prep_closure_loc): Fix cache flushing.
              * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
      
      From-SVN: r148172
      Andrew Haley committed
    • 2009-06-04 Andrew Haley <aph@redhat.com> · 5f933ef0
              include/ffi.h.in,
              src/arm/ffitarget.h,
              src/arm/ffi.c,
              src/arm/sysv.S,
              src/powerpc/ffitarget.h,
              src/closures.c,
              src/sh64/ffitarget.h,
              src/sh64/ffi.c,
              src/sh64/sysv.S,
              src/types.c,
              src/x86/ffi64.c,
              src/x86/ffitarget.h,
              src/x86/win32.S,
              src/x86/darwin.S,
              src/x86/ffi.c,
              src/x86/sysv.S,
              src/x86/unix64.S,
              src/alpha/ffitarget.h,
              src/alpha/ffi.c,
              src/alpha/osf.S,
              src/m68k/ffitarget.h,
              src/frv/ffitarget.h,
              src/frv/ffi.c,
              src/s390/ffitarget.h,
              src/s390/sysv.S,
              src/cris/ffitarget.h,
              src/pa/linux.S,
              src/pa/ffitarget.h,
              src/pa/ffi.c,
              src/raw_api.c,
              src/ia64/ffitarget.h,
              src/ia64/unix.S,
              src/ia64/ffi.c,
              src/ia64/ia64_flags.h,
              src/java_raw_api.c,
              src/debug.c,
              src/sparc/v9.S,
              src/sparc/ffitarget.h,
              src/sparc/ffi.c,
              src/sparc/v8.S,
              src/mips/ffitarget.h,
              src/mips/n32.S,
              src/mips/o32.S,
              src/mips/ffi.c,
              src/prep_cif.c,
              src/sh/ffitarget.h,
              src/sh/ffi.c,
              src/sh/sysv.S: Update license text.
      
      From-SVN: r148171
      Andrew Haley committed
    • arm.c (thumb2_legitimate_index_p): Initialize val after checking for integers. · e07e020b
      2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	* config/arm/arm.c (thumb2_legitimate_index_p): Initialize
      	val after checking for integers.
      
      From-SVN: r148170
      Ramana Radhakrishnan committed
    • re PR c++/39371 (Incorrectly rejects switch((unsigned int)boolvar)) · 4970671d
      2009-06-04  Richard Guenther  <rguenther@suse.de>
      
      	PR c++/39371
      	* g++.dg/torture/pr40335.C: New testcase.
      
      From-SVN: r148167
      Richard Guenther committed
    • i386.h (X86_64_MS_REGPARM_MAX): Rename from X64_REGPARM_MAX. · 72fa3605
      	* config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
      	X64_REGPARM_MAX.
      	(REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
      	(X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
      	(SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
      	* config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
      	X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
      	X64_SSE_REGPARM_MAX.
      	* config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
      	X64_SSE_REGPARM_MAX.
      
      From-SVN: r148163
      Uros Bizjak committed
    • gcc.c (report_times_to_file): New. · bdde878c
      * gcc.c (report_times_to_file): New.
      (execute): Implement it.
      (process_command): Support -time=.
      * doc/invoke.texi: Document it.
      
      From-SVN: r148162
      Alexandre Oliva committed
    • tree-ssa-live.c (remove_unused_scope_block_p): Keep variables that have value exprs. · 2ce59df7
      * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
      that have value exprs.
      
      From-SVN: r148161
      Alexandre Oliva committed
    • dwarf2asm.c (dw2_force_const_mem): Defer creation of declarations for constants until... · 78bd9046
      * dwarf2asm.c (dw2_force_const_mem): Defer creation of
      declarations for constants until...
      (dw2_output_indirect_constant_1): ... this point.
      
      From-SVN: r148160
      Alexandre Oliva committed
    • Daily bump. · 4cbc7f7a
      From-SVN: r148159
      GCC Administrator committed