Re: [PATCH] Revert sparc vec_init improvements as they cause 64-bit regressions.

2011-11-11 Thread Eric Botcazou
E_MODE_CLASS to mask some of the remaining ones on SPARC (and on PA). > Anyways, commited to trunk and all the 64-bit failures should be gone. Do we have the same problem in VIS2/3 mode as in VIS1 mode? If so, then I agree that this is probably the best course of action in the short term. -- Eric Botcazou

Re: [PATCH] PR target/50038 fix: redundant zero extensions removal

2011-11-11 Thread Eric Botcazou
> I have already signed copyright agreement with the FSF. Will I need > the separate one for this particular commit? No, if your contributions are already covered by a copyright agreement with the FSF, nothing more needs to be done. -- Eric Botcazou

Fix various minor issues in cprop.c

2011-11-11 Thread Eric Botcazou
constprop_register, - a few long lines and a few typos left and right. No functional changes. Tested on i586-suse-linux, applied on mainline, 2011-11-11 Eric Botcazou * cprop.c: Adjust outdated comments throughout. (hash_scan_set): Rename PAT parameter into SET

Re: [PATCH RFA] rtl-optimization/PR50663, conditional propagation missed in cprop.c pass

2011-11-11 Thread Eric Botcazou
therwise propagate them only in the successors of their basic block." Btw, you'll need to slightly adjust the patch because of my changes to cprop.c. Thanks for investigating and addressing this issue. -- Eric Botcazou

Re: s390: Avoid CAS boolean output inefficiency

2012-08-09 Thread Eric Botcazou
> This was caused (or perhaps abetted by) the representation of EQ > as NE ^ 1. With the subsequent truncation and zero-extend, I > think combine reached its insn limit of 3 before seeing everything > it needed to see. This can be 4 now, if you tweak the initial heuristic. -- Eric Botcazou

Re: [PATCH] Set current_function_decl in {push,pop}_cfun and push_struct_function

2012-08-10 Thread Eric Botcazou
u think that calling dump_function from rest_of_subprog_body_compilation is a layering violation, I don't have a problem with replacing it with a more "manual" scheme like the one in c-family/c-gimplify.c:c_genericize, provided that this yields roughly the same output. -- Eric Botcazou

Re: Merge C++ conversion into trunk (2/6 - VEC rewrite)

2012-08-15 Thread Eric Botcazou
> This implements the VEC re-write. > > See http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00711.html for > details. You didn't update the head comment in vec.h though, is that on purpose? -- Eric Botcazou

Re: [bootstrap] Tentative fix for PR 54281

2012-08-19 Thread Eric Botcazou
rface to C++, which might introduce various maintenance issues in the short term (Arno CCed). -- Eric Botcazou

[Ada] Fix temporary incorrectly-typed COMPONENT_REF

2012-08-19 Thread Eric Botcazou
nline. 2012-08-19 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Use proper dummy type for the temporary COMPONENT_REF built for a derived tagged type with discriminant. -- Eric Botcazou Index: gcc-interface/d

[Ada] Avoid unnecessarily overaligned access types

2012-08-19 Thread Eric Botcazou
rray_T is access Array_T; for Thin_Access_Array_T'Size use Standard'Address_Size; begin if Access_Array_T'Alignment /= Thin_Access_Array_T'Alignment then raise Program_Error; end if; end; Tested on x86_64-suse-linux, applied on the mainline. 2012-08-19 E

[SPARC] Define MAX_FIXED_MODE_SIZE

2012-08-20 Thread Eric Botcazou
on the mainline. 2012-08-20 Eric Botcazou * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define. -- Eric Botcazou Index: config/sparc/sparc.h === --- config/sparc/sparc.h (revision 190512) +++ config/sparc/sparc.h

Re: [PATCH] fix wrong-code bug for -fstrict-volatile-bitfields

2012-08-22 Thread Eric Botcazou
ed. If the -fstrict-volatile-bitfields support is still incomplete, let's take this opportunity to clean it up. Testing DECL_PACKED or issuing a warning from the RTL expander is to be avoided. -- Eric Botcazou

Fix PR rtl-optimization/54088

2012-08-25 Thread Eric Botcazou
after the barriers pass, which puts the barrier there on purpose). Tested on x86_64-suse-linux, applied on the mainline and 4.7 branch. 2012-08-25 Eric Botcazou PR rtl-optimization/54088 * jump.c (delete_related_insns): Robustify latest change. -- Eric Botcazou Index

Re: [patch] PR middle-end/54385

2012-08-27 Thread Eric Botcazou
L land is to call cleanup_cfg (0) in this case (and Richard recently added the cleanup_cfg (CLEANUP_CFG_CHANGED) variant). Any reason not to use it? Are you concerned about compilation time here? -- Eric Botcazou

Re: [patch] PR middle-end/54385

2012-08-28 Thread Eric Botcazou
if you remove edges from the CFG or apply some similar transformation, you need a cleanup_cfg(0) at the end. -- Eric Botcazou

Fix PR rtl-optimization/54369

2012-09-02 Thread Eric Botcazou
e on SPARC, approved by Richard for the MIPS part and applied on all active branches. 2012-09-02 Eric Botcazou PR rtl-optimization/54369 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before calling dbr_schedule. * config/sparc/sparc.c (sparc_reorg)

[patch] Fix PR rtl-optimization/54290

2012-09-02 Thread Eric Botcazou
we want to fix this on release branches as well? 2012-09-02 Eric Botcazou PR rtl-optimization/54290 * reload1.c (choose_reload_regs): Also take into account secondary MEMs to remove address replacements for inheri

Re: [patch] Fix PR rtl-optimization/54290

2012-09-03 Thread Eric Botcazou
> 2012-09-02 Eric Botcazou > > PR rtl-optimization/54290 > * reload1.c (choose_reload_regs): Also take into account secondary MEMs > to remove address replacements for inherited reloads. I forgot to attach the testcase... * gcc.c-torture/execute/20

Fix bootstrap failure with Sun linker

2012-09-04 Thread Eric Botcazou
The generated libstdc++-symbols.ver-sun cannot be parsed by the linker anymore. Bootstrapped on SPARC64/Solaris 9 & SPARC/Solaris 10, applied on the mainline. 2012-09-04 Eric Botcazou * make_sunver.pl: Add missing newline at the end of extern "C++" block. -- Eric

Fix PR rtl-optimization/54456

2012-09-04 Thread Eric Botcazou
This patch "fixes" PR rtl-optimization/54456 by running the first scheduling pass only when optimizing, as is already done for the second scheduling pass. Tested on x86_64-suse-linux, applied on the mainline. 2012-09-04 Eric Botcazou PR rtl-optimization/54456 * s

Minor reorganization in bb-reorder.c

2012-09-04 Thread Eric Botcazou
The file contains 3 RTL optimization passes, the gate and worker functions of which are strangely intertwined. Fixed thusly, tested on x86_64-suse-linux, applied on the mainline. 2012-09-04 Eric Botcazou * bb-reorder.c (gate_handle_reorder_blocks): Move around

Re: Minor reorganization in bb-reorder.c

2012-09-05 Thread Eric Botcazou
-linux, applied on the mainline. 2012-09-05 Eric Botcazou * bb-reorder.c: Clarify a few points in the head comment and fix long lines in other comments. (find_traces): Fix long line. (find_traces_1_round): Likewise. (better_edge_p): Li

Re: [PATCH] Enable bbro for -Os

2012-09-05 Thread Eric Botcazou
; + } Superfluous parentheses. @@ -1169,6 +1272,10 @@ copy_bb_p (const_basic_block bb, int code_may_grow) int max_size = uncond_jump_length; rtx insn; + /* Avoid duplicating blocks for size. */ + if (optimize_function_for_size_p (cfun)) +return false; ...when optimizing for size. Please adjust and repost. Note that I just installed a patch that makes some cosmetic changes to the file so you might have a couple of minor conflicts. -- Eric Botcazou

Adjust gcc.dg/pr44194-1.c

2012-09-07 Thread Eric Botcazou
There are 3 global deletions instead of 2 on SPARC64 and 0 on Alpha since the structure is returned in memory. Tested on x86-64/Linux and SPARC64/Linux, applied on mainline and 4.7 branch. 2012-09-07 Eric Botcazou * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64

[Ada] Undo useless change

2012-09-07 Thread Eric Botcazou
It was presumably papering over the real problem and resulted in huge performance regressions for some loops. Tested on x86-64/Linux, applied on mainline and 4.7 branch. 2012-09-07 Eric Botcazou * gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using size_type_node

Re: [PATCH] Enable bbro for -Os

2012-09-10 Thread Eric Botcazou
Trace n + 1. It is conservative +to keep the order as close as possible to the original order. + It also helps to reduce long jump. */ long jumps Thanks for working on this. -- Eric Botcazou

Finish up PR rtl-optimization/44194

2012-09-12 Thread Eric Botcazou
instead of itself (unlike store_bit_field_1), which short-circuits the FALLBACK_P parameter. Tested on x86-64/Linux and SPARC64/Solaris. Comments? 2012-09-12 Eric Botcazou PR rtl-optimization/44194 * calls.c (expand_call): In the PARALLEL case, copy the return value into

Re: [patch] Finish double_int conversion.

2012-09-12 Thread Eric Botcazou
e, &add2_ovf); > + overflow |= neg1_ovf | neg2_ovf | add1_ovf | add2_ovf; > } > > - gcc_assert (overflow == 0); > + gcc_assert (!overflow); > > return build_int_cst_wide (rtype, low, high); > } This cannot build because of the references to low and high in the last line. As Richard said, building a cross cc1 is very easy. -- Eric Botcazou

Re: [patch] Fix PR rtl-optimization/54290

2012-09-12 Thread Eric Botcazou
> Bootstrapped/regtested on x86_64-suse-linux. Does that look plausible? Do > we want to fix this on release branches as well? > > > 2012-09-02 Eric Botcazou > > PR rtl-optimization/54290 > * reload1.c (choose_reload_regs): Also take into account s

[patch] Fix memory exhaustion during cunrolli

2012-09-13 Thread Eric Botcazou
tions of the loop so they can add up and exhaust the memory during SSA updating if stars are properly aligned. The patch is a somewhat simple-minded fix... Bootstrapped/regtested on x86_64- suse-linux. OK for mainline and 4.7 branch? 2012-09-13 Eric Botcazou * tree-ssa-loop-ivca

Re: [patch] Fix memory exhaustion during cunrolli

2012-09-13 Thread Eric Botcazou
lue (use, gimple_assign_rhs1 (stmt)); > + > + fold_stmt_inplace (&use_stmt_gsi); > + update_stmt (use_stmt); > > Use SET_USE (use, rhs1) and cache gimple_assign_rhs1 somewhere. > > if (fold_stmt_inplace (&use_stmt_gsi)) > update_stmt (use_stmt); OK, will adjust, thanks. -- Eric Botcazou

Re: [PATCH] Enable bbro for -Os

2012-09-13 Thread Eric Botcazou
> The updated patched is attached. Is it OK? Yes, OK for mainline. -- Eric Botcazou

Re: Finish up PR rtl-optimization/44194

2012-09-13 Thread Eric Botcazou
t); int main() { return bar(foo()); } The patch eliminates the two extra stores mentioned in comment #15. I'll add a reference to this one. -- Eric Botcazou

Re: Finish up PR rtl-optimization/44194

2012-09-13 Thread Eric Botcazou
> Sounds like a good cleanup to me. Thanks. I managed to screw up the computation of the new right end of the memory access in adjust_address_1 so I'll fix and retest. -- Eric Botcazou

[SPARC] Implement TImode support

2012-09-13 Thread Eric Botcazou
ed on SPARC/Solaris and SPARC64/Solaris, applied on the mainline. 2012-09-13 Eric Botcazou * config/sparc/predicates.md (input_operand): Do not consider TImode constants as 1-instruction integer constants. Use register_or_zero_operand instead of register_operand and ti

Re: [PATCH] Combine location with block using block_locations

2012-09-14 Thread Eric Botcazou
> I think it's going to make GCC harder to maintain if we drop the -g0 > vs. -g no-code-difference requirement for just some optimization > levels. Seconded, this is surely going to open yet another can of worms. -- Eric Botcazou

Re: Finish up PR rtl-optimization/44194

2012-09-16 Thread Eric Botcazou
> probably means that we only need to set sibcall_failure for the > emit_group_store case, although I've not tested that. Good point, I'll give it a try. -- Eric Botcazou

Re: [committed] Fix gnat.dg/lto15.adb on hppa

2012-09-16 Thread Eric Botcazou
> Tested on hppa2.0w-hp-hpux11.11 and committed to trunk. Thanks for fixing this. The testcase is also on the 4.7 branch. -- Eric Botcazou

Re: [patch] Fix memory exhaustion during cunrolli

2012-09-17 Thread Eric Botcazou
s well? 2012-09-17 Eric Botcazou * tree-cfgcleanup. (cleanup_control_expr_graph) : Remove code doing propagation from degenerate PHI nodes. * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function. (propagate_constants_for_unroll

Re: Use conditional casting with symtab_node

2012-09-18 Thread Eric Botcazou
(node)); > > becomes > > if (varpool_node *vnode = node->try_variable ()) > if (vnode->finalized) > varpool_analyze_node (vnode); Please avoid cascading if's like this, use the existing && idiom instead. -- Eric Botcazou

Re: [patch] Fix PR rtl-optimization/54290

2012-09-18 Thread Eric Botcazou
aced_subreg" routine on rld[r].in, check > whether the result is a hard register and use its REGNO_REG_CLASS. OK, thanks to both. Revised version attached, OK for mainline after testing? 2012-09-18 Eric Botcazou PR rtl-optimization/54290 * reload1.c (choose_reloa

Fix PR middle-end/54617

2012-09-18 Thread Eric Botcazou
86-64/Linux, generated code manually inspected on PowerPC/Darwin 64-bit, applied on the mainline. 2012-09-18 Eric Botcazou PR middle-end/54617 * expr.c (store_field): Handle a PARALLEL in more cases. -- Eric BotcazouIndex: e

Re: [PATCH] Add -Og optimization level - optimize for compile-time/debugging experience

2012-09-19 Thread Eric Botcazou
would probably be convenient to have a shortcut for !optimize || optimize_debug. -- Eric Botcazou

Re: Use conditional casting with symtab_node

2012-09-19 Thread Eric Botcazou
cades and trading it for cascading if's is really a bad idea. -- Eric Botcazou

[patch] split FRAME variables back into pieces

2012-09-19 Thread Eric Botcazou
;-) The transformation is therefore implemented as a sub-pass of execute_update_addresses_taken for technical reasons exposed in the patch. Tested on x86-64/Linux, OK for the mainline? 2012-09-19 Eric Botcazou * tree.h (DECL_NONLOCAL_FRAME): New macro. * gimple.c

Re: [Patch] catch builtin_bswap16 construct

2012-09-20 Thread Eric Botcazou
nstead. When I implemented __builtin_bswap16, I didn't add this because I thought this would be overkill since the RTL combiner should be able to catch the pattern. Have you investigated on this front? But I don't have a strong opinion. -- Eric Botcazou

Re: [patch] split FRAME variables back into pieces

2012-09-20 Thread Eric Botcazou
right approach. OK, but I came to the opposite conclusion when I first tried to do it in SRA and I don't think I will change my mind in the near future. Never mind then. -- Eric Botcazou

Fix oversights in the gnat.dg testsuite

2012-09-20 Thread Eric Botcazou
The dg directives need to be put in the .adb files, otherwise they are ignored in the gnat.dg directory. Tested on x86-64/Linux, applied on all active branches. 2012-09-20 Eric Botcazou * gnat.dg/opt20.ads: Move dg directive to... * gnat.dg/opt20.adb: ...here

Re: [patch] Fix PR rtl-optimization/54290

2012-09-20 Thread Eric Botcazou
heck_reg, tem; My bad... fixed thusly. 2012-09-20 Eric Botcazou * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair. -- Eric BotcazouIndex: reload1.c === --- reload1.c (revision 191591) +++ reload1.c (wo

Re: [patch] split FRAME variables back into pieces

2012-09-21 Thread Eric Botcazou
placement generation. OK, but you need to be able to split the FRAME structure without necessarily splitting its aggregate fields. Is that (easily) doable with current SRA? > Maybe you can open an enhancement bugreport for this and link > your patch / testcase to it? Will do. -- Eric Botcazou

Re: [Patch] catch builtin_bswap16 construct

2012-09-21 Thread Eric Botcazou
owerPC, which is the only other mainstream architecture with a bswaphi pattern AFAIK? -- Eric Botcazou

Re: [patch] [ARM]

2012-09-21 Thread Eric Botcazou
arm_mangle_type): Don't warn anymore that > 4.4 has changed the `va_list mangling. No gcc/ prefix in gcc/ChangeLog. -- Eric Botcazou

Fix PR rtl-optimization/54644

2012-09-21 Thread Eric Botcazou
It's the regression of gcc.c-torture/execute/multi-ix.c at -O1 on Alpha reported by Uros and comes from a thinko in my fix for PR rtl-opt/54290. Tested on x86-64/Linux, applied on the mainline. 2012-09-21 Eric Botcazou PR rtl-optimization/54290 PR rtl-optimization/

Re: [PATCH, middle-end]: Fix g++.dg/other/vector-compare.C testsuite failure on alpha

2012-09-21 Thread Eric Botcazou
es? Is that a regression on release branches? If no, that's not worth the risk. -- Eric Botcazou

Re: [PATCH, middle-end]: Fix g++.dg/other/vector-compare.C testsuite failure on alpha

2012-09-21 Thread Eric Botcazou
estcase on the release branches? It doesn't use BKLmode compares? If so, is it ever possible to use BLKmode compares on Alpha? -- Eric Botcazou

Re: [PATCH, middle-end]: Fix g++.dg/other/vector-compare.C testsuite failure on alpha

2012-09-22 Thread Eric Botcazou
lease branches in my opinion. The second hunk is OK for mainline (without the now useless label). -- Eric Botcazou

Re: [patch] split FRAME variables back into pieces

2012-09-22 Thread Eric Botcazou
understand and we haven't had a single bug reported for it since its inception 2 years ago, so... -- Eric Botcazou

Fix PR tree-optimization/54669

2012-09-22 Thread Eric Botcazou
maybe_clean_or_replace_eh_stmt on the modified statement. There is already a call to cleanup_tree_cfg at the end so this should be sufficient. Tested on x86-64/Linux, OK for the mainline? 2012-09-22 Eric Botcazou PR tree-optimization/54669 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke

[RFC] Move ehcleanup pass to before early SRA

2012-09-23 Thread Eric Botcazou
benchmarks (with a 4.7-based compiler). Tested on x86-64/Linux. 2012-09-23 Eric Botcazou * passes.c (init_optimization_passes): Run first EH cleanup pass early. -- Eric BotcazouIndex: passes.c === --- passes.c (revision

Re: [Patch] catch builtin_bswap16 construct

2012-09-24 Thread Eric Botcazou
ot;bswap32", BT_FN_UINT32_UINT32, ATTR_CONST_NOTHROW_LEAF_LIST) DEF_GCC_BUILTIN(BUILT_IN_BSWAP64, "bswap64", BT_FN_UINT64_UINT64, ATTR_CONST_NOTHROW_LEAF_LIST) The documentation indeed needs to be fixed. -- Eric Botcazou

[patch] Stream TYPE_NONALIASED_COMPONENT in LTO mode

2012-09-24 Thread Eric Botcazou
checked that the 4.7 compiler can still compile a big Ada application in LTO mode. Can I put this both on mainline and 4.7 branch? This only affects Ada. 2012-09-24 Eric Botcazou * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in TYPE_NONALIASED_COMPONENT flag

Re: [Patch] catch builtin_bswap16 construct

2012-09-24 Thread Eric Botcazou
27;t look obvious, especially in the unsigned case. The PowerPC back-end has a splitter for bswap:HI which generates no less than 3 instructions, so I presume we're seeing its effects here. I've CCed the other interested parties. David, Michael, Segher, any comments about or insights into the results reported by Christophe for PowerPC? -- Eric Botcazou

Re: [Patch] catch builtin_bswap16 construct

2012-09-25 Thread Eric Botcazou
> I guess I just have to wait for approval by the right maintainer now? Right, GCC's bureaucracy is no legend. :-) I've CCed Richard, who approved the __builtin_bswap16 stuff back in April. -- Eric Botcazou

Re: [patch] PR54645 move location_adhoc_data map into GC

2012-09-26 Thread Eric Botcazou
> gcc/ChangeLog: > 2012-09-21 Dehao Chen > > PR middle-end/54645 > * c-family/c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data > map when read in the pch. Wrong ChangeLog file, you want gcc/c-family/ChangeLog (and remove c-family/). -- Eric Botcazou

Re: [PATCH, rtl-optimization]: Fix PR54457, [x32] Fail to combine 64bit index + constant

2012-09-26 Thread Eric Botcazou
to restrict this to the low part though? -- Eric Botcazou

Re: Ping: [PATCH] Add implicit C linkage for win32-specific entry points

2012-06-15 Thread Eric Botcazou
rights here, you need a Windows maintainer (Kai). -- Eric Botcazou

Re: long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

2012-06-15 Thread Eric Botcazou
131 */ > ^^ Generally speaking, I'd avoid taking anything in libdecnumber as an example. -- Eric Botcazou

Re: [patch] Fix PR middle-end/53590

2012-06-15 Thread Eric Botcazou
tion_base): Likewise. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a statement that could throw as necessary if dead exceptions can be deleted. ada/ * gcc-interface/misc.c (gnat_init_options_struct): Set opts->x_flag_delete_dea

Re: long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

2012-06-15 Thread Eric Botcazou
till officially requires only an ISO C90 compiler http://gcc.gnu.org/install/prerequisites.html so the usage of 'long long' in libdecnumber is a bug that could be fixed at some point. That's why using it as a precedent isn't the best thing to do. -- Eric Botcazou

Re: [patch] Fix PR middle-end/53590

2012-06-15 Thread Eric Botcazou
be subtleties in C++, but I agree that in practice this should work fine. -- Eric Botcazou

[Ada] Fix PR ada/53592

2012-06-15 Thread Eric Botcazou
on i586-suse-linux, applied on mainline and 4.7 branch. 2012-06-15 Eric Botcazou PR ada/53592 * gcc-interface/gigi.h (maybe_vector_array): Make static inline. * gcc-interface/utils.c (maybe_vector_array): Delete. * gcc-interface/trans.c (gnat_to_gnu) : Mark

Re: long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

2012-06-15 Thread Eric Botcazou
> There are several ports that currently require long long support in the > back-end -- see need_64bit_hwint in config.gcc. Yes, all the 64-bit ports at least, but you shouldn't need 'long long' to build the compiler e.g. for the AVR. -- Eric Botcazou

Re: [PR tree-optimization/52558]: RFC: questions on store data race

2012-06-15 Thread Eric Botcazou
> Whoops, I forgot to commit that last patch. Check now. The warning is there on the 4.7 branch now. -- Eric Botcazou

Re: [patch] Fix PR middle-end/53590

2012-06-15 Thread Eric Botcazou
re about the other languages). It also adds the missing bits related to inlining (with the annoying FIXME for LTO in can_inline_edge_p). Bootstrapped/regtested on x86_64-suse-linux, OK for mainline? 2012-06-15 Eric Botcazou PR middle-end/53590 * doc/invoke.texi (-fdelete-dead-

Re: long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

2012-06-15 Thread Eric Botcazou
written using HOST_WIDE_INT and the like, so using some external code that managed to escape a proper review before being merged in order to justify an incorrect usage is IMO short-sighted, to say the least. -- Eric Botcazou

Re: long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

2012-06-15 Thread Eric Botcazou
ame obsolete as compilers matured. Why would HOST_WIDE_INT be obsolete? That's a nice way to abstract the host and reverting to hardcoded types like 'long long' doesn't seem a progress to me. -- Eric Botcazou

Re: [PATCH 2/3] Use synth_mult for vector multiplies vs scalar constant

2012-06-16 Thread Eric Botcazou
of UNIT in the macro makes the whole thing slightly confusing. :-) -- Eric Botcazou

Re: [patch committed testsuite] Tweak gcc.dg/stack-usage-1.c on SH

2012-06-20 Thread Eric Botcazou
> I've applied the attached patch which is a tiny SH specific > change of gcc.dg/stack-usage-1.c test. Tested on sh-linux > and i686-pc-linux-gnu. This is wrong, please remove the dg-options line and do like the other targets. -- Eric Botcazou

Re: [patch committed testsuite] Tweak gcc.dg/stack-usage-1.c on SH

2012-06-20 Thread Eric Botcazou
> I've applied the patch below. I'll backport it release branches. Thanks! -- Eric Botcazou

[patch] Implement -fcallgraph-info option

2012-06-20 Thread Eric Botcazou
aph isn't suitable for this, as the RTL expander can introduce function calls that need to be accounted for. Tested on x86_64-suse-linux. 2012-06-20 Eric Botcazou Callgraph info support * common.opt (-fcallgraph-info[=]): New option. * doc/invoke.texi (Debu

[patch] Fix ICE with -O -flto and -g

2012-06-21 Thread Eric Botcazou
t this patch is now obsolete because of the new layout algorithm in cfgexpand.c, so the attached patch reverts it. Bootstrapped/regtested on x86_64-suse-linux, OK for mainline and 4.7 branch? 2012-06-21 Eric Botcazou * tree-ssa-live.c (remove_unused_scope_block_p): Remove again

Fix PR debug/53704

2012-06-22 Thread Eric Botcazou
This fixes the PR by making the is_fortran predicate functional on Darwin too. Bootstrapped/regtested on Darwin by Dominique (thanks!), pre-approved by Jakub and applied on the mainline. 2012-06-22 Eric Botcazou PR debug/53704 * dwarf2out.c (gen_compile_unit_die): Use

Re: [patch] Only define JMP_BUF_SIZE in backends that also define DONT_USE_BUILTIN_SETJMP

2012-06-25 Thread Eric Botcazou
SPARC, thanks. What about the Stormy16 and the picoChip? It seems like a cleanup is possible in this area for them as well. -- Eric Botcazou

Re: [patch] Only define JMP_BUF_SIZE in backends that also define DONT_USE_BUILTIN_SETJMP

2012-06-25 Thread Eric Botcazou
y) and is known to work fine on IA-64/Linux, HP-UX and VMS. In the end, it would appear that DONT_USE_BUILTIN_SETJMP was a quick trick to solve specific issues that could very likely have been solved otherwise. We should probably keep it for the sake of IA-64 and get rid of it for all other architectures, documenting that it isn't to be used in normal circumstances. -- Eric Botcazou

Re: [patch] Only define JMP_BUF_SIZE in backends that also define DONT_USE_BUILTIN_SETJMP

2012-06-25 Thread Eric Botcazou
(8*3+8) can be proved to be equivalent to the empty set. -- Eric Botcazou

Re: New option to turn off stack reuse for temporaries

2012-06-26 Thread Eric Botcazou
kend are the > best places for these. Both are very high-level constructs though. By the time the AST is converted to GENERIC in the Ada compiler, it is already too lowered to make use of them. -- Eric Botcazou

Re: [Ada] Attribute 'Old should only be used in postconditions

2012-06-28 Thread Eric Botcazou
38) FAIL: gnat.dg/old_errors.adb (test for warnings, line 40) FAIL: gnat.dg/old_errors.adb (test for errors, line 44) FAIL: gnat.dg/old_errors.adb (test for excess errors) What should we do about them? -- Eric Botcazou

Re: [Ada] Attribute 'Old should only be used in postconditions

2012-06-28 Thread Eric Botcazou
> Probably suppress both, since they no longer make sense (they are testing > an early implementation of 'Old, before 'Old was standardized in Ada 2012). > > I'll take care of it. Thanks! -- Eric Botcazou

Fix oversight during try-finally lowering

2012-06-29 Thread Eric Botcazou
ted as covered! Fixed thusly, tested on x86_64-suse-linux, applied on the mainline as obvious. This isn't a recent regression, but I took the liberty to put it on the 4.7 branch as well. 2012-06-29 Eric Botcazou * tree-eh.c (lower_try_finally_switch): Really put the loca

[Ada] Adjust to change in handling of local types with -g

2012-07-03 Thread Eric Botcazou
The fix for PR c++/52637 slightly broke the handling of local types in Ada. The attached patch restores correct generation of debug info for them. Tested on i586-suse-linux, applied on mainline and 4.7 branch. 2012-07-03 Eric Botcazou * gcc-interface/utils.c (gnat_pushdecl): Set

Re: [Ada] Use C++-compatible calling convention on x86/Windows

2012-07-03 Thread Eric Botcazou
urce code and essentially replicates the separation between methods and non-methods that doesn't exist in Ada. Tested on i586-suse-linux, applied on mainline and 4.7 branch. 2012-07-03 Eric Botcazou * exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on the de

[Ada] Fix ICE on renaming with discriminated tagged type

2012-07-03 Thread Eric Botcazou
prefix in the selection of a component inherited from the root type. Tested on i586-suse-linux, applied on mainline and 4.7 branch. 2012-07-03 Eric Botcazou * gcc-interface/utils2.c (build_simple_component_ref): Do not look through an extension if the type contains a

[Ada] Fix crash on recursive call to function with Out parameter

2012-07-03 Thread Eric Botcazou
The compiler crashes on the recursive call to a function with an In-Out or Out parameter passed by copy, in Ada 2012 mode. Tested on i586-suse-linux, applied on mainline and 4.7 branch. 2012-07-03 Eric Botcazou * gcc-interface/trans.c (Call_to_gnu): Robustify test for function case

Re: [patch] Fix debug info of nested inline functions

2012-07-06 Thread Eric Botcazou
n the limbo list to it. > > This caused: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53860 I've reverted the patch, as I can imagine that it will cause other problems. -- Eric Botcazou

Re: [PATCH] Fix undefined behaviour in combine.c:force_to_mode

2012-07-06 Thread Eric Botcazou
ailure) in my test. > > Tested on arm-linux-gnueabihf. OK for mainline? Sure, but given that there is indeed the same pattern a few lines above, you could as well have installed it as obvious. OK for 4.7 too if you need it. -- Eric Botcazou

Re: [Ada] Ease interface with builtins that returns void *

2012-07-16 Thread Eric Botcazou
ers, but would be a better match for the representation. In fact the latter would unbreak the m68k port (this is PR ada/48835). -- Eric Botcazou

Re: [PATCH] Re-work get_object_alignment (again)

2012-07-18 Thread Eric Botcazou
speaking, testing TYPE_PACKED or DECL_PACKED to drive code generation is wrong. > Oh, and this does not yet fix PR53970 - but I hope that I can > remove contains_packed_reference ;) Right, it should definitely go away. -- Eric Botcazou

Re: [PATCH] Add flag to control straight-line strength reduction

2012-07-18 Thread Eric Botcazou
> In the past, -fstrength-reduce applied to loop strength reduction in > loop.c. I don't think it should be re-used for a completely different > code transformation. Seconded. -- Eric Botcazou

[Ada] Fix spurious 'noreturn' function does return warning at -O0 (1)

2012-07-18 Thread Eric Botcazou
This fixes a spurious 'noreturn' function does return warning at -O0 on code involving controlled types. Tested on x86_64-suse-linux, applied on the mainline. 2012-07-18 Eric Botcazou * gcc-interface/trans.c (stmt_group_may_fallthru): New function. (gnat_to_gnu) :

[patch] Fix spurious 'noreturn' function does return warning at -O0 (2)

2012-07-18 Thread Eric Botcazou
This fixes a spurious 'noreturn' function does return warning at -O0 on code involving an exception block. I overlooked this case when I implemented the mechanism in gimple-low.c during the 4.5 development phase. Tested on x86_64-suse-linux, OK for the mainline? 2012-07-18 Eri

<    30   31   32   33   34   35   36   37   38   39   >