OSDN Git Service

pf3gnuchains/gcc-fork.git
13 years ago * config/alpha/linux.h (OPTION_GLIBC): Define differently if
jsm28 [Mon, 20 Dec 2010 20:09:24 +0000 (20:09 +0000)]
* 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.

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

13 years agomn10300: Cleanup PIC unspec generation
rth [Mon, 20 Dec 2010 19:11:12 +0000 (19:11 +0000)]
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.

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

13 years ago2010-12-20 Sanjin Liu <scliu@faraday-tech.com>
rearnsha [Mon, 20 Dec 2010 17:48:51 +0000 (17:48 +0000)]
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.

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

13 years agoFix PR bootstrap/47027.
rwild [Mon, 20 Dec 2010 17:32:06 +0000 (17:32 +0000)]
Fix PR bootstrap/47027.

gcc/ada/:
PR bootstrap/47027
* a-stwiun-shared.ads: Rewrap overlong comment line.

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

13 years ago2010-12-20 Yvan Roux <yvan.roux@st.com>
rearnsha [Mon, 20 Dec 2010 17:16:38 +0000 (17:16 +0000)]
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.

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

13 years ago * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
davek [Mon, 20 Dec 2010 17:03:10 +0000 (17:03 +0000)]
* Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
* Makefile.in: Regenerate.

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

13 years ago * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
jsm28 [Mon, 20 Dec 2010 15:29:31 +0000 (15:29 +0000)]
* 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.

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

13 years ago PR middle-end/46916
iains [Mon, 20 Dec 2010 10:14:36 +0000 (10:14 +0000)]
PR middle-end/46916
* opts.c (finish_options): Enable -freorder-functions
when -freorder-blocks-and-partition is active.

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

13 years ago PR c++/46904
iains [Mon, 20 Dec 2010 10:01:02 +0000 (10:01 +0000)]
PR c++/46904
PR middle-end/46916
PR target/46950
* config/darwin.c (generating_for_darwin_version): New var.
(darwin_text_section): Remove.
(darwin_rodata_section): Do not check function section here.
(darwin_emit_unwind_label): Do not emit for Darwin >= 9.
Emit distinct labels for successive calls for the same decl.
(darwin_override_options): Set generating_for_darwin_version.
Add FIXME and disable -freorder-blocks-and-partition.
Suppress automatic asynchronous unwind tables for m32.
Switch off -freorder-blocks-and-partition when unwind tables
will be generated.  Update to use generating_for_darwin_version.
(darwin_function_section): Check for cases that need to be placed
in coalesced sections.
* config/darwin-sections.def: Define hot, cold, startup and exit sections
for both coalesced and regular code.
* config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete.
* config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete.

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

13 years agoFix typos in gcc/ada.
rwild [Mon, 20 Dec 2010 07:26:57 +0000 (07:26 +0000)]
Fix typos in gcc/ada.

gcc/ada/:
* projects.texi: Fix typos.
* gnat_rm.texi: Likewise.
* gnat_ugn.texi: Likewise.
* sem_util.adb: Fix typo in variable, typos in comments.
* a-btgbso.adb: Fix typos in comments.
* a-cbdlli.adb, a-cbhase.ads, a-cdlili.adb, a-cobove.adb,
a-coinve.adb, a-convec.adb, a-direct.ads, a-strunb-shared.adb,
a-strunb-shared.ads, a-stuten.ads, a-stwiun-shared.adb,
a-stwiun-shared.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
a-suenco.adb, a-suenst.adb, a-suewst.adb, a-suezst.adb, ali.ads,
aspects.ads, atree.ads, binde.adb, bindgen.adb, checks.adb,
checks.ads, einfo.ads, err_vars.ads, errout.adb, errout.ads,
exp_aggr.adb, exp_attr.adb, exp_cg.adb, exp_ch3.adb,
exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb,
exp_dbug.ads, exp_disp.adb, exp_fixd.ads, freeze.adb,
g-altive.ads, g-comlin.ads, g-excact.ads, g-mbdira.adb,
g-sechas.ads, g-sehash.ads, g-sha1.ads, g-sha224.ads,
g-sha256.ads, g-sha384.ads, g-sha512.ads, g-shsh32.ads,
g-shsh64.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
gcc-interface/decl.c, gcc-interface/trans.c,
gcc-interface/utils2.c, gnat1drv.adb, init.c, inline.adb,
link.c, locales.c, make.adb, mingw32.h, namet.ads, osint.adb,
par-ch12.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb,
par-prag.adb, par.adb, par_sco.adb, prepcomp.adb,
prj-conf.ads, prj-dect.adb, prj-env.adb, prj-env.ads,
prj-nmsc.adb, prj-tree.ads, prj-util.ads, prj.adb, prj.ads,
s-auxdec-vms-alpha.adb, s-auxdec-vms_64.ads, s-oscons-tmplt.c,
s-osinte-vxworks.ads, s-osprim-mingw.adb, s-regexp.adb,
s-stusta.adb, s-taprop-mingw.adb, s-taprop-solaris.adb,
scn.adb, scos.ads, sem.adb, sem_aggr.adb, sem_attr.adb,
sem_aux.adb, sem_aux.ads, sem_ch12.adb, sem_ch12.ads,
sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_disp.adb,
sem_disp.ads, sem_eval.adb, sem_intr.adb, sem_prag.adb,
sem_res.adb, sem_scil.adb, sem_util.ads, sem_warn.adb,
sem_warn.ads, sinfo.ads, socket.c, styleg.adb, switch.ads,
sysdep.c, tb-alvxw.c, xoscons.adb: Likewise.

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

13 years agodoc: @var fixes.
rwild [Mon, 20 Dec 2010 07:26:12 +0000 (07:26 +0000)]
doc: @var fixes.

gcc/:
* doc/cppopts.texi: Use @var when appropriate.
* doc/extend.texi (Structure-Packing Pragmas): Likewise.
* doc/gimple.texi (Logical Operators)
(Adding a new GIMPLE statement code): Likewise.
* doc/invoke.texi (Target Options, Precompiled Headers):
Likewise.
* doc/plugins.texi (Plugins): Likewise.

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

13 years agodoc: avoid leading whitespace in @smallexample install.texi.
rwild [Mon, 20 Dec 2010 07:25:51 +0000 (07:25 +0000)]
doc: avoid leading whitespace in @smallexample install.texi.

gcc/:
* doc/install.texi (Configuration, Building, Testing, Specific):
Remove leading whitespace from examples.

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

13 years agoDaily bump.
gccadmin [Mon, 20 Dec 2010 00:18:28 +0000 (00:18 +0000)]
Daily bump.

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

13 years ago * be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
jsm28 [Sun, 19 Dec 2010 20:38:43 +0000 (20:38 +0000)]
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
Update.

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

13 years ago * be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
jsm28 [Sun, 19 Dec 2010 20:34:44 +0000 (20:34 +0000)]
* be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
ja.po, nl.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po, zh_TW.po:
Update.

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

13 years agoFix -fno-lto (PR lto/46905)
ak [Sun, 19 Dec 2010 19:36:25 +0000 (19:36 +0000)]
Fix -fno-lto (PR lto/46905)

gcc/

2010-12-19  Andi Kleen <ak@linux.intel.com>

PR lto/46905
* collect2.c (main): Handle -fno-lto.
* opts.c (common_handle_option): Handle -fno-lto.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 19:10:26 +0000 (19:10 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/47012
* accessors.m (objc_getProperty): If not atomic, do not
retain/autorelease the returned value. (Problem reported by

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

13 years ago2010-12-19 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 19 Dec 2010 19:01:38 +0000 (19:01 +0000)]
2010-12-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46520
        * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
        * configure: Regenerate

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

13 years agoFix long lines
ebotcazou [Sun, 19 Dec 2010 18:18:45 +0000 (18:18 +0000)]
Fix long lines

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 18:13:28 +0000 (18:13 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-private/runtime.h (__objc_selector_max_index,
__objc_init_selector_tables, __objc_register_selectors_from_class,
__objc_register_selectors_from_list,
__objc_register_selectors_from_description_list): Moved to ...
* objc-private/selector.h: ... here.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 18:01:47 +0000 (18:01 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-private/runtime.h (__objc_class_links_resolved): Removed.
(__objc_print_dtable_stats): Removed.
(__sel_register_typed_name): Removed.
* sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 17:30:30 +0000 (17:30 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c (__objc_exec_class): Call __objc_resolve_class_links (),
if appropriate, after loading the module.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 16:20:30 +0000 (16:20 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* sendmsg.c (method_setImplementation): Do not declare.

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

13 years ago2010-12-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
paolo [Sun, 19 Dec 2010 16:20:25 +0000 (16:20 +0000)]
2010-12-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

PR libstdc++/46869
* testsuite/20_util/enable_shared_from_this/cons/constexpr.cc:
Compile with -g0.
* testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
* testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 16:04:55 +0000 (16:04 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/message.h: Updated comments.
* objc/runtime.h: Updated comments.

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

13 years ago2010-12-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 19 Dec 2010 15:53:44 +0000 (15:53 +0000)]
2010-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/basic_string.h (operator+(basic_string<>&&,
basic_string<>&&)): Optimize better.
* include/ext/vstring.h (operator+(__versa_string<>&&,
__versa_string<>&)): Likewise.

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

13 years ago PR testsuite/45342
danglin [Sun, 19 Dec 2010 15:51:22 +0000 (15:51 +0000)]
PR testsuite/45342
* gcc.dg/tls/thr-cse-1.c: Fix match on hppa*-*-hpux*.

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

13 years agoIn gcc/testsuite/:
nicola [Sun, 19 Dec 2010 15:13:54 +0000 (15:13 +0000)]
In gcc/testsuite/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-objc.m: Fixed test to test objc_lookUpClass,
not objc_lookupClass.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.

In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* class.c (objc_lookupClass): Renamed to objc_lookUpClass.
* protocols.c: Updated all calls to objc_lookupClass to call
objc_lookUpClass instead.
* sendmsg.c (objc_lookupClass): Do not declare.
(get_imp): Update call to objc_lookupClass to call
objc_lookUpClass instead.
* objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 14:56:14 +0000 (14:56 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/runtime.h (class_ivar_set_gcinvisible): Declare.
* sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
define.  Updated comments.

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

13 years ago * sv.po: Update.
jsm28 [Sun, 19 Dec 2010 14:10:17 +0000 (14:10 +0000)]
* sv.po: Update.

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

13 years ago * ja.po: Update.
jsm28 [Sun, 19 Dec 2010 14:09:07 +0000 (14:09 +0000)]
* ja.po: Update.

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

13 years ago * ja.po: Update.
jsm28 [Sun, 19 Dec 2010 14:08:10 +0000 (14:08 +0000)]
* ja.po: Update.

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

13 years agoIn gcc/testsuite/:
nicola [Sun, 19 Dec 2010 14:00:10 +0000 (14:00 +0000)]
In gcc/testsuite/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-objc_msg_lookup.m: New.
* obj-c++.dg/gnu-api-2-objc_msg_lookup.mm: New.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 13:40:16 +0000 (13:40 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/encoding.h: Updated comments.
* objc/runtime.h: Updated comments.
(objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
(objc_sizeof_type): Same.
(objc_alignof_type): Same.
(objc_aligned_size): Same.
(objc_promoted_size): Same.
(objc_skip_type_qualifiers): Same.
(objc_skip_typespec): Same.
(objc_skip_offset): Same.
(objc_skip_argspec): Same.
(objc_get_type_qualifiers): Same.
(objc_layout_structure): Same.
(objc_layout_structure_next_member): Same.
(objc_layout_finish_structure): Same.
(objc_layout_structure_get_info): Same.

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

13 years ago PR target/46729
ebotcazou [Sun, 19 Dec 2010 12:19:12 +0000 (12:19 +0000)]
PR target/46729
* config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
(PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
* config/sparc/sparc.c (pic_helper_needed): Delete.
(global_offset_table): Likewise.
(pic_helper_symbol): Rename to...
(got_helper_rtx): ...this.
(global_offset_table_rtx): New global variable.
(sparc_got_symbol): Likewise.
(sparc_got): New static function.
(check_pic): Use local variable and call sparc_got.
(sparc_tls_symbol): Initialize to NULL_RTX.
(sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
and 32-bit ABI and copy the GOT symbol to a new register otherwise.
(get_pc_thunk_name): Rename local variable.
(gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
(load_pic_register): Rename to...
(load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
(sparc_expand_prologue): Do not test flag_pic.
(sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
(sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
Rename local variable and do not call get_pc_thunk_name again.
* config/sparc/sparc.md (load_pcrel_sym): Add operand #3.

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

13 years ago2010-12-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 19 Dec 2010 12:15:47 +0000 (12:15 +0000)]
2010-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/21_strings/basic_string/operators/char/4.cc: New.
* testsuite/21_strings/basic_string/operators/wchar_t/4.cc: Likewise.
* testsuite/ext/vstring/operators/2.cc: Likewise.

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

13 years ago PR middle-end/46674
davek [Sun, 19 Dec 2010 11:14:19 +0000 (11:14 +0000)]
PR middle-end/46674
PR middle-end/46221
* varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
wrapper class.
(symbol_alias_set_create): New wrapper function.
(symbol_alias_set_destroy): Likewise.
(symbol_alias_set_contains): Likewise.
(symbol_alias_set_insert): Likewise.
(compute_visible_aliases): Use the above and return symbol_alias_set_t,
not a pointer_set.
(remove_unreachable_alias_pairs): Adjust likewise to match.
(finish_aliases_1): Likewise.

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

13 years ago2010-11-18 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Sun, 19 Dec 2010 09:21:16 +0000 (09:21 +0000)]
2010-11-18  Benjamin Kosnik  <bkoz@redhat.com>

* config/*/*: Use headername alias to associate private includes
to public includes.
* include/*/*: Same.

* scripts/run_doxygen: Update for doxygen 1.7.2.
* doc/doxygen/user.cfg.in: Same.
* doc/doxygen/TODO: Remove.

* testsuite/*/std_c++0x_neg.cc: Adjust line number.

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

13 years ago2010-12-19 Chung-Lin Tang <cltang@codesourcery.com>
cltang [Sun, 19 Dec 2010 09:04:41 +0000 (09:04 +0000)]
2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>

gcc/
* config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
index range case. Change to SF/DFmode tests to avoid capturing HFmode.
(thumb2_legitimate_index_p): Same.

gcc/testsuite/
* gcc.target/arm/vfp-1.c (test_ldst): New test for VFP
load/store immediate indexes.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 02:12:42 +0000 (02:12 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c: Updated comments.
* objc/objc-api.h: Updated comments.
* objc/runtime.h (_objc_load_callback): Declare.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 01:43:02 +0000 (01:43 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/Object.h: Include deprecated/typedstream.h and
deprecated/hash.h instead of typedstream.h.  Updated comments.

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

13 years agoIn gcc/testsuite/:
nicola [Sun, 19 Dec 2010 01:29:09 +0000 (01:29 +0000)]
In gcc/testsuite/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-resolve-method.m: Include objc/message.h.
* obj-c++.dg/gnu-api-2-resolve-method.m: Include objc/message.h.

In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
* objc/deprecated/objc_msg_sendv.h: New.
* objc/message.h: Do not define retval_t, apply_t, arglist,
arglist_t, objc_msg_sendv, now in
objc/deprecated/objc_msg_sendv.h.
* objc/objc.h: Do not include message.h; include
objc/deprecated/objc_msg_sendv.h instead.  Tidied up comments.
* sendmsg.c: Include objc/message.h.
* thr.c: Include objc/message.h.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 01:01:48 +0000 (01:01 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/objc-exception.h: Include objc-decls.h.  Mark all
functions with objc_EXPORT.
* objc/objc-sync.h: Same change.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 00:54:27 +0000 (00:54 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* Protocol.m: Moved all methods, with the exception of -isEqual:,
into the 'Deprecated' category.
* objc/Protocol.h: Removed all methods, moved to
objc/deprecated/Protocol.h.  Include objc/deprecated/Protocol.h.
* objc/deprecated/Protocol.h: New.
* Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.

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

13 years agoIn libobjc/:
nicola [Sun, 19 Dec 2010 00:28:52 +0000 (00:28 +0000)]
In libobjc/:
2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c: Include objc-private/selector.h.  Do not declare
__sel_register_typed_name.
* objc-private/selector.h (__sel_register_typed_name): Declare.
* selector.c: Include objc-private/selector.h.

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

13 years agoDaily bump.
gccadmin [Sun, 19 Dec 2010 00:18:38 +0000 (00:18 +0000)]
Daily bump.

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

13 years ago PR tree-optimization/46969
jakub [Sat, 18 Dec 2010 21:07:12 +0000 (21:07 +0000)]
PR tree-optimization/46969
* tree-parloops.c (struct reduction_info): Add reduc_version.
(reduction_info_hash): Return reduc_version field.
(reduction_phi): Set reduc_version to gimple_uid (phi).
(build_new_reduction): Set reduc_version to SSA_NAME_VERSION of
phi result.
(set_reduc_phi_uids): New function.
(gather_scalar_reductions): Call it at the end through htab_traverse.

* gcc.dg/autopar/pr46969.c: New test.

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

13 years agoIn gcc/:
nicola [Sat, 18 Dec 2010 20:28:07 +0000 (20:28 +0000)]
In gcc/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* c-parser.c (c_parser_objc_try_catch_finally_statement): Call
objc_maybe_warn_exceptions.
(c_parser_objc_synchronized_statement): Call
objc_maybe_warn_exceptions.

In gcc/cp/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* parser.c (cp_parser_objc_try_catch_finally_statement): Call
objc_maybe_warn_exceptions.
(cp_parser_objc_synchronized_statement): Same change.

In gcc/c-family/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* c-objc.h (objc_maybe_warn_exceptions): New.
* stub-objc.c (objc_maybe_warn_exceptions): New.

In gcc/objc/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-act.c (objc_init): Call using_eh_for_cleanups.
(objc_init_exceptions): Renamed to objc_maybe_warn_exceptions.  Do
not call using_eh_for_cleanups.
(objc_begin_try_stmt): Do not call objc_init_exceptions.
(objc_build_throw_stmt): Updated call to
objc_maybe_warn_exceptions.

In gcc/testsuite/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/fobjc-exceptions-1.m: Updated.
* objc.dg/fobjc-exceptions-2.m: New.
* objc.dg/fobjc-exceptions-3.m: New.
* obj-c++.dg/fobjc-exceptions-1.mm: New.
* obj-c++.dg/fobjc-exceptions-2.mm: New.
* obj-c++.dg/fobjc-exceptions-3.mm: New.

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

13 years ago2010-12-18 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 18 Dec 2010 20:18:43 +0000 (20:18 +0000)]
2010-12-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46974
        * target-memory.c (gfc_interpret_derived): Handle
        * C_PTR/C_FUNPTR.
        * trans-expr.c (gfc_trans_structure_assign): Ditto.
        (gfc_conv_expr): Avoid crashes using non-C_NULL_(FUN)PTR const expr.

2010-12-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46974
        * gfortran.dg/c_ptr_tests_16.f90: New.

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

13 years ago * gcc.pot: Regenerate.
jsm28 [Sat, 18 Dec 2010 20:03:52 +0000 (20:03 +0000)]
* gcc.pot: Regenerate.

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

13 years ago * pt.c (most_specialized_class): Use ngettext to determine
jsm28 [Sat, 18 Dec 2010 19:58:57 +0000 (19:58 +0000)]
* pt.c (most_specialized_class): Use ngettext to determine
"candidates are:" / "candidate is" message.

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

13 years ago PR tree-optimization/46985
jakub [Sat, 18 Dec 2010 18:15:10 +0000 (18:15 +0000)]
PR tree-optimization/46985
* tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
return it immediately.

* gfortran.dg/pr46985.f90: New test.

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

13 years ago PR target/46915
danglin [Sat, 18 Dec 2010 17:10:34 +0000 (17:10 +0000)]
PR target/46915
* config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
of next_real_insn.  Search forward checking for both ASM_INPUT and
ASM_OPERANDS asms until exit condition is found.
(branch_needs_nop_p): Likewise.
(use_skip_p): New function.
(output_cbranch): Use use_skip_p.
(output_bb, output_bvb): Likewise.

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

13 years ago * cpplib.pot: Regenerate.
jsm28 [Sat, 18 Dec 2010 16:21:56 +0000 (16:21 +0000)]
* cpplib.pot: Regenerate.

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

13 years ago * ja.po: Update.
jsm28 [Sat, 18 Dec 2010 16:02:34 +0000 (16:02 +0000)]
* ja.po: Update.

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

13 years ago PR tree-optimization/46232
ebotcazou [Sat, 18 Dec 2010 12:52:41 +0000 (12:52 +0000)]
PR tree-optimization/46232
* gcc.dg/tree-ssa/pr14814.c: Add -fno-tree-sra.

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

13 years agoIn libobjc/:
nicola [Sat, 18 Dec 2010 12:22:59 +0000 (12:22 +0000)]
In libobjc/:
2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>

* class.c: Tidied up comments and indentation.  No code changes.
* error.c: Same.
* exception.c: Same.
* init.c: Same.
* ivars.c: Same.
* memory.c: Same.
* objc-foreach.c: Same.
* objc-sync.c: Same.
* objects.c: Same.
* protocols.c: Same.
* sarray.c: Same.
* thr.c: Same.

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

13 years ago2010-12-18 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 18 Dec 2010 11:55:02 +0000 (11:55 +0000)]
2010-12-18  Tobias Burnus  <burnus@net-b.de>

        * update_web_docs_svn (MANUALS): Add libquadmath.

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

13 years agogcc/objc:
iains [Sat, 18 Dec 2010 11:28:46 +0000 (11:28 +0000)]
gcc/objc:

* objc/objc-act.c (objc_eh_personality): Select personality name on
runtime.
(objc_init_exceptions): New.
(objc_begin_try_stmt): Use objc_init_exceptions.
(objc_build_throw_stmt): Likewise.

gcc/testsuite:

* fobjc-exceptions.m: Update dg-error syntax.

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

13 years ago2010-12-18 Kai Tietz <kai.tietz@onevision.com>
ktietz [Sat, 18 Dec 2010 10:16:13 +0000 (10:16 +0000)]
2010-12-18  Kai Tietz  <kai.tietz@onevision.com>

PR target/36834
* config/i386/i386.c (ix86_keep_aggregate_return_pointer):
New local function.
(ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer
function instead of KEEP_AGGREGATE_RETURN_POINTER.
(ix86_handle_callee_pop_aggregate_return): New handler.
(ix86_attribute_table): Add new attribute
callee_pop_aggregate_return.
* doc/extend.texi (callee_pop_aggregate_return): Add
attribute documentation.

2010-12-18  Kai Tietz  <kai.tietz@onevision.com>

PR target/36834
* gcc.target/i386/aggregate-ret1.c: New.
* gcc.target/i386/aggregate-ret2.c: New.

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

13 years agogcc:
iains [Sat, 18 Dec 2010 09:16:09 +0000 (09:16 +0000)]
gcc:

* config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
Only set sjlj exceptions for NeXT/m32.

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

13 years agogcc:
iains [Sat, 18 Dec 2010 09:14:05 +0000 (09:14 +0000)]
gcc:

* config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION):
Only expose when not building for target.

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

13 years agolibffi:
iains [Sat, 18 Dec 2010 08:56:46 +0000 (08:56 +0000)]
libffi:
PR libffi/29152
PR libffi/42378
* src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
update comments.
* src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
(FFI_TRAMPOLINE_SIZE): Update for Darwin64.
* src/powerpc/darwin.S: Provide Darwin64 implementation,
update comments.
* src/powerpc/ffi_darwin.c: Likewise.

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

13 years agoadd new test missed from r167682
iains [Sat, 18 Dec 2010 08:48:06 +0000 (08:48 +0000)]
add new test missed from r167682

testsuite:

* gcc.target/powerpc/darwin-split-ld-stret.c: New test.

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

13 years agoDon't crash on recursive variables and typed consts.
ian [Sat, 18 Dec 2010 03:03:16 +0000 (03:03 +0000)]
Don't crash on recursive variables and typed consts.

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

13 years ago2010-12-17 Ahmad Sharif <asharif@google.com>
asharif [Sat, 18 Dec 2010 02:43:54 +0000 (02:43 +0000)]
2010-12-17  Ahmad Sharif  <asharif@google.com>

* gcc.target/i386/max-stack-align.c: New testcase.

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

13 years ago * config/netbsd.opt, config/netbsd-elf.opt: New files.
jsm28 [Sat, 18 Dec 2010 01:30:13 +0000 (01:30 +0000)]
* config/netbsd.opt, config/netbsd-elf.opt: New files.
* config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*,
i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*,
m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*,
sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*,
vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files.

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

13 years agoDaily bump.
gccadmin [Sat, 18 Dec 2010 00:18:26 +0000 (00:18 +0000)]
Daily bump.

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

13 years agoIn gcc/testsuite/:
nicola [Fri, 17 Dec 2010 23:17:46 +0000 (23:17 +0000)]
In gcc/testsuite/:
2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/exceptions-4.m: Adjust for change in error message.

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

13 years agoContinue searching in find_oldest_value_reg on class match failure.
rth [Fri, 17 Dec 2010 22:51:25 +0000 (22:51 +0000)]
Continue searching in find_oldest_value_reg on class match failure.

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

13 years ago2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
nicola [Fri, 17 Dec 2010 22:12:34 +0000 (22:12 +0000)]
2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c: Include objc/runtime.h and objc-private/module-abi-8.h
instead of objc/objc-api.h.
(init_check_module_version): Take a 'struct objc_module *'
argument instead of 'Module_t'.  Use 'struct objc_module *'
instead of 'Module_t'.
(__objc_created_classes_tree): Take a 'struct objc_module *'
argument instead of 'Module_t'; use 'struct objc_symtab *' instead
of 'Symtab_t'.
(__objc_call_callback): Take a 'struct objc_module *' argument
instead of 'Module_t'; use 'struct objc_symtab *' instead of
'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
(_objc_load_callback): Take a 'struct objc_category *' argument
instead of 'Category *'.
(class_superclass_of_class): Use objc_getClass() instead of
objc_lookup_class().
(create_tree_of_subclasses_inherited_from): Same change (also, use
an explicit 'if' instead of '?').
(objc_init_statics): Same change.
(objc_send_load): Same change.
(__objc_init_protocol): same change.
(__objc_send_message_in_list): Take a 'struct objc_method_list *'
argument instead of 'MethodList_t'.  Use 'struct objc_method *'
instead of 'Method_t'.
(__objc_send_load): Use 'struct objc_method_list *' instead of
'MethodList_t'.  Use sel_registerName() instead of
sel_register_name().
(__objc_exec_class): Take a 'struct objc_module *' argument
instead of 'Module_t'.  Use 'struct objc_symtab *' instead of
'Symtab_t'.  Use objc_getClass() instead of objc_lookup_class().
Use 'struct objc_category *' instead of 'Category_t'.

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

13 years agogcc:
bonzini [Fri, 17 Dec 2010 21:23:36 +0000 (21:23 +0000)]
gcc:
2010-12-17  Paolo Bonzini  <bonzini@gnu.org>

PR c/20385
* function.c (used_types_insert): Handle ERROR_MARK.
* c-decl.c (grokdeclarator): Handle ERROR_MARK.
(declspecs_add_type): Leave error_mark_node in specs->type.
(finish_declspecs): Change it to integer_type_node here.
* c-parser.c (c_parser_peek_2nd_token): Move earlier.
(enum c_lookahead_kind): New.
(c_parser_next_token_starts_typename): New name of
c_parser_next_tokens_start_typename.  Accept lookahead enum
and handle it here instead of...
(c_parser_next_tokens_start_declaration): ... here.  Call it.
(c_parser_declspecs): Accept another argument.  Do not exit
on C_ID_ID if it is guessed to be an unknown typename.
(c_parser_parms_declarator): Use 2nd token to distinguish a K&R
declaration from an ANSI declaration starting with an unknown
typename.
(c_parser_struct_declaration, c_parser_objc_type_name,
c_parser_typeof_specifier, c_parser_declarator,
c_parser_direct_declarator_inner): Adjust calls.
(c_parser_parameter_declaration): Likewise.
(c_parser_type_name): Pass back an error_mark_node to the caller.
(c_parser_postfix_expression): Do error recovery when
c_parser_type_name returns NULL.

testsuite:
2010-12-17  Paolo Bonzini  <bonzini@gnu.org>

PR c/20385
* objc.dg/tls/init-2.m: Adjust.
* gcc.dg/noncompile/920923-1.c: Adjust.
* gcc.dg/noncompile/pr44517.c: Adjust.
* gcc.dg/declspec-18.c: New test.

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

13 years ago * config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
jsm28 [Fri, 17 Dec 2010 21:17:17 +0000 (21:17 +0000)]
* config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
Define.
* config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
* config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
Define.
* config.gcc (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,
i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
i[34567]86-*-solaris2*,
i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.

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

13 years agoReplace "BB [%i]" with "[bb %i]" in vzeroupper RTL dump.
hjl [Fri, 17 Dec 2010 19:11:52 +0000 (19:11 +0000)]
Replace "BB [%i]" with "[bb %i]" in vzeroupper RTL dump.

2010-12-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
"BB [%i]" with "[bb %i]" in dump.
(move_or_delete_vzeroupper_1): Likewise.
(rescan_move_or_delete_vzeroupper): Likewise.  Always dump
upper 128bit state at exit.

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

13 years ago * gcc.dg/titype-1.c: Enable TImode on __SPU__.
uweigand [Fri, 17 Dec 2010 18:49:42 +0000 (18:49 +0000)]
* gcc.dg/titype-1.c: Enable TImode on __SPU__.
* gcc.dg/torture/fp-int-convert.h: Likewise.
* gcc.dg/tree-ssa/ivopts-1.c: Likewise.
* gcc.dg/uninit-C.c: Likewise.
* gcc.dg/uninit-C-O0.c: Likewise.
* gcc.dg/format/unnamed-1.c: Likewise.
* gcc.dg/format/ms_unnamed-1.c: Likewise.

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

13 years ago2010-12-17 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 17 Dec 2010 18:32:27 +0000 (18:32 +0000)]
2010-12-17  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/basic_string.h (operator+(basic_string<>&&,
const basic_string<>&), operator+(const basic_string<>&,
basic_string<>&&), operator+(basic_string<>&&, basic_string<>&&),
operator+(const _CharT*, basic_string<>&&), operator+(_CharT,
basic_string<>&&), operator+(basic_string<>&&, const _CharT*),
operator+(basic_string<>&&, _CharT)): Add.
* testsuite/21_strings/basic_string/operators/char/3.cc: New.
* testsuite/21_strings/basic_string/operators/wchar_t/3.cc: Likewise.

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

13 years ago PR c++/46670
jason [Fri, 17 Dec 2010 17:47:27 +0000 (17:47 +0000)]
PR c++/46670
* pt.c (value_dependent_expression_p) [ARRAY_REF]: Handle
properly.

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

13 years ago * config/interix.opt: New.
jsm28 [Fri, 17 Dec 2010 16:45:18 +0000 (16:45 +0000)]
* config/interix.opt: New.
* config/interix.h (LINK_SPEC): Don't handle -soname*.
* config.gcc (i[34567]86-*-interix3*): Use interix.opt.

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

13 years ago2010-12-17 Andrew Stubbs <ams@codesourcery.com>
ams [Fri, 17 Dec 2010 16:30:37 +0000 (16:30 +0000)]
2010-12-17  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
operand order for plus.
Drop redundant % from constraints.

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

13 years ago * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
uweigand [Fri, 17 Dec 2010 14:10:02 +0000 (14:10 +0000)]
* config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
_floatunstisf.
* config/spu/spu.md ("floattisf2"): New expander.
("floatunstisf2"): New insn pattern and splitter.
("cgt_ti_m1"): New insn pattern.

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

13 years ago * ja.po: Update.
jsm28 [Fri, 17 Dec 2010 14:01:47 +0000 (14:01 +0000)]
* ja.po: Update.

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

13 years ago * ja.po: Update.
jsm28 [Fri, 17 Dec 2010 14:00:25 +0000 (14:00 +0000)]
* ja.po: Update.

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

13 years agogcc/
bernds [Fri, 17 Dec 2010 13:48:40 +0000 (13:48 +0000)]
gcc/
* config/arm/arm.c (arm_select_cc_mode): Before calling
arm_select_dominance_cc_mode for AND or IOR operations, ensure
that op is NE or EQ.

gcc/testsuite/
* gcc.c-torture/compile/20101217-1.c: New test.

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

13 years ago PR middle-end/46761
amonakov [Fri, 17 Dec 2010 12:54:59 +0000 (12:54 +0000)]
PR middle-end/46761
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
to use unadjusted UB.

testsuite:
* gcc.dg/graphite/pr46761.c: New.

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

13 years ago2010-12-17 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 17 Dec 2010 12:31:54 +0000 (12:31 +0000)]
2010-12-17  Janus Weil  <janus@gcc.gnu.org>
    Tobias Burnus <burnus@gcc.gnu.org>

PR fortran/46849
* resolve.c (resolve_symbol): Remove symbols that wrongly ended up
in a local BLOCK namespace.

2010-12-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46849
* gfortran.dg/block_9.f08: New.

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

13 years ago2010-12-17 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 17 Dec 2010 11:51:16 +0000 (11:51 +0000)]
2010-12-17  Paolo Carlini  <paolo.carlini@oracle.com>

* aclocal.m4: Regenerate.
* Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* include/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* doc/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* python/Makefile.in: Likewise.

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

13 years agoFix for PR debug/45088
dodji [Fri, 17 Dec 2010 10:39:21 +0000 (10:39 +0000)]
Fix for PR debug/45088

gcc/

* dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
that underlying type instead.

gcc/testsuite/

* g++.dg/debug/dwarf2/self-ref-1.C: New test.
* g++.dg/debug/dwarf2/self-ref-2.C: Likewise.

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

13 years agoRework locking code to split stack much less.
ian [Fri, 17 Dec 2010 06:42:06 +0000 (06:42 +0000)]
Rework locking code to split stack much less.

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

13 years agoUpdate to current master source.
ian [Fri, 17 Dec 2010 06:37:06 +0000 (06:37 +0000)]
Update to current master source.

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

13 years agoDon't split stack in bytes.IndexByte.
ian [Fri, 17 Dec 2010 06:36:10 +0000 (06:36 +0000)]
Don't split stack in bytes.IndexByte.

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

13 years agoAvoid always splitting the stack when calling append and copy.
ian [Fri, 17 Dec 2010 06:33:41 +0000 (06:33 +0000)]
Avoid always splitting the stack when calling append and copy.

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

13 years agoDaily bump.
gccadmin [Fri, 17 Dec 2010 00:18:28 +0000 (00:18 +0000)]
Daily bump.

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

13 years ago PR middle-end/44563
hubicka [Fri, 17 Dec 2010 00:08:02 +0000 (00:08 +0000)]
PR middle-end/44563
* ipa-inline.c: Update doplevel comment.
(cgraph_estimate_size_after_inlining): Remove times attribute.
(cgraph_mark_inline_edge): Update.
(cgraph_mark_inline): Remove.
(cgraph_estimate_growth): Update.
(cgraph_check_inline_limits): Remove one only argument.
(cgraph_edge_badness): Update.
(cgraph_decide_recursive_inlining): Update.
(cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p
and call_stmt_cannot_inline_p.
(cgraph_flatten): Likewise.
(cgraph_decide_inlining): Update.
(cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p.

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

13 years ago * config/darwin.opt (dylinker, headerpad_max_install_names,
jsm28 [Thu, 16 Dec 2010 23:37:23 +0000 (23:37 +0000)]
* config/darwin.opt (dylinker, headerpad_max_install_names,
keep_private_externs, nofixprebinding, nomultidefs, noprebind,
noseglinkedit, object, prebind, prebind_all_twolevel_modules,
preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
Driver options.
* config/darwin.h (LINK_SPEC): Remove '*' after
headerpad_max_install_names.

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

13 years agoFix PR46924: Do not detect reductions outside the current SESE region.
spop [Thu, 16 Dec 2010 22:54:17 +0000 (22:54 +0000)]
Fix PR46924: Do not detect reductions outside the current SESE region.

2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/46924
* graphite-sese-to-poly.c (detect_commutative_reduction): Do not
detect reductions outside the current SESE region.
* sese.h (stmt_in_sese_p): New.
(defined_in_sese_p): Call stmt_in_sese_p.

* gcc.dg/graphite/pr46924.c: New.

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

13 years agoIn libobjc/:
nicola [Thu, 16 Dec 2010 22:52:48 +0000 (22:52 +0000)]
In libobjc/:
2010-12-16  Nicola Pero  <nicola.pero@meta-innovation.com>

* sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
Include objc-private/module-abi-8.h and objc-private/selector.h
instead of objc/encoding.h.
(objc_msg_lookup_super): Use super->super_class instead of
super->class.
(method_get_first_argument, method_get_next_argument): Declare
locally.
(class_get_instance_method): Declare before using.
(objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
(__objc_init_dispatch_tables, __objc_send_initialize): Use
sel_registerName() instead of sel_register_name().
(__objc_forward): Use sel_getName() instead of sel_get_name().
(objc_get_uninstalled_dtable): Use 'void' as argument.
* objc-private/selector.h: New.

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

13 years ago PR tree-optimization/46966
jakub [Thu, 16 Dec 2010 22:45:42 +0000 (22:45 +0000)]
PR tree-optimization/46966
* graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
for bbs that are removed from SCOP_BBS vector.

* gcc.dg/graphite/pr46966.c: New test.

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

13 years ago * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
ebotcazou [Thu, 16 Dec 2010 22:35:35 +0000 (22:35 +0000)]
* tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
get_ref_base_and_extent returns -1 as the max size.

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

13 years ago Support for LEON processor
ebotcazou [Thu, 16 Dec 2010 22:28:45 +0000 (22:28 +0000)]
Support for LEON processor
* config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
(sparc-*-linux*): Likewise.
(sparc-*-rtems*): Remove Solaris left-overs.
(sparc*-*-*): Remove obsolete sparc86x setting.
(sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
* doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
* config/sparc/sparc.h (TARGET_CPU_leon): Define.
(TARGET_CPU_sparc86x): Delete.
(TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
(TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
(TARGET_CPU_f934): Likewise.
(TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
(CPP_CPU_SPEC): Add entry for -mcpu=leon.
(enum processor_type): Add PROCESSOR_LEON.  Reorganize.
* config/sparc/sparc.c (leon_costs): New cost array.
(sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
Initialize cost array to leon_costs if -mtune=leon.
* config/sparc/sparc.md (cpu attribute): Add leon.  Reorganize.
Include leon.md scheduling description.
* config/sparc/leon.md: New file.
* config/sparc/t-elf: Do not assemble Solaris startup files.
* config/sparc/t-leon: New file.
* config/sparc/t-leon3: Likewise.

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

13 years ago2010-11-16 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 16 Dec 2010 22:02:38 +0000 (22:02 +0000)]
2010-11-16  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/testsuite_iterators.h: Guard move.h includes.
* testsuite/util/testsuite_allocator.h: Same.

* testsuite/20_util/temporary_buffer.cc: Use typedef, qualify.

* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Define
PB_DS_REGRESSION in the source file.
* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.

* testsuite/21_strings/c_strings/wchar_t/3_neg.cc: Move to this.
Use _neg suffix.
* testsuite/21_strings/c_strings/wchar_t/3.cc: ...from this.
* testsuite/21_strings/c_strings/char/3_neg.cc: Same.
* testsuite/21_strings/c_strings/char/3.cc: Same.
* testsuite/ext/slist/23781_neg.cc: Same.
* testsuite/ext/slist/23781.cc: Same.
* testsuite/ext/profile/mutex_extensions.cc: Same.
* testsuite/ext/profile/mutex_extensions_neg.cc: Same.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820.cc: Same.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
* testsuite/tr1/6_containers/tuple/comparison_operators/35480_neg.cc:
Same.
* testsuite/tr1/6_containers/tuple/comparison_operators/35480.cc: Same.
* testsuite/23_containers/multimap/23781_neg.cc: Same.
* testsuite/23_containers/multimap/23781.cc: Same.
* testsuite/23_containers/set/23781_neg.cc: Same.
* testsuite/23_containers/set/23781.cc: Same.
* testsuite/23_containers/multiset/23781_neg.cc: Same.
* testsuite/23_containers/multiset/23781.cc: Same.
* testsuite/23_containers/list/23781_neg.cc: Same.
* testsuite/23_containers/list/23781.cc: Same.
* testsuite/23_containers/map/23781_neg.cc: Same.
* testsuite/23_containers/map/23781.cc: Same.
* testsuite/20_util/duration/cons/dr974_neg.cc: Same.
* testsuite/20_util/duration/cons/dr974.cc: Same.
* testsuite/20_util/tuple/comparison_operators/35480_neg.cc: Same.
* testsuite/20_util/tuple/comparison_operators/35480.cc: Same.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Same.
* testsuite/20_util/shared_ptr/cons/43820.cc: Same.
* testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc:
Same.
* testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc: Same.

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