Re: I'm sorry, but this is unacceptable (union members and ctors)

2007-06-19 Thread Ross Ridge
a chance of being seriously considered. Ross Ridge

Re: recent troubles with float vectors bitwise ops

2007-08-22 Thread Ross Ridge
for flipping bits in single-precision vectors. If you want GCC to generate better code using single-precision bitwise instructions you're now forced to use the intrinsics. Ross Ridge

Re: recent troubles with float vectors bitwise ops

2007-08-22 Thread Ross Ridge
Ross Ridge writes: tbp is correct. Using casts gets you the integer bitwise instrucitons, not the single-precision bitwise instructions that are more optimal for flipping bits in single-precision vectors. If you want GCC to generate better code using single-precision bitwise instructions you're

Re: recent troubles with float vectors bitwise ops

2007-08-22 Thread Ross Ridge
Ross Ridge [EMAIL PROTECTED] wrote: GCC makes the problem is even worse if only SSE and not SSE 2 instructions are enabled. Since the integer bitwise instructions are only available with SSE 2, using casts instead of intrinsics causes GCC to expand the operation into a long series

Re: [RFC] try to generate FP and/or/xor instructions for SSE

2007-08-23 Thread Ross Ridge
. Ross Ridge

Re: recent troubles with float vectors bitwise ops

2007-08-24 Thread Ross Ridge
be to implement either the swizzles used in 3D shaders or array indexing on vectors. It would require a lot of work to implement properly, so I don't see it happening.) Ross Ridge

Re: Preparsing sprintf format strings

2007-10-11 Thread Ross Ridge
. Ross Ridge

Re: Preparsing sprintf format strings

2007-10-12 Thread Ross Ridge
[EMAIL PROTECTED] (Ross Ridge) writes: The entire parsing of the format string is affected by the multi-byte character encoding. I don't know how GCC would be able tell that a byte with the same value as '%' in the middle of string would actually be interpreted as '%' character rather than

Re: Preparsing sprintf format strings

2007-10-12 Thread Ross Ridge
Ross Ridge writes: The compiler can't in general know what encoding that printf, fprintf, and sprintf will use to parse the string. It's locale dependent. Paolo Bonzini writes: It is undefined what happens if you run a program in a different charset than in the one you specified for -fexec

Re: Preparsing sprintf format strings

2007-10-12 Thread Ross Ridge
Ross Ridge wrote: The compiler can't in general know what encoding that printf, fprintf, and sprintf will use to parse the string. It's locale dependent. Bernd Schmidt writes: Does this mean it can vary from one run of the program to another? Yes, that's the whole point having locales. So

Re: Preparsing sprintf format strings

2007-10-12 Thread Ross Ridge
Ross Ridge writes: The entire parsing of the format string is affected by the multi-byte character encoding. I don't know how GCC would be able tell that a byte with the same value as '%' in the middle of string would actually be interpreted as '%' character rather than a part of an extended

Re: Preparsing sprintf format strings

2007-10-12 Thread Ross Ridge
[EMAIL PROTECTED] (Ross Ridge) writes: I don't think that's true, but regardless many systems have runtime character sets that are dependent on locale. If GCC doesn't support this, then GCC is broken. Geoffrey Keating writes: I don't think it's unreasonable to insist that you tell

Re: gomp slowness

2007-10-17 Thread Ross Ridge
. Ross Ridge

Re: strict aliasing

2007-11-05 Thread Ross Ridge
analysis to avoid this problem. Ross Ridge

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-26 Thread Ross Ridge
. Ross Ridge

Re: BITS_PER_UNIT less than 8

2007-12-07 Thread Ross Ridge
. Ross Ridge

Re: libiberty/pex-unix vfork abuse?

2007-12-07 Thread Ross Ridge
() instead of vfork() when changing the environment. Ross Ridge

Re: A proposal to align GCC stack

2007-12-17 Thread Ross Ridge
unwind information, but couldn't it handle this case without creating the pseudo frame? Or at least be extended so it could? Ross Ridge

Re: A proposal to align GCC stack

2007-12-18 Thread Ross Ridge
Ross Ridge writes: This section doesn't make sense to me. The force_align_arg_pointer attribute and -mstackrealign assume that the ABI is being followed, while the -fpreferred-stack-boundary option effectively H.J. Lu hjl at lucon dot org writes According to Apple engineer who implemented

Re: A proposal to align GCC stack

2007-12-18 Thread Ross Ridge
Ye, Joey writes: i. STACK_BOUNDARY in bits, which is enforced by hardware, 32 for i386 and 64 for x86_64. It is the minimum stack boundary. It is fixed. Ross Ridge wrote: Strictly speaking by the above definition it would be 8 for i386. The hardware doesn't force the stack to be 32-bit aligned

Re: A proposal to align GCC stack

2007-12-18 Thread Ross Ridge
Ross Ridge wrote: The -fpreferrred-stack-boundary flag currently generates code that assumes the stack aligned to the preferred alignment on function entry. If you assume a worse incoming alignment you'll be aligning the stack unnecessarily and generating code that this flag doesn't require

Re: A proposal to align GCC stack

2007-12-18 Thread Ross Ridge
Robert Dewar writes: Well if we have local variables of type float (and we have specified use of SSE), we are in trouble, no? Non-vector SSE instructions, like the ones that operate on scalar floats, don't require memory operands to be aligned. Ross Ridge

Re: A proposal to align GCC stack

2007-12-18 Thread Ross Ridge
Ross Ridge wrote: I'm currently using -fpreferred-stack-boundary without any trouble. Your proposal would in fact generate code to align stack when it's not necessary. This would change the behaviour of -fpreferred-stack-boundary, hurting performance and that's unacceptable to me. Ye, Joey

Re: A proposal to align GCC stack

2007-12-19 Thread Ross Ridge
have. Ross Ridge

Re: A proposal to align GCC stack

2007-12-19 Thread Ross Ridge
Ross Ridge writes: As I mentioned later in my message STACK_BOUNDARY shouldn't be defined in terms of hardware, but in terms of the ABI. While the i386 allows the stack pointer to bet set to any value, by convention the stack pointer is always kept 4-byte aligned at all times. GCC should

Re: A proposal to align GCC stack

2007-12-19 Thread Ross Ridge
. Ross Ridge

Re: __builtin_expect for indirect function calls

2008-01-06 Thread Ross Ridge
; } If cases like these are rare enough it's probably an acceptable change if they give an error because the argument types don't match. Ross Ridge

RE: Memory leaks in compiler

2008-01-17 Thread Ross Ridge
doesn't need an MMU or virtual memory in order to free all the memory used by a process when it exits. MS-DOS did this, and I assume AmigaOS did as well. Ross Ridge

Re: [m32c] type precedence rules and pointer signs

2008-01-30 Thread Ross Ridge
on. Ross Ridge

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-02 Thread Ross Ridge
. Ross Ridge

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-02 Thread Ross Ridge
. Ross Ridge

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-02 Thread Ross Ridge
Robert Dewar write: Usually there are ways of telling what is going on at a sufficiently low level, but in any case, code using the conditional jump instruction (jo/jno) is hugely better than what we do now (and it is often faster to usea jo than into). Ross Ridge wrote: My point is that using

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-02 Thread Ross Ridge
a SIGSEGV can be generated. Ross Ridge

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-02 Thread Ross Ridge
Ross Ridge writes: On Unix-like systems you can catch SIGABRT, but even there how do you tell that it didn't come from CTRL-\... Oops, I forgot that CTRL-\ had it own signal SIGQUIT. Ross Ridge

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-03 Thread Ross Ridge
Ross Ridge: With INTO I don't see any way distignuish the SIGSEGV it generates on Linux from any of the myriad other ways a SIGSEGV can be generated. Paolo Bonzini writes: sc.eip == 0xCE (if I remember x86 opcodes well :-) as I'm going by heart...) The INTO instruction generates a trap exception

Re: atomic accesses

2008-03-04 Thread Ross Ridge
so would be more difficult than a simple documentation change. Ross Ridge

Re: How to teach gcc, that registers are clobbered by api calls?

2008-04-21 Thread Ross Ridge
are volatile (caller-saved), while XMM6-XXM15 are non-volatile (callee-saved). Ross Ridge

Re: How to teach gcc, that registers are clobbered by api calls?

2008-04-22 Thread Ross Ridge
changes to regclass.c is probably not the right thing to do. Ross Ridge

Re: Problem with x64 SEH macro implementation for ReactOS

2008-11-26 Thread Ross Ridge
to the specific problem he mentioned, connecting nested functions to their try blocks, would be to emit address pairs to a special section. Ross Ridge

Re: Problem with x64 SEH macro implementation for ReactOS

2008-11-27 Thread Ross Ridge
support Windows wouldn't ordinarily ever need to unwind through GCC compiled code. I assumed that's why it was never implemented. Ross Ridge

Re: Problem with x64 SEH macro implementation for ReactOS

2008-11-27 Thread Ross Ridge
code quite well I don't see how it would be possible in the general case. Without the unwind talbes Windows doesn't have the required information to unwind through GCC compiled functions. Ross Ridge

Re: Problem with x64 SEH macro implementation for ReactOS

2008-11-28 Thread Ross Ridge
sections would be a good thing for better support of MS abis by gcc. I'm not advocating that they should be added to GCC now. I'm just pointing out that without them 64-bit SEH macros will be of limitted use. Ross Ridge

Re: Problem with x64 SEH macro implementation for ReactOS

2008-12-03 Thread Ross Ridge
function and give it whatever data you need. Ross Ridge

Re: Problem with pex-win32.c

2006-03-10 Thread Ross Ridge
... if that #! kludge is being used here then it could be the shell that's losing the console. Ross Ridge

Re: Problem with pex-win32.c

2006-03-10 Thread Ross Ridge
Ross Ridge wrote: I think you're barking up the wrong tree here. Windows only creates console windows automagically when a console application starts that can't inherit its parent's console window. Mark Mitchell wrote: Exactly -- there is no parent console window here. Why isn't

Re: Problem with pex-win32.c

2006-03-12 Thread Ross Ridge
and Cygwin rxvt: Cygwin rxvt === parent spawn: Works. parent nostd: No output from child. parent std: Works. I wasn't able to test it with xterm, I don't have an X server handy, but it looks your problem is with xterm, not gcc. Ross Ridge

Re: Problem with pex-win32.c

2006-03-14 Thread Ross Ridge
is that your xterm is broken. Ross Ridge

Re: Problem with pex-win32.c

2006-03-14 Thread Ross Ridge
in such a enviroment. Why should Mark expect a Win32 console version gcc to be any different? Hmm... maybe that's best solution, Mark should be using a native Cygwin version of gcc and tools. Ross Ridge

Re: Problem with pex-win32.c

2006-03-14 Thread Ross Ridge
Ross Ridge wrote: Arguably, not having a console window attached a shell window is broken in the Cygwin environment. Paul Brook wrote: How exactly do you suggest implementing this? The same way Cygwin rxvt implements this. By implication you're saying that you shouldn't able to use gcc

Re: FSF Policy re. inclusion of source code from other projects in GCC

2006-03-17 Thread Ross Ridge
into the public domain. Sun still owns the copyright of the software. Ross Ridge

Re: Toolchain relocation

2006-04-17 Thread Ross Ridge
Dave Murphy wrote: install: e:/devkitPro/devkitARM/lib/gcc/arm-elf/4.1.0/ Don't use a --prefix with a drive letter. Just use --prefix=/devkitARM, and then use make install DESTDIR=e:/devkitPro to install it where you actually want it. Ross Ridge

Re: Crossed-Native Builds, Toolchain Relocation and MinGW

2006-04-24 Thread Ross Ridge
but isn't ideal. MinGW GCC is a native Win32 application and is unaffected by any mounts you create with MSYS. Ross Ridge

Re: Crossed-Native Builds, Toolchain Relocation and MinGW

2006-04-24 Thread Ross Ridge
Ross Ridge wrote: That makes no difference. MinGW GCC is a native Win32 application and can't see any mounts you create with MSYS. Dave Murphy wrote: sorry but you're most definitely wrong about that No, I'm not. The example you gave shows how MSYS mounts have an effect on the MSYS shell

Re: Crossed-Native Builds, Toolchain Relocation and MinGW

2006-04-25 Thread Ross Ridge
-pc-mingw32/bin) where you should install the version of as.exe and ld.exe you want that installation of gcc to use. Ross Ridge

Re: Segment registers support for i386

2006-05-21 Thread Ross Ridge
. Ross Ridge

Re: Segment registers support for i386

2006-05-29 Thread Ross Ridge
() in i386.c. Ross Ridge

Re: mingw32 subtle build failure

2006-05-31 Thread Ross Ridge
FX Coudert wrote: -B/mingw/i386-pc-mingw32/bin/ This looks wrong, it should be /mingw/mingw32/bin. Putting a copy of as and ld in /mingw/i386-pc-mingw32/bin might work around your problem. Ross Ridge

Re: Segment registers support for i386

2006-05-31 Thread Ross Ridge
expression which use reg: force gcc to use a particular pseudo register ? Pseudo registers aren't real registers. They either get changed to real hard registers, or memory references to stack slots. See the internals documentation for more details. Ross

Re: TLS on windows

2006-06-04 Thread Ross Ridge
a linker script to do that, but it should be in a library so the TLS directory entry isn't created if the executable doesn't use TLS. Ross Ridge

Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix

2006-06-05 Thread Ross Ridge
? Ross Ridge

Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix

2006-06-05 Thread Ross Ridge
Ross Ridge wrote: The GCC I get from my native MinGW build of the trunk is relocatable: Hmm... I should have sent that to gcc-patches, sorry. Ross Ridge

Re: TLS on windows

2006-06-08 Thread Ross Ridge
Ross Ridge wrote: Actually, the last one I haven't done yet. I've just been using a linker script to do that, but it should be in a library so the TLS directory entry isn't created if the executable doesn't use TLS. Richard Henderson wrote: You can also create this in the linker, without

Re: Coroutines

2006-06-18 Thread Ross Ridge
the Lua-style coroutines you're looking are any lightweight than what Maurizio Vitale is looking for. They're actually more heavyweight because you need to implement some method of returning values to the coroutine being yeilded to. Ross Ridge

Re: Coroutines

2006-06-19 Thread Ross Ridge
Ross Ridge wrote: Hmm? I don't see how the Lua-style coroutines you're looking are any lightweight than what Maurizio Vitale is looking for. They're actually more heavyweight because you need to implement some method of returning values to the coroutine being yeilded to. Dustin Laurence wrote

Re: why are we not using const?

2006-06-27 Thread Ross Ridge
for arguments declared as const, as opposed to arguments declared as pointing to const. Ross Ridge

Re: RFC: __cxa_atexit for mingw32

2006-06-28 Thread Ross Ridge
then. Ross Ridge

Re: does gcc support multiple sizes, or not?

2006-08-17 Thread Ross Ridge
templates work...) Ross Ridge

Re: Merging identical functions in GCC

2006-09-15 Thread Ross Ridge
to do it safely would be to emit some sort instruction not to merge a function when the compiler sees that its address is taken. Ross Ridge

Re: Merging identical functions in GCC

2006-09-15 Thread Ross Ridge
Ross Ridge writes: I don't think this is a good idea. With different compiler options the same RTL can generate different assembly instructions. Consider the case of compiling the same function multiple times with different names and different CPU architectures selected. You'd actually want

Re: Merging identical functions in GCC

2006-09-16 Thread Ross Ridge
Ross Ridge writes: No, and I can't see how how you've came up with such an abusurd misintepretation of what I said. As I said clearly and explicity, the example I gave was where you'd want to use function merging. Daniel Berlin writes: Whatever. Why would you turn on function merging if you

Re: Merging identical functions in GCC

2006-09-16 Thread Ross Ridge
by their implementation. Yes, this issue has already been mentioned in this thread and is a problem regardless of how you compare functions to find out if they are the same. The compiler also needs to be able to detect when its safe to merge functions that are identical. Ross

Re: Merging identical functions in GCC

2006-09-16 Thread Ross Ridge
Ross Ridge writes: Microsoft's implementation has proven that stupid byte comparions can generate significant savings. Daniel Berlin wrtes: No they haven't. So Microsoft and everyone who says they've got significant savings using it is lying? But have fun implementing it in your linker

Re: Merging identical functions in GCC

2006-09-16 Thread Ross Ridge
support isn't available you're still left with an unsafe but very useful optimization for applications that don't compare function pointers. Ross Ridge

Re: Merging identical functions in GCC

2006-09-18 Thread Ross Ridge
be compared in another compilation unit. Ross Ridge

Re: Why doesn't libgcc define _chkstk on MinGW?

2006-11-04 Thread Ross Ridge
Ross Ridge wrote: There are other MSC library functions that MinGW doesn't provide, so libraries may not link even with a _chkstk alias. Mark Mitchell wrote: Got a list? Probably the most common missing symbols, using their assembler names are: __ftol2 @[EMAIL PROTECTED

Re: dg-error vs. i18n?

2009-10-27 Thread Ross Ridge
. Ross Ridge

Re: dg-error vs. i18n?

2009-10-28 Thread Ross Ridge
Ross Ridge wrote: The correct fix is for GCC not to intentionally choose to rely on implementation defined behaviour when using the C locale. GCC can't portably assume any other locale exists, but can portibly and easily choose to get consistant output when using the C locale. Joseph S

Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to detect GCC messing with mcount prologue

2009-11-24 Thread Ross Ridge
disapear as well. The kernel would then be free to choose to use whatever code generation options it felt was appropriate. Ross Ridge

Re: Why not contribute? (to GCC)

2010-04-24 Thread Ross Ridge
and that's what matters. Compared other open and closed projects I've seen it's as easy to understand and maintain as anything. GNU binutils is a pile of poo, but I don't know of any codebase the size of GCC that's as nice to work with. Ross Ridge

Re: Why not contribute? (to GCC)

2010-04-26 Thread Ross Ridge
likely to contribute to GCC. Please refer to GCC as a free software project, it was written by the GNU project and the free software community. Oh, yah, forgot about that one. Political stuff like this another reason not to get involved with GCC. Ross Ridge

Re: Why not contribute? (to GCC)

2010-04-26 Thread Ross Ridge
Ross Ridge writes: Years ago, I was asked to sign one of these documents for some public domain code I wrote that I never intended to become part of a FSF project. Someone wanted to turn it a regular GNU project with a GPL license, configure scripts, a cute acronym and all that stuff. I said

Re: Threading the compiler

2006-11-10 Thread Ross Ridge
enough project in it's own right. Ross Ridge

Re: strict aliasing question

2006-11-11 Thread Ross Ridge
= conn-oparams.maxoutbuf; into code like this: *pvalue = (void *) conn-oparams.maxoutbuf; Ross Ridge

Re: Threading the compiler

2006-11-11 Thread Ross Ridge
Ross Ridge wrote: Umm... those 80 processors that Intel is talking about are more like the 8 coprocessors in the Cell CPU. Michael Eager wrote: No, the Cell is asymmetrical (vintage 2000) architecture. The Cell CPU as a whole is asymmetrical, but I'm only comparing the design to the 8 identical

Re: bootstrap failure on HEAD

2006-11-12 Thread Ross Ridge
. Ross Ridge

Re: I need some advice for x86_64-pc-mingw32 va_list calling convention (in i386.c)

2007-02-26 Thread Ross Ridge
need to allocate space for 4 arguments. The only thing different you need to do with functions taking variable arguments (and unprototyped functions) is to pass floating point values both in the integer and floating point registers for that argument. Ross

Re: symbol names are not created with stdcall syntax: MINGW, (GCC) 4.3.0 20061021

2007-03-10 Thread Ross Ridge
to be called from VisualBasic 6 or some other stdcall only environment should explictly declare it's exported functions with the stdcall calling convention. Ross Ridge

Re: symbol names are not created with stdcall syntax: MINGW, (GCC) 4.3.0 20061021

2007-03-12 Thread Ross Ridge
Ross Ridge wrote: Any library that needs to be able to be called from VisualBasic 6 or some other stdcall only environment should explictly declare it's exported functions with the stdcall calling convention. Tobias Burnus writes: Thus, if I understood you correctly, you recommend that we add

Re: Building mainline and 4.2 on Debian/amd64

2007-03-19 Thread Ross Ridge
32-bit support, but the build procedure breaks anyways because it assumes 32-bit libraries are in lib and 64-bit libraries are in lib64. Instead, this Debian-like AMD64 system has 32-bit libraries in lib32 and 64-bit libraries in lib. Ross Ridge

Re: i386: Problems with references to import symbols.

2007-03-21 Thread Ross Ridge
. It looks like MSC requires that you link with the static CRT libraries if you want strict standard conformance. Ross Ridge

Re: RFC: Enable __declspec for Linux/x86

2007-04-03 Thread Ross Ridge
. Ross Ridge

Re: Integer overflow in operator new

2007-04-07 Thread Ross Ridge
have an impact, like for pool allocators that are otherwise very cheap. If so, there could be a flag to suppress the check. Excessive code size growth could also be problem for some programs. Ross Ridge

Re: Integer overflow in operator new

2007-04-07 Thread Ross Ridge
Joe Buck writes: If a check were to be implemented, the right thing to do would be to throw bad_alloc (for the default new) or return 0 (for the nothrow new). Ross Ridge writes: What do you do if the user has defined his own operator new that does something else? Gabriel Dos Reis writes: More

Re: Integer overflow in operator new

2007-04-07 Thread Ross Ridge
[EMAIL PROTECTED] (Ross Ridge) writes: Well, for example, like all other things that a new_handler can do, like throwing an exception derived from bad_alloc or calling exit(). In addition, any number of side effects are possible, like printing error messages or setting flags. Gabriel Dos Reis

Re: Integer overflow in operator new

2007-04-07 Thread Ross Ridge
your example above. Since this result of this caclulation isn't undefined, even if it overflows, there's no room for the compiler to calculate a different value to pass to operator new(). Ross Ridge

Re: Integer overflow in operator new

2007-04-08 Thread Ross Ridge
) return ~size_t(0); return num * size; } Ross Ridge

Re: Integer overflow in operator new

2007-04-09 Thread Ross Ridge
concerned about security happy. People more concerned with size or speed aren't going to enable this feature. Ross Ridge

Re: MinGW, GCC Vista,

2007-05-08 Thread Ross Ridge
for the MinGW runtime to be compatibile with both previous implementations and Windows Vista I think this change makes sense. Ross Ridge

Re: I'm sorry, but this is unacceptable (union members and ctors)

2007-06-16 Thread Ross Ridge
been implemented GCC. Even in the cases where C99 standardized features differently, I think both GCC and Standard C benefited from the work done in GCC. Ross Ridge

Re: I'm sorry, but this is unacceptable (union members and ctors)

2007-06-17 Thread Ross Ridge
Ross Ridge wrote: I completely disagree. Standards should primarily standardize existing practice, not inventing new features. New features should be created by people who actually want and will use the features, not by some disinterested committee. Robert Dewar write: First of all, I think you

  1   2   >