Re: Ping: [PATCH] non-GNU C++ compilers

2011-10-21 Thread DJ Delorie
Committed. Thanks!

Re: PATCH RFA: New configure option --with-native-system-header-dir

2011-10-10 Thread DJ Delorie
+ yes|no) AC_MSG_ERROR([bad value ${withval} given for --with-native-system-header-dir]) ;; + /*) ;; + *) AC_MSG_ERROR([--with-native-system-header-dir argument ${withval} must be an absolute directory]) ;; This doesn't handle DOS-style absolute paths (like c:/Users). Not sure if we care

Re: [ping 3] [patch] attribute to reverse bitfield allocations

2011-09-26 Thread DJ Delorie
Ping 3 ? I'd like to get this in before stage1 ends... There's RX-specific code that goes with it that can't go in until the core functionality is approved. http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01889.html http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02555.html

Re: Include $(CFLAGS-$@) in ALL_CXXFLAGS

2011-08-23 Thread DJ Delorie
There are some gcc flags that are not legal g++ flags, though...

Re: Include $(CFLAGS-$@) in ALL_CXXFLAGS

2011-08-23 Thread DJ Delorie
Hmm... ok, I'm just a tad paranoid about using the name CFLAGS for g++, someone's bound to do the stupid thing eventually.

Re: RFC: [build, ada] Centralize PICFLAG configuration

2011-08-22 Thread DJ Delorie
Do I need to sync the config and libiberty parts to src manually or does this happen by some sort of magic? intl/; config.rhost; libiberty/; libiberty's part of include/ gcc: http://gcc.gnu.org Changes need to be done in tandem with the official GCC sources or

[ping 2] [patch] attribute to reverse bitfield allocations

2011-08-22 Thread DJ Delorie
Ping 2 ? http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01889.html http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02555.html

Re: [M32C] Hookize CLASS_MAX_NREGS

2011-08-22 Thread DJ Delorie
OK to install? * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro. * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove. * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change regclass argument type to reg_class_t. Change 'max' and 'v'

Re: [M32C] Hookize PREFERRED_RELOAD_CLASS and PREFERRED_OUTPUT_RELOAD_CLASS

2011-08-14 Thread DJ Delorie
Ok.

Re: [backport] arm,rx: don't ICE on naked functions with local vars

2011-07-29 Thread DJ Delorie
Probably. Thanks for the leg-work. I'll approve the patch as-is. May I apply it to the 4.5 and 4.6 branches? The same patch applies as-is to both.

Re: [patch] attribute to reverse bitfield allocations

2011-07-28 Thread DJ Delorie
Seeing little opposition, I plod further... now with documentation and a test case. OK yet? Ping? http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01889.html

Re: [patch] arm,rx: don't ICE on naked functions with local vars

2011-07-28 Thread DJ Delorie
Naked is related to TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS - ARM and RX set the latter based on the former, and nobody else uses that target hook. So, naked functions don't have stack slots for args. Without stack slots, args can't be assigned to memory locations - even if they're

Re: [patch] arm,rx: don't ICE on naked functions with local vars

2011-07-28 Thread DJ Delorie
Fails the same way with a parameter as with a local: int result; void __attribute__((naked)) ISRFunction(int x) { result = subFunction(x); } but I'm certainly open to a better explanation of how a user program can trigger an ICE that way. Hmmm... the only use of

Re: [patch] arm,rx: don't ICE on naked functions with local vars

2011-07-28 Thread DJ Delorie
Thanks! Committed.

Re: PR 45819 - possible fix?

2011-07-26 Thread DJ Delorie
So don't lie to GCC then? You specify struct X { char c; int i; } __attribute__((packed)) x; and expect that GCC knows x.i is aligned to 4 bytes!? The actual header is much more complex than this trivial example. It also fails with this example, where the port_status[] array *is*

[patch] RX: don't renumber interrupt registers

2011-07-26 Thread DJ Delorie
If a function is both a leaf function and an interrupt function, leaf register renumbering causes the wrong set of registers to be saved. This patch disables renumbering for interrupt functions. * config/rx/rx.c (rx_leaf_registers): New. (rx_set_leaf_registers): New.

[patch] arm,rx: don't ICE on naked functions with local vars

2011-07-26 Thread DJ Delorie
This patch tests for at least one user-caused reason for this assertion failing - requiring a local frame in a naked function. For this case at least, it would be better to trigger an error than to ICE. OK? static int bar; void __attribute__((naked)) function(void) { int foo, result;

Re: PR 45819 - possible fix?

2011-07-25 Thread DJ Delorie
Fact is that GCC knows that memory is not properly aligned. So in the impossibly rare case that gcc is *wrong*, how is the programmer supposed to tell gcc that? I mean, gcc 4.4 has been doing what the programmer wanted, and zillions of ARM devices have been happily working, and now you tell me

Re: [M32C] Hookize PRINT_OPERAND, PRINT_OPERAND_ADDRESS and PRINT_OPERAND_PUNCT_VALID_P

2011-07-25 Thread DJ Delorie
Ok.

Re: PR 45819 - possible fix?

2011-07-23 Thread DJ Delorie
I built an arm kernel with it, the USB stuff works. I take that back - booted the wrong kernel. Didn't work, but I'll confirm that I'm building with a patched gcc (too many kernels and compilers to keep track of ;)

Re: PR 45819 - possible fix?

2011-07-23 Thread DJ Delorie
Yeah, the testcase is invalid - that we lost the volatile was a bug, but you really have to fix the kernel. Sadly, that's not a helpful suggestion. How else should the kernel force a word-sized read? I thought volatile was the way to tell gcc do exactly what I tell you to do ? And the

Re: PR 45819 - possible fix?

2011-07-22 Thread DJ Delorie
I'm testing the following. Richard. 2011-07-22 Richard Guenther rguent...@suse.de PR tree-optimization/45819 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly preserve volatile and notrap flags. * gcc.dg/pr45819.c: New testcase. I

cp/cvt: don't assume pointer sizes

2011-07-21 Thread DJ Delorie
Some targets (m32c, tpf, mips) have more than one pointer size. It is not correct to assume that a pointer is POINTER_SIZE. Index: gcc/cp/cvt.c === --- gcc/cp/cvt.c(revision 176554) +++ gcc/cp/cvt.c(working copy) @@

[patch] attribute to reverse bitfield allocations

2011-07-21 Thread DJ Delorie
Seeing little opposition, I plod further... now with documentation and a test case. OK yet? Index: doc/extend.texi === --- doc/extend.texi (revision 176586) +++ doc/extend.texi (working copy) @@ -5089,12 +5089,74 @@ Note

PR 45819 - possible fix?

2011-07-20 Thread DJ Delorie
In this PR, a cast to a volatile type is lost during forwprop1, resulting in the wrong access semantics being used for a memory-mapped peripheral register. Checking for loss of volatile in this patch solves the problem, but I don't know if this is the right place to put such a test - it could go

RFC: attribute to reverse bitfield allocations

2011-07-11 Thread DJ Delorie
Finally getting around to writing this one. The idea is to have an attribute which determines how bitfields are allocated within words (lsb-first vs msb-first), assuming the programmer doesn't ask us to do something impossible. __attribute__((bitorder(FOO))) where FOO is: native (or omitted,

Re: Removing target-libiberty (was: Re: Libiberty: POSIXify psignal definition)

2011-06-22 Thread DJ Delorie
Ok for trunk? Ok with me. I'll let the branch maintainers decide if they want it for their branches.

Re: [RFA/libiberty] Darwin has case-insensitive filesystems

2011-06-14 Thread DJ Delorie
Looks OK to me.

Re: Libiberty: POSIXify psignal definition

2011-06-08 Thread DJ Delorie
Since you feel so strongly about it and nobody objects, go ahead. Backport to open branches? (And note PR48825.) I've already given my OK, it's up to the branch managers to apply as they see fit.

Re: Ping:Re: Skip building target libiberty for arm*-*-linux-androideabi

2011-06-03 Thread DJ Delorie
Ping. http://gcc.gnu.org/ml/gcc-patches/2011-05/msg02208.html I don't have the bandwidth to work on the ideal patch. Thus I am wondering if we can skip target-libiberty for androideabi target before the ideal patch is out. Target-specific changes in the build are up to the target

Re: [patch] testsuite: support board_info timeouts

2011-06-02 Thread DJ Delorie
I never got feedback from the testsuite maintainers on this one... Date: Mon, 9 Aug 2010 23:48:31 -0400 From: DJ Delorie d...@redhat.com Mailing-List: contact gcc-patches-h...@gcc.gnu.org; run by ezmlm Is there any reason why we don't support board-level timeouts? It's really hard

Re: [patch] testsuite: support board_info timeouts

2011-06-02 Thread DJ Delorie
Thanks! Committed.

Re: [PATCH][RFC] Init sizetypes based on target defs

2011-05-31 Thread DJ Delorie
hmm, yes. Again practically for most targets size_t will be following its SIZE_TYPE advice, but surely not for all. OTOH while the above clearly doesn't look accidential, it certainly looks wrong. If not for sizetype then at least for size_type_node. The comment hints that the patch at

Re: [PATCH][RFC] Init sizetypes based on target defs

2011-05-31 Thread DJ Delorie
Which means that Ada must be seriously broken on m32c (well, I guess nobody tried it there ;)). I usually only build C and C++.

Re: Libiberty: POSIXify psignal definition

2011-05-26 Thread DJ Delorie
Yes please. I've been arguing for that for some time. Since you feel so strongly about it and nobody objects, go ahead. http://gcc.gnu.org/ml/gcc/2009-04/msg00410.html http://gcc.gnu.org/ml/gcc/2010-03/msg2.html http://gcc.gnu.org/ml/gcc/2010-03/msg00012.html

Re: Unreviewed build patches

2011-05-23 Thread DJ Delorie
there's nothing that could affect them. Famous last words :-)

Re: Unreviewed build patches

2011-05-20 Thread DJ Delorie
[build] More --enable-threads cleanup http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00059.html This might well be obvious. Also, we usually leave those up to the target maintainers, since they're target specific. But if it's just a correlation between the script and a list of

Re: Libiberty: POSIXify psignal definition

2011-05-18 Thread DJ Delorie
And the problem is that libiberty is assuming that it *knows* what functions newlib provides, so that it doesn't need to check directly. This is just broken... Historically, cygwin was built using libiberty and newlib, so you did not have a runtime at the time you were building libiberty,

Re: Libiberty: POSIXify psignal definition

2011-05-18 Thread DJ Delorie
What about these? dependencies = { module=all-target-fastjar; on=all-target-libiberty; }; dependencies = { module=all-target-libobjc; on=all-target-libiberty; }; dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };

Re: Libiberty: POSIXify psignal definition

2011-05-17 Thread DJ Delorie
* strsignal.c (psignal): Change second parameter to const char *. Fix comment accordingly. OK. I had argued against this patch: http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00439.html The newlib change broke ALL released versions of gcc, and the above patch does NOT fix the

Re: Libiberty: POSIXify psignal definition

2011-05-17 Thread DJ Delorie
So regardless of whether the changes to newlib are a good idea or not, I think the fix to libiberty is still right. Irrelevent. I said I'd accept that change *after* the real problem is fixed. The real problem hasn't been fixed. The real problem is that libibery should NOT INCLUDE PSIGNAL

Re: Libiberty: POSIXify psignal definition

2011-05-17 Thread DJ Delorie
Thanks. I just have no check in rights to the gcc repository. I applied the change to the sourceware CVS repository but for gcc I need a proxy. Please, never apply libiberty patches only to src. They're likely to get deleted by the robomerge. The rule is: gcc only, or both at the same

Re: Libiberty: POSIXify psignal definition

2011-05-17 Thread DJ Delorie
What I don't understand is why the newlib change broke older compilers. Older compilers have the older libiberty. At the moment, libiberty cannot be built by *any* released gcc, because you cannot *build* any released gcc, because it cannot build its target libiberty. The function has been

[4.6,trunk,rx] avoid LABEL_NUSES on barriers

2011-05-11 Thread DJ Delorie
Occasionally, gcc passes a barrier instead of a label. This accomodates such an event. Applies to 4.6 and trunk, and needed on both to build newlib. Ok? * config/rx/rx.c (rx_align_for_label): Don't test for LABEL_NUSES on a barrier. Index: gcc/config/rx/rx.c

[rx] simulated conditional exec

2011-05-11 Thread DJ Delorie
This adds a simulated conditional execution option to the RX backend. The RX can do a short conditional forward branch faster than a regular conditional branch (1 byte, 1 cycle!), as long as it's only branching across one or two insns. This patch encourages this behavior via the condexec

Re: [PING] config/mep/mep.c: don't translate syntax description.

2011-05-06 Thread DJ Delorie
OK to check in? Ok with me. Thanks! 2011-05-06 Philipp Thomas p...@suse.de * config/mep/mep.c (mep_validate_vliw): Syntax description should not be translated.

Re: newlib vs. libiberty mismatch breaks build (Re: [PATCH] Export psignal on all platforms)

2011-05-05 Thread DJ Delorie
I don't know how to avoid this problem in configure, other than by adding AC_LIBOBJ([psignal]). Right, the correct solution is - libiberty shouldn't provide psignal if newlib does. Making it match newlib is the wrong solution.

Re: newlib vs. libiberty mismatch breaks build (Re: [PATCH] Export psignal on all platforms)

2011-05-05 Thread DJ Delorie
You don't mean the prototype, do you? IMHO the char * should still be changed to const char * to adhere to POSIX. So far, it's served as a good tool for detecting when libiberty's configure isn't doing its job :-) At this point, we should avoid fixing it until the newlib/configure issue is

Re: [PATCH] use build_function_type_list in the mep backend

2011-04-20 Thread DJ Delorie
* config/mep/mep.c (mep_init_builtins): Call build_function_type_list instead of build_function_type. Ok.

Re: Ping^2 Re: Target header etc. cleanup patch

2011-04-20 Thread DJ Delorie
The m32c one is OK

Re: mt-mep using EXTRA_TARGET_HOST_ALL_MODULES?

2011-03-24 Thread DJ Delorie
There's a top-level utils/ subdir in some trees. Yes, MeP has a tool there.

Re: RX: 4.5 branch: Fix alignment and addressing issues.

2011-03-17 Thread DJ Delorie
What is length used for in the rx port? We have a local patch that uses the length to decide if/when to align labels; it goes along with the label alignment change I made a while back. However, the patch works best in 4.5 (align patch not backported) and there are other optimization problems

Re: 4.5 backport request...

2011-03-11 Thread DJ Delorie
I don't think this is suitable for the branch. Any reason why you can't work on the trunk? The vendor's release is 4.5 based, and 4.6 has some performance regressions with this chip. We'd like to sync up the FSF sources with the minor patches the vendor is using, so that their customers can

Re: [4.7] Avoid global state in mep_handle_option

2011-03-09 Thread DJ Delorie
Tested building cc1 and xgcc for cross to mep-elf. Will commit to trunk for 4.7 in the absence of target maintainer objections. No objections from me.

Re: [PATCH] avoid memory overrun in a test leading to potential double-free

2011-03-08 Thread DJ Delorie
avoid memory overrun in a test leading to potential double-free * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: i.e., do copy the trailing NUL byte. Ok. Thanks!

Re: [patch libiberty include]: Add additional helper functions for directory-separator searching

2011-03-08 Thread DJ Delorie
I think we don't need filename_dirchr, only filename_dirrchr. I see no harm in having both, for completeness, though. One could argue they should be in separate files, but they're trivial functions on non-dos-fs systems. What bothers me about this patch is that we're adding yet another set of

Re: [RFA] libiberty/hashtab.c, higher_prime_index: avoid array overrun

2011-03-03 Thread DJ Delorie
I was just wondering whether now would be a good time to mention Probably not, gcc being in stage 4 and all...

Re: [4.7] Avoid global state in m32c_handle_option

2011-03-03 Thread DJ Delorie
Tested building cc1 and xgcc for cross to m32c-elf. Will commit to trunk for 4.7 in the absence of target maintainer objections. Go for it :-)

<    1   2   3   4   5   6