Jason Merrill
35385f991f
re PR c++/46903 ([C++0x] ICE unexpected expression of kind template_id_expr)
...
PR c++/46903
* typeck2.c (check_narrowing): Only check arithmetic types.
From-SVN: r168783
2011-01-14 08:08:11 -05:00
Jason Merrill
70f961a51e
re PR c++/46688 (g++ requires a function declaration when it should not)
...
PR c++/46688
* tree.c (build_vec_init_expr): Handle flexible array
properly.
From-SVN: r168782
2011-01-14 08:08:02 -05:00
Richard Guenther
8f66db3b32
re PR middle-end/47281 (error: non-trivial conversion at assignment)
...
2011-01-14 Richard Guenther <rguenther@suse.de>
PR middle-end/47281
Revert
2011-01-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46076
* tree-ssa.c (useless_type_conversion_p): Conversions from
unprototyped to empty argument list function types are useless.
* gcc.dg/torture/pr47281.c: New testcase.
* gcc.dg/tree-ssa/pr46076.c: XFAIL.
From-SVN: r168781
2011-01-14 12:39:09 +00:00
Richard Guenther
6c0c92e6b3
re PR tree-optimization/47286 (Invalid code when using register ... asm)
...
2011-01-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47286
* tree-ssa-structalias.c (new_var_info): Register variables
are global.
* gcc.dg/tree-ssa/pr47286.c: New testcase.
From-SVN: r168779
2011-01-14 12:15:43 +00:00
Martin Jambor
db09f9434d
re PR middle-end/46823 (ICE: edge points to wrong declaration)
...
2011-01-14 Martin Jambor <mjambor@suse.cz>
PR middle-end/46823
* tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
From-SVN: r168778
2011-01-14 12:59:07 +01:00
Tobias Burnus
642d287307
re PR fortran/47182 (libquadmath.texi: undefined flag: BUGURL)
...
2011-01-14 Tobias Burnus <burnus@net-b.de>
PR fortran/47182
* configure.ac: Use ACX_BUGURL.
* libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
* Makefile.am: Create libquadmath-vers.texi.
* configure.in: Regenerate.
* Makefile.in: Regenerate.
From-SVN: r168776
2011-01-14 08:18:54 +01:00
Ian Lance Taylor
82afdd42e2
The type of a string slice is the type of the string being sliced.
...
From-SVN: r168775
2011-01-14 05:37:12 +00:00
Ian Lance Taylor
3dac68b99e
Move clearing of flag_strict_aliasing to gcc interface.
...
From-SVN: r168774
2011-01-14 03:27:32 +00:00
Paolo Carlini
632469d01e
[multiple changes]
...
2011-01-13 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/25_algorithms/is_permutation/check_type.cc: New.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/pod.cc: Likewise.
* testsuite/25_algorithms/is_permutation/1.cc: Likewise.
2011-01-13 John Lakos <jlakos@bloomberg.net>
Pablo Halpern <phalpern@halpernwightsoftware.com>
Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algo.h (is_permutation): Add, per N3068.
* include/bits/algorithmfwd.h: Add.
From-SVN: r168773
2011-01-14 01:21:51 +00:00
GCC Administrator
57d5062695
Daily bump.
...
From-SVN: r168770
2011-01-14 00:19:25 +00:00
Tobias Burnus
4975dfd9c9
re PR libfortran/47268 (Documentation: missing (Optional) keyword for parameters of get_command_argument() and get_environment_variable())
...
2011-01-13 Tobias Burnus <burnus@net-b.de>
PR fortran/47268
* intrinsic.texi (get_command_argument,
* get_environment_variable):
Mark arguments as optional in the Arguments section.
From-SVN: r168766
2011-01-13 23:00:50 +01:00
Anatoly Sokolov
dde8a3a47e
xtensa.h (XTENSA_LIBCALL_VALUE, [...]): Remove macros.
...
* config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
* config/xtensa/xtensa.c (xtensa_libcall_value,
xtensa_function_value_regno_p): New functions.
(TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
From-SVN: r168765
2011-01-13 23:24:19 +03:00
Ian Lance Taylor
389295b785
Don't exit mksysinfo.sh if there is no _user_regs_struct.
...
From-SVN: r168764
2011-01-13 20:23:19 +00:00
Kai Tietz
a2b63a2001
re PR c++/47213 (ICE: SIGSEGV in determine_visibility (decl2.c:2076) with -fvisibility-ms-compat)
...
2011-01-13 Kai Tietz <kai.tietz@onevision.com>
PR c++/47213
* g++.dg/ext/pr47213.C: New.
2011-01-13 Kai Tietz <kai.tietz@onevision.com>
PR c++/47213
* cp-tree.h (CLASSTYPE_VISIBILITY): Use
TYPE_MAIN_DECL instead of TYPE_NAME.
(CLASSTYPE_VISIBILITY_SPECIFIED): Likewise.
* decl2.c (determine_visibility): Add check
of CLASS_TYPE_P for underlying_type.
2011-01-13 Kai Tietz <kai.tietz@onevision.com>
PR c++/47213
* config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
PE specific hook.
* config/i386/i386-protos.h (i386_pe_assemble_visibility):
New function prototype.
* config/i386/winnt.c (i386_pe_assemble_visibility):
Warn only if attribute was specified by user.
From-SVN: r168763
2011-01-13 21:01:57 +01:00
John David Anglin
3752f75a6d
backport: ltmain.sh (relink): Use absolute path when hardcoding with -L.
...
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
/:
* ltmain.sh (relink): Use absolute path when hardcoding with -L.
From-SVN: r168762
2011-01-13 18:51:10 +00:00
Rainer Orth
bae900e157
* gfortran.dg/cray_pointers_2.f90: Use dg-timeout-factor 4.
...
From-SVN: r168759
2011-01-13 18:20:42 +00:00
Joel Brobecker
5a2931d12a
Resync with GDB (from "port GDB to ia64-hpux (native).")
...
ChangeLog:
* configure.ac: Remove readline, mmalloc, and gdb from noconfigdirs
for ia64-hpux.
* configure: Regenerate.
From-SVN: r168758
2011-01-13 18:05:35 +00:00
Kai Tietz
384f586a53
re PR fortran/47260 (DLLEXPORT: TREE_PUBLIC for procedures lost between trans-decl.c and tree.c)
...
2011-01-13 Kai Tietz <kai.tietz@onevision.com>
Tobias Burnus <burnus@net-b.de>
PR fortran/47260
* trans-decl.c (gfc_get_extern_function_decl,
build_function_decl): Set TREE_PUBLIC/TREE_EXTERNAL before
calling decl_attributes.
Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r168757
2011-01-13 19:04:03 +01:00
Tobias Burnus
29a63d6779
re PR fortran/45848 ([OOP] ICE on invalid code in fortran/symbol.c:2410)
...
2011-01-13 Tobias Burnus <burnus@net-b.de>
Mikael Morin <mikael@gcc.gnu.org>
PR fortran/45848
PR fortran/47204
* gfortran.h (gfc_code): Move union ext's case_list into
the struct block.
* dump-parse-tree.c (show_code_node): Adapt by prefixing
* case_list
by "block.".
* frontend-passes.c (gfc_code_walker): Ditto.
* match.c (gfc_match_goto, gfc_match_call, gfc_match_case,
gfc_match_type_is, gfc_match_class_is): Ditto.
* resolve.c (resolve_select, resolve_select_type): Ditto.
* st.c (gfc_free_statement): Ditto.
* trans-stmt.c (gfc_trans_integer_select,
* gfc_trans_logical_select,
gfc_trans_character_select): Ditto.
* parse.c (resolve_all_program_units): For error recovery, avoid
segfault is proc_name is NULL.
2011-01-13 Tobias Burnus <burnus@net-b.de>
Mikael Morin <mikael@gcc.gnu.org>
PR fortran/45848
PR fortran/47204
* gfortran.dg/select_type_20.f90: New.
* gfortran.dg/select_type_21.f90: New.
Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r168753
2011-01-13 17:32:33 +01:00
Michael Meissner
b41f0b3440
Fix 47251, failure in powerpc -mcpu=power7 -m32 -msoft-float
...
From-SVN: r168752
2011-01-13 15:59:19 +00:00
Andreas Krebbel
2975762754
pr36728-1.c: Disable arg1/2 checks for s390 and s390x.
...
2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.dg/guality/pr36728-1.c: Disable arg1/2 checks for s390 and
s390x.
* gcc.dg/guality/pr36728-2.c: Likewise.
From-SVN: r168749
2011-01-13 13:46:24 +00:00
Andreas Krebbel
3f3c098d96
s390.c (print_operand_address): Replace 'error' with 'output_operand_lossage'.
...
2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (print_operand_address): Replace 'error' with
'output_operand_lossage'.
(print_operand): Likewise.
From-SVN: r168748
2011-01-13 13:45:00 +00:00
Jeff Law
29fa95ed57
re PR rtl-optimization/39077 (GCSE-optimization causes enormous binary size increase (~20 times !))
...
* PR rtl-optimization/39077
* doc/invoke.texi (max-gcse-insertion-ratio): Document.
* params.h (MAX_GCSE_INSERTION_RATIO): Define.
* params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
* lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
* gcse.c (prune_insertions_deletions): New function.
(compute_pre_data): Use it.
From-SVN: r168747
2011-01-13 06:41:03 -07:00
Dodji Seketeli
71d1227667
Fix PR debug/PR46973
...
gcc/
* dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
static function.
(prune_unused_types_mark): Use it.
gcc/testsuite/
* g++.dg/debug/dwarf2/template-params-9.C: New test.
From-SVN: r168743
2011-01-13 10:48:04 +01:00
Andrey Belevantsev
9b0f04e708
re PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7058)
...
PR rtl-optimization/45352
* sel-sched.c: Update copyright years.
(reset_sched_cycles_in_current_ebb): Also recheck the DFA state
in the advancing loop when we have issued issue_rate insns.
* gcc.dg/pr45352-3.c: New.
From-SVN: r168742
2011-01-13 12:29:09 +03:00
Eric Botcazou
1ee3ea052a
Fix minor issues
...
From-SVN: r168741
2011-01-13 07:35:42 +00:00
Ian Lance Taylor
545d1aa13c
Use GOARCH value of sparc64 rather than sparcv9.
...
From-SVN: r168740
2011-01-13 06:18:45 +00:00
Ian Lance Taylor
5fd58e56f0
Add some Solaris support to mksysinfo.sh.
...
From Rainer Orth.
From-SVN: r168739
2011-01-13 05:42:40 +00:00
Ian Lance Taylor
cff0c39da1
Clean up syscalls, add some Solaris support.
...
From-SVN: r168738
2011-01-13 05:17:52 +00:00
Joseph Myers
243ffa47b3
* ja.po: Update.
...
From-SVN: r168737
2011-01-13 02:30:06 +00:00
GCC Administrator
e3991ee9f9
Daily bump.
...
From-SVN: r168736
2011-01-13 00:19:09 +00:00
Jonathan Wakely
1bd19e1a26
re PR libstdc++/47045 (NetBSD: define changes in ctype.h)
...
2011-01-13 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/47045
* config/os/bsd/netbsd/ctype_base.h: Use new macros based on version.
From-SVN: r168732
2011-01-13 00:02:41 +00:00
Rodrigo Rivas Costa
3f43ac31cc
cp-tree.h (begin_for_scope): New prototype.
...
* cp-tree.h (begin_for_scope): New prototype.
(begin_for_stmt): Update prototype.
(begin_range_for_stmt): Update prototype.
* init.c (build_vec_init): Update call to begin_for_stmt.
* parser.c (cp_parser_for): New.
(cp_parser_c_for): Add three new parameters.
(cp_parser_range_for): Likewise. Most parsing code removed.
(cp_parser_iteration_statement): Call cp_parser_for instead of
cp_parser_c_for and cp_parser_range_for.
(cp_parser_for_init_statement): Add new parameter and return type.
(cp_parser_block_declaration): Update call to
cp_parser_simple_declaration.
(cp_parser_simple_declaration): Add new parameter.
Update call to cp_parser_init_declarator.
(cp_parser_init_declarator): Add new parameter.
* pt.c (tsubst_expr): Update call to begin_for_stmt.
* semantics.c (begin_for_scope): New.
(begin_for_stmt): Add two new parameters.
(begin_range_for_stmt): Likewise.
From-SVN: r168731
2011-01-12 18:52:56 -05:00
Ian Lance Taylor
c7aca2ff21
Use correct nm and nm options.
...
From-SVN: r168730
2011-01-12 23:06:13 +00:00
Ian Lance Taylor
86d013a7f0
Make using DejaGNU work for libgo testing on a native system.
...
From-SVN: r168729
2011-01-12 21:56:10 +00:00
Richard Henderson
a49b692a27
mn10300: Auto-clobber the flags in asms.
...
From-SVN: r168725
2011-01-12 09:59:31 -08:00
Richard Henderson
126b148370
mn10300: Add delegitimize_address hook.
...
This suppresses warnings generated by the dwarf2 output
routines about uninterpretable addresses.
From-SVN: r168724
2011-01-12 09:56:15 -08:00
Richard Henderson
f3d9d2e060
mn10300: Add clzsi2.
...
From-SVN: r168723
2011-01-12 09:53:50 -08:00
Richard Henderson
d84760c980
mn10300: Emit clr.
...
From-SVN: r168722
2011-01-12 09:51:40 -08:00
Richard Henderson
ec815d657b
mn10300: Force lower-subreg pass to run.
...
There are a number of tests that fail -- generally ones involving
generic vectorization -- at -O0 because we run out of registers.
The lower-subreg pass cleans things up sufficiently to allow these
tests to succeed.
From-SVN: r168721
2011-01-12 09:47:02 -08:00
Richard Henderson
d6a3e26499
mn10300: Clean up trampoline handling
...
The old code was failing in the testsuite. I didn't try to
debug exactly why, since the existing code was needlessly
complex.
From-SVN: r168720
2011-01-12 09:45:42 -08:00
Anatoly Sokolov
0f8ab43451
s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
...
* config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
* config/s390/s390.c (s390_output_addr_const_extra): Make static.
(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
From-SVN: r168719
2011-01-12 20:40:06 +03:00
Kai Tietz
d8a24b6521
re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g)
...
2011-01-12 Kai Tietz <kai.tietz@onevision.com>
PR debug/47209
* dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
of type.
2011-01-12 Kai Tietz <kai.tietz@onevision.com>
PR debug/47209
* g++.dg/debug/pr47209.C: New.
From-SVN: r168718
2011-01-12 18:02:41 +01:00
Jan Hubicka
56e22cab21
re PR driver/47244 (plugin linker is used unconditionally)
...
PR driver/47244
* gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
(PLUGIN_COND_CLOSE): New macro.
(LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
From-SVN: r168717
2011-01-12 15:47:29 +00:00
Richard Guenther
d559a7f87c
re PR lto/47259 (LTO and global register variable)
...
2011-01-12 Richard Guenther <rguenther@suse.de>
PR lto/47259
* gcc.dg/lto/pr47259_0.c: New testcase.
* gcc.dg/lto/pr47259_1.c: Likewise.
From-SVN: r168715
2011-01-12 15:21:59 +00:00
Richard Guenther
4b18b3c25b
re PR lto/47259 (LTO and global register variable)
...
2011-01-12 Richard Guenther <rguenther@suse.de>
PR lto/47259
* lto-streamer-out.c (output_gimple_stmt): Do not wrap
register variables in a MEM_REF.
From-SVN: r168713
2011-01-12 15:01:09 +00:00
Joseph Myers
8e38461c76
config.gcc (arm*-*-linux*, [...]): Use gnu-user.h before linux.h.
...
* config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
am33_2.0-*-linux*): Use gnu-user.h before linux.h.
* config/gnu-user.h: New. Copied from linux.h.
(LINUX_TARGET_STARTFILE_SPEC): Rename to
GNU_USER_TARGET_STARTFILE_SPEC.
(LINUX_TARGET_ENDFILE_SPEC): Rename to
GNU_USER_TARGET_ENDFILE_SPEC.
(LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
(LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
(OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
* config/arm/linux-eabi.h (CC1_SPEC): Use
GNU_USER_TARGET_CC1_SPEC.
(LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
(STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
(ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
* config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
From-SVN: r168711
2011-01-12 14:29:14 +00:00
Richard Guenther
a570fc16fa
re PR c/46946 (contradiction in docs for -Ofast and -ffast-math)
...
2011-01-12 Richard Guenther <rguenther@suse.de>
PR other/46946
* doc/invoke.texi (ffast-math): Document it is turned on
with -Ofast.
From-SVN: r168709
2011-01-12 12:07:44 +00:00
Richard Guenther
47782a9d27
re PR lto/47264 (Many tests fail with -flto due unaligned load in lto-plugin.c)
...
2011-01-12 Richard Guenther <rguenther@suse.de>
PR lto/47264
* lto-plugin.c (parse_table_entry): Use memcpy to access
unaligned fields.
From-SVN: r168708
2011-01-12 12:04:39 +00:00
Iain Sandoe
753cc6853b
dwarf2.h: Update value for DW_AT_hi_user.
...
include:
* dwarf2.h: Update value for DW_AT_hi_user.
From-SVN: r168707
2011-01-12 11:18:49 +00:00