Re: [fortran, patch] Follow-up widechar error patch

2012-03-19 Thread Tobias Burnus
FX wrote: This patch fixes PR 52559 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52559), which was due to my earlier patch for displaying error loci in lines containing wide characters (http://gcc.gnu.org/ml/fortran/2012-03/msg00015.html). In preexisting code, a tab is displayed as a single

Re: [patch] Fix non-standard Ada bootstrap failure on IA-64

2012-03-19 Thread Eric Botcazou
It could be the case that an alternate, legitimate representation of the same expression is used elsewhere, and at the point that goes into cselib, the previously debug-only entry should become a regular entry in the cselib table. Is this what you observe? Sure, that's what I've been saying

[SH] PR 50751 - Add QImode displacement addressing

2012-03-19 Thread Oleg Endo
Hi, This is an updated version of the QImode displacement addressing patch from the PR that applies to rev 185405. Tested on sh-sim with no new failures. The issue as a whole requires some more work and I'd like to split it in smaller incremental changes and separate patches. Cheers, Oleg

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Eric Botcazou
currently sizetype precision (cf store-layout.c:initialize_sizetypes) is the same as size_t. This is an issue on VMS, where size_t is 'unsigned int', but we'd like to have a 64 bit sizetype for Ada. My understanding is that ISO-C doesn't require size_t precision to match the one of void *.

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Eric Botcazou
The middle-end of course would not care much what you use for sizetype. But be warned - if the mode for sizetype is different of ptr_mode things are going to be interesting for you (yes, ptr_mode, not Pmode). That worked well up to GCC 4.6 though, at least in Ada. Of course using the same

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Tristan Gingold
On Mar 19, 2012, at 9:46 AM, Eric Botcazou wrote: The middle-end of course would not care much what you use for sizetype. But be warned - if the mode for sizetype is different of ptr_mode things are going to be interesting for you (yes, ptr_mode, not Pmode). That worked well up to GCC 4.6

Re: [SH] PR 50751 - Add QImode displacement addressing

2012-03-19 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de wrote: This is an updated version of the QImode displacement addressing patch from the PR that applies to rev 185405. Tested on sh-sim with no new failures. The issue as a whole requires some more work and I'd like to split it in smaller incremental changes

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Eric Botcazou
I am lost here. Which targets (with ptr_mode size != Pmode size != sizetype size) are you referring to ? Targets for which sizetype mode isn't necessarily equal to ptr_mode like VMS. Up to GCC 4.6, sizetype was Pmode in Ada, but ptr_mode in C. -- Eric Botcazou

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Richard Guenther
On Mon, 19 Mar 2012, Eric Botcazou wrote: I am lost here. Which targets (with ptr_mode size != Pmode size != sizetype size) are you referring to ? Targets for which sizetype mode isn't necessarily equal to ptr_mode like VMS. Up to GCC 4.6, sizetype was Pmode in Ada, but ptr_mode in C.

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Tristan Gingold
On Mar 19, 2012, at 10:41 AM, Eric Botcazou wrote: I am lost here. Which targets (with ptr_mode size != Pmode size != sizetype size) are you referring to ? Targets for which sizetype mode isn't necessarily equal to ptr_mode like VMS. VMS was (in gcc 4.8) configured with POINTER_SIZE =

Re: [PATCH] Fix PRs 52080, 52097 and 48124, rewrite bitfield expansion, enable the C++ memory model wrt bitfields everywhere

2012-03-19 Thread Eric Botcazou
But it's only ever computed for RECORD_TYPEs where DECL_QUALIFIER is unused. OK, that could work indeed. For now giving up seems to be easiest (just give up when DECL_FIELD_OFFSET is not equal for all of the bitfield members). That will at most get you the miscompiles for the PRs back, for

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Richard Guenther
On Mon, 19 Mar 2012, Eric Botcazou wrote: It does make sense to give the target control over the mode used for sizetype. Of course a global change of the default (for example to use Pmode as Ada did) will require testing each affected target, so I think it makes sense to keep the default

Ping #1: [Patch,AVR]: Hack around PR rtl-optimization/52543

2012-03-19 Thread Georg-Johann Lay
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00641.html Georg-Johann Lay wrote: The problem with the PR is that lower-subreg.c happily splits multi-byte moves from address spaces without knowing anything about the additional costs this is causing. The TARGET_MODE_DEPENDENT_ADDRESS_P hook

Re: Ping #1: [Patch,AVR]: Hack around PR rtl-optimization/52543

2012-03-19 Thread Denis Chertykov
2012/3/19 Georg-Johann Lay a...@gjlay.de: http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00641.html Georg-Johann Lay wrote: The problem with the PR is that lower-subreg.c happily splits multi-byte moves from address spaces without knowing anything about the additional costs this is

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Tristan Gingold
On Mar 16, 2012, at 12:38 PM, Richard Guenther wrote: […] Well, this setup is not well supported by the middle-end (and indeed m32c has existing issues with that). So in your case decoupling sizetype from size_t sounds like the more appropriate solution. Btw, while we are transitioning to

[patch] Minor tweaks

2012-03-19 Thread Eric Botcazou
Hi, around line 380, we have in tree.def: /* References to storage. */ /* The ordering of the following codes is optimized for the classification in handled_component_p. Keep them in a consecutive group. */ The hitch is that VIEW_CONVERT_EXPR is far apart from the others, so the patch

Re: [patch] Minor tweaks

2012-03-19 Thread Richard Guenther
On Mon, Mar 19, 2012 at 1:21 PM, Eric Botcazou ebotca...@adacore.com wrote: Hi, around line 380, we have in tree.def: /* References to storage.  */ /* The ordering of the following codes is optimized for the classification   in handled_component_p.  Keep them in a consecutive group.  */

Re: [debug/profile-mode] broken c++config.h

2012-03-19 Thread Paolo Carlini
On 03/16/2012 06:16 PM, Jonathan Wakely wrote: 2012/3/16 Paweł Sikora: Should the addition be \$$ to escape it for the shell as well as for make? (I know it works, but that might not be true for all shells.) i don't think that $, could be expaneded by any shell. I'm not worried about it not

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Richard Guenther
On Mon, Mar 19, 2012 at 1:02 PM, Tristan Gingold ging...@adacore.com wrote: On Mar 16, 2012, at 12:38 PM, Richard Guenther wrote: […] Well, this setup is not well supported by the middle-end (and indeed m32c has existing issues with that).  So in your case decoupling sizetype from size_t

[PATCH, i386]: Consistently use Pmode

2012-03-19 Thread Uros Bizjak
Hello! This patch uses Pmode consistently for some remaining cases. No functional change. 2012-03-19 Uros Bizjak ubiz...@gmail.com * config/i386/i386.c (ix86_expand_prologue) CM_LARGE_PIC: Use Pmode mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.

Re: [PATCH] Fix PRs 52080, 52097 and 48124, rewrite bitfield expansion, enable the C++ memory model wrt bitfields everywhere

2012-03-19 Thread Richard Guenther
On Mon, 19 Mar 2012, Eric Botcazou wrote: But it's only ever computed for RECORD_TYPEs where DECL_QUALIFIER is unused. OK, that could work indeed. For now giving up seems to be easiest (just give up when DECL_FIELD_OFFSET is not equal for all of the bitfield members). That will at

Re: [C++ Patch] PR 14710 (add -Wuseless-cast)

2012-03-19 Thread Jason Merrill
On 03/18/2012 11:32 AM, Paolo Carlini wrote: + if ((TREE_CODE (type) == REFERENCE_TYPE + lvalue_p (expr) + same_type_p (TREE_TYPE (expr), TREE_TYPE (type))) + || same_type_p (TREE_TYPE (expr), type)) + warning (OPT_Wuseless_cast, useless cast to type %qT,

Re: [C++ Patch] PR 14710 (add -Wuseless-cast)

2012-03-19 Thread Paolo Carlini
On 03/19/2012 02:17 PM, Jason Merrill wrote: On 03/18/2012 11:32 AM, Paolo Carlini wrote: + if ((TREE_CODE (type) == REFERENCE_TYPE + lvalue_p (expr) + same_type_p (TREE_TYPE (expr), TREE_TYPE (type))) + || same_type_p (TREE_TYPE (expr), type)) +warning (OPT_Wuseless_cast,

Re: [PATCH][ARM] Improve use of conditional execution in thumb mode.

2012-03-19 Thread Andrew Stubbs
Ping. On 08/03/12 15:48, Andrew Stubbs wrote: On 17/02/12 15:30, Andrew Stubbs wrote: I've got a full test run going again. OK for 4.8, again? The test run revealed some bugs handling MINUS. This update has been tested and passes a bootstrap and test with no regressions. Indeed, it has

Re: [PATCH, ARM, 4.6] backport PR pch/45979

2012-03-19 Thread Richard Earnshaw
On 16/03/12 01:41, Michael Hope wrote: Hi there. This patch backports my PCH on ARM EABI fix[1] for pch/PR45979 to the 4.6 branch. This fixes PCH support on ARM and tidies up the random pch testsuite failures that are seen between runs. OK for 4.6? OK. R. -- Michael [1]

Re: [PATCH][ARM] Improve use of conditional execution in thumb mode.

2012-03-19 Thread Richard Earnshaw
On 08/03/12 15:48, Andrew Stubbs wrote: On 17/02/12 15:30, Andrew Stubbs wrote: I've got a full test run going again. OK for 4.8, again? The test run revealed some bugs handling MINUS. This update has been tested and passes a bootstrap and test with no regressions. Indeed, it has

Re: [C++ Patch] PR 14710 (add -Wuseless-cast)

2012-03-19 Thread Jason Merrill
OK. Jason

Re: [patch] Minor tweaks

2012-03-19 Thread Eric Botcazou
Ok. I think volatilep should be always set as well. Thanks. No strong opinion, but at least one caller (fold_truthop through decode_field_reference) calls the function 4 times in a row and only checks volatilep at the end to disable the transformation. -- Eric Botcazou

[PATCH][RFC] Merge 'expand' and 'rtl_eh'

2012-03-19 Thread Richard Guenther
We have the unfortunate situation that expand may leave us with unreachable blocks that are required by proper rtl_eh functioning (unreachable landing-pads, that is). This is bad for any verification pass the pass manager may want to call that requires dominators to be computed (I'm thinking of

Re: [Patch]: Uncouple size_t and sizetype

2012-03-19 Thread Tristan Gingold
On Mar 19, 2012, at 1:36 PM, Richard Guenther wrote: On Mon, Mar 19, 2012 at 1:02 PM, Tristan Gingold ging...@adacore.com wrote: On Mar 16, 2012, at 12:38 PM, Richard Guenther wrote: […] Well, this setup is not well supported by the middle-end (and indeed m32c has existing issues with

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread H.J. Lu
On Sun, Mar 18, 2012 at 1:55 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Mar 18, 2012 at 5:01 PM, Uros Bizjak ubiz...@gmail.com wrote: I am testing this patch.  OK for trunk if it passes all tests? No, force_reg will generate a pseudo, so this conversion is valid only for

Re: [PATCH][RFC] Merge 'expand' and 'rtl_eh'

2012-03-19 Thread Jan Hubicka
We have the unfortunate situation that expand may leave us with unreachable blocks that are required by proper rtl_eh functioning (unreachable landing-pads, that is). This is bad for any verification pass the pass manager may want to call that requires dominators to be computed (I'm

Re: [PATCH][RFC] Merge 'expand' and 'rtl_eh'

2012-03-19 Thread Richard Guenther
On Mon, 19 Mar 2012, Jan Hubicka wrote: We have the unfortunate situation that expand may leave us with unreachable blocks that are required by proper rtl_eh functioning (unreachable landing-pads, that is). This is bad for any verification pass the pass manager may want to call that

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-19 Thread H.J. Lu
On Sun, Mar 18, 2012 at 3:17 PM, Gerald Pfeifer ger...@pfeifer.com wrote: On Wed, 14 Mar 2012, H.J. Lu wrote: Apart from the above, at least invoke.texi does not define what an x32 environment is.  Shouldn't that done somewhere (before this terminology is used)? I am not sure where to put it.

Re: [PATCH][RFC] Merge 'expand' and 'rtl_eh'

2012-03-19 Thread Steven Bosscher
On Mon, Mar 19, 2012 at 4:41 PM, Richard Guenther rguent...@suse.de wrote: Comments? What does rtl_eh do for no-SJLJ exceptions? Have you tested with SJLJ exceptions? (Can/should we move that code to GIMPLE?) Ciao! Steven

Re: [PATCH] eh_personality.cc: unwinding on ARM

2012-03-19 Thread Andrew Stubbs
On 16/03/12 13:29, EXTERNAL Waechtler Peter (Fa. TCP, CM-AI/PJ-CF31) wrote: The CodeSourcery toolchain contains a fix like the following, please consider for adding it. Here's the full original patch with ChangeLog. I don't know why Dan never submitted this one. Perhaps it's not suitable for

Re: RFA: consolidate DWARF strings into libiberty

2012-03-19 Thread DJ Delorie
But given the pushback for even one new library, I think we're unnecessarily slowing ourselves down. I'm not opposed to libiberty becoming the kitchen sink, if that's what people want. If it does go that route, my reason for being a libiberty maintainer no longer applies, and others who are

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread H.J. Lu
On Mon, Mar 19, 2012 at 8:54 AM, H.J. Lu hjl.to...@gmail.com wrote: On Mon, Mar 19, 2012 at 8:51 AM, H.J. Lu hjl.to...@gmail.com wrote: On Sun, Mar 18, 2012 at 1:55 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Mar 18, 2012 at 5:01 PM, Uros Bizjak ubiz...@gmail.com wrote: I am testing this

[Ada] Allocation of unconstrained limited type

2012-03-19 Thread Arnaud Charlet
This patch adds code to detect a particular form of expansion produced by the build-in-place machinery for the allocation of a private limited indefinite type where the full view lacks discriminants. The allocator appears as a qualified expression containing a build-in-place call. The patch

[Ada] Missing debug info for object of class-wide interface type

2012-03-19 Thread Arnaud Charlet
For an object of a class-wide interface type, the object declaration is rewritten as a renaming with a new entity, and debug info was not being generated for the renaming, preventing printing of the object's value in gdb. The entity of the renaming is now marked as needing debug info. Tested on

[Ada] Remove spurious warning with -gnatw.t on trivial postconditions

2012-03-19 Thread Arnaud Charlet
It may be useful to have trivial postconditions of True or False on some subprograms. The first is essentially a confirming postcondition, while the second indicates that a procedure will not return (if postconditions are checked). Do not emit warnings on such postconditions. Similarly for Ensures

Re: [PATCH] allowing fwprop to propagate subregs

2012-03-19 Thread Paolo Bonzini
Il 19/03/2012 17:07, Ulrich Weigand ha scritto: Hello, now that the apply_distributive_law change is in, I'd like to pick up Richard's original patch, see discussion here: http://gcc.gnu.org/ml/gcc-patches/2011-09/msg00852.html The version below integrates all requests for changes that

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread H.J. Lu
On Mon, Mar 19, 2012 at 9:19 AM, H.J. Lu hjl.to...@gmail.com wrote: On Mon, Mar 19, 2012 at 8:54 AM, H.J. Lu hjl.to...@gmail.com wrote: On Mon, Mar 19, 2012 at 8:51 AM, H.J. Lu hjl.to...@gmail.com wrote: On Sun, Mar 18, 2012 at 1:55 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Mar 18, 2012

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 5:34 PM, H.J. Lu hjl.to...@gmail.com wrote: Combine failed: (set (reg:QI 63 [ c ])    (mem/c:QI (plus:DI (zero_extend:DI (unspec:SI [                        (const_int 0 [0])                    ] UNSPEC_TP))            (mem/u/c:DI (const:DI (unspec:DI [            

Re: [PATCH] eh_personality.cc: unwinding on ARM

2012-03-19 Thread Daniel Jacobowitz
On Mon, Mar 19, 2012 at 12:12 PM, Andrew Stubbs a...@codesourcery.com wrote: On 16/03/12 13:29, EXTERNAL Waechtler Peter (Fa. TCP, CM-AI/PJ-CF31) wrote: The CodeSourcery toolchain contains a fix like the following, please consider for adding it. Here's the full original patch with

[Ada] gnatmake crashes with -cargs -m -margs -m

2012-03-19 Thread Arnaud Charlet
This patch ensures that gnatmake no longer crashes when there are -m switches after -cargs and after -margs on the command line. Tested on x86_64-pc-linux-gnu, committed on trunk 2012-03-19 Vincent Celier cel...@adacore.com * make.adb (Scan_Make_Arg): Make sure all significant -m

[Ada] Better error message for a ** b ** c

2012-03-19 Thread Arnaud Charlet
This patch gives better error recovery and message for a ** b ** c 1. package ParenExp is 2.a : Integer := 2 ** 3 ** 4; | parenthesization required for ** 3. end; Tested on x86_64-pc-linux-gnu, committed on trunk 2012-03-19 Robert Dewar

[Ada] Initial framework for Valid_Scalars attribute

2012-03-19 Thread Arnaud Charlet
This is the initial checkin to establish the framework for this new attribute which will check subcomponents of composite objects. No test yet, since the implementation is not there yet! Tested on x86_64-pc-linux-gnu, committed on trunk 2012-03-19 Robert Dewar de...@adacore.com *

[Ada] Better error message for misused preprocessor directive

2012-03-19 Thread Arnaud Charlet
This patch causes the scanner to recognize preprocessor directives in the case where the preprocessor is in active, and give better messages, as shown by this example compiled with -gnatld7 -gnatj60. 1. package Preproc is 2. #if JUNK then | preprocessor directive

[Ada] Remove high level optimizer framework

2012-03-19 Thread Arnaud Charlet
This framework was implemented years ago, but never documented, and no optimizer was ever implemented, so best just to remove it at this stage. If anyone ever wants to implement a high level optimizer, the least of the effort will be putting this back. Note that the critical point (which is that

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 5:19 PM, H.J. Lu hjl.to...@gmail.com wrote:        movl    %fs:0, %eax        movq    c@gottpoff(%rip), %rdx        movzbl  (%rax,%rdx), %edx        movb    %dl, y(%rip)        movq    w@gottpoff(%rip), %rdx        movzwl  (%rax,%rdx), %eax        movw    %ax,

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 5:47 PM, H.J. Lu hjl.to...@gmail.com wrote: For x32,  thread pointer is an unsigned 32bit value. movl %fs:0, %eax is the correct instruction to load thread pointer into EAX and RAX. So, where is ZERO_EXTEND RTX then? Uros.

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread H.J. Lu
On Mon, Mar 19, 2012 at 9:49 AM, Uros Bizjak ubiz...@gmail.com wrote: On Mon, Mar 19, 2012 at 5:47 PM, H.J. Lu hjl.to...@gmail.com wrote: For x32,  thread pointer is an unsigned 32bit value. movl %fs:0, %eax is the correct instruction to load thread pointer into EAX and RAX. So, where is

Re: [PATCH][RFC] Merge 'expand' and 'rtl_eh'

2012-03-19 Thread Jan Hubicka
On Mon, 19 Mar 2012, Steven Bosscher wrote: On Mon, Mar 19, 2012 at 4:41 PM, Richard Guenther rguent...@suse.de wrote: Comments? What does rtl_eh do for no-SJLJ exceptions? Quoting from except.c 'Then, via finish_eh_generation, we generate the real landing pads to which the

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 5:55 PM, H.J. Lu hjl.to...@gmail.com wrote: For x32,  thread pointer is an unsigned 32bit value. movl %fs:0, %eax is the correct instruction to load thread pointer into EAX and RAX. So, where is ZERO_EXTEND RTX then? Thread pointer (TP) is an opaque value to GCC.

AW: [PATCH] eh_personality.cc: unwinding on ARM

2012-03-19 Thread EXTERNAL Waechtler Peter (Fa. TCP, CM-AI/PJ-CF31)
On Mon, Mar 19, 2012 at 12:12 PM, Andrew Stubbs a...@codesourcery.com wrote: On 16/03/12 13:29, EXTERNAL Waechtler Peter (Fa. TCP, CM-AI/PJ-CF31) wrote: The CodeSourcery toolchain contains a fix like the following, please consider for adding it. Here's the full original patch with

Re: RFA: consolidate DWARF strings into libiberty

2012-03-19 Thread Tom Tromey
DJ == DJ Delorie d...@redhat.com writes: DJ The only drawback to adding toplevel libraries is coordinating changes DJ among the toplevel configury. And adding crud to Makefiles all over. Pick a name for the new library and I will implement this. Tom

Re: [Patch,AVR]: Hack around PR rtl-optimization/52543

2012-03-19 Thread Mike Stump
On Mar 9, 2012, at 10:46 AM, Georg-Johann Lay wrote: The problem with the PR is that lower-subreg.c happily splits multi-byte moves from address spaces without knowing anything about the additional costs this is causing. Nasty, arm hit this sort of problem recently as well, and I've hit this

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 6:01 PM, Uros Bizjak ubiz...@gmail.com wrote: For x32,  thread pointer is an unsigned 32bit value. movl %fs:0, %eax is the correct instruction to load thread pointer into EAX and RAX. So, where is ZERO_EXTEND RTX then? Thread pointer (TP) is an opaque value to

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread H.J. Lu
On Mon, Mar 19, 2012 at 10:29 AM, Uros Bizjak ubiz...@gmail.com wrote: On Mon, Mar 19, 2012 at 6:01 PM, Uros Bizjak ubiz...@gmail.com wrote: For x32,  thread pointer is an unsigned 32bit value. movl %fs:0, %eax is the correct instruction to load thread pointer into EAX and RAX. So, where

[lra] patch to discourage some register usage on x86/x86-64

2012-03-19 Thread Vladimir Makarov
The following patch discourages usage of BP, R12, and R13 as it results in larger addresses on x86/x86-64. Committed as rev. 185533. 2012-03-19 Vladimir Makarov vmaka...@redhat.com * config/i386/i386.c (ix86_register_bank): Add special treatment for BP, R12, and R13. Index:

Re: PATCH: Properly generate X32 IE sequence

2012-03-19 Thread Uros Bizjak
On Mon, Mar 19, 2012 at 6:50 PM, H.J. Lu hjl.to...@gmail.com wrote: Please test my proposed patch. If it works OK, I will commit it to SVN. The onyl acceptable way is to generate ZERO_EXTEND in place, so: --cut here-- static rtx get_thread_pointer (enum machine_mode tp_mode, bool to_reg)

[pph] Add support to re-play actions on types (issue5845069)

2012-03-19 Thread Diego Novillo
Add support to re-play actions on types as well as symbols. When declaring class types, the parser calls finish_struct_methods to perform things like sorting the method vector for the class. This needs to be done at reading time, because the sorting is done based on the pointer values of the

[pph] Rename pph_sytmab - pph_replay (issue5846069)

2012-03-19 Thread Diego Novillo
This patch renames pph_symtab, pph_symtab_entry and pph_symtab_action into pph_replay* to better reflects the semantics of this table. No functional changes, just a rename. 2012-03-19 Diego Novillo dnovi...@google.com * pph-streamer.h (struct pph_replay_entry): Rename from

Re: [v3] fix libstdc++/52476

2012-03-19 Thread Benjamin De Kosnik
this removes the pb_ds fails exposed by this patch. -benjamin2012-03-19 Benjamin Kosnik b...@redhat.com * include/ext/pb_ds/detail/pat_trie_/ constructors_destructor_fn_imps.hpp: Increment after recursion. * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert

Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections

2012-03-19 Thread DJ Delorie
This breaks constructors on pretty much every elf+newlib target, because newlib and gcc both use HAVE_INITFINI_ARRAY (and have for many years) but the tests don't match. GCC puts ctors in .ctors but libgcc is built without support for them (newlib's generated config headers define

[PATCH, middle-end, i386]: Trivial: use copy_addr_to_reg some more.

2012-03-19 Thread Uros Bizjak
Hello! This patch just substitutes copy_to_mode_reg (Pmode, ...) with copy_addr_to_reg function where appropriate. 2012-03-19 Uros Bizjak ubiz...@gmail.com * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of copy_to_mode_reg (Pmode, ...).

Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections

2012-03-19 Thread Andrew Pinski
On Mon, Mar 19, 2012 at 1:34 PM, DJ Delorie d...@redhat.com wrote: This breaks constructors on pretty much every elf+newlib target, because newlib and gcc both use HAVE_INITFINI_ARRAY (and have for many years) but the tests don't match.  GCC puts ctors in .ctors but libgcc is built without

Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections

2012-03-19 Thread DJ Delorie
Sweet! Thanks! We hadn't merged that bit into our tree yet...

Re: AW: [PATCH] eh_personality.cc: unwinding on ARM

2012-03-19 Thread Peter Waechtler
On 19.03.2012 18:32, Paul Brook wrote: while I have your attention: what is an virtual unwind frame? ;) No such thing exists. Throwing an exception is a muti-stage process. It requires unwinding the stack frame twice, taking different actions in the process. Forced unwinding and backtracing

Re: Ping: Re: [patch middle-end]: Fix PR/48814 - [4.4/4.5/4.6/4.7 Regression] Incorrect scalar increment result

2012-03-19 Thread Benjamin De Kosnik
On Fri, 16 Mar 2012 11:10:48 +0100 Richard Guenther richard.guent...@gmail.com wrote: On Fri, Mar 16, 2012 at 1:29 AM, Jonathan Wakely jwakely@gmail.com wrote: On 15 March 2012 15:40, Richard Guenther wrote: On Thu, Mar 15, 2012 at 4:22 PM, Kai Tietz ktiet...@googlemail.com wrote:

Re: remove wrong code in immed_double_const

2012-03-19 Thread Richard Sandiford
Mike Stump mikest...@comcast.net writes: If we're going to remove the assert, we need to define stuff like that. Orthogonal. The rest of the compiler defines what happens, it either is inconsistent, in which case it is by fiat, undefined, or it is consistent, in which case that consistency

[PATCH, i386]: Simplify allocate_stack expander

2012-03-19 Thread Uros Bizjak
Hello! No functional change. 2012-03-19 Uros Bizjak ubiz...@gmail.com * config/i386/i386.md (allocate_stack): Simplify. Tested on x86_64-pc-linux-gnu, committed to mainline SVN. Uros. Index: i386/i386.md === ---

Re: RFA: consolidate DWARF strings into libiberty

2012-03-19 Thread Doug Evans
On Mon, Mar 19, 2012 at 9:09 AM, Doug Evans d...@google.com wrote: On Thu, Mar 15, 2012 at 12:02 PM, Tom Tromey tro...@redhat.com wrote: DJ == DJ Delorie d...@redhat.com writes: Tom Finally, there is already stuff in libiberty not related to Tom portability.  E.g., hashtab or the demangler.

Re: remove wrong code in immed_double_const

2012-03-19 Thread Mike Stump
On Mar 19, 2012, at 2:44 PM, Richard Sandiford wrote: Mike Stump mikest...@comcast.net writes: If we're going to remove the assert, we need to define stuff like that. Orthogonal. The rest of the compiler defines what happens, it either is inconsistent, in which case it is by fiat,

[google/4.6] Fix problems with -gfission (issue5844043)

2012-03-19 Thread Cary Coutant
This is for the google/gcc-4_6 branch only. This revised patch fixes several problems with -gfission: - Bad index for range list in the compile unit DIE. - DW_AT_ranges attribute for compile unit in the wrong file. - Incorrect size for skeleton type unit DIEs. - Wrote location expression