/* Solaris support needed only by C/C++ frontends.
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
Contributed by CodeSourcery, LLC.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
+the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
#include "config.h"
#include "system.h"
{ "cmn_err", cmn_err_length_specs, cmn_err_char_table, "", NULL,
cmn_err_flag_specs, cmn_err_flag_pairs,
FMT_FLAG_ARG_CONVERT|FMT_FLAG_EMPTY_PREC_OK,
- 'w', 0, 0, 0, 'L',
+ 'w', 0, 0, 0, 'L', 0,
&integer_type_node, &integer_type_node
}
};
enum cpp_ttype ttype;
HOST_WIDE_INT low;
- if (c_lex (&x) != CPP_NUMBER
- || c_lex (&t) != CPP_OPEN_PAREN)
+ if (pragma_lex (&x) != CPP_NUMBER
+ || pragma_lex (&t) != CPP_OPEN_PAREN)
{
warning (0, "malformed %<#pragma align%>, ignoring");
return;
return;
}
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma align%>, ignoring");
solaris_pending_aligns = tree_cons (t, build_tree_list (NULL, x),
solaris_pending_aligns);
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype == CPP_COMMA)
{
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma align%>");
}
else if (ttype == CPP_CLOSE_PAREN)
{
- if (c_lex (&t) != CPP_EOF)
+ if (pragma_lex (&t) != CPP_EOF)
warning (0, "junk at end of %<#pragma align%>");
return;
}
tree t;
enum cpp_ttype ttype;
- if (c_lex (&t) != CPP_OPEN_PAREN)
+ if (pragma_lex (&t) != CPP_OPEN_PAREN)
{
warning (0, "malformed %<#pragma init%>, ignoring");
return;
}
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma init%>, ignoring");
else
solaris_pending_inits = tree_cons (t, NULL, solaris_pending_inits);
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype == CPP_COMMA)
{
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma init%>");
}
else if (ttype == CPP_CLOSE_PAREN)
{
- if (c_lex (&t) != CPP_EOF)
+ if (pragma_lex (&t) != CPP_EOF)
warning (0, "junk at end of %<#pragma init%>");
return;
}
tree t;
enum cpp_ttype ttype;
- if (c_lex (&t) != CPP_OPEN_PAREN)
+ if (pragma_lex (&t) != CPP_OPEN_PAREN)
{
warning (0, "malformed %<#pragma fini%>, ignoring");
return;
}
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma fini%>, ignoring");
else
solaris_pending_finis = tree_cons (t, NULL, solaris_pending_finis);
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype == CPP_COMMA)
{
- ttype = c_lex (&t);
+ ttype = pragma_lex (&t);
if (ttype != CPP_NAME)
{
warning (0, "malformed %<#pragma fini%>");
}
else if (ttype == CPP_CLOSE_PAREN)
{
- if (c_lex (&t) != CPP_EOF)
+ if (pragma_lex (&t) != CPP_EOF)
warning (0, "junk at end of %<#pragma fini%>");
return;
}