Re: Using GS for TLS on x86-64 for target RDOS

2013-05-15 Thread Leif Ekblad
, but not with target Linux. Uros, could you commit the patch if it is acceptable? Regards, Leif Ekblad - Original Message - From: "Uros Bizjak" To: "Leif Ekblad" Cc: "Michael Matz" ; Sent: Tuesday, May 14, 2013 8:19 PM Subject: Re: Using GS for TLS

Re: Using GS for TLS on x86-64 for target RDOS

2013-05-14 Thread Leif Ekblad
I've made a patch along these lines (enclosed). Change log: * gcc/config/i386/i386.c: Use DEFAULT_TLS_SEG_REG to access TLS * gcc/config/i386/i386.h: Define default segment register for TLS * gcc/config/i386/rdos.h: Added TLS configuration for RDOS Regards, Leif Ekblad - Original Me

Using GS for TLS on x86-64 for target RDOS

2013-05-13 Thread Leif Ekblad
addr.seg != (GET_TLS_SEG_REG) || addr.disp == NULL_RTX || GET_CODE (addr.disp) != CONST) Thoughts? Regards, Leif Ekblad

Re: [PATCH] Adding target rdos to GCC

2013-01-28 Thread Leif Ekblad
That looks good. Thanks, Uros. Leif - Original Message - From: "Uros Bizjak" To: "Leif Ekblad" Cc: "Richard Biener" ; ; "H.J. Lu" ; "Jakub Jelinek" Sent: Monday, January 28, 2013 9:45 PM Subject: Re: [PATCH] Adding target rd

Re: [PATCH] Adding target rdos to GCC

2013-01-28 Thread Leif Ekblad
- Original Message - From: "Uros Bizjak" To: "Leif Ekblad" Cc: "Richard Biener" ; ; "H.J. Lu" ; "Jakub Jelinek" Sent: Monday, January 28, 2013 9:03 PM Subject: Re: [PATCH] Adding target rdos to GCC On Mon, Jan 28, 2013 at 8:57

Re: [PATCH] Adding target rdos to GCC

2013-01-28 Thread Leif Ekblad
it with libgcc instead. Regards, Leif Ekblad - Original Message - From: "Uros Bizjak" To: "Leif Ekblad" Cc: "Richard Biener" ; ; "H.J. Lu" ; "Jakub Jelinek" Sent: Monday, January 28, 2013 8:23 AM Subject: Re: [PATCH] Adding tar

Re: [PATCH] Adding target rdos to GCC

2013-01-27 Thread Leif Ekblad
If the patch is ok, could some maintainer add it to trunk? Regards, Leif Ekblad - Original Message - From: "Richard Biener" To: "Uros Bizjak" Cc: "Leif Ekblad" ; ; "H.J. Lu" ; "Jakub Jelinek" Sent: Wednesday, January 09, 2013

Re: [PATCH] Adding target rdos to GCC

2013-01-08 Thread Leif Ekblad
onfig/i386/rdos64.h: Specific definitions for 64-bit rdos target. * gcc/config.gcc: Added rdos targets Tested on target rdos and rdos32. Leif Ekblad - Original Message - From: "Leif Ekblad" To: "Uros Bizjak" ; Cc: "H.J. Lu" Sent: Monday, January 07, 2013 1

Re: [PATCH] Adding target rdos to GCC

2013-01-07 Thread Leif Ekblad
-data-threshold to 0 to allow detection of modification. * gcc/config/i386/rdos.h: Added new file for 64-bit rdos target. * gcc/config/i386/rdos32.h: Added new file for 32-bit rdos target. * gcc/config.gcc: Added rdos targets Leif Ekblad - Original Message - From: "Uros Bizjak"

Re: [PATCH] Adding target rdos to GCC

2013-01-06 Thread Leif Ekblad
r15 register names. * gcc/config/i386/i386.opt: Changed initial value for large-data-threshold to 0 to allow detection of modification. * gcc/config/i386/rdos.h: Added new file for rdos target definition. * gcc/config.gcc: Added rdos target Tested for target rdos and rdos32. Regards, Leif Ek

Re: [RFC PATCH, i386]: Use %r15 for REAL_PIC_OFFSET_TABLE_REGNUM on x86_64

2013-01-04 Thread Leif Ekblad
em? Might that be because it will not use rbx, but instead another register? OTOH, the code seems to work and rbx is not assigned to PIC at the point of the call, but to the defined parameter. Regards, Leif Ekblad - Original Message - From: "Jakub Jelinek" To: "Le

[PATCH] Adding target rdos to GCC

2013-01-04 Thread Leif Ekblad
model & PIC. * gcc/config/i386/rdos.h: Added new file for rdos target definition. * gcc/config.gcc: Added rdos target The change to gthr.m4 requires rebuilding the configure scripts. Tested with target rdos and rdos32. Is this ok for trunk? Regards, Leif Ekblad gcc.diff Description: Binary data

Re: [RFC PATCH, i386]: Use %r15 for REAL_PIC_OFFSET_TABLE_REGNUM on x86_64

2013-01-04 Thread Leif Ekblad
osgcc.h:236:5: error: PIC register clobbered by 'rbx' in 'asm' RdosUserGateEdiEcxPar0RetEbx(usergate_open_file, FileName, Access, size, res); ^ I would prefer to change PIC register to r15 instead, or alternatively make this an target-option. Regards, Leif Ekblad -

Re: [RFC PATCH, i386]: Use %r15 for REAL_PIC_OFFSET_TABLE_REGNUM on x86_64

2012-12-24 Thread Leif Ekblad
this problem. Leif Ekblad - Original Message - From: "Andi Kleen" To: "Uros Bizjak" Cc: ; "Richard Henderson" ; "Jakub Jelinek" ; ; "H.J. Lu" Sent: Monday, December 24, 2012 10:32 PM Subject: Re: [RFC PATCH, i386]: Use %r15 for REAL_

Re: x86-64 medium memory model

2012-12-12 Thread Leif Ekblad
address for both code and data. Additionally, when I tried the small memory model with a start address of text above 4G, the linker complains about 32-bit fixups overflowing. Leif Ekblad - Original Message - From: "H.J. Lu" To: "Leif Ekblad" Cc: "GCC Pat

x86-64 medium memory model

2012-12-12 Thread Leif Ekblad
bit addressing when it should be using 64-bit addressing. I have no patch for this as I don't understand what is going on here well enough, but __cpuid_count is defined in gcc/config/i386/cpuid.h. In order to be able to continue to test the medium memory model I'd need patches to be applied to fix these issues. Regards, Leif Ekblad RDOS Development