Ian Lance Taylor
0cc3d14ec1
Check for errors when building map construction.
...
From-SVN: r168148
2010-12-22 00:00:42 +00:00
Nicola Pero
522c4f1f1e
Fixed changelog entry for one of my libobjc patches of a few days ago
...
From-SVN: r168147
2010-12-21 23:55:24 +00:00
Ian Lance Taylor
88a8aaac55
Don't warn about []int of string with NUL bytes.
...
From-SVN: r168146
2010-12-21 23:48:37 +00:00
Ian Lance Taylor
a8f3a62df1
Don't permit assigning abstract string/bool to numeric variable.
...
From-SVN: r168145
2010-12-21 23:33:51 +00:00
Ian Lance Taylor
67eff3d9f7
Don't crash on calling new with an erroneous type.
...
From-SVN: r168144
2010-12-21 23:19:43 +00:00
Ian Lance Taylor
9ff48ac359
Don't crash when returning something from a function named '_'.
...
From-SVN: r168143
2010-12-21 23:13:18 +00:00
Ian Lance Taylor
91ab22083a
Don't crash indexing into erroneous array.
...
From-SVN: r168142
2010-12-21 22:59:31 +00:00
Steven Bosscher
e0cb7e1ef4
value-prof.c (value_prof_hooks): Remove.
...
* value-prof.c (value_prof_hooks): Remove.
(struct value_prof_hooks): Remove.
(gimple_value_prof_hooks): Remove.
(gimple_register_value_prof_hooks): Remove.
(find_values_to_profile): Remove.
(value_profile_transformations): Remove.
(gimple_value_profile_transformations): No longer static.
(gimple_find_values_to_profile): Likewise.
* value-prof.h (gimple_register_value_prof_hooks): Remove prototype.
(find_values_to_profile): Likewise.
(value_profile_transformations): Likewise.
(tree_register_profile_hooks): Likewise.
(struct profile_hooks): Remove.
(tree_profile_hooks): Remove.
(gimple_find_values_to_profile): New protoype.
(gimple_value_profile_transformations): Likewise.
(gimple_init_edge_profiler): Likewise.
(gimple_gen_edge_profiler): Likewise.
(gimple_gen_interval_profiler): Likewise.
(gimple_gen_pow2_profiler): Likewise.
(gimple_gen_one_value_profiler): Likewise.
(gimple_gen_ic_profiler): Likewise.
(gimple_gen_ic_func_profiler): Likewise.
(gimple_gen_const_delta_profiler): Likewise.
(gimple_gen_average_profiler): Likewise.
(gimple_gen_ior_profiler): Likewise.
* profile.c (profile_hooks): Remove.
(instrument_edges): Call profiling functions directly instead
of through removed profile_hooks.
(instrument_values): Likewise.
(branch_prob): Call gimple_find_values_to_profile instead of
removed find_values_to_profile.
Call gimple_init_edge_profiler instead of removed hook.
(tree_register_profile_hooks): Remove.
* tree-profile.c (tree_init_ic_make_global_vars): Rename to
init_ic_make_global_vars.
(tree_init_edge_profiler): Rename to gimple_init_edge_profiler
and no longer static.
(tree_gen_edge_profiler, tree_gen_interval_profiler,
tree_gen_pow2_profiler, tree_gen_one_value_profiler,
tree_gen_ic_profiler, tree_gen_ic_func_profiler,
tree_gen_const_delta_profiler, tree_gen_average_profiler,
tree_gen_ior_profiler): Similarly renamed and no longer static.
(tree_profiling): Do not initialize tree profiling hooks.
(tree_profile_hooks): Remove.
From-SVN: r168141
2010-12-21 22:58:57 +00:00
Ian Lance Taylor
74d272a2e7
Don't crash when copying a function with no closure variable.
...
From-SVN: r168140
2010-12-21 22:56:39 +00:00
Nicola Pero
1575c9deae
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/18764
* class.c (__objc_add_class_to_hash): Return YES if the class was
added, and NO if it already existed.
* init.c (__objc_init_class): If __objc_add_class_to_hash returns
NO, then abort the program with an error message.
* objc-private/runtime.h (__objc_add_class_to_hash): Updated
declaration.
From-SVN: r168139
2010-12-21 22:49:37 +00:00
Ian Lance Taylor
2fdd3e0468
Make-lang.in (check-go): Remove.
...
* Make-lang.in (check-go): Remove.
(lang_checks_parallelized): Add check-go.
(check_go_parallelize): Set.
From-SVN: r168137
2010-12-21 22:45:54 +00:00
Ian Lance Taylor
5b1932a1b6
go-test.exp: Clear runtests around invocation of go-dg-runtest from errchk and go-execute-xfail.
...
* go.test/go-test.exp: Clear runtests around invocation of
go-dg-runtest from errchk and go-execute-xfail.
From-SVN: r168136
2010-12-21 22:42:14 +00:00
Jakub Jelinek
401e4feab6
re PR target/46880 (generating of shufpd is broken)
...
PR target/46880
* config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
operand.
* gcc.target/i386/pr46880.c: New test.
From-SVN: r168135
2010-12-21 23:37:23 +01:00
Ian Lance Taylor
31e1ba2e2a
Don't finalize methods for a type more than once.
...
From-SVN: r168134
2010-12-21 22:33:04 +00:00
Nicola Pero
1588200e46
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* init.c (_objc_load_callback): Initialize with 0.
(__objc_call_callback): Renamed to __objc_call_load_callback.
Check _objc_load_callback only once, and if it is not set, return
immediately.
(objc_send_load): Updated call to __objc_call_callback.
From-SVN: r168133
2010-12-21 22:17:52 +00:00
Ian Lance Taylor
686875c172
Correct handling of methods which call recover.
...
From-SVN: r168132
2010-12-21 21:14:15 +00:00
Ian Lance Taylor
059e2a26f5
Don't crash when declaring methods on unknown name.
...
From-SVN: r168131
2010-12-21 20:32:36 +00:00
Ian Lance Taylor
7a8de70f01
Layout undefined type.
...
From-SVN: r168130
2010-12-21 18:59:22 +00:00
Ian Lance Taylor
093e663242
Correct lexing of exponents.
...
From-SVN: r168129
2010-12-21 18:51:45 +00:00
Ian Lance Taylor
3868d6bfa6
Report errors for temporary statements rather than crashing.
...
From-SVN: r168128
2010-12-21 18:31:48 +00:00
Joseph Myers
c8f2cf85f7
* es.po, ja.po: Update.
...
From-SVN: r168127
2010-12-21 18:28:33 +00:00
Ian Lance Taylor
3cddc98026
Don't crash when some object is redefined as a type.
...
From-SVN: r168126
2010-12-21 18:20:51 +00:00
Ian Lance Taylor
8cd15b1036
Traverse function types.
...
From-SVN: r168125
2010-12-21 18:10:13 +00:00
Ira Rosen
c9c1e77571
re PR tree-optimization/47001 (segmentation fault in vect_mark_slp_stmts)
...
PR tree-optimization/47001
* tree-vect-slp.c (vect_supported_load_permutation_p): Check
that the loads in reduction are different and there are no gaps
between them.
From-SVN: r168123
2010-12-21 15:42:11 +00:00
Nicola Pero
c07499dc75
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/16110
* init.c (__objc_send_message_in_list): Renamed to
__objc_send_load_using_method_list. Do not take an 'op' argument.
Register the 'load' selector if needed.
(__objc_send_load): Do not register the 'load' selector. Updated
call to __objc_send_message_in_list.
(__objc_create_classes_tree): Add the class of any claimed
category that was loaded in the module to the list of classes for
which we try to execute +load.
In gcc/testsuite/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/16110
* objc.dg/special/special.exp: Added new test.
* objc.dg/special/load-category-1.m: New.
* objc.dg/special/load-category-1a.m: New.
* objc.dg/special/load-category-1.h: New.
From-SVN: r168122
2010-12-21 15:34:19 +00:00
Steven Bosscher
c8613835dd
Forgotten ChangeLog entries.
...
gcc/
PR middle-end/45310
* tree-ssa-phiprop.c (propagate_with_phi): Remove statement
completely from the function, including EH traces.
testsuite/
PR middle-end/45310
* g++.dg/pr45310.C: New test.
From-SVN: r168121
2010-12-21 15:08:40 +00:00
Steven Bosscher
b1193f619b
re PR middle-end/45310 (ICE: verify_stmts failed: Dead STMT in EH table with -O1 -fnon-call-exceptions)
...
gcc/
PR middle-end/45310
* tree-ssa-phiprop.c (propagate_with_phi): Remove statement
completely from the function, including EH traces.
testsuite/
PR middle-end/45310
* g++.dg/pr45310.C: New test.
From-SVN: r168120
2010-12-21 15:02:02 +00:00
Nicola Pero
df0820da97
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/common.h: When DEBUG is defined, include <stdio.h>.
Updated comments.
* init.c (__objc_tree_insert_class): Use %p, not %x, when printing
a pointer using DEBUG_PRINTF.
From-SVN: r168119
2010-12-21 14:56:18 +00:00
Steven Bosscher
59db109afd
re PR rtl-optimization/46755 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
...
gcc/
PR rtl-optimization/46755
* ira.c (ira): If some dead edges were removed, find and delete
any blocks that might have become unreachable.
testsuite/
PR rtl-optimization/46755
* gfortran.dg/pr46755.f: New test
From-SVN: r168118
2010-12-21 14:55:41 +00:00
Jakub Jelinek
96676a5df7
re PR rtl-optimization/47008 (gfortran.dg/extends_{23}.f03 FAIL with -Os -fschedule-insns)
...
PR rtl-optimization/47008
* postreload.c (reload_combine_note_store): Also handle
PRE_MODIFY and POST_MODIFY.
* gfortran.dg/pr47008.f03: New test.
From-SVN: r168117
2010-12-21 15:51:42 +01:00
Nicola Pero
c75534d1e6
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/45953
* selector.c (__sel_register_typed_name): When registering a new
selector with the same name as an existing one, reuse the existing
name string. Also updated types, casts and comments in the whole
function.
In gcc/testsuite/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/45953
* objc.dg/libobjc-selector-1.m: New test.
From-SVN: r168115
2010-12-21 13:44:04 +00:00
Ulrich Weigand
cb227aa9ab
arm.c (require_pic_register): Set INSN_LOCATOR for all instructions injected into the prologue to...
...
* config/arm/arm.c (require_pic_register): Set INSN_LOCATOR for all
instructions injected into the prologue to prologue_locator.
From-SVN: r168114
2010-12-21 13:30:08 +00:00
Nicola Pero
600cbba24e
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
to be 'struct objc_selector *' and not 'SEL'.
* init.c (__objc_exec_class): Call
__objc_register_selectors_from_module instead of iterating over
each selector and calling __sel_register_typed_name for each.
* objc-private/selector.h: Declare
__objc_register_selectors_from_module instead of
__sel_register_typed_name.
* selector.c (__objc_register_selectors_from_module): New.
(__sel_register_typed_name): Made static.
From-SVN: r168113
2010-12-21 12:49:26 +00:00
Nicola Pero
bebf8772de
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* linking.m: Do not include objc/NXConstStr.h.
From-SVN: r168112
2010-12-21 11:58:48 +00:00
Nicola Pero
9c68c0e598
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
* objc-private/common.h (DEBUG_PRINTF): To here.
* hash.c: Do not include objc-private/runtime.h and objc/thr.h.
From-SVN: r168111
2010-12-21 11:50:14 +00:00
Nicola Pero
57d75eebe2
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
...
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* hash.c: Tidied up comments and indentation. No code changes.
From-SVN: r168110
2010-12-21 11:24:27 +00:00
Jan Hubicka
d4d92cd36c
re PR target/47000 (Failure to inline SSE intrinsics)
...
PR middle-end/47000
* tree-inline.c (estimate_operator_cost): Handle VIEW_CONVERT_EXPR.
From-SVN: r168108
2010-12-21 10:30:33 +00:00
Jie Zhang
f0433b26e7
* config/arm/arm-ldmstm.ml: Fix a typo in comment.
...
From-SVN: r168106
2010-12-21 09:18:49 +00:00
Jakub Jelinek
ef72faafed
re PR middle-end/45852 (volatile structs are broken!)
...
PR middle-end/45852
* expr.c (store_expr): Ignore alt_rtl if equal to target,
but has side-effects.
* gcc.target/i386/pr45852.c: New test.
From-SVN: r168105
2010-12-21 09:35:16 +01:00
Anatoly Sokolov
486b10aa89
sh.h (PREFERRED_RELOAD_CLASS): Remove.
...
* config/sh/sh.h (PREFERRED_RELOAD_CLASS): Remove.
* config/sh/sh-protos.h (secondary_reload_info, sh_secondary_reload):
Remove forward declaration.
* config/sh/sh.c (sh_preferred_reload_class): New function.
(sh_secondary_reload): Make static.
(TARGET_PREFERRED_RELOAD_CLASS): Define.
From-SVN: r168104
2010-12-21 11:05:57 +03:00
Ian Lance Taylor
5ae2ca96ad
Don't crash on invalid return statement.
...
From-SVN: r168102
2010-12-21 06:13:14 +00:00
GCC Administrator
bc77e3e161
Daily bump.
...
From-SVN: r168101
2010-12-21 00:17:56 +00:00
Tobias Burnus
3d4f690674
re PR fortran/46974 (ICE with TRANSFER using a C_PTR entity)
...
2010-12-20 Tobias Burnus <burnus@net-b.de>
PR fortran/46974
* gfortran.dg/c_ptr_tests_16.f90: Fix endian issue.
From-SVN: r168095
2010-12-20 22:43:58 +01:00
Joseph Myers
b5a54c037a
linux.h (OPTION_GLIBC): Define differently if SINGLE_LIBC.
...
* config/alpha/linux.h (OPTION_GLIBC): Define differently if
SINGLE_LIBC.
* config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
Define differently if SINGLE_LIBC.
* config/rs6000/linux.h (OPTION_GLIBC): Define differently if
SINGLE_LIBC.
* config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
SINGLE_LIBC.
* config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
SINGLE_LIBC instead of OPTION_GLIBC.
(*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
(bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
DEFAULT_LIBC or use linux.opt.
From-SVN: r168094
2010-12-20 20:09:24 +00:00
Richard Henderson
5385594074
mn10300: Cleanup PIC unspec generation
...
* config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Generate
UNSPEC patterns by hand, with the proper mode; use gen_const_mem.
* config/mn10300/mn10300.md (call, call_value): Generate UNSPEC_PLT
by hand, with the proper mode.
(symGOT2reg, symGOT2reg_i, symGOTOFF2reg): Remove.
(symGOTOFF2reg_i, sym2PIC, sym2PLT): Remove.
From-SVN: r168093
2010-12-20 11:11:12 -08:00
Sanjin Liu
c02a5ccbdf
arm-cores.def: Add Faraday CPU support - fa526/fa626/fa606te/fa626te/fmp626/fa726te.
...
2010-12-20 Sanjin Liu <scliu@faraday-tech.com>
Mingfeng Wu <mingfeng@faraday-tech.com>
* config/arm/arm-cores.def: Add Faraday CPU support -
fa526/fa626/fa606te/fa626te/fmp626/fa726te.
* config/arm/arm-tune.md: Regenerate.
* config/arm/arm.c (arm_fa726te_tune): New tune_params for fa726te
(fa726te_sched_adjust_cost): New cost function for fa726te.
(arm_issue_rate): Add fa726te.
* config/arm/arm.md (generic_sched): Add Faraday cores to generic_sched
and include machine description files.
* config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Add fa526 and fa626.
* config/arm/t-arm (MD_INCLUDES): Include machine description files for
Faraday cores.
* config/arm/t-arm-elf: Add multilib option for Faraday cores.
* config/arm/t-linux-eabi: Add multilib option for Faraday cores except
fa526 and fa626.
* doc/invoke.texi: Document -mcpu for Faraday cores.
* config/arm/fa526.md: New file.
* config/arm/fa606te.md: New file.
* config/arm/fa626te.md: New file.
* config/arm/fmp626.md: New file.
* config/arm/fa726te.md: New file.
Co-Authored-By: Mingfeng Wu <mingfeng@faraday-tech.com>
From-SVN: r168090
2010-12-20 17:48:51 +00:00
Ralf Wildenhues
2e902fab1f
re PR bootstrap/47027 (a-stwiun.ads:441:80: (style) this line is too long)
...
Fix PR bootstrap/47027.
gcc/ada/:
PR bootstrap/47027
* a-stwiun-shared.ads: Rewrap overlong comment line.
From-SVN: r168089
2010-12-20 17:32:06 +00:00
Yvan Roux
ee102849bd
lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction for early termination.
...
2010-12-20 Yvan Roux <yvan.roux@st.com>
* config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
condition on IT instruction for early termination.
From-SVN: r168088
2010-12-20 17:16:38 +00:00
Dave Korn
5b64bab91c
Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
...
* Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
* Makefile.in: Regenerate.
From-SVN: r168087
2010-12-20 17:03:10 +00:00
Joseph Myers
a1cd969edf
freebsd.h (SVR4_ASM_SPEC): Don't define.
...
* config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
(DBX_REGISTER_NUMBER): Define.
* config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
* config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
* config/rs6000/sysv4.h (SIZE_TYPE): Define.
(ASM_SPEC): Define without using SVR4_ASM_SPEC.
(DBX_REGISTER_NUMBER): Undefine.
* config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
From-SVN: r168085
2010-12-20 15:29:31 +00:00