Changeset 6e4b913 for src/tests


Ignore:
Timestamp:
Jul 10, 2016, 4:35:32 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
4e06c1e, c13d970
Parents:
07bc165
Message:

allow 32-bit compilation of cfa-cpp, and 32-bit compilation of CFA programs (including CFA libraries)

Location:
src/tests
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/extension.txt

    r07bc165 r6e4b913  
     1extern void *malloc(long unsigned int __size);
     2extern void free(void *__ptr);
    13extern void abort(void);
    24extern int atexit(void (*__func)(void));
    35extern void exit(int __status);
     6extern int printf(const char *__restrict __format, ...);
    47__extension__ int __a__i_1;
    58__extension__ int __b__i_1;
  • src/tests/.expect/gccExtensions.txt

    r07bc165 r6e4b913  
     1extern void *malloc(long unsigned int __size);
     2extern void free(void *__ptr);
    13extern void abort(void);
    24extern int atexit(void (*__func)(void));
    35extern void exit(int __status);
     6extern int printf(const char *__restrict __format, ...);
    47int main(int __argc__i_1, const char **__argv__PPCc_1){
    58    asm ( "nop" :  :  :  );
  • src/tests/Makefile.am

    r07bc165 r6e4b913  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon Jun 27 14:39:08 2016
    14 ## Update Count     : 34
     13## Last Modified On : Sat Jul  9 11:23:24 2016
     14## Update Count     : 35
    1515###############################################################################
    1616
    1717# applies to both programs
    18 CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
     18CFLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ # TEMPORARY: does not build with -O2
    1919CC = @CFA_BINDIR@/cfa
    2020
  • src/tests/Makefile.in

    r07bc165 r6e4b913  
    114114CFA_BACKEND_CC = @CFA_BACKEND_CC@
    115115CFA_BINDIR = @CFA_BINDIR@
     116CFA_FLAGS = @CFA_FLAGS@
    116117CFA_INCDIR = @CFA_INCDIR@
    117118CFA_LIBDIR = @CFA_LIBDIR@
     
    119120
    120121# applies to both programs
    121 CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
     122CFLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ # TEMPORARY: does not build with -O2
    122123CPP = @CPP@
    123124CPPFLAGS = @CPPFLAGS@
  • src/tests/avltree/avl.h

    r07bc165 r6e4b913  
    44extern "C" {
    55#define NULL 0
    6 void free(void *);
    76#define assert(cond) if (! (cond)) { printf("Assertion failed: (%s) at %s:%d\n", #cond, __FILE__, __LINE__); abort(); }
    8 int printf(const char *, ...);
    97}
    108
  • src/tests/avltree/avl1.c

    r07bc165 r6e4b913  
    11#include "avl.h"
    22// #include "cwrap.h"
    3 
    4 extern "C" {
    5   void * malloc(long int);
    6 }
    73
    84forall(otype K | Comparable(K), otype V)
  • src/tests/avltree/avl_test.c

    r07bc165 r6e4b913  
    33
    44extern "C" {
    5   int printf(const char *, ...);
    65  int strcmp(const char *, const char *);
    76}
  • src/tests/init_once.c

    r07bc165 r6e4b913  
    1010// Created On       : Tue Jun 14 15:43:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul  5 16:40:07 2016
    13 // Update Count     : 2
     12// Last Modified On : Sat Jul  9 11:30:29 2016
     13// Update Count     : 3
    1414//
    1515
     
    2323//*** setup
    2424extern "C" {
    25 typedef unsigned long int size_t;
    2625#define NULL 0
    2726void * malloc(size_t);
    2827void free(void *);
    2928#define assert(cond) if (! (cond)) { printf("Assertion failed: (%s) at %s:%d\n", #cond, __FILE__, __LINE__); abort(); }
    30 int printf(const char *, ...);
    3129void *memset(void *s, int c, size_t n);
    3230}
Note: See TracChangeset for help on using the changeset viewer.