Problem with stores and loads from unions and proposed fix

2010-02-05 Thread Martin Chaney
This problem showed up in a PDP10 C version of GCC I'm responsible for and took a good while to track down. The fix is in generic gcc code so even though my PDP10 compiler is not an official gcc version and I haven't been successful at creating a failing program on the Intel compiler it seems

Re: _cpp_line_note structure in front end

2010-02-05 Thread Ian Lance Taylor
Nikola Ikonic writes: > I am currently working on modifying FE to "swallow" piece of code > similar to this one: > > _Asm void DoSomething(some_parameters) { > mov r1, r2 > mov r2, r3 > ... and similar assembler code > } > > The idea is to just take assembler body and parse it

Re: aliases without a _DECL?

2010-02-05 Thread Jan Hubicka
> On 02/05/2010 05:56 PM, Jan Hubicka wrote: >> But without the DECLs there would be absolutely no way to reffer to these >> within current unit, so I guess cgraph don't need to care about them much >> (i.e. they can just be some list assigned to node or decl). > > Right, they would just be for bin

Re: aliases without a _DECL?

2010-02-05 Thread Jason Merrill
On 02/05/2010 05:56 PM, Jan Hubicka wrote: But without the DECLs there would be absolutely no way to reffer to these within current unit, so I guess cgraph don't need to care about them much (i.e. they can just be some list assigned to node or decl). Right, they would just be for binary compati

Re: aliases without a _DECL?

2010-02-05 Thread Jan Hubicka
Hi, I have no idea what you would like to achieve by this? I assume that you want to add aliases to given declaration without actually creating alias DECLs, just assembler symbol names. But without the DECLs there would be absolutely no way to reffer to these within current unit, so I guess cgrap

aliases without a _DECL?

2010-02-05 Thread Jason Merrill
To fix PR 12909 with minimal ABI breakage, I'd like to be able to just hang extra symbols off the cgraph node for a variable or function and have them all emitted together. I could do this with the existing alias mechanisms, but they involve additional DECLs for the aliases. Does it seem reas

Re: Exception handling information in the macintosh

2010-02-05 Thread Jack Howarth
On Fri, Feb 05, 2010 at 09:06:56PM +, Dave Korn wrote: > On 05/02/2010 18:46, jacob navia wrote: > > > The build crashed in the java section by the way, there was a script that > > supposed the object files in a .libs directory but the objects were in the > > same directory as the source code

Re: Exception handling information in the macintosh

2010-02-05 Thread Dave Korn
On 05/02/2010 18:46, jacob navia wrote: > The build crashed in the java section by the way, there was a script that > supposed the object files in a .libs directory but the objects were in the > same directory as the source code. This happened several times, so at the > end I stopped since I am n

Re: Long paths with ../../../../ throughout

2010-02-05 Thread Jon
Hello Ian Ian Lance Taylor wrote: [.] I've attached collect2 patch. Let me know what you think of it. There is actually a GNU standard for --help output, and collect2 might as well follow it. http://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html Ok, looks good, I've updated the ch

_cpp_line_note structure in front end

2010-02-05 Thread Nikola Ikonic
Hello all, Could anybody please answer me on one question which is related to _cpp_line_note structure (GCC front end)? I am currently working on modifying FE to "swallow" piece of code similar to this one: _Asm void DoSomething(some_parameters) { mov r1, r2 mov r2, r3 .

Re: Exception handling information in the macintosh

2010-02-05 Thread jacob navia
Jack Howarth a écrit : On Thu, Feb 04, 2010 at 08:12:10PM +0100, jacob navia wrote: Hi I have developed a JIT for linux 64 bits. It generates exception handling information according to DWARF under linux and it works with gcc 4.2.1. I have recompiled the same code under the Macintosh and

Re: Unwanted IRA copies via process_reg_shuffles

2010-02-05 Thread Vladimir Makarov
Jeff Law wrote: I was looking at a regression caused by having ira-reload utilize the existing copy detection code in IRA rather than my own and stumbled upon this... Consider this insn prior to IRA: (insn 72 56 126 8 j.c:744 (parallel [ (set (reg:SI 110) (minus:

Re: Contributing

2010-02-05 Thread Diego Novillo
On Fri, Feb 5, 2010 at 10:40, krishna kishore wrote: > i want to contribute for DOCUMENTATION of the project. Thank you for the offer. It's actually pretty brave, since documentation is one of the sore points of the project. Are you interested in contributing user documentation or internals?

Contributing

2010-02-05 Thread krishna kishore
Hello GCC, This is Kishore. i am very much intrested in contributing to GCC. i want to contribute for DOCUMENTATION of the project. Can you please assign me some work and let me know the process involved in it. Eagerly waiting for your reply! Thanks & Regards, Kishore. S

Re: gen_lowpart called where 'truncate' needed?

2010-02-05 Thread Mat Hostetter
Adam Nemet writes: > > > I think the right fix is to call convert_to_mode or convert_move in the > > > expansion code which ensure the proper truncation. > > > > That would yield correct code, but wouldn't it throw away the fact > > that the high bits are already known to be zero, and yield redu