Commit 74f36f13 authored by Jens Gustedt's avatar Jens Gustedt
Browse files

add pcc to the compilers that are not supported

in fact that compiler just explodes with P99
parent f94fc702
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010 Jens Gustedt, INRIA, France */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010 Jens Gustedt, INRIA, France */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
......@@ -65,11 +65,11 @@ P99_IF_EQ_2(P99_NARG(__VA_ARGS__)) \
/* Declare @a NAME to be a pointer to a static variable of type @a
* TYPE for the depending block. */
#define P00_BLK_DECL_STATIC(TYPE, NAME, ...) \
P00_BLK_BEFORE(TYPE* NAME = 0) \
#define P00_BLK_DECL_STATIC(TYPE, NAME, ...) \
P00_BLK_BEFORE(TYPE* NAME = 0) \
P99_PREFER( \
static TYPE P99_PASTE2(p00_static_, NAME) = P00_ROBUST(__VA_ARGS__); \
NAME = &P99_PASTE2(p00_static_, NAME); \
static TYPE P99_PASTE2(p00_static_, NAME) = P00_ROBUST(__VA_ARGS__); \
NAME = &P99_PASTE2(p00_static_, NAME); \
goto P99_FILEID(p00_label_, NAME); ) P99_FILEID(p00_label_, NAME):
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......@@ -49,6 +49,18 @@
P99_STRINGIFY(__GNUC_MINOR__) "." \
P99_STRINGIFY(__GNUC_PATCHLEVEL__)
#elif P99_COMPILER & P99_COMPILER_PCC
# undef P99_COMPILER_VERSION
# define P99_COMPILER_VERSION \
"pcc " \
P99_STRINGIFY(__PCC__) \
P99_STRINGIFY(__PCC_MINOR__) \
P99_STRINGIFY(__PCC_MINORMINOR__) \
"; gnu " \
P99_STRINGIFY(__GNUC__) "." \
P99_STRINGIFY(__GNUC_MINOR__) "." \
P99_STRINGIFY(__GNUC_PATCHLEVEL__)
#elif P99_COMPILER & P99_COMPILER_OPEN64
# undef P99_COMPILER_VERSION
# define P99_COMPILER_VERSION \
......@@ -133,6 +145,8 @@ signed p00_trailing_comma_in_initializer__(void) {
# ifndef __GNUC__
# define P00_NO_HAVE_TGMATH
# endif
#elif P99_COMPILER & P99_COMPILER_PCC
# error "The P99 preprocessor files can't work with the pcc compiler, yet"
#elif P99_COMPILER & P99_COMPILER_CLANG
# define p99_inline __attribute__((always_inline)) inline
/* clang can't nail a variable to a register, yet */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......@@ -314,8 +314,8 @@ P00_DOCUMENT_NUMBER_ARGUMENT(P99_ALENS, 1)
** double dotproductFunc(P99_AARG(double const, A, 1),
** P99_AARG(double const, B, 1));
**
** #define dotproduct(VA, VB) \
** dotproductFunc(P99_ACALL(VA, 1, double const), \
** #define dotproduct(VA, VB) \
** dotproductFunc(P99_ACALL(VA, 1, double const), \
** P99_ACALL(VB, 1, double const))
** .
** double Ar[5];
......
This diff is collapsed.
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010 Jens Gustedt, INRIA, France */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
/* This may look like nonsense, but it really is -*- C -*- */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment