aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-11-02 06:20:05 +0100
committerTristan Gingold <tgingold@free.fr>2014-11-02 06:20:05 +0100
commit0490ec633ec8c32e91b4c8e8379570ceddadbb2a (patch)
tree7dc4c9a9edec6cb4425d5f0ee916111d97b0543d
parentaf5eebc96a1e2a445b6199d3a5b15beec870bb32 (diff)
downloadghdl-0490ec633ec8c32e91b4c8e8379570ceddadbb2a.tar.gz
ghdl-0490ec633ec8c32e91b4c8e8379570ceddadbb2a.tar.bz2
ghdl-0490ec633ec8c32e91b4c8e8379570ceddadbb2a.zip
Default is now gcc-4.9. Silent ortho-lang warnings.
-rw-r--r--ortho/gcc/ortho-lang.c27
-rwxr-xr-xtranslate/gcc/dist.sh4
2 files changed, 17 insertions, 14 deletions
diff --git a/ortho/gcc/ortho-lang.c b/ortho/gcc/ortho-lang.c
index a8baa593f..e1c25e2ea 100644
--- a/ortho/gcc/ortho-lang.c
+++ b/ortho/gcc/ortho-lang.c
@@ -41,11 +41,11 @@
#include "tree-pass.h"
#include "tree-dump.h"
-//#define GCC49
+/* Undefine for gcc-4.8 */
+#define GCC49
#ifdef GCC49
-// New includes for gcc4.9 : big refactoring of tree.h, 19-Nov-2013 dnovillo
#include "print-tree.h"
#include "stringpool.h"
#include "stor-layout.h"
@@ -417,9 +417,11 @@ ortho_post_options (const char **pfilename)
extern "C" int lang_handle_option (const char *opt, const char *arg);
static bool
-ortho_handle_option (size_t code, const char *arg, int value, int kind,
- location_t loc,
- const struct cl_option_handlers *handlers)
+ortho_handle_option (size_t code, const char *arg,
+ int value ATTRIBUTE_UNUSED,
+ int kind ATTRIBUTE_UNUSED,
+ location_t loc ATTRIBUTE_UNUSED,
+ const struct cl_option_handlers *handlers ATTRIBUTE_UNUSED)
{
const char *opt;
@@ -1264,8 +1266,8 @@ new_constrained_array_type (tree atype, tree length)
void
new_boolean_type (tree *res,
- tree false_id, tree *false_e,
- tree true_id, tree *true_e)
+ tree false_id ATTRIBUTE_UNUSED, tree *false_e,
+ tree true_id ATTRIBUTE_UNUSED, tree *true_e)
{
*res = make_node (BOOLEAN_TYPE);
TYPE_PRECISION (*res) = 1;
@@ -1707,7 +1709,7 @@ new_const_decl (tree *res, tree ident, enum o_storage storage, tree atype)
}
void
-start_const_value (tree *cst)
+start_const_value (tree *cst ATTRIBUTE_UNUSED)
{
}
@@ -2042,7 +2044,7 @@ new_else_stmt (struct o_if_block *block)
}
void
-finish_if_stmt (struct o_if_block *block)
+finish_if_stmt (struct o_if_block *block ATTRIBUTE_UNUSED)
{
pop_stmts ();
}
@@ -2152,7 +2154,7 @@ start_choice (struct o_case_block *block)
}
void
-new_expr_choice (struct o_case_block *block, tree expr)
+new_expr_choice (struct o_case_block *block ATTRIBUTE_UNUSED, tree expr)
{
tree stmt;
@@ -2162,7 +2164,8 @@ new_expr_choice (struct o_case_block *block, tree expr)
}
void
-new_range_choice (struct o_case_block *block, tree low, tree high)
+new_range_choice (struct o_case_block *block ATTRIBUTE_UNUSED,
+ tree low, tree high)
{
tree stmt;
@@ -2172,7 +2175,7 @@ new_range_choice (struct o_case_block *block, tree low, tree high)
}
void
-new_default_choice (struct o_case_block *block)
+new_default_choice (struct o_case_block *block ATTRIBUTE_UNUSED)
{
tree stmt;
diff --git a/translate/gcc/dist.sh b/translate/gcc/dist.sh
index 530436ff5..e709a6448 100755
--- a/translate/gcc/dist.sh
+++ b/translate/gcc/dist.sh
@@ -39,9 +39,9 @@
set -e
# GCC version
-GCCVERSION=4.8.2
+GCCVERSION=4.9.2
# Machine name used by GCC
-MACHINE=i686-pc-linux-gnu
+MACHINE=${MACHINE:i686-pc-linux-gnu}
# Directory where GCC sources (and objects) stay.
DISTDIR=${DISTDIR:-$HOME/dist}
# GTKWave version.