This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31169] Bootstrap comparison error at revision 122821
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2007 00:19:48 -0000
- Subject: [Bug tree-optimization/31169] Bootstrap comparison error at revision 122821
- References: <bug-31169-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sje at cup dot hp dot com 2007-03-15 00:19 -------
My attempt to add an attachment failed (mail to dberlin has been sent) so here
is a cut down code segment from genautomata.c that generates different assembly
language when compiled with the PA stage1 compiler than it does with the PA
stage2 compiler.
enum regexp_mode
{
rm_unit,
rm_reserv,
rm_nothing,
rm_sequence,
rm_repeat,
rm_allof,
rm_oneof
};
struct regexp;
typedef struct regexp *regexp_t;
struct oneof_regexp
{
int regexps_num;
regexp_t regexps [1];
};
struct regexp
{
enum regexp_mode mode;
int pos;
union
{
struct oneof_regexp oneof;
} regexp;
};
void
process_alts_for_forming_states (regexp_t regexp)
{
int i = 1;
for (i = regexp->regexp.oneof.regexps_num - 1; i >= 0; i--)
process_alts_for_forming_states (__extension__ (({ struct regexp *const
_regexp = (regexp); if (_regexp->mode != rm_oneof) abort ();
&(_regexp)->regexp.
oneof; }))->regexps [i]);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31169