Peter | 12 Sep 18:07 2014

Debian packages

I have built some unofficial deb packages for gpc, based on version
20070904, gcc 3.4.6

They should work in modern version of Debian, Mint, Ubuntu etc.
See;-
https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4/+packages
<https://launchpad.net/%7Eueter/+archive/ubuntu/gpc-3.4/+packages>

Direct link for 64bit deb package which can be installed via gdebi;-
https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4/+build/6360693
<https://launchpad.net/%7Eueter/+archive/ubuntu/gpc-3.4/+build/6360693>

Any comments or feedback most welcome. My test results for 64 bit are as
follows;-

----------------------------------------------------------------------
for this version of gpc on Debian jessie (x86_64):

        === gpc tests ===

Running target any
Running testsuite ...

UNSUPPORTED: agettext2test.pas
UNSUPPORTED: asmtest.pas
FAIL: fieldw.pas
UNSUPPORTED: fjf165a.pas
FAIL: fjf23.pas
FAIL: fjf30b.pas
FAIL: writeb.pas
(Continue reading)

Rajat Singh | 9 Jun 20:06 2014
Picon

Function return value register

Hi,

Is there a way to change the function return value coming in register d0 to come in reigster d7 ?

I tried adding d7 in call_used_registers and updating macro's FUNCTION_VALUE and FUNCTION_VALUE_REGNO_P but it didnt work.

I tried modifying hard_function_value function in explow.c but compilation failed at reload pass.

I am trying to update the backend code for m68k.Any help is appreciated.

Thanks and regards,
Rajat Singh
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Contestcen | 15 May 08:06 2014
Picon

Heap error 203

You can ignore my previous question about Heap Error 203.  I have discovered the variable ReturnNilIfGrowHeapFails which controls the behavior of New.  It is not mentioned in the RTL manual, but it is mentioned in the Programmer's Guide.  I had not read far enough in Chapter 8, which at first reading seemed to be entirely concerned with the sizes of the various data types.
 
The description of New in the RTL manual simply states that New returns nil if space is not available.  It does not say that this feature defaults to off, and has to be turned on by the program.
 
Frank
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Contestcen | 14 May 21:04 2014
Picon

Error 203 Heap is out of memory

Is there any way to prevent an Error 203 when I call New and the heap is out of storage?  The RTL manual says that New should return a nil pointer, but that doesn't seem to happen.  Instead, my program terminates with a 203 error code.  This happens with both {$S+} and {$S-} directives.  I am running DOS under Windows 7.
 
Frank
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Kavitha Manjunath | 28 Apr 01:52 2014
Picon

BitSets in GNU PASCAL

Hi,

Is BitSet available in GPC. If not, can you please tell me how to add bitsets as part of GPC. Thanks. 
 
Regards
Kavitha 
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Kavitha Manjunath | 6 Mar 22:20 2014
Picon

Provide custom warnings for some directives

Hi,

I would like to provide custom warnings for few directives in gnu pascal. Can you please help me how to achieve it?


Thanks and Regards
Kavitha
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Jay Michael | 25 Feb 06:50 2014
Picon

change SETGPC.BAT

     SETGPC.BAT does not allow me to compile C using gpc:
           gpc tc.c -o tc

     As installed by dev_gnu_pascal-1.9.4.13.exe, SETGPC.BAT:

          set PATH=C:\prg\GPC\bin;%PATH%
          set C_INCLUDE_PATH=C:\prg\GPC\include
          set GCC_BASE=3.4.5
          set GPC_EXEC_PREFIX=C:\prg\GPC\libexec\gcc\mingw32
          set LIBRARY_PATH=C:\prg\GPC\lib;C:\prg\GPC\lib\gcc\mingw32\%GCC_BASE%
          set GPC_UNIT_PATH=C:\prg\GPC\lib\gcc\mingw32\%GCC_BASE%\units;C:\prg\GPC\units;C:\prg\GPC\units\winapi;C:\prg\GPC\units\objects;C:\prg\GPC\units\sysutils;C:\prg\GPC\units\objmingw

     I have been able to compile and link Pascal and C (one each) by
only changing PATH.

     Separately, I succeeded by appending 
c:\prg\gpc\lib\gcc\mingw32\3.4.5\include to C_INCLUDE_PATH.
(After running SETGPC.BAT)

     I don't know what to say is wrong.  The lack of a trailing slash on
GPC_EXEC_PREFIX results in a horrible mess in one of the attempted
directories
(C:/prg/GPC/libexec/gcc/mingw32mingw32/3.4.5/../../../../include/stddef.h)
but appending a slash doesn't solve the real problem, because "libexec"
is the wrong path to get to an include directory.
     Does GPC have different rules for the EXEC_PREFIX than GCC, so the
lack of a trailing slash is not a mistake for GPC_EXEC_PREFIX?

     Does the setting of all of the variables other than PATH date back
to a time before GPC did such an elaborate job of fabricating
directory names?  Or before GPC had the target and version wired in?

     Is it likely that all I need is to prepend GPC/bin to PATH?
Or do you think I will need some of the other environment variables
when I get around to trying to compile more substantial programs?

program TPAS( INPUT, OUTPUT ) ;
begin
WRITELN( 'end TPAS' ) ;
end.
#include "stdio.h"

int main( int argc, char * argv[], char * envp[] )
{
  int i ;

  for ( i = 0 ; i < argc ; i++ )
    printf( "argv[%d] = \"%s\"\n", i, argv[i] ) ;
}
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Kevan Hashemi | 21 Feb 00:30 2014
Picon

Compiling GPC on Msys

Greetings,

I'm trying to compile GPC from sources on Msys, within mingw on 32-bit 
Windows 7. Is this possible? The gcc-3.4.6/configure appears to work. It 
patches the GCC 3.4.6 for Pascal. I run the makefile, which proceeds for 
a while, with warnings like this:

warning: structure 'reg_info_def' used but not defined

Then the compile then fails with:

cc1.exe: error: min-insn-modes.c: Invalid argument

If any of this is familiar, or if I'm missing something obvious, please 
let me know. Ultimately, I'd like to be in a position to fix the 
GetMicroSecondTime routine, which does not work in Windows, and has not 
done so for years.

Yours, Kevan

--

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc

Rajat Singh | 15 Feb 03:26 2014
Picon

Change Include in frontend

Hi,

I want to include the files using #include <filename> in GNU PASCAL instead of {$INCLUDE}. I am unable to trace where the changes has to happen.


Thanks for help in advance.

Regards,
Rajat Singh
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Kavitha Manjunath | 15 Feb 02:29 2014
Picon

GNU PASCAL FRONT END Changes to mimic HP PASCAL m68k


Dear Team,

Greeting for the day.

I am a student working on GNU PASCAL Porting to adapt a version of HP PASCAL m68k for school purposes. I was trying to do the following on which I am stuck. Can you please provide me some insight and lead a path to achieve the same. Thanks a million in advance

1. I want to include the files using #include <filename> instead of {$INCLUDE}. I am unable to trace where the changes has to happen. Also all the directives in the similar way without the use of "{}".

Request your help. Thanks once again.

Regards
Kavitha 
_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
Kevan Hashemi | 14 Feb 03:33 2014
Picon

Integer Size on 64-Bit

Greetings,

On Red Hat Linux 6.5 running on a 32-bit machine, I compile GPC to 
obtain a 32-bit Pascal compiler in which the integer type is 4 bytes 
long. I compile TclTk from sources and obtain an executable in which the 
C "int" type is 32 bits long. They work well together.

On Red Hat Linux 6.5 running on a 64-bit machine, I compile GPC to 
obtain a 64-bit Pascal compiler in which the integer type is 8 bytes 
long. I compile TclTk from sources and obtain an executable in which the 
C "int" type is still 32 bits long. They do not work well together.

I can edit my Pascal code to make all integer types a fixed length 
regardless of architecture. But I was wondering if there is a Pascal 
compiler directive that I can use to force the integer size to 32 bits 
on all platforms.

Or perhaps there is a configure option when I compile GPC from its 
sources that will tell the compiler to make the integer type 32 bits.

Yours, Kevan

--

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

_______________________________________________
Gpc mailing list
Gpc <at> gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc


Gmane